Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

Accessing a field in my backing bean. How?  RSS feed

 
Darrin Smith
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 1400
  • Mark post as helpful
  • send pies
  • Report post to moderator
So the option I gave here didn't work ?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by Varun Khanna:
So the option I gave here didn't work ?


Yep, closing this duplicate thread.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!