This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes assign value of  bean:write in variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "assign value of  bean:write in variable" Watch "assign value of  bean:write in variable" New topic
Author

assign value of bean:write in variable

natasa jones
Ranch Hand

Joined: Aug 20, 2006
Posts: 45
Hi all!
i would like to ask how i could assign the value of
a bean write tag to a String named for example lastName in my jsp page.
something like doesnt work.
any thoughts?
alan wamser
Ranch Hand

Joined: Jan 30, 2006
Posts: 41
The bean:write you have listed it looking for a java bean called myUser, and is going to call the mething getlastname().
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
You need to use bean : define and bean : write tags.

eg:

[ September 05, 2006: Message edited by: Purushothaman Thambu ]
 
GeeCON Prague 2014
 
subject: assign value of bean:write in variable