have a nice day - hema
hemamalini nithyanandam wrote:i am just a beginner in jsp and servlet. i have written a servlet which returns a list containing string of names.(fromList). i want to display that using option tag in a web page. in my jsp file i have included
but i am getting error. how to display the list of strings using <select><option>
Piyush
Sunil Sunny wrote:Use this :
have a nice day - hema
have a nice day - hema
An error occurred at line: 68 in the jsp file: /index.jsp
From cannot be resolved
65: {
66:
67: String from=(String)fromList.get(i);
68: out.println("<option value='" + From + "'></option>");
69: }
70: %>
71: </select>
here from is small case.String from=(String)fromList.get(i);
68: out.println("<option value='" + From + "'></option>");
hemamalini nithyanandam wrote:thanks a lot for the suggestions. but still i am getting error as
will start learning jstl from nowonwards.
Piyush
have a nice day - hema
have a nice day - hema
hemamalini nithyanandam wrote:will change to jstl .. will change the practice from now onwards. thank you so much for the suggestions
Piyush
have a nice day - hema
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |