aspose file tools*
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
Author

Accessing scriplet value with jsf?

E Paisley
Greenhorn

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: 16065
    
  21

You might want to check my reply to David Salaete: http://www.coderanch.com/t/214714/JSF/java/Calling-managed-bean-method-parameters

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: http://aspose.com/file-tools
 
subject: Accessing scriplet value with jsf?