• 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

access a submitted value from Spring form

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a link from a jsp form href="addBilling.htm?petId=7&visitID=4"

where in addBilling.htm is a spring form

my apps-servlet.xml contains:

<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/addBilling.htm">addBillingForm</prop>
</props>
</property>
</bean>

<bean id="addBillingForm" class="org.springframework.samples.petclinic.web.AddVisitForm">
<property name="formView" value="billingForm"/>
<property name="clinic" ref="clinic"/>
</bean>

#views.properties
billingForm.class=org.springframework.web.servlet.view.JstlView
billingForm.url=/WEB-INF/jsp/billingForm.jsp


My question is how do i get the value of visitID from my jsp.

any help would be very much appreciated. thx
 
author
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you add visitID to your model? Regardless, you should be able to access it using JSTL:

 
I found some pretty shells, some sea glass and this lovely tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic