File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Accessing scriplet value with jsf? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Accessing scriplet value with jsf?" Watch "Accessing scriplet value with jsf?" New topic

Accessing scriplet value with jsf?

E Paisley

Joined: Sep 22, 2008
Posts: 14
I have the scriplet below at the top of a JSF page. How can I access the reportLocation variable inside of a JSF link element? I guess what I'm asking is what is the JSF syntax to access the reportLocation variable?

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15632

You might want to check my reply to David Salaete:

It's not one of my clearest explanations, but the short message is "You shouldn't code logic on JSF pages". Put the value in a backing bean, then reference the backing bean.

Your question where you're using JSTL in JSF has the same answer. JSTL doesn't work that well with JSF.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Accessing scriplet value with jsf?
Similar Threads
Accessing Variable Declarations W/ Struts Tags
access to local variable via EL
Problem with jsp:getProperty
Accessing Variable Declarations W/ Struts Tags
Counting the number of hits on a link