Send innerHTML text in URL in JSP -


To send innerhtml text of a tag to the URL on the onclick event handler on the JSP page and how to value it in another JSP page get receive? Here is my code

& lt; A href = "DocumentViewer.jsp" & gt; Hello & lt; / A & gt;

I want to send hello to url. help?

You should assume the URL onclick event and use it

 JSP page In  request.getParameter ()  

example code below

  & lt; A href = "DocumentViewer.jsp? Proces = something" & gt; Hello & lt; / A & gt;  

And get it in JSP in this way.

  string supporters = request.getParameter ("proces");  

Comments

Popular posts from this blog

sql - Find last match with latest inserted name in table -

c# - XML serialize base class without knowing derived class -