• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

understanding the validator stuff

 
Ranch Hand
Posts: 458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Trying to get rid of struts related spring modules /validator stuff from my code as we are no longer using struts. I'm seeing the following defined in my JSP

I have spring-validator.jsp which contains the following:



And then in one of my JSP page, I see it being called like this:




1. What does defining the prefix "v" and "javascript" mean in the above code?

2. What does dynamicJavascript = "true" means?


So far whenever I've seen the usage of springframework tags, which are defined like this:


I've used that it's being used in the form using prefix "form" prefix, which was easy to understand. But the spring-validator stuff is something I'm trying to understand such that I can get rid of it and what I need to do to get it replaced.
 
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Prefix v?
 
Jack Tauson
Ranch Hand
Posts: 458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vasanth Selvamani wrote:Prefix v?



Sorry, I didn't understand what you were trying to say.
 
Saloon Keeper
Posts: 28325
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vasanth Selvamani wrote:Prefix v?


The namespace that maps the tag to the tag library. It can be anything, but short namespace id are popular because you you don't have to type as much.

Caution though. Be aware of the difference between a taglib definition with a namespace and the xhtml namespace tags, which also use mapping IDs.

 
This looks like a job for .... legal tender! It says so right in this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic