Meaningless Drivel is fun!
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
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: 17417

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Accessing scriplet value with jsf?
It's not a secret anymore!