File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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 jsp page.
<% 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
problem with html:text prpperty value=bean:write
No getter method for property
Get FormBean's property in JSP page.
displaying data from arrays with html:text
how to assign bean value to jsp variable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014