input type = "text" how to get valus

Dear all

when i want to use <a href> this tag to do link to other page and the link include some of jsp values ... the question is how can i edit

this values in to

<input type="text" name="links" size="30" >

for example ?

<a href="Files.jsp?name=<%=URLEncoder.encode(oproduct)%>&links=links">

[528 byte] By [roger5089a] at [2007-11-27 7:57:30]
# 1
dese some one know how to gave script type into <a fref> link
roger5089a at 2007-7-12 19:39:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

dear all

i donot know why the problem when i declare

one variable in , and then when i post data into Files.jsp and i cannot catch the data which i just type in name="links" this function

<%

String doc ="";

%>

<input type="text" name="links" size="30" value="<%=doc%>" >

<a href="Files.jsp?name=<%=URLEncoder.encode(oproduct)%>&links=<%=doc%>" >

roger5089a at 2007-7-12 19:39:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

> dear all

> i donot know why the problem when i declare

> one variable in , and then when i post data into

> Files.jsp and i cannot catch the data which i just

> type in name="links" this function

> > <%

> String doc ="";

>

> %>

> <input type="text" name="links" size="30"

> value="<%=doc%>" >

>

> <a

> href="Files.jsp?name=<%=URLEncoder.encode(oproduct)%>

> links=<%=doc%>" >

>

How are you "catching" the data in Files.jsp?

r035198xa at 2007-7-12 19:39:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
the question i want to get data from the input type = "text" in my sublink so i need to catch the data from name="links"the code which indicate the <input type="text" name="links" size="30" >some thing i can typing in to and get result from name of links
roger5089a at 2007-7-12 19:39:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

> the question i want to get data from the input type =

> "text" in my sublink so i need to catch the data from

> name="links"

> the code which indicate the

> <input type="text" name="links" size="30" >

> some thing i can typing in to and get result from

> name of links

Use javascript. document.formName.links.value

r035198xa at 2007-7-12 19:39:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

if you want to get the value of text field,you should put text field into a form,and use submit button to submit it.

ie.<form action="your_link" method="post"><input type = "text" name="yourname"><input type="submit" value="submit" ></form>

i just know this way

field-zeroa at 2007-7-12 19:39:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
how if i do not want to use form for post , i can use only <a href> link
roger5089a at 2007-7-12 19:39:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...