• 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
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

understanding the validator stuff

 
Ranch Hand
Posts: 488
  • 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: 4
  • 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: 488
  • 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: 28715
211
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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic