Results 1 to 2 of 2
- 04-09-2011, 02:53 AM #1
Senior Member
- Join Date
- Feb 2009
- Posts
- 117
- Rep Power
- 0
how do you write set a propert of a bean using a scriptlet?
hi! thanks for reading,
I am trying to set a property of a bean of mine from a request parameter and the compiler is telling me that it is incorrect
my script is
<jsp:useBean id="stringbean"
scope="session"
class="com.vbc.beans.myBean" />
<jsp:setProperty name="stringbean"
property="lastName"
value="<%=request.getParameter("lastName")%>" />
i don't know what else to do.
any help would be appreciated! :D
the parameter lastname, I already tested it. if would do
<%=request.getParameter("lastName")%>
outside of the jsp tag it will display the proper value of the parameter. i just don't know how to embed the value to a bean with the method I pasted above.
- 04-09-2011, 03:25 AM #2
Senior Member
- Join Date
- Feb 2009
- Posts
- 117
- Rep Power
- 0
Similar Threads
-
write a program to perfom the following set of functions using stateless session bean
By satheeshtech in forum Advanced JavaReplies: 1Last Post: 02-01-2010, 07:25 AM -
How to write a java bean class object to XML file
By Java Tip in forum java.ioReplies: 1Last Post: 01-29-2009, 09:35 AM -
Detecting browser with JSP scriptlet
By Java Tip in forum Java TipReplies: 0Last Post: 12-24-2007, 10:05 AM -
About bean:write
By yuchuang in forum Web FrameworksReplies: 1Last Post: 04-30-2007, 03:31 PM -
Struts tag error with bean:write
By sandor in forum Web FrameworksReplies: 1Last Post: 04-07-2007, 04:50 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks