|
|||||
|
|
#1 |
|
|
down menu. I get this error: javax.servlet.ServletException: No data found It will list the items just fine if I just list the items without using the select & option tags. I would like to know why I am getting an error with the following statement: <select size="1" name="org"> <% while (rs.next()) { %> <option value="<%=rs.getString("ORG_CODE")%>"> <%=rs.getString("ORG_CODE")%> </option> <% } %> </select> Thank you. -jptu |
|
|
#2 |
|
|
> I am new to Javascript and I am having problems with loading a pull > down menu. > > I get this error: > javax.servlet.ServletException: No data found > > It will list the items just fine if I just list the items without > using the select & option tags. I would like to know why I am getting > an error with the following statement: > > <select size="1" name="org"> > <% while (rs.next()) { %> > <option value="<%=rs.getString("ORG_CODE")%>"> > <%=rs.getString("ORG_CODE")%> > </option> > <% } %> > </select> Did you try: <option value="<%=rs.getString('ORG_CODE')%>"> |
|
|
#3 |
|
|
thanks, jptu *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
|
|
#4 |
|
|
phuong tu wrote:
> Yes, I've tried it and it didn't work. What's the url of the page, or post the relevant code here. |
|
|
#5 |
|
|
On 7 Apr 2004 18:11:04 -0700, jt <judiphuongtu@yahoo.com> wrote:
> I am new to Javascript and I am having problems with loading a pull > down menu. OK... > I get this error: > javax.servlet.ServletException: No data found > > It will list the items just fine if I just list the items without > using the select & option tags. I would like to know why I am getting > an error with the following statement: > > <select size="1" name="org"> > <% while (rs.next()) { %> > <option value="<%=rs.getString("ORG_CODE")%>"> > <%=rs.getString("ORG_CODE")%> > </option> > <% } %> > </select> ....but I don't see how this is related to JavaScript. You're problem is with JSP. You can find the JSP support forums at: <URL:http://forum.java.sun.com/forum.jsp?forum=45> Good luck, Mike -- Michael Winter M.Winter@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply) |