I've been doing the same thing by extending RequestProcessor (or
TilesRequestProcessor). The advantage of that is, depending on which
method you extend, you can have access to the Struts Form and
ActionMapping objects.
Jacob
In article <[EMAIL PROTECTED]>,
"andy wix" <[EMAIL PROTECTED]> wrot
One more: you need something like this in your ApplicationResources:
errors.required={0} is required.
In article <[EMAIL PROTECTED]>,
Caroline Jen <[EMAIL PROTECTED]> wrote:
> To add to the list:
>
> 5. the validator-rules.xml and validation.xml must be
> in the AppName/WEB-INF directory.
>
eed to save the values yourself prior
> to performing the forward.
>
> Craig
>
>
>
> On Tue, 5 Oct 2004 15:26:55 + (UTC), Jacob Weber
> <[EMAIL PROTECTED]> wrote:
> > Hello. In my Struts application, I have an action which forwards to a
> > second
>
Hello. In my Struts application, I have an action which forwards to a second
action. The "redirect" parameter is set to false, so the browser's URL doesn't
change.
I'd like to get the original URL that the user requested (the one that's in his
browser). But request.getServletPath() and the vari
In article <[EMAIL PROTECTED]>,
ddylla <[EMAIL PROTECTED]> wrote:
> I am using WebLogic8.1 sp3 and am trying to deploy an application that uses
> struts-blank.war from the Struts 1.2.2 binary distribution. The .EAR that I
> built errors when deploying and fails to run, complaining that it canno
In article <[EMAIL PROTECTED]>,
Hubert Rabago <[EMAIL PROTECTED]> wrote:
> There was only one entry for the two similarly named forms. Checking the
> fields of the form showed me that only the latest definition of a form with a
> given name is recognized.
>
> So, you should probably add a formb
I have a JSP with two forms, and they both need to go to the same
action. But Struts assumes that the "name" property of the HTML form
(e.g. ) should be the same as the name of the
associated form bean. As a result, I can't use JavaScript to refer to
one of the forms, since they both have the
Hello fellow Strutters,
I've added multiple message-resources tags to my struts-config file,
each with a different "key" attribute. Is there a way to access these
from my Java code? I can call MessageResources.getMessageResources, but
it requires the full path name. Is there a way to just provi
I have two questions on Struts' validation.
1. Let's say I have a multi-page form. Each JSP in the form points to a
different action (or a different method of a DispatchAction), and passes
the current "page" value to the action. It's possible for someone to
pass the wrong value of "page" to an
formation, it's unlikely anyone could see what is going
wrong here. Show us the structure of your WAR, and that might help.
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jacob Weber
>
> In my Struts app, I need t
In my Struts app, I need to get data from a resource bundle. So I make a
call to:
MessageResources.getMessageResources("myFile")
The file name is actually myFile_en_US.properties, and when I run this
code on Tomcat, it's able to find the right file. But when I run the
same code on WebLogic, i
Hello,
I'm wondering how Struts users handle the problem of separating business
validation from page validation. By page validation, I mean things that
can be accomplished with the Struts Validator, such as checking field
lengths. And by business validation, I mean things that the business
lay
You can make a ContextListener class like this:
public final class MyContextListener
implements ServletContextListener {
private ServletContext context = null;
public BaseServletContextListener() {}
public void contextInitialized(ServletContextEvent event) {
this.context = event.
In article
<[EMAIL PROTECTED]>,
"Kransen, J." <[EMAIL PROTECTED]> wrote:
> Hello, I generate an XML file from within a JSP in Tomcat. Especially after
> 16384 bytes the contents are really interesting. Unfortunately, Tomcat
> disagrees and truncates it. It can't be coincidence that this is 16k
>
Right, the flow returns to the "input" page, which can be another action
call. So I'm making my "input" point to "/myAction.do?method=myMethod",
which calls a particular method of a DispatchAction.
It seems to work, but this kind of points to a larger question. Say I
have some steps that need
In article <[EMAIL PROTECTED]>,
Joe Germuska <[EMAIL PROTECTED]> wrote:
> Looking back at the original email, I would guess that the things
> read from XML config files could pretty safely be stored in each
> ServletContext -- assuming they don't change after initialization --
> drop down menu
Thanks for all your help. I decided to ditch RequestProcessor and just
make base action classes. I made one for Action, one for DispatchAction,
and one for ForwardAction.
It means a little redundancy, but I feel like this is better integrated
into the Struts framework. This way I have access to
I have a lot of data that needs to be available to all users, at any
time (for example, the contents of drop-down menus, which I loaded from
an XML file). From all the posts I've seen here, the recommended place
to store global data seems to be the servletContext. Most people are
setting up a
Wow, thanks for the quick responses. I'm looking into filters, since a lot
of people seem to prefer them to overriding RequestProcessor.
With filters, will I be able to use Struts functions like
Mapping.findForward and Action.saveErrors? It seems like the filters happen
before the relevant objects
19 matches
Mail list logo