Hi, I have a search page which only had forms... I can include this page on any part of my JSP as I please because it doesn't generate any dynamic contenet. However, now I realized that I need to include dynamic content... For example, I need a html:select tag that would be poppulated based on the records on the database... But to do this, I need to come from the controller which would render my template, un-reusable in other parts of my page... I've thougt of different solutions, mainly...
1. Type all the option tags manually. 2. AJAX? 3. Maybe <jsp:include page="/actions/someactions.do"/> would work? 4. Maybe Struts has other alternatives to this problem...
I'm sure many of you have experienced this... I'm trying to remain as model 2 as possible... Thanks!
Hi Merrill. Thanks for your suggestion... But the page I'm trying to include won't get displayed... I even tried taking out all the Struts tags and just insert a plain text... But nothing would appear excep the page which is trying to include the template... Here's how I inlcude my page...
Here's the page I'm trying to include...
thanks for you help...
Joined: Sep 18, 2005
Hmmm... After clearing all my cookies and offline contents... I found out that the page really just forwards to my included page and not really include it... OMG!!!
Joined: Feb 15, 2005
Make sure the forward for your action does not specify redirect="true". It sounds like this may be what's happening.