• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jstl tags in a JSF Application on WAs6.1

 
rajesha Indurthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
rajesha Indurthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic