• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem to display session attribute

 
Vaishali Paramane
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to dispaly username
I am getting error in following line

<td><html:text property="userName" size="30" value="<%=session.getAttribute("name") %>" /></td>

if I remove value attribute it works fine. what is wrong in value attribute?

thanks for help
 
aseem agarwal
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the exact error..can you please write it here...
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Might be friendly exception null pointer.
 
Vaishali Paramane
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey my problem solved
I cast session get attribete like value="<%=(String)session.getAttribute("name") %>" now it is working.

Thanks for help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic