This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Issue regarding Jsp Include Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Issue regarding Jsp Include" Watch "Issue regarding Jsp Include" New topic
Author

Issue regarding Jsp Include

Nakul P. Patel
Greenhorn

Joined: May 31, 2011
Posts: 25
Hi all,
I am new to jsp and need help.
I want to make a jsp file in which there are 8 combo box elements.
Now I am Includeing :" <%@include file="comboBox.jsp"%>" file in other various .jsp files of my projects.
But each time the requirement varies, i do not want to use all those combo box elements in other .jsp files.
Some time i need to use only 2 combo boxes and some time 3 and .......etc.I don't want to use all combo boxes every time.
Is there any way?
Please reply soon and explain in brief if possible.
Thank You.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61084
    
  66

Firstly, please read HtmlHasNoComboBox. Correct terminology is important.

Secondly, you can conditionalize using JSTL tags such as <c:if> and <c:choose>.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
Hi

If I understand right you want to dynamically determine the creation of the combo box on the html page.

For example select the first and then if you select a specific value then you get to the second.

Is that what you want?

Rahul
 
Don't get me started about those stupid light bulbs.
 
subject: Issue regarding Jsp Include