struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MichaƂ Postupalski <>
Subject Re: Validator validates too early (was RE: Validator won't valida te single required field)
Date Sat, 25 Jan 2003 00:03:17 GMT
> Interesting... would equalsIgnoreCase be more appropriate, or are you sure
> it'll always be in upper case?  My jsp currently has:
>   <html-el:form action="/chooseProfile">
> which turns into:
>   <form name="chooseProfileForm" method="post"
> action="/bendev/">
> so I'm guessing that 'post' will be lowercase.

that's no matter if you write in Your HTML file:

<form name="chooseProfileForm" method="post" 


<form name="chooseProfileForm" method="POST" 

because request.getMethod() returns HTTP method and 
request.getMethod().toString() is always uppercase

> Thanks!  This is a much better solution, so I can change the name of the
> Submit button without breaking it.

that's it !


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message