Hi,

In our application, we use the same set of <select> lists in various JSP's.
The option values for these selects are retrieved from the database at
runtime. Right now, we have a JSP for each of these select tags and we
include these selectJSP's in the various JSPs wherever they are needed like
this:

<jsp:include page="/util/CountyNames.jsp" flush="true">
        <jsp:param name="formName" value="propertyInfoCounty" />
        <jsp:param name="countyKey"                     
value="<%=propertyInfo.getCountyFk()%>" />
        <jsp:param name="selectable" value="true" />
</jsp:include>

generates:

<select name="propertyInfoCounty">
        <option> value=1 </option> "county1"
        <option> value=2 </option> "county2"
        <option> value=3 </option> "county3"
</select>

My question is, is that ok to include a lot of pages in a JSP
or should I build a taglib with all the  selectTags and replace my imclude
pages with the tags instead? What will be the main difference, will there
be any performance
improvement?

Thanks,
Gopi

Thanks,
Gopi

-----------
Gopi Mandava                            (703) 267-1735 x307
CoManage Inc.

"I don't think God put me on this planet to judge others. I think he put me
on this planet to gather specimens and take them back to my home planet."

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to