• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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:

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic