Struts 1.3 chaining flow diagram

2005-03-21 Thread Rajaneesh
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

RE: Configuring action path

2005-03-21 Thread Mili Aggarwal, Noida
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

RE: Configuring action path

2005-03-21 Thread Rajaneesh
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,

Configuring action path

2005-03-21 Thread Mili Aggarwal, Noida
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:

Re: Rewrite with Struts?

2005-03-21 Thread Don Brown
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

Iterate a character array

2005-03-21 Thread Victor Grazi
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

RE: Rewrite with Struts?

2005-03-21 Thread Victor Grazi
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

RE: Rewrite with Struts?

2005-03-21 Thread Mili Aggarwal, Noida
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

LabelValueBean incompatible 1.1 to 1.2

2005-03-21 Thread Stephen P. Cerruti
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

Re: Rewrite with Struts?

2005-03-21 Thread Mark Lowe
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

Re: How to clear ActionForm before calling mapping.forward(...)???

2005-03-21 Thread Eric Lemle
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-

Re: Rewrite with Struts?

2005-03-21 Thread Don Brown
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

Rewrite with Struts?

2005-03-21 Thread Bernd Schiffer
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 -

RE: Using constants in JSP pages

2005-03-21 Thread Benedict, Paul C
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

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-21 Thread Rick Reumann
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

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-21 Thread Rick Reumann
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?

Re: Cancel button doesn't cancel server side validation

2005-03-21 Thread K.C. Baltz
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

Re: How to clear ActionForm before calling mapping.forward(...)???

2005-03-21 Thread Frank W. Zammetti
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

Re: How to clear ActionForm before calling mapping.forward(...)???

2005-03-21 Thread Mark Shifman
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

Re: How to clear ActionForm before calling mapping.forward(...)???

2005-03-21 Thread Hubert Rabago
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

Re: Using constants in JSP pages

2005-03-21 Thread Matt Raible
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

Re: How to clear ActionForm before calling mapping.forward(...)???

2005-03-21 Thread Gaet
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(...)

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Germuska
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

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
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

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
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

Re: How to clear ActionForm before calling mapping.forward(...)???

2005-03-21 Thread Hubert Rabago
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

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
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. >

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
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. >

Re: RequestProcessor question (redux)

2005-03-21 Thread Hubert Rabago
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

How to clear ActionForm before calling mapping.forward(...)???

2005-03-21 Thread Gaet
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?

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
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

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
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

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
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

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
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

Re: Using constants in JSP pages

2005-03-21 Thread David Kennedy
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

RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
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

RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
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

Re: RequestProcessor question (redux)

2005-03-21 Thread Joe Germuska
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

Re: RequestProcessor question (redux)

2005-03-21 Thread Hubert Rabago
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

Re: best practice image handling

2005-03-21 Thread Joe Germuska
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

Which stream to use for a new suite of applications

2005-03-21 Thread Bob Arnott
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

Re: best practice image handling

2005-03-21 Thread Erik Weber
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

RE: Using constants in JSP pages

2005-03-21 Thread Marsh-Bourdon, Christopher
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

best practice image handling

2005-03-21 Thread Scott Purcell
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

RE: Using constants in JSP pages

2005-03-21 Thread Haroon Rafique
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

Re: Validating Nested DynaValidator Forms

2005-03-21 Thread Rick Reumann
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

Re: Proper way to do it

2005-03-21 Thread DGraham
Return Receipt Your Re: Proper way to do it document:

RE: Older Versions

2005-03-21 Thread tarek.nabil
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

RE: Using constants in JSP pages

2005-03-21 Thread Marsh-Bourdon, Christopher
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

Using constants in JSP pages

2005-03-21 Thread David Kennedy
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

Re: Generating dynamic DynaValidatorActionForm elements and form pages?

2005-03-21 Thread Hubert Rabago
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

Re: Older Versions

2005-03-21 Thread Hubert Rabago
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

Cancel button doesn't cancel server side validation

2005-03-21 Thread Bing Qiao
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

Re: last element of logic iterate

2005-03-21 Thread Richard Reyes
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 > >

Re: last element of logic iterate

2005-03-21 Thread Richard Reyes
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