Meaningless Drivel is fun!*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Param Attribute doubts 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Param Attribute doubts" Watch "Param Attribute doubts" New topic
Author

Param Attribute doubts

Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
I am trying some examples on param attribute.. but I am encountering following error message: how to resolve it?








[ January 04, 2007: Message edited by: Micheal John ]
[ January 04, 2007: Message edited by: Micheal John ]

Micheal John
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
<html>

Try above code.
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572

<jsp:useBean id="person" type="com.example.model.Person" class="com.example.model.Employee"><jsp:setProperty name="person" property="empname"></jsp:useBean>EMP NAME IS :: <jsp:getProperty name="person" property="empname">


Michael, you are not properly closing the setProperty and getProperty tags. Either use "/>" at the end or use </jsp:setProperty> to close the tag properly.
Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
oh..god what a silly mistake..? how I didn't notice that..?

Thanks for the help
 
Consider Paul's rocket mass heater.
 
subject: Param Attribute doubts
 
Similar Threads
Problems with bean example
jsp:getProperty
Bean standard action doubt
using param attribute
org. apache. jasper. JasperException : Unable to compile class for JSP: