This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes jsp:param not working inside jsp:include and JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "jsp:param not working inside jsp:include and JSF" Watch "jsp:param not working inside jsp:include and JSF" New topic
Author

jsp:param not working inside jsp:include and JSF

Florin Gheorghies
Greenhorn

Joined: Jun 07, 2005
Posts: 7
I tried all I could figure out, as well as researched the issue. So I'd appreciate any help.

I have a jsp:include with a jsp aram inside a jsf component h anelGrid. The problem is that the param is not being passed to the included jsf page. It seems it should be a straightforward issue, but it's not to me.

p.s. my day job is not programming.

So here's the code of the including page:

========================================= jsfpage.jsp

============================================ included.jsp

============ end code

Dev setup:

- Tomcat C:\tomcat-5.0.3

- web.xml:

- web-inf/lib listing:
601,154 adf-faces-api-ea16.jar
4,019,203 adf-faces-impl-ea16.jar
356,110 db4o-4.5-java1.4.jar
364,470 jsf-api.jar
698,542 jsf-impl.jar
20,896 jstl.jar
393,142 standard.jar
- jdk 5

I guess that should be all?

Thanks for your advice.
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
JSF specificaton mentions few things about jsp:include inside a JSF page.

You can download the jsf specificiton from Sun and have a look at section 9.2.2.

Extracts

When using the <jsp:include> standard action (or the JSTL <c:import>
action) to compose a single view from multiple JSP pages, all JSF component
custom actions in included pages must be nested inside the <f:subview> custom
action from the JSF Core Tag Library (which is itself nested inside the <f:view>
custom action). The <f:subview> action itself may be present in the including
page (i.e. with the <jsp:include> or <c:import> action nested inside it), or in
the included page.


- Varun
Florin Gheorghies
Greenhorn

Joined: Jun 07, 2005
Posts: 7
Much appreciated. I found the same info in the j2ee tutorial as well,
(http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSFPage3.html).

Once again, I appreciate your time.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp:param not working inside jsp:include and JSF
 
Similar Threads
Problem with localization (MyFaces and JSTL)
Problems of Deploying JSF war file to Tomcat
Test/Debug AJAX?
problem when working with selectOneListbox
How to target result Page in to tab panel.