my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android 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: 15961

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
Counting the number of hits on a link
access to local variable via EL
Accessing Variable Declarations W/ Struts Tags
Problem with jsp:getProperty
Accessing Variable Declarations W/ Struts Tags