• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Param Attribute doubts

 
Micheal John
Ranch Hand
Posts: 344
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Gowher Naik
Ranch Hand
Posts: 643
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<html>

Try above code.
 
Ali Gohar
Ranch Hand
Posts: 572
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

<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
Posts: 344
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh..god what a silly mistake..? how I didn't notice that..?

Thanks for the help
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic