Pass variable from one page to another

How to pass variables from page A to page B? anyone help..wanna know the code.
[92 byte] By [mela] at [2007-10-2 20:30:15]
# 1
can yu please give us the code of what you are doing
jgalacambraa at 2007-7-13 23:13:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

for example: page A want to get the variables from page B.

Page A

String suplTyp=request.getParameter("suplTyp");

String laNo=request.getParameter("laNo");

String projNo=request.getParameter("projNo");

String contNo=request.getParameter("contNo");

String clmNo=request.getParameter("clmNo");

String clmDte=request.getParameter("clmDte");

Page B

<table border=0 width=100%>

<tr><td>LA Number</td><td>: <%=laNo%></td></tr>

<tr><td>Project</td><td>: <%=projNo%></td></tr>

<td>Contractor</td><td>: <%=contNo%></td></tr>

<tr><td>Claim Number</td><td>: <%=clmNo%></td>

<td>Claim Date</td><td>: <%=clmDte%></td></tr>

</table>

mela at 2007-7-13 23:13:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

put the values on a form like

this is at b.jsp

<form action="a.jsp">

<input type="hidden" name="clmNo" value="<%=clmNo%>" />

<input type="submit" value="submit" />

</form>

in a.jsp you can request for the value of the hidden name clmNo

with your code:

String clmNo=request.getParameter("clmNo");

let me know if you get it

jgalacambraa at 2007-7-13 23:13:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

i see.

and what if i at page A got a hyperlink for example

var newwindow;

function poptastic(url)

{

newwindow=window.open(url,'name','height=400,width=200,scrollbars=yes');

if (window.focus) {newwindow.focus()}

}

<a href="javascript:poptastic('material_on_siteV1.jsp');">Material on Site</a>

and when i click on the link, then 'material_on_siteV1.jsp' page will pop up and will get the variable from page A.

mela at 2007-7-13 23:13:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
no you are not submitting it what you can do is this:<a href="javascript:poptastic('material_on_siteV1.jsp?clmNo=<%=clmNo%>&clmNo1=<%=clmNo%>');">Material on Site</a>
jgalacambraa at 2007-7-13 23:13:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
i see.ok ok..really wanna say thank you...cause i still learning javascript...thx a lot.if got any problem, i will still post it
mela at 2007-7-13 23:13:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
ok there are a lot of programmers wh can help you here.. just post it and if i know your problem i can help you
jgalacambraa at 2007-7-13 23:13:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 8
:-)
mela at 2007-7-13 23:13:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...