-1

Hi I am able to display value from spring controller in jsp using Expression language like

{msg}

How to do I send back this value to spring controller without form tag

smitha gowda
  • 161
  • 1
  • 13
  • 2
    By making the user click on a link. Or posting a form. Or by sending an AJAX request using JavaScript. – JB Nizet Nov 10 '17 at 08:09
  • Possible duplicate of [Passing parameters from JSP to Controller in Spring MVC](https://stackoverflow.com/questions/5590036/passing-parameters-from-jsp-to-controller-in-spring-mvc) – Vipin Yadav Nov 10 '17 at 08:10
  • is it possible to send any url tag like c:url – smitha gowda Nov 10 '17 at 08:12
  • 1
    c:url is used to generate a URL and write the result string to the HTTP response stream. What are you actually trying to achieve? Sending a tag to a controller doesn't mean anything. You send HTTP requests to a controller. – JB Nizet Nov 10 '17 at 08:17
  • I just want {msg} value from jsp to controller without form tag – smitha gowda Nov 10 '17 at 08:21
  • It depends on when you want to send this value like 'button click event' or 'page load'. If possible, please add your related code so that we can help more accurately. – VPK Nov 10 '17 at 08:44

1 Answers1

-1

public String someAction(@RequestParam("someid") String id) {

}

always007
  • 50
  • 4