Sending Variables in JSP

Hi!

I'm kind of new to the buisness of programing jsp-pages, but this far I've managed to make a page where one is able to insert a few rows of information and then getting those values, using request.getParameter("paramName").

I then lay theese values in Strings but now I want to forward the values to another JSP-page. How do I do this?

[360 byte] By [T00ba] at [2007-10-2 6:41:40]
# 1
You can use jsp:forward or response.sendRedirect(). But considering your case, I think that the 2nd option is correct. The syntax is:-response.sendRedirect("yourjsp.jsp"?param1=value1&param2=value2&...)
indraraj_ma at 2007-7-16 13:49:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Alright, will try right away, and let you know the results
T00ba at 2007-7-16 13:49:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Hmm my problem now is that on the first page one get to enter some information about how to connect to an sql database. The jsp-server then access this database and returns what columns there is. After that I wan't the user to select wich table or tables to look in. So what I need is a way to send JAVA-Variables through a html-form, like a hidden input or something since I can recieve those values.

Oh and don't wory about writing how to connect to databases, I've already got that covered.

T00ba at 2007-7-16 13:49:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...