• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

<c:set > value is not accessing in Spring Controller class

 
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there

this is my JSP code



and this is my controller code


I am trying to access that set variable in my Controller class but I am getting null each time

Where is error?


Thanks
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
something like this worked for me



and in controller



but problem is now parameter is displaying in uRL like this


http://localhost:8080/CollegeManagementSystem/searchStudent?searchStudent=acounts



which I do not want to display in URL

any other approach
 
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What are you trying to achieve here?
You;re setting an application scope (that is, a scope visible to all sessions) variable to something, but for the life of me I can't see why.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this is my updated code


and this is JSP



I want to detect some values in my controller class that differentiate from where request is coming from which page their are differet JSP like this accounts which are calling to same URL "searchStudent" I want those URL differntiate in my controller class
 
reply
    Bookmark Topic Watch Topic
  • New Topic