Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts HTML Taglib Issue

 
Jason Ferguson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing looks wrong in that little code segment but it sounds like you have some invalid html. Double check all your closing tags.

- Brent
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic