Thanks a lot :)
Do you think this required a documentation update because I don't find your
information here:
http://struts.apache.org/1.3.8/faqs/validator.html
2007/7/2, Niall Pemberton <[EMAIL PROTECTED]>:
On 7/2/07, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote:
>
I have the following validation rule :
test
(*this* == newPassword)
In my ressource file:
errors.required={0} is required.
errors.invalid={0} is invalid.
valid.confirmnewpassword=Confirm new passwo
Good morning,
I need to subclass the LookupDispatchAction to write a
"BaseLookupDispatchAction" to centralize the UserRole check of my
application (etc.).
I try the following piece of code :
public abstract class BaseLookupAction extends LookupDispatchAction {
public ActionForward exec
Hello,
In my stdout, I find the following warning :
2006-06-12 14:16:28,095 [http-8080-Processor24] WARN
org.apache.struts.action.ActionMapping - Unable to find 'Success' forward.
2006-06-12 14:16:28,095 [http-8080-Processor24] WARN
org.apache.struts.action.ActionMapping - Unable to find 'Suc
error message is that you're not specifying any
replacement "argument" values for the message. It doesn't automatically pick
up the values and use them as argument replacements. You need to have
something like the following
minlength
6
The javascript generates by Struts 1.3 to integrate the common-validator
js produces warnings under ff1.5 :
Avertissement : reference to undefined property this[varName]
this.a0 = new Array("password", "Password can not be less than {1} characters.",new Function
("varName", "this.minlength='6'
All my forms extends the ValidatorForm class.
Wendy Smoak wrote:
On 3/5/06, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote:
It seems to me that server side validation does not work with Struts 1.3
The getValudationKey
public String getValidationKey(ActionMapping m
It seems to me that server side validation does not work with Struts 1.3
The getValudationKey
public String getValidationKey(ActionMapping mapping, HttpServletRequest
request) {
return mapping.getAtribute();
}
returns allways the action url : /Login
instead of LoginForm.
I override
Wendy Smoak wrote:
On 1/9/06, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote:
Sometimes in my application, I call an action by this way :
Null usually means no form bean is associated with the Action. What
does the action mapping in struts-config.xml look like?
--
Sometimes in my application, I call an action by this way :
In this case the ActionForm received in my struts action is null, is it
a way to obtain an empty form instead of a null form? (Of course not by
using a html:form)
-
I need your help to design my web application using struts and hibernate.
I have several classes to save/delete/update (like user, category,
project,...).
I dont know what is the best pattern to use :
- 1action per object and all the operations(save,update,delete) in the
same action
- only on
I have a plugin in my struts application to initialize the required
ressources.
If for some reason the processing fails, I catch the exception and throw
a ServletException but the jsp error mechanism in not used and the
client receive a tomcat 404 page in place of my """beautifull ;-)"""
error
supplied Locale
http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html#SimpleDateFormat(java.lang.String,%20java.util.Locale)
Important Note: Message items can be referenced via Bean:message taglib
Anyone else ?
Martin-
- Original Message - From: "Xavier Vanderst
I would like to retrieve the date format pattern according to the user
Locale.
I do the following to retrieve the Struts Locale :
Locale
current=(Locale)this.pageContext.getSession().getAttribute(Globals.LOCALE_KEY);
if(current==null)
current=Locale.US;
And now I would like to rea
Braun, James F wrote:
I need to force no page caching and I (vaguely) remember a configuration
parameter that would do this. However, I looked in the wiki but didn't
find anything on this. Can anybody shed any light?
Thanks, J.
Set the nocache attribute to true for the controller element in
${request['ParameterName']}
Andrzej Bengner wrote:
try request.getParameter(ParameterName);
Thanks, that's OK :-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
sudip shrestha wrote:
I have a struts action that downloads binary files from the database: e.g.:
/actions/download.do?fileId=xxx, etc
So, whenever users download any type of file with any id, the name of the
file displayed on any browser is "download.do",
is it possible to set something in
www.jarhoo.com is your friend to find missing jar files libraries
C.F. Scheidecker Antunes wrote:
Hello,
Thanks for the info. I am still having problems sending email from a
struts action.
I've created a separate class emailClient to send the message. The
class is on the end
of the email.
Jakarta commons-email is your friend
http://jakarta.apache.org/commons/email/examples.html
C.F. Scheidecker Antunes wrote:
Hello all,
I need to email a simple text message from within an action.
I've tried creating a class using javax.mail.* and
javax.mail.internet.* classes but without su
().getServletContext();
ModuleConfig moduleConfig =
ModuleUtils.getInstance().getModuleConfig(request, context);
// Return the requested message resources instance
return (MessageResources) context.getAttribute(
key + moduleConfig.getPrefix());
}
Xavier
Hello,
All my site supports i18n mechanism correctly, using Struts LocaleAction
and bean taglib.
However when I try to access messageresource in my action the language
of the messageresource is allways the default one (in my case en_us).
System.out.println(request.getLocale());
if(request.ge
It is the same behavior if I remove the locale attribute.
I also found no valid javascript in the page :
2lang attributes
and the w3c validation fails :
/Result:
Failed validation, 1 error
/
/
Error /Line 8 column 48/: there is no attribute "lang"./
/|http
Content.do action. And the main
frame is not reloaded.
David G. Friedman wrote:
Try adding a 'return false;' to the end of your a tag's onClick method to
prevent submits back to the server.
Regards,
David
-Original Message-
From: Xavier Vanderstukken [mailto:[EMAIL
Wojciech Ciesielski wrote:
THX :]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
IS that class really performs a redirect request?
Can I use the setRedirect method to false
ng 'null' from your action
or do you invoke a forward to go to a JSP after you have closed
your output stream with os.close() ? At that point I expect you to return
null instead of an actionForward.
Regards,
David
-Original Message-
From: Xavier Vanderstukken [mailto
d idea, at least not according to the Tomcat Servlet
docs on interface ServletResponse method getOutputStream() and getWriter():
Either this method or getWriter() may be called to write the body, not both.
Regards,
David
-Original Message-
From: Xavier Vanderstukken [mailto:[EMAIL PROTECTED
Any idea?
Xavier Vanderstukken wrote:
I have a jsp page with 3links :
- One open a popup and write a file in this popup
- One to display some text informations on the same page
- One to upload a file to the server (in fact the file displayed in
the first link)
The three link seems to work
I have a jsp page with 3links :
- One open a popup and write a file in this popup
- One to display some text informations on the same page
- One to upload a file to the server (in fact the file displayed in the
first link)
The three link seems to work well however when I upload a new file (the
:
Greg Reddin wrote:
On Sep 7, 2005, at 12:06 PM, Xavier Vanderstukken wrote:
java.lang.NullPointerException
at
org.apache.jasper.runtime.JspRuntimeLibrary.getContextRelativePath
(JspRuntimeLibrary.java:908)
Are your pages at the
I have a main layout :
I extend the main definition :
And finally here is the body
With that configuration I receive an exception :
java.lang.NullPointerException
at
org.apache.jasper.runtime.JspRuntimeLibr
I'm using Eclipse WTP version 0.7 very nice Eclipse project.
It can control a Tomcat Server and allow easy debugging
Martijn Smit wrote:
I'm running Tomcat within Eclipse with the Sysdeo plugin since the
dawn of time. As long as you handle your own context definitions (keep
a close watch on th
Change validate="false" in the struts-config.xml file to validate="true"
and also dont forget to set the onSubmit attribute to something like
return validateLoginForm(this)
jonathan gilmore wrote:
I cannot get my struts application to work with the Validator plugin.
Can someone please rev
Hello,
I don't find any information, how I can do to read the servletContext
variable inside of my Custom ExceptionHandler class.
I would like to get a reference to my logManager located in the
application scoped variables and initialized by a struts plugins.
---
34 matches
Mail list logo