• Post Reply Bookmark Topic Watch Topic
  • New Topic

HFS&JSP book pno-416

 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doubt about Standard Action(use:Bean)



Above Servlet code set Attribute p in request scope.
That is why jsp:getProperty is able to prints output-:Even

Now my Doubt is that how jsp:getProperty is able to locate
name attribute.Because servlet code set Attribute in request
scope and getProperty is locating name in page scope.
How this is possible.

Please help
Thanks
 
Saurabh Kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The below code gives runtime error since the bean(created in servlet) is in request scope whereas JSP action looks it in "page" scope and is not able to find it.




Please correct me if I am wrong.

Thanks and regards,
Saurabh
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!