Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSF and the fly likes Accessing a field in my backing bean. How? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply locked New topic
Author

Accessing a field in my backing bean. How?

Darrin Smith
Ranch Hand

Joined: Aug 04, 2003
Posts: 276
There is a String field in my backing bean called urlString. This variable holds a value that I need for a parameter that is located inside of a JSP.

The JSP code containing the parameter looks like this:



What should the code look like inside of the JSP to set the value of the "URL" parameter with the value that is stored inside of the urlString variable located in the page bean?

Note that I have tried the following:

value="#{BackingBeanName.urlString}" which set it to the literal value "#{BackingBeanName.urlString}" .

value =${BackingBeanName.urlString}" which set it to the literal value "${BackingBeanName.urlString}"

THANKS!
[ May 10, 2005: Message edited by: Darrin Smith ]
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
So the option I gave here didn't work ?


- Varun
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15229

Originally posted by Varun Khanna:
So the option I gave here didn't work ?


Yep, closing this duplicate thread.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing a field in my backing bean. How?
 
Similar Threads
Runtime parameter changes
Runtime parameter?
Possible to pass a run time param?
Context in Virtual Hosts
JSF and dynamic applet param passing