Results 1 to 2 of 2

Thread: how to get a variable from jsp and pass it to controller

  1. #1
    Join Date
    Aug 2012

    Unhappy how to get a variable from jsp and pass it to controller

    I have the following JSP code snippet:

       <tr class="gRow"
    	_paidId="<c:write name="pay" property="paid" />">
    Now I need to pass the variable _paidId that has been initialized in JSP to a method in a controller. I dont want to use
    is there any other way? I am using spring mvc

  2. #2
    Join Date
    Dec 2002
    Calgary, Canada
    u can use a hidden field and put the value in that and when you submit the form back to ur jsp, value will be in your jsp.
    Or you can create a url and attach a parameter (name=value) that way you can pass the value to ur jsp as well...


    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles