What are you trying to do? Do you want Stripes to raise a validation error
because you have a �...@validate(required=true)? Or do you want Stripes to
insert an empty string in that map because is a valid value?
_
De: Phil Sladen [mailto:phil.sla...@yahoo.co.uk]
Enviado el: lunes,
I have an actionbean property HashMapString,String tagMap that is used to
gather dynamically generated form values from input fields named like
tagMap[propName]. Works fine as long as the value in the form field is not
empty. But if it is empty, it appears that
Hi,
I'm looking for the best way to validate a form field that may or may not
be shown in the form.
This means that if the field is shown a number is required, if it is not
nothing is required. How do I express that - must be null or a valid
number?
Thanks,
Well if it's a numeric type in the bean, and it's not required, won't
that be all you need? If there's a non-empty value then the type
converter will insist that it be valid.
--
Turtle, turtle, on the ground,
Pink and shiny, turn around.
The @Wizard annotation might work for you. With wizard beans, validation
only applies to fields that were actually rendered in the form that is
submitted. This normally serves to allow for the inputs to be presented
across several pages, but it might also work for your case.
If that doesn't work,
team,
i have stripes working like a pro with my app, so this is not a basic setup
question.
i currently have the standard
servlet-mapping
servlet-nameDispatcherServlet/servlet-name
url-pattern*.action/url-pattern
/servlet-mapping
which works
Danny, I responded this question already. Here it is again in case you
missed it.
You could use the DynamicMappingFilter defined like this in your web.xml
filter
filter-nameDynamicMappingFilter/filter-name
filter-classnet.sourceforge.stripes.controller.DynamicMappingFilter/filter-class
Laura Ferguson allend...@... writes:
Note: I am a desktop application developer trying to learn web development --
so any help with these questions would be really appreciated. Many thanks!!
I am working on email verification and I was trying to determine the best
approach to the following
yes! that's exactly what i had in mind (just didn't know it yet)
many thanks friend.
Gregg Bolinger-7 wrote:
You could use the DynamicMappingFilter defined like this in your web.xml
--
View this message in context:
Hello all,
I am fairly new to stripes. I am getting an issue where:
stripes:link beanclass=${actionBean.class}
stripes:param name=param value=${var}/
Link
/stripes:link
if ${var} returns a string with space, it adds a + for the strings. Is there a
way not to add
Looking for a few quick pointers here :
I've added the stripe stuff security package to my app without a problem and
set the SecurityManager to org.stripesstuff.plugin.security.J2EESecurityManager.
The thing bootstraps without a problem.
So - now what :)
Searching for servlet 2.4 J2EE
Hi,
Something funny happened after I included commons-fileupload-1.2.1.jar.
Tomcat seems to go haywire, it would go through infinite loop of class
loading until it run out of memory:
Mar 31, 2009 12:13:50 PM org.apache.catalina.loader.WebappClassLoader
modified
INFO: Additional JARs have
Hi Laura,
If u want to use any value from other jsp, I have two opinion..
first if u using ForwardResolution to other jsp, it will automatically give
the value in stripes tags that call it.
Second, why dont u use Session..stored the value to session.
Fyi, I am newbie too. However in my
13 matches
Mail list logo