File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "assign value of  bean:write in variable" Watch "assign value of  bean:write in variable" New topic

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.


[ September 05, 2006: Message edited by: Purushothaman Thambu ]
jQuery in Action, 2nd edition
subject: assign value of bean:write in variable
Similar Threads
displaying data from arrays with html:text
how to assign bean value to jsp variable
problem with html:text prpperty value=bean:write
No getter method for property
Get FormBean's property in JSP page.