Hi,
With respect to the previous versions of struts, we had the controller
1. instantiating & populating ActionForm,
2. Validating the fields in the action form,
3. Calling the execute method of Action
4. Getting the action forward from the execute method.
With respect to Struts 1.3 are t
Hello,
That is an alternative for sure but isnt there a way to use wild card in the
struts config? Actually,the following link is helpful but is not working at
my end:
http://struts.apache.org/userGuide/building_controller.html#action_mapping_w
ildcards
The reason I want to use wildchar is bec
Use the same form "name" for both action mapping in the sturts config. Hope
that helps.
-Original Message-
From: Mili Aggarwal, Noida [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 22, 2005 9:50 AM
To: Struts Users Mailing List
Subject: Configuring action path
Hello All,
Hello All,
I my module I have various jsp with action as
edit.java
How should the corresponding mapping be done in Struts config?
When I use:
I think you are asking two different questions. My answer of using
wildcards -
http://struts.apache.org/userGuide/building_controller.html#action_mapping_wildcards
- allows you to embed information into the URL itself. Your
viewReport/* would allow that action mapping to match viewReport/temp
f
I am trying to iterate through an array of characters in a JSP, binding a
text field to each character.
The form bean (call it "form") has a method char[] getCharacters() and
corresponding setter.
The JSP looks like this:
Position
<%-- Display the
I am trying to iterate through an array of characters in a JSP, binding a
text field to each character.
The form bean (call it "form") has a method char[] getCharacters() and
corresponding setter.
The JSP looks like this:
Position
<%-- Display the va
Hello All,
I would like to ask the same question :
If in my JSP I have :
Can you tell me how to pass this parameters in form using a querystring in
Struts?
What will be corresponding mapping in struts confog.xml?
Presently,I have it:
mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 22, 2005
I serialized a passel of LabelValueBeans into a database only to find
out when I upgraded to Struts 1.2 from 1.1 that LabelValueBean was no
longer compatible.
a) I was being lazy when I stuck the LabelValueBeans in the database,
but it seemed a good idea at the time. I was saving off the the co
Hi Bernd
You want this, does exactly what you want.
http://tuckey.org/urlrewrite/
Mark
On Mon, 21 Mar 2005 21:23:51 +0100, Bernd Schiffer
<[EMAIL PROTECTED]> wrote:
> Hi.
>
> I have a Struts webapp which can be called by
> DOMAIN/action.do?param=value . Is there a way to call it by
> DOMAIN/a
Is this what you are looking for?
ActionForward cleanDisplay= new ActionForward("/myAction.do?");
cleanDisplay.setRedirect(true);
return cleanDisplay;
put that in your action and run it.
-Eric
-
To unsubscribe, e-
Use wildcards:
Then, use a prefix mapping in your web.xml rather than the .do suffix.
Don
On Mon, 21 Mar 2005 21:23:51 +0100, Bernd Schiffer
<[EMAIL PROTECTED]> wrote:
> Hi.
>
> I have a Struts webapp which can be called by
> DOMAIN/action.do?param=value . Is there a way to call it by
> DOMAI
Hi.
I have a Struts webapp which can be called by
DOMAIN/action.do?param=value . Is there a way to call it by
DOMAIN/action/value ? I know how to do with httpd's mod_rewrite, but I'm
looking for doing the same within my webapp.
Bernd
-
My biggest reservation with placing constants in a map is that it do compile
time checking. I suppose it is very important for sites with thousands of
JSP files to do precompiling on them. Compiling would fail if the constant
is missing. With placing constants in a map, the problem can only be foun
David Kennedy wrote the following on 3/18/2005 9:01 PM:
Totally agree. For example, I did some work with Struts Layout:Treeview
for my nav bar prototype. I very much appreciate volunteer effort, and
don't wish to knock anyone's efforts, but I have to say that for a
standard solution advocated by
Andrew Hill wrote the following on 3/20/2005 10:51 PM:
As for dispatch actions... hehe Im not making *that* mistake again.
urrrgh! Ill stick with a normal action and an 'if' statement in future
thanks :-)
How does using if logic in a regular Action make things better than
using a DispatchAction?
I've never needed a "property" attribute with the html:cancel control.
Perhaps that's the problem? Make sure you have a cancel() method in
your DispatchAction
K.C.
Bing Qiao wrote:
Hi,
I am using Struts Validator for a LookupDispatchAction.
I'm using both client and server sides validation.
Th
I *think* I understand what he's trying to do Hubert, but I could be wrong...
I think it's along the lines of "here's a page to edit an employee, and
every time I hit Continue I want to see that same page again but with no
values (think a loop to add a number of employees)".
Am I close Gaet?
If
You could request.removeAttribute("employeeForm")
before the forward and a new actionForm would be made on the next round.
Gaet wrote:
Hello the list!
I have an action-mapping with a forward action that recall the same action
mapping in order to display other informations.
My problem is that my for
My message didn't really include a "solution", since like I said, it's
not clear to me what you're trying to do. :)
Hubert
On Mon, 21 Mar 2005 18:23:36 +0100, Gaet <[EMAIL PROTECTED]> wrote:
> Yes, I want to start a new cycle..but your solution seems to not work
>
> regards,
>
> - Orig
I wrote a tag library to expose contants to a JSP page. Granted, it's
not as portable as HashMap in the app context, but it seems to work.
http://raibledesigns.com/wiki/Wiki.jsp?page=ConstantsTag
Matt
On Mar 21, 2005, at 8:27 AM, Marsh-Bourdon, Christopher wrote:
Agreed, but with my fluff most
Yes, I want to start a new cycle..but your solution seems to not work
regards,
- Original Message -
From: "Hubert Rabago" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, March 21, 2005 5:59 PM
Subject: Re: How to clear ActionForm before calling mapping.forward(...)
At 11:36 AM -0500 3/21/05, Joe Hertz wrote:
I did try it. Worked fine on my development box.
But when I deployed it at my hosting company I found that httpSession
information was getting blown away in the process of doing the redirect. The
redirect was fine, but on the next submission, the user's c
Or securityfilter.
Yep. It's beyond Struts.
> -Original Message-
> From: Hubert Rabago [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 21, 2005 11:53 AM
> To: Struts Users Mailing List
> Subject: Re: RequestProcessor question (redux)
>
> The issue seems to be retaining the user informati
Or securityfilter.
Yep. It's beyond Struts.
> -Original Message-
> From: Hubert Rabago [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 21, 2005 11:53 AM
> To: Struts Users Mailing List
> Subject: Re: RequestProcessor question (redux)
>
> The issue seems to be retaining the user informati
It's not exactly clear what you're trying to do. After your action
executes, you just call the same action again. With your forward path
set to /employeeDetail.do?reqCode=edit, the same request will go
through the same action, only this time there's an additional request
parameter.
Is it possible
Correction: It's happening on my dev box too.
> -Original Message-
> From: Joe Hertz [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 21, 2005 11:37 AM
> To: 'Struts Users Mailing List'
> Subject: RE: RequestProcessor question (redux)
>
> I did try it. Worked fine on my development box.
>
Correction: It's happening on my dev box too.
> -Original Message-
> From: Joe Hertz [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 21, 2005 11:37 AM
> To: 'Struts Users Mailing List'
> Subject: RE: RequestProcessor question (redux)
>
> I did try it. Worked fine on my development box.
>
The issue seems to be retaining the user information after a redirect.
This seems to be beyond Struts. Perhaps ask the Tomcat user list?
On Mon, 21 Mar 2005 11:36:42 -0500, Joe Hertz <[EMAIL PROTECTED]> wrote:
> I did try it. Worked fine on my development box.
>
> But when I deployed it at my
Hello the list!
I have an action-mapping with a forward action that recall the same action
mapping in order to display other informations.
My problem is that my form is submitted and not cleared in my
mapping.forward("editNextEmployee")!!!
How to clear my form before to call the mapping.forward?
I did try it. Worked fine on my development box.
But when I deployed it at my hosting company I found that httpSession
information was getting blown away in the process of doing the redirect. The
redirect was fine, but on the next submission, the user's credentials were
gone. Request.getRemoteUser
I did try it. Worked fine on my development box.
But when I deployed it at my hosting company I found that httpSession
information was getting blown away in the process of doing the redirect. The
redirect was fine, but on the next submission, the user's credentials were
gone. Request.getRemoteUser
Badly written again:
I should say, "is it EVER safe for me to do this directly". I want to
redirect the user under certain circumstances.
I think by merely asking it, I answered it myself, "No you idiot Joe".
> -Original Message-
> From: Joe Hertz [mailto:[EMAIL PROTECTED]
> Sent: Mond
Badly written again:
I should say, "is it EVER safe for me to do this directly". I want to
redirect the user under certain circumstances.
I think by merely asking it, I answered it myself, "No you idiot Joe".
> -Original Message-
> From: Joe Hertz [mailto:[EMAIL PROTECTED]
> Sent: Mond
Yes, I've settled on simply using the 'evil' <%=com.foo.BAR%> approach
in my JSPs as (a) the most concise and readable (b) the most useful. I
precompile all JSPs via Ant so the compiler can now 'see' typos.
Recipe 2.3 of Siggelkow's "Jakarta Struts Cookbook" (O'Reilly) discusses
the map and als
I'm going to try again, stripping this question down to its fundamentals.
If in a RequestProcessor processActionPerform() method, is it safe for me to
return a mapping.findForward() directly without calling
super.processActionPerform?
Or do I need to call super.processActionPerform with with diff
I'm going to try again, stripping this question down to its fundamentals.
If in a RequestProcessor processActionPerform() method, is it safe for me to
return a mapping.findForward() directly without calling
super.processActionPerform?
Or do I need to call super.processActionPerform with with diff
At 10:59 AM -0500 3/21/05, Joe Hertz wrote:
I'm going to try again, stripping this question down to its fundamentals.
If in a RequestProcessor processActionPerform() method, is it safe for me to
return a mapping.findForward() directly without calling
super.processActionPerform?
Or do I need to call
I think you should be able to do it. Have you tried it already? All
processActionPerform() does is call the Action's execute() method,
then pass exceptions to processException() if it gets any. If you
want to skip the action execution for a reason you deem valid, go
ahead.
Hubert
On Mon, 21 M
At 10:32 AM -0500 3/21/05, Erik Weber wrote:
My 2 cents:
1) I always try to serve my images from another server (Apache Web
Server) configured to serve all the static content, and only send
requests to my app server that actually require the app server. As a
side effect, paths are easier to mana
Hello list, currently the place I work at has a number of web application
which are all separate, all maintained by different teams and all have
sections of similar functionality that has been implemented individually
in each project. Bit of a nightmare really.
Anyway, it's being mooted that we
My 2 cents:
1) I always try to serve my images from another server (Apache Web
Server) configured to serve all the static content, and only send
requests to my app server that actually require the app server. As a
side effect, paths are easier to manage as they don't change when your
applicatio
Agreed, but with my fluff most ides (Eclipse, JBuilder etc) will parse and
throw an exception/error if the ... in <%= ... %> is undeclared or there is
a typo there. That at least gives David the answer (albeit a bit of hash)
David was after.
Cheers
Christopher Marsh-Bourdon
www.marsh-bourdon.com
Hello,
As I am building a new (frist time) struts app. I am looking for some insight
as to the best way to handle jsp page images.
To make a long story short, my folder structure is this:
/dealer
/dealer/images
/dealer/WEB-INF
/dealer/etc.
So all my were like this. But because of some IPlanet
On Today at 2:24pm, MC=>Marsh-Bourdon, Christopher This is my way of doing this, and it may be a tad crap. In the page
MC> tag at the top of the JSP I add one or more imports like so:
MC>
MC> <%@ page language="java" import="com.marsh-bourdon.Constants" %>
MC>
MC> I then just refer to the cons
jelything wrote the following on 3/18/2005 4:58 PM:
Thanks for the feedback.
Why wouldn't I want to nest forms?
Because how are you going to populate them and create them all? For
example, imagine the case where you needed to a master detail edit of
company employees (granted this might not be a
Return Receipt
Your Re: Proper way to do it
document:
Thanks :)
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, March 21, 2005 5:53 PM
To: Struts Users Mailing List
Subject: Re: Older Versions
Try http://archive.apache.org/dist/jakarta/struts/binaries/
Hubert
On Sun, 20 Mar 2005 10:51:20 +0400, tarek.nabi
This is my way of doing this, and it may be a tad crap. In the page tag at
the top of the JSP I add one or more imports like so:
<%@ page language="java" import="com.marsh-bourdon.Constants" %>
I then just refer to the constants within the page like so:
<%= Constants.KEY_FOR_SOMETHING %>
This
Most of our pages have a header/navbar which performs some highlighting
of the current page's category etc. This means all pages must define
beans to say things like, "My category is FOO, my sub-category is BAR"
I would like to get the compiler to spot typos:
(1) To make sure FOO matches one of
You can search the archives using the sites I mentioned in
http://marc.theaimsgroup.com/?l=struts-user&m=17198905936&w=2
For dynamic form elements, take a look at the LazyValidatorForm
http://svn.apache.org/viewcvs.cgi/struts/core/trunk/src/share/org/apache/struts/validator/LazyValidatorForm.j
Try http://archive.apache.org/dist/jakarta/struts/binaries/
Hubert
On Sun, 20 Mar 2005 10:51:20 +0400, tarek.nabil <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> How can I download older versions of Struts? I can only find the latest
> versions on the distribution servers. I want to download the
Hi,
I am using Struts Validator for a LookupDispatchAction.
I'm using both client and server sides validation.
The problem is I can only disable the client side validation by using
tag.
I doubt if the property is the problem but can't be sure. Besides it
is required by LookupDispatchAc
thanks
On Fri, 18 Mar 2005 09:06:38 -0500, Slattery, Tim - BLS
<[EMAIL PROTECTED]> wrote:
> > How do you determine if your on the last element of your
> > logic:iterate loop?
>
> JSTL makes this very easy. Something like:
>
>
>
> stuff to do in the last iteration
>
>
thanks
On Fri, 18 Mar 2005 03:04:24 -0500, Erik Weber <[EMAIL PROTECTED]> wrote:
> One way is to use a combination of logic:iterate's indexId attribute
> (serves as a loop counter) and the bean:size tag (can give the total
> size of a collection before you iterate). Then you could use a
> logic:e
55 matches
Mail list logo