I am currently breaking down our use-cases into
different sub use-cases and mapping them every one of
them to a single Action class. In some scenarios, its
better to group related methods into a single
DispatchAction class but sometimes it is logically
plausible to consider a single method to be p
Another thing I do get back a list of errors for each failed field value per
validator but, the issue is that each validator defined is returning a new
ActionErrors per validator and not appending the previous errors already in
the ActionErrors created by the previous validator.
-Original Mes
Sorry, that was a cut and past error on my behalf it really is
-Ben
-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 4:12 PM
To: Struts Users Mailing List
Subject: Re: FW: multiple validators and ActionErrors
Ben,
Theoretically, if ev
Hi,
I am trying to build struts from the source code.
In build.properties, there is a property
struts-legacy.jar=contrib/struts-legacy/dist/struts-legacy.jar
There was no struts-legacy.jar along with distribution.
I thought, may be it generated automatically.
But when I run ant dist, it fails
Joe Hertz wrote:
I'm trying to use declarative security in my struts app, but it's not
really a struts-specific problem.
It works great when someone goes to a protected page. They get
redirected to the "login page".
But what if I want to include a login form on any or every other page?
If I prov
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
It should work just fine.
- change your base action to extend DispatchAction
- in execute(), call preProcess(), super.execute(), then postProcess()
...assuming you've implemented your custom methods (e.g. search(), save(),
whatever() ) and you understand how DispatchAction works, it should all fa
hi,
map-backed action form and validator does not seem to work together in
my application.
Struts Validator framework is not getting invoked. Has anybody done this
before.
Help me out in this regard.
Thank you,
Dilip.
This is my code snippet
_Extended ActionForm :_
package test;
import jav
Are you using Struts 1.1, 1.2, or a recent nightly? What container are
you using? It might be worth stepping through this in the debugger, to
see what happens when you try to find the parent containing tag.
> -Original Message-
> From: Paul Barry [mailto:[EMAIL PROTECTED]
> Sent: Friday
There is a commercial struts extension for Dreamweaver
http://www.fwasi.com/products/
> -Original Message-
> From: ali [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 06, 2004 7:42 PM
> To: [EMAIL PROTECTED]
> Subject: taglibs bitter for web designers!!!
>
>
> the first time i used tag
I thought someone had done something for Struts/Dreamweaver a while back the
only thing I can see on the struts resources is this:
http://jakarta.apache.org/taglibs/doc/ultradev4-doc/intro.html
Niall
- Original Message -
From: "ali" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Frid
Solved.
I punted and decided to use Security Filter.
This works so much better.
> -Original Message-
> From: Joe Hertz [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 07, 2004 2:07 PM
> To: 'Struts Users Mailing List'
> Subject: [Kina-OT] Declarative Security form question
>
>
>
the first time i used taglibs like our web designer in
the company came to me with a face red as tomato and told me that
she has trouble with them, because she uses dreamweaver for web
development and the visual designer dont recognize these taglibs. do
you have any solution for this?
thanks
Sonam Belbase wrote:
Hi,
I am trying to create a button which invokes an action and then shows
the results in a pop-up. How would I do this?
For starters, I tried the following, but html:image cannot have a
target attribute:
Is there anyway to do this using Struts and the openPopUp jsp method?
Hi Chris,
I set some information in cookies during the login action in my application; then I
use the cookies value in my action and in my jsp page. For debugging propose I show
everytime the footer all the cookies name and value. Sometimes I lose all the
cookie (also the session cookie); it
You could do this differently using struts tags:
or even better using the java standard tag library (JSTL):
The only thing then is setting the hidden fields "name" attribute to the
form name/property so that its sub
Hi,
I try to install the Struts-Console version 4.6 with JDeveloper 10g and
i have the Struts Console option in my Extension Manager but when i
select my struts-config.xml file i dont have Struts-Console Editor
option. Why?
I have only the standard the Edit Struts-config... option
Thanks
Jam
Well I'm out of ideas. I can get this error with this jsp code if I removed
the <@ taglib> definition for c.tld - but you have it in your jsp and if the
tld was a problem you wouldn't see the working when you remove
the indexed="true" attribute.
Obviously its something in your environment but I d
Ben,
Theoretically, if every thing is working as is should, you get a list of
errors to display. One for each failed field value. From a quick glance
at what you've provided below however, do you really have
at the beginning of your validation.xml file?
Susan Bradeen
"Sifuentes, Be
Hi Chris,
I set some information in cookies during the login action in my application; then I
use the cookies value in my action and in my jsp page. For debugging propose I show
everytime the footer all the cookies name and value. Sometimes I lose all the
cookie (also the session cookie); it
Hi Chris,
I set some information in cookies during the login action in my application; then I
use the cookies value in my action and in my jsp page. For debugging propose I show
everytime the footer all the cookies name and value. Sometimes I lose all the
cookie (also the session cookie); it
Hi Chris,
I set some information in cookies during the login action in my application; then I
use the cookies value in my action and in my jsp page. For debugging propose I show
everytime the footer all the cookies name and value. Sometimes I lose all the
cookie (also the session cookie); it
It's possible that you aren't using a full Struts
1.1 release. It looks like there were some
changes to the TilesUtil stuff right around the
release of Struts 1.1 which could easily lead to
a problem like this.
(you can see more details by looking at
http://cvs.apache.org/viewcvs.cgi/jakarta
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
If so a couple questions:
1) How is it working for you?
2) Any problems using Struts on it?
3) Assuming you have JBoss experience, do you prefer Sun JSAS 8 or JBoss?
Thanks!
I think the message is clear enough: White spaces are required after keyword PUBLIC in
DOCTYPE decl. This is an error related to XML documents.
Did you use/change any XML file (like web.xml for example)?
Tom
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
I'm trying to use declarative security in my struts app, but it's not
really a struts-specific problem.
It works great when someone goes to a protected page. They get
redirected to the "login page".
But what if I want to include a login form on any or every other page?
If I provide something mo
Why don't you use J2EE FORM-based authentication?
It's easy to set up and automatically checks if a user has logged in
whenever this user wants to access a "protected" page (configurable).
More info is for example here:
http://www.onjava.com/pub/a/onjava/2002/06/12/form.html
Tom
- Original M
When using DynaValidatorForm, you just put the fields in the struts configuration xml
file, and you don't need a formbean to set all the fields manually, which in turn
saves your developing time. I am asking in struts community, is there any
reason/encouragement for not using DynaValidatorForm?
You can actually do the filter with struts 1.0. You need a >=2.3 servlet
container (Tomcat 4 or better).
If you don't have that though, then yeah, the Request Processor is the
way to go.
> -Original Message-
> From: MARU, SOHIL (SBCSI) [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 07, 20
I have been using struts 1.1 for a couple
of months now, and want to make sure I
am using best practices. Most of my
education has come from Struts in Action
and Programming Jakarta Struts, and this
mailing list. It appears that I should shift to
using the JSTL tags in preference to various
struts
I had asked the same question some time ago and the consensus was to use
Filters and not RequestProcessor if you have the appropriate version of
struts. I have still not added the display message part to my stuff.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of GMaine
IIRC, Action.saveErrors just puts things into the request scope that the
JSP pulls out. You could do that yourself the same way (there's a struts
constant for the identifier)
Filters really do a nice job for this type of thing.
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED]
I've defined and I'm using a subclass of Action (my.package.BaseAction),
in order to implement the Template design pattern, so I use this class
instead of the Action class provided by STRUTS. The intended goal is
that things that are common to all actions are performed here, such as
logging and
Hi. I wonder if someone can help me. I'm trying to override RequestProcessor
to check whether a user has logged in. If he has, I'll let the request
proceed. If not, I'd like to forward him somewhere.
The problem is, I need to display an error message if I'm redirecting the
user. I'm trying to use
Hi,
I am trying to create a button which invokes an action and then shows
the results in a pop-up. How would I do this?
For starters, I tried the following, but html:image cannot have a
target attribute:
Is there anyway to do this using Struts and the openPopUp jsp method?
Any help would be a
White spaces are required after keyword PUBLIC in DOCTYPE declaration in some
xml (struts-config.xml or web.xml)
Henrique VIECILI
ps.: Did you read the stack trace?
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 07, 2004 7:19 AM
Subject: Error
Sorry if this is confusing, I'll explain what I am trying to do. I want
to give the use a form with a number of "interests" and I want to track
which ones they check off. The way I thought to do it is have a form
with a List property called interests. I would have an action
prepopulate the i
Is this the correct behavior for the use with multiple validators?
If so, is there away to configure it use the same ActionErrors for all
validators within a form?
If this is not suppose to be happening can someone give a glue as what might
be the problem here?
Do I need to override the validat
Dave Hallam <[EMAIL PROTECTED]> wrote on 05/06/2004 11:16:17 AM:
> Hi,
>
> I've got a page which uses tiles to load another jsp as part of the
> page body. In the tiled jsp there is a form that I validate. If I
> create ActionErrors in the form validation, I can render the
> correctly in the m
ganesh g <[EMAIL PROTECTED]> wrote on 05/07/2004 05:08:13 AM:
>
> Hi Friends!
>
> i'm using tiles where i want to get html:errors from properties file.
>
> But i'm not getting.
>
> i'm adding and saving errors in action class only.And errors are not
> specific to any property but those are glo
Hi Marco
"Lose all the cookies" Can you elaborate on the losing part.
Are you setting cookies on the response and they are not being written ?
Are you setting cookies and then the next request they are gone ?
Are the cookies inaccessible but do exist when you check your cookies using another
me
Hi,
I modify the Bc4jRequestProcessor (JDeveloper 9.0.3) to use tiles [originally it
extends RequestProcessor, now extends TilesRequestProcessor]. All works fine, but
sometimes I lose all the cookies.
Any suggestion?
Thanks,
Marco
Hi,
I am getting following error
while i start my tomcat server can anyone guide me what the
problem ??
May 7, 2004 2:52:43 PM org.apache.coyote.http11.Http11Protocol
init
INFO: Initializing Coyote HTTP/1.1 on
port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.30
May 7, 2004
Hi,
Actually, my requirement is to populate the actionerrors object in a
Actionclass and display it in the JSP using tag.
I'm pasting the code which i use below:
In struts-config.xml i've the following:
-
Hi Friends!
i'm using tiles where i want to get html:errors from properties file.
But i'm not getting.
i'm adding and saving errors in action class only.And errors are not specific to any
property but those are global using GLOBAL_MESSAGE.
i'm sure that messages are available in properties fi
Hi Friends!
i'm using tiles where i want to get html:errors from properties file.
But i'm not getting.
i'm adding and saving errors in action class only.And errors are not specific to any
property but those are global using GLOBAL_MESSAGE.
i'm sure that messages are available in properties fi
Yes, it's a textarea with richer editing features... but the real form
tag used is then the hidden field.
I already did the not formbean integrated tag designing it on my own,
without referring to the struts taglib.
I'll try subclassing the BaseInputTag and see what's goin to happen. :-)
JavaS
Niall ,
Thank you for your help,
I already did such a tag
I wanted to do a struts tag because I wanted to retrive the value from
the formbean, instead of having to pass as a different page attribute
or computing it on the page.
Now I do this:
<%
InfoPageForm ipf = (InfoPageForm) request.
It's Friday so I'll try and help with your regex woes.
Here's a link to a nice plugin which does live evaluation of regular
expressions. You might want to have a play around with this as it makes
debugging regexs much much easier.
http://www.sims.berkeley.edu/academics/courses/is255/f03/resource
Hi all,
Sorry, I know that it's completely off topic, but
The JMeter mailing list seems dead
Does anyone on this list have some experience with JMeter?
I am having problem with regular expressions in JMeter
1.9.1..
thanx in advance and regards
marco
--
hi all,
does struts have equivalent jstl tag of c:url like
http://acme.com/exec/register"; var="myUrl">
Register
but the tag attribute "value" replaced with "action" so that it looks
like
so its similar with struts html:link but with the ease of putting
parameter in the body of tag
I suspect your struts-config-smile.xml is having no message resource
definition. Just add the same message resource definiton whatever you
have in the default struts-config.xml. I hope it should work then.
This is how you define message resource bundle to be used in struts
configuration file.
+--
53 matches
Mail list logo