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]

# 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%>" >
# 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?
# 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
# 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