A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
assign value of bean:write in variable
Joined: Aug 20, 2006
Sep 03, 2006 12:31:00
i would like to ask how i could assign the value of
a bean write tag to a
named for example lastName in my
<% String lastName=> <bean:write name="myUser" property="lastname"></bean:write> <%; %>
Joined: Jan 30, 2006
Sep 04, 2006 09:41:00
The bean:write you have listed it looking for a
bean called myUser, and is going to call the mething getlastname().
Joined: May 24, 2003
Sep 05, 2006 02:53:00
You need to use bean : define and bean : write tags.
<bean:define id="userName" scope="request"> <bean:write name="userInfo" property="userName"/> </bean:define> ... <%= userName %>
[ September 05, 2006: Message edited by: Purushothaman Thambu ]
I agree. Here's the link:
subject: assign value of bean:write in variable
displaying data from arrays with html:text
how to assign bean value to jsp variable
No getter method for property
problem with html:text prpperty value=bean:write
Get FormBean's property in JSP page.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015