i am new to jsp. I tried to read html form data into jsp page ... . I have taken two input fields of text and one submit button ... on clicking of submit jsp page shows first and last name. but problems arises when i run html file on server first time and submit it ... it won't work and field gets reseted ... but when i enter data again it works correctly. its strange thing that happened ... please help me with this
May i know why you are using that html form in out.println() line.. I think that is the prob it reloads your form once again so you are not getting it... try to remove that line and run it.. hope it will work.
jsp pages with inline java codes is simply hard to maintain and debug. in your situation, having inline java codes is acceptable while learning jsp pages, that's how i started too. have you tried the suggestions of prasad and sabi? you should learn next about jsp el in order to replace inline java codes.