GeeCON Prague 2014*
The moose likes JSF and the fly likes jstl tags in a JSF Application on WAs6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "jstl tags in a JSF Application on WAs6.1" Watch "jstl tags in a JSF Application on WAs6.1" New topic
Author

jstl tags in a JSF Application on WAs6.1

rajesha Indurthi
Greenhorn

Joined: Oct 12, 2005
Posts: 2
Iam trying to use the jstl tag with a JSF managed bean some thing like :
<cut value="${searchBean.searchText}">, where searchBean is my JSF managed bean , searchText is an attribute in that bean.

This piece of code works fine when I run the Web application on Tomcat , but when I try to run the same on WAS6.1 , it prints out ${searchBean.searchtext}, instead of getting me the value from the getter method of the searchText Attribute in the Managed Bean.
I have not included the jstl.jar in the Web-inf/lib of application as WAs6.1 has it in built.

Is it a syntax issue or should I do something differently in WAs6.1.

Any help would be appreciated.
Thanks in advance!!!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16101
    
  21

It's possible that JSF requires a higher J2EE standard level than that version of WebSphere provides, or that you're falling into the gap which arose when several different EL processors were trying to run side by side (before the unified EL).

However, as a general rule, it's not a good idea to mix JSTL and JSF. It can be done, if you keep certain pitfalls in mind, but you're actually better off using a JSF outputText tag here, I think. One less standard to adhere to.


Customer surveys are for companies who didn't pay proper attention to begin with.
rajesha Indurthi
Greenhorn

Joined: Oct 12, 2005
Posts: 2
HI Tim,
I appreciate your reply.. but what if I want to use tags like foreach , which are not provided in jsf.. I wanted to use the jstl tags in my jsf , Iam not intemingling them they are being used in 2 seperate blocks on my jsp, so am taking care of not mixing the lifecycles of jsf and jstl...It works on tomcat but on WAS6.1 it is not able to recognise the syntax : value="${searchBean.searchText}">, ... any ideas?
 
GeeCON Prague 2014
 
subject: jstl tags in a JSF Application on WAs6.1