> Programming Languages > Javascript
Various Topics Home | Disclaimer | Report Adult Posts

Various Topics on Javascript



Javascript - "load pull down menu on JSP page" in Programming Languages


Old 04-08-2004   #1
..
 
Default load pull down menu on JSP page

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>

Thank you.
-jptu
 
Old 04-08-2004   #2
..c..
 
Default Re: load pull down menu on JSP page

jt wrote:

> 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')%>">

 
Old 04-08-2004   #3
..uo.. ..
 
Default Re: load pull down menu on JSP page

Yes, I've tried it and it didn't work.

thanks,
jptu



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Old 04-08-2004   #4
..c..
 
Default Re: load pull down menu on JSP page

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.

 
Old 04-08-2004   #5
..cha.. ..nt..
 
Default Re: load pull down menu on JSP page

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)
 

Thread Tools
Display Modes





Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0