This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes Not able to set attribute in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Not able to set attribute in JSP" Watch "Not able to set attribute in JSP" New topic
Author

Not able to set attribute in JSP

Nilambari Brahma
Greenhorn

Joined: Apr 14, 2011
Posts: 6
Hi,
I have a strange problem, I am accepting some values from simple html and using getParameter() in the form loaded JSP page. Here I can read parameter, but here I am setting this parameter value as an attribute value and getting this in other JSP. but at the end it's not showing any NullPointerException but value which i get in my result page is always NULL.
for more clarity sticking code.


//GetName.html


//SaveName.jsp



//NextPage.jsp


Kindly help as early as possible
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1018
Try

Nilambari Brahma
Greenhorn

Joined: Apr 14, 2011
Posts: 6
Thank you very much ...It worked
And it was silly mistake
 
GeeCON Prague 2014
 
subject: Not able to set attribute in JSP