This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts HTML Taglib Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts HTML Taglib Issue" Watch "Struts HTML Taglib Issue" New topic

Struts HTML Taglib Issue

Jason Ferguson
Ranch Hand

Joined: Aug 09, 2007
Posts: 58
I have the following JSP fragment:

My issue is that anything after the second <html:select> refuses to render.

The chainSelect() is a javascript function taking two select box ids and passing them to an action to populate the second select box.

The Struts action calls a service layer class to get a List of all CBTs for a Presentation, converts them to JSON via json-lib, gets the Response object's writer (after setting the content type), outputs the JSON, then returns null.

I've used Firebug to view the rendered <select> with options, and did not see anything I didn't expect to.

Does anyone have any idea why nothing renders after the second select?
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Nothing looks wrong in that little code segment but it sounds like you have some invalid html. Double check all your closing tags.

- Brent
I agree. Here's the link:
subject: Struts HTML Taglib Issue
Similar Threads
how to access combo-box value in javascript?
struts tags problem
how to use list box in struts and how to retrive values in edit page
dynamic data arranged in alphabetical order in html:select and html:options
How to transfer elements between two list boxex ?