Bookmark Topic Watch Topic
  • New Topic

regarding anchor tag to servlet  RSS feed

 
prathiba panati
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator
how to send a data in variable messageid to the servlet when the link is clicked.
I have used

<a href="./surveyquestion?messageid=arr[<%=i%>][1]><%=request.getAttribute("arr["+i+"]["+j+"]")%></a>

But Iam not getting it
is there any other way to send the data in variables to the servlet?



Regards
[ March 23, 2007: Message edited by: prathiba panati ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
If I'd use scriptlets :
 
rajesh ssh
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Report post to moderator
<a href="./surveyquestion?messageid=<%=arr[i][1]%><%=request.getAttribute("arr["+i+"]["+j+"]")%></a>

and just conform with request.getAttribute(String); string variable you have to give..
i mean first write it in java format and then write in jsp whenever you want to use scriptlets
 
prathiba panati
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thanks for your reply

My doubt is if i have a variable named rows=10 in my JSP and i want to get that value of rows to my servlet


How is it possible?


Regards
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sine you re-asked the question elsewhere, and which has been answered, this topic is closed.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!