This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "jsp" Watch "jsp" New topic
Author

jsp

siddhartha Mondal
Greenhorn

Joined: Sep 05, 2011
Posts: 3
How to implement conditional viewing using <div> in jsp??
I am trying to implent a simple form submission using struts MVC. where i dont want to display the mailing list checkbox if country is selected as INDIA. I am a beginer in scripting languages. so please help me.. the code is given below



i have written a differnt country class for the country selection and another action page for populating the values in the success page.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Use JSTL's if tag . by the way: I strongly suggest you to include JSTL jars in your webapplication's lib folder. I promise, it would be very helpful to you.
siddhartha Mondal
Greenhorn

Joined: Sep 05, 2011
Posts: 3
Seetharaman Venkatasamy wrote:Use JSTL's if tag . by the way: I strongly suggest you to include JSTL jars in your webapplication's lib folder. I promise, it would be very helpful to you.




Befor i go for JSTL i tried this using html/jsp only..

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsp
 
Similar Threads
Struts 2 checkboxlist error - list key could not be resolved
In Need of Urgent help Struts + jquery
Fieldset is not working
form is not being divided
popup in small window is not closing automatically