i need to send that data to other jsp page and get them to the varibles.
i used request.geaParameter() method.but i could only get the first value.why os that
There is no such method. I realize that you meant getParameter, but this is the sort of red herring that wastes people's time. There are a bunch more spelling errors in your post. If you want people to take the time to answer your questions, please take the time to make sure that they are clear and error free.
It also introduces two different ways of addressing application pages: servlets and JSPs, which just seems like a recipe for trouble down the road when a URL has to change.
Pat Farrell wrote:
Bear Bibeault wrote:You should not be submitting to a JSP, but to a servlet.
Interesting. Got a cite for that? Or better, why is it bad?
Very old-fashioned and Model 1.
Here's my article on the subject.
And yeah, what David said.
David Newton wrote: JSPs are the view layer and should be doing only viewful things.
Well, this is a bit of a value laden statement. JSPs can be just a view, but then you need something else to control dispatching. Pretty soon you are in the "too many servlets" problem, which leads to a framework.
I've just spent several months beating my head against Stripes, based on Fred's visit to the framwork section. I bought the book, wrote up all the examples, and tried to do my application. I gave up. Its too much magic.
At the time, I also downloaded, but did not implement Bear's Frontman.
Its been a couple of years since I did a lot of forms, wizards, etc. stuff with JSP/servlets, and it seems that all of my experience has fallen out of my brain. This stuff used to be easy.
David Newton wrote:What about it (Stripes) threw you off? It's about as lightweight as they get and produces very maintainable apps.
I just don't get it. Too much magic. I keep getting null pointer exceptions because the key object is instantiated or not by magic or not.
I see the examples, worked them, but when I try to do things that I think are similar, it blows up and I don't see any way to debug what's wrong.