Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Aditi Msc   on Jun 14 In Java Category.

  
Question Answered By: Elisabeth Bell   on Jun 14

j is just a string and your only choice is to send it to the server side
like so.

<form name="foo" method="post">
<input type="hidden" name="var_j">
<input type="submit">
<script>document.var_j = j</script>

After submitting the form you can assign  it on the server side.
<% String s = request.getParameter("var_j")%>

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Quick JSP question Or get search suggestion and latest updates.


Tagged: