Re: html:rewrite action problem

2004-03-24 Thread Mark Lowe
try page=/SomeAction.do On 24 Mar 2004, at 17:50, Ruben Pardo wrote: i've got the next tag html:rewrite action=/SomeAction?prefix=page=/SomePage and in the actionConfig action path=/SomeAction type=org.apache.type=org.apache.struts.actions.SwitchAction /action but i always get an error saying

Re: html:rewrite action problem

2004-03-24 Thread ruben
It works well, thanks. try page=/SomeAction.do On 24 Mar 2004, at 17:50, Ruben Pardo wrote: i've got the next tag html:rewrite action=/SomeAction?prefix=page=/SomePage and in the actionConfig action path=/SomeAction type=org.apache.type=org.apache.struts.actions.SwitchAction /action but i

Re: Again Action Chaining

2004-03-18 Thread Ted Husted
On Thu, 18 Mar 2004 15:24:25 +0300, AKostylev wrote: How can I avoid action chaining in such situation... In my application user can set resolution on some demand. For example, there two types of resolutions: bug and not a bug. If user selects not a bug option on form, then nothing happens...

Re: html:link /action does not contain handler parameter ...

2004-03-18 Thread Chris Huisman
Oh ya if you didn't realize it already, I am using LookupDispatchAction for my Action. Another question: could the request be getting lost on the way to the server b/c of the frames? I don't think this is the case since the request of the frame the link is in should get sent to the server

Re: An Action that only call a forward

2004-03-18 Thread mike barretta
if you look at the struts-example.war it has the same functionality with the /welcome forward. defined like this: forward name=welcome path=/welcome.do/ action path=/welcome type=org.apache.struts.actions.ForwardAction

RE: help ,action path

2004-03-10 Thread Mu Mike
for guiding programming with struts 1.1 thank you all From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: help ,action path Date: Wed, 10 Mar 2004 05:46:16 + of course, I m using an ide to edit the jsp page, it can hotly tell

Re: help ,action path

2004-03-09 Thread Daniel Henrique Alves Lima
Please, try html:form method=post action=/openReport or html:form method=post action=/myapp/openReport You can also do a view source and look the html generated by tag html:form - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: help ,action path

2004-03-09 Thread Mu Mike
modified the jsp file to the below still doesnt work html:form method=post action=/openReport or html:form method=post action=/myapp/openReport You can also do a view source and look the html generated by tag html:form and ,I think I need an explaination of this, and what should be the right

Re: help ,action path

2004-03-09 Thread Daniel Henrique Alves Lima
Sorry, my mistake. When you use view source of your browser, how does the html code look like ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: help ,action path

2004-03-09 Thread Khalid K.
Do you have the tag libraries defined on top of the page Example: %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % ??? Khalid modified the jsp file to the below still doesnt work html:form method=post action=/openReport or

RE: help ,action path

2004-03-09 Thread Mu Mike
] Subject: RE: help ,action path Date: Tue, 9 Mar 2004 21:41:30 -0800 Do you have the tag libraries defined on top of the page Example: %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % ??? Khalid modified the jsp file to the below

Re: help ,action path

2004-03-09 Thread Daniel Henrique Alves Lima
The exception is been generated when .jsp is rendered (and not when you submit the form), hum ? Try to enable struts debug log (in your log4j config file) and try to check the package/name of your action (in struts-config.xml)...

RE: Own Action-Subclass: How to configure using set-property-elements?

2004-03-08 Thread shirishchandra.sakhare
Hi, Those setters will be called on the ActionMapping you specify.So the same will me available in all actions as attributes on your custom ActionMapping class(Subclass of ActionMapping.) And you have to configure the struts to use your action mapping as follows. /global-forwards !--

RE: Should Action or ActionForm be accessing business delegates?

2004-03-02 Thread Smith, Darrin
I'd say no. Don't have the ActionForm (just a JavaBean with some validation in it...maybe) access the business layer. To me, the Action acts as the local Java class talked about in the Business Delegate Pattern that creates and caches a Stateful Session Bean. Use them (the actions) or add a

RE: html:link action - how to append query string

2004-02-27 Thread Tomeu Vizoso
I would recommend using the html-el tag library, in which case the code should look like that: html:link action='/scopeAction?row={$value}' See here for an explanation on how to utilize the EL (expression language): http://javaboutique.internet.com/tutorials/Struts_EL/ Regards, Tomeu

RE: html:link action - how to append query string

2004-02-27 Thread Paul, R. Chip
You have I think three choices, in preferred order: 1. Use the paramName, paramScope, and paramProperty attributes of html:link (see http://jakarta.apache.org/struts/userGuide/struts-html.html#link) This may not work with the page scoped variable defined the way you've done it, I

RE: html:link action - how to append query string

2004-02-27 Thread Leticia Golubov
- From: Paul, R. Chip [mailto:[EMAIL PROTECTED] Sent: 27 February 2004 15:59 To: 'Struts Users Mailing List' Subject: RE: html:link action - how to append query string You have I think three choices, in preferred order: 1. Use the paramName, paramScope, and paramProperty attributes of html:link

RE: html:link action - how to append query string

2004-02-27 Thread Leticia Golubov
=/scopeAction.do?row='%= value %' and so on... regards -Original Message- From: Paul, R. Chip [mailto:[EMAIL PROTECTED] Sent: 27 February 2004 15:59 To: 'Struts Users Mailing List' Subject: RE: html:link action - how to append query string You have I think three choices, in preferred order: 1

RE: html:link action - how to append query string

2004-02-27 Thread Hubert Rabago
Mailing List' Subject: RE: html:link action - how to append query string You have I think three choices, in preferred order: 1. Use the paramName, paramScope, and paramProperty attributes of html:link (see http://jakarta.apache.org/struts/userGuide/struts-html.html#link

RE: html:link action - how to append query string

2004-02-27 Thread Leticia Golubov
No!! But it worked! You're a star! I owe you a beer or a tea (if you're not a drinker) :) thanks :) -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: 27 February 2004 16:52 To: Struts Users Mailing List Subject: RE: html:link action - how to append query

RE: Tile, Action and Form

2004-02-23 Thread Esteban Forzani
? -Mensaje original- De: Adam Hardy [mailto:[EMAIL PROTECTED] Enviado el: domingo, 22 de febrero de 2004 8:05 Para: Struts Users Mailing List Asunto: Re: Tile, Action and Form On 02/21/2004 02:07 PM Esteban Forzani wrote: Hi, using Tiles and Struts I would like to know if is it possible have two

Re: Tile, Action and Form

2004-02-22 Thread Adam Hardy
On 02/21/2004 02:07 PM Esteban Forzani wrote: Hi, using Tiles and Struts I would like to know if is it possible have two tiles in the same page with two action and formbean. The tile1 asociatted with action1 and form1 and the tile2 asociatted with action2 and form2. How I can inicialize the

Re: No Action is executed

2004-02-17 Thread Dirk Markert
Sounds like your db connections are not properly closed. ML Hi to all, ML my struts-webApplication is used by almost 80 people. ML After 1-2 weeks my application doesn´t react anymore, ML if I do call an ActionClass which will connect to an oracle database. ML So I guess I do have a problem

Antwort: Re: No Action is executed

2004-02-17 Thread Manuel Lenz
]Kopie 17.02.2004 10:07 Thema Re: No Action is executed

Re: No Action is executed

2004-02-17 Thread shankarr
Hi Manuel, Do have a look at my data source configuration. Probably, it might help. Set the timeout value lower and try. data-sources data-source type=org.apache.commons.dbcp.BasicDataSource set-property property=driverClassName value=org.gjt.mm.mysql.Driver / set-property

Re: Re: No Action is executed

2004-02-17 Thread Manuel Lenz
Thema Re: No Action is executed

Re: Re: No Action is executed

2004-02-17 Thread shankarr
Thema Re: No Action is executed Bitte antworten an Struts Users Mailing List [EMAIL PROTECTED] org Hi Manuel, Do have a look at my data source configuration. Probably, it might help

RE: An Action doesn't work as expected

2004-02-03 Thread Ramachandran
In your Action mapping tag, u have to give the input=/xx.jsp to redirect the error to your application. then only it will work. -Original Message- From: f f [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 9:21 PM To: [EMAIL PROTECTED] Subject: An Action

RE: An Action doesn't work as expected

2004-02-03 Thread Matthew J. Vincent
You don't have the input attribute in your action mapping. ... action path=/submitCustomer type=proj.web.action.SubmitCustomerAction name=CustomerRegistrationForm input= scope=request unknown=false

Re: An Action doesn't work as expected

2004-02-03 Thread Srinivas Kusunam
Hi Fredrich, give the input page in action so that on form validation it forwards to this page. some thing like this:: action path=/OfferWaterBank type=.OfferWaterBankAction name=OfferWaterBankForm scope=request validate=true input=OfferWaterBank.jsp --

RE: An Action doesn't work as expected

2004-02-03 Thread Ramachandran
redirect=false //action -Original Message- From: Matthew J. Vincent [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 9:25 PM To: Struts Users Mailing List Subject: RE: An Action doesn't work as expected You don't have the input attribute in your action mapping. ... action

Re: No action instance for path /...

2004-02-03 Thread Max Cooper
Is a compiled com.topit.action.WellcomeAction class file in the classpath for your web app (WEB-INF/classes or WEB-INF/lib)? It seems to be saying that it couldn't create an instance of your Action class for that path. -Max - Original Message - From: Daniel [EMAIL PROTECTED] To: [EMAIL

Re: An Action doesn't work as expected-Thank You

2004-02-03 Thread f f
Hi, it worrrk. Thanks, Fredrich __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL

Re: AW: action executed and input ignored (?)

2004-02-01 Thread struts
Hi Oliver, On Sunday 01 February 2004 14:37, Oliver Thiel wrote: If you want to load search.jsp just call it from another jsp with [...] In your search.jsp you probably should have something like that: html:form action=search.do Yes, I can directly link to search.jsp but it did previously

RE: multiple action forms in a single jsp

2004-01-29 Thread Ben Anderson
I think you need to take a step back and understand how http works. Per each request, only one html form can be submitted(whether it's a get or a post). This is not specific to Struts, Java or any web server solutions. Your design is flawed, but it doesn't pertain to Struts. You can have

RE: multiple action forms in a single jsp

2004-01-29 Thread Mathew, Manoj
Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 9:51 AM To: [EMAIL PROTECTED] Subject: RE: multiple action forms in a single jsp I think you need to take a step back and understand how http works. Per each request, only one html form can be submitted(whether it's a get

RE: multiple action forms in a single jsp

2004-01-29 Thread Hookom, Jacob
, 2004 10:02 AM To: Struts Users Mailing List Subject: RE: multiple action forms in a single jsp Actually i had a single action form till yesterday. But since the form is getting bigger and bigger (it is very huge now and i am just half way done), I was thinking of other possibilities. My application

RE: multiple action forms in a single jsp

2004-01-29 Thread Mathew, Manoj
Mailing List Subject: RE: multiple action forms in a single jsp What you are describing almost sounds like a good use of JSF-- If you have 5 forms on a page, separate, do you want to save the state of the other 4 forms if submit is sent for one of them? -Original Message- From: Mathew

RE: multiple action forms in a single jsp

2004-01-29 Thread Hookom, Jacob
child forms yourself/manage the lifecycles for reset() and validates. -Jake -Original Message- From: Mathew, Manoj [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 12:12 PM To: Struts Users Mailing List Subject: RE: multiple action forms in a single jsp Actually my real issue

Re: Switch Action

2004-01-23 Thread James Mitchell
http://sourceforge.net/project/showfiles.php?group_id=49385package_id=74324 release_id=147944 -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Ramadoss

Re: Hi Action Forward problem

2004-01-14 Thread Anant_Kumar
try new ActionForward(https://localhost:1443+getContextPath() +xyz.jsp,true); Regds Anant Kumar TCS N.N.S.S Ravi

Re: Hi Action Forward problem

2004-01-14 Thread Mark Lowe
If your trying to force the https scheme then i'd do this with your webserver, otherwise your app wont be very portable. If you do really need to do this then i'd keep the strings in a properties file, but i cant see why you'd have to. I would be mightily vexed if i had to configure tomcat or

RE: One action per request, or chaining two?

2004-01-08 Thread shirishchandra.sakhare
all over the place.. HTH. regards, Shirish -Original Message- From: Manfred Wolff [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 7:44 AM To: Struts Users Mailing List Subject: Re: One action per request, or chaining two? John. There are no rules. In the programming guide

Re: One action per request, or chaining two?

2004-01-07 Thread Manfred Wolff
John. There are no rules. In the programming guide of my project it is described, that you have to make two actions. The both actions has two diffrent suffixes (pre and post), so that you can differ it. Than the responsibility of the action is clearly than in the other way. Manfred John

RE: from Action to Facade: simple attributes or Business Objects

2003-12-07 Thread Tim Lucia
The philosphy is that the Actions (controller) move bean properties from form bean(s) into business beans, and pass the business bean into a business object to perform an operation. I.e., the action should contain all of (and only) the web-specific portion of the application. I.e., the latter

Re: Prelogon Action to init a List

2003-11-24 Thread Caoilte O'Connor
Hi, your best be would be to make a /GoTo/LoginPage action (using whatever nomenclature you have) that makes this list for you. This is a good design principle anyway because you should avoid exposing jsp pages directly to the end user. For example, I have an index.jsp page at the root of

RE: Prelogon Action to init a List

2003-11-24 Thread Hunziker Dennis
To: [EMAIL PROTECTED] Subject: Re: Prelogon Action to init a List Hi, your best be would be to make a /GoTo/LoginPage action (using whatever nomenclature you have) that makes this list for you. This is a good design principle anyway because you should avoid exposing jsp pages directly to the end

RE: One Action and Action form for multiple JSP's

2003-11-20 Thread Agashivala, Vishal
Hey Sanjay Kindly trace all my mails here on.. I am implementing the same Regards, Vishal Agashivala Atos Origin India O: +91-22-5691 3870 -Original Message- From: sanjay paithankar [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 5:51 PM To: [EMAIL PROTECTED] Subject: One

RE: One Action and Action form for multiple JSP's

2003-11-20 Thread Daniel Joshua
Why would you want to use Struts if you only use one Action? That reminds me of using 1 Servlet for many JSPs, and life before Struts... Many you could explain your purpose. Regards, Daniel -Original Message- From: sanjay paithankar [mailto:[EMAIL PROTECTED] Sent: Thursday, 20

Re: declaring action mappings at runtime

2003-10-31 Thread Ahmet ISIK
Kirk, thanks for the advice, yes, you're right I think. I'm going to change it that way in the first refactoring time available. Kirk Wylie wrote: I know this is a little OT, but had you thought about doing it with xdoclet? Particularly if the Hibernate configurations are coming out of xdoclet

Re: declaring action mappings at runtime

2003-10-30 Thread Ahmet ISIK
I'm doing it in a plugin. My purpose is to develop generic CRUD operations, views and forms for any model object that is persisted using Hibernate. For this, I introspect Hibernate config and provide form fields according to underlying object's properties. I'm declaring actionmappings at

Re: declaring action mappings at runtime

2003-10-30 Thread Craig R. McClanahan
Ahmet ISIK wrote: I'm doing it in a plugin. My purpose is to develop generic CRUD operations, views and forms for any model object that is persisted using Hibernate. For this, I introspect Hibernate config and provide form fields according to underlying object's properties. I'm declaring

Re: declaring action mappings at runtime

2003-10-30 Thread Kirk Wylie
I know this is a little OT, but had you thought about doing it with xdoclet? Particularly if the Hibernate configurations are coming out of xdoclet in the first place (and everything's set at compile time), you could probably extend the Hibernate templates pretty easily to generate the action

Re: declaring action mappings at runtime

2003-10-29 Thread Martin Cooper
Ahmet ISIK [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Is it possible to declare struts action mappings at runtime, and how? No, it's not possible. The config is read in at application startup and is then frozen. (The reason it's done this way is so that access to the config

Re: declaring action mappings at runtime

2003-10-29 Thread Ahmet ISIK
thanks Martin, I have found a solution. I have acquired module config by Globals.MODULE_KEY key from app context. Then I added programmatically configured ActionMappings to module config object. after that it is possible to use those action mappings. Is this a bad practice? Martin Cooper

RE: declaring action mappings at runtime

2003-10-29 Thread Zhang, Larry (L.)
If you want to find out which will be next page to go, you can create an ActionForward object and customize the parameter. -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: Re: declaring action

Re: declaring action mappings at runtime

2003-10-29 Thread Martin Cooper
Ahmet ISIK [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] thanks Martin, I have found a solution. I have acquired module config by Globals.MODULE_KEY key from app context. Then I added programmatically configured ActionMappings to module config object. after that it is possible to

Re-used Action class

2003-10-22 Thread Chadha, Deepak \(BLM\)
Hi, I have a (hopefully) simple question. I have a ActionForm / Action pair invoked from several JSP pages (actually the JSP fragment is included into several JSP pages). I am trying to use the ActionForm.validate method in combination with the html:errors/ tag. The problem is that when there

RE: Re-used Action class

2003-10-22 Thread Saul Q Yuan
the validation() method of your form bean, and forward to the input corresponding to the page you're validating on. Saul -Original Message- From: Chadha, Deepak (BLM) [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 10:14 AM To: [EMAIL PROTECTED] Subject: Re-used Action class

RE: Re-used Action class

2003-10-22 Thread Wiebe de Jong
- From: Chadha, Deepak (BLM) [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 7:14 AM To: [EMAIL PROTECTED] Subject: Re-used Action class Hi, I have a (hopefully) simple question. I have a ActionForm / Action pair invoked from several JSP pages (actually the JSP fragment is included

Re: Re-used Action class

2003-10-22 Thread Geeta Ramani
Deepak: If i understand your problem correctly, the following should work (for case of two jsps - you can expand to more of course..): In your struts-config.xml simply have say two different action mappings, call them say action1 and action2. Make them both point to the same Action class but

RE: [Poll] Action Form data types

2003-10-14 Thread Daniel Haynes
#1 -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: 13 October 2003 20:37 To: [EMAIL PROTECTED] Cc: Green, Matt Subject: [Poll] Action Form data types Here's my weekly(ish) question: For the purposes of this discussion, ActionForms also mean DynaActionForms and the

RE: [Poll] Action Form data types

2003-10-14 Thread Edgar P Dollin
None of the above. I use java data types but use getters and setters in the ActionForm to perform the casting and any other manipulations necessary. Edgar Mainguy, Mike wrote: Here's my weekly(ish) question: For the purposes of this discussion, ActionForms also mean DynaActionForms

RE: [Poll] Action Form data types

2003-10-14 Thread Trieu, Danny
PROTECTED] Sent: Tuesday, October 14, 2003 1:37 AM To: Struts Users Mailing List Subject: RE: [Poll] Action Form data types #1 -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: 13 October 2003 20:37 To: [EMAIL PROTECTED] Cc: Green, Matt Subject: [Poll] Action Form data

RE: [Poll] Action Form data types

2003-10-13 Thread Wendy Smoak
Mike wrote: Where does everyone cast their (String) request parameters to the 'proper' datatype? #2a My ActionForms only have Strings [and Booleans], I let (BeanUtils, JDBC,...) cast stuff for me somewhere else. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA,

Re: [Poll] Action Form data types

2003-10-13 Thread Koni Roth
#3 Mainguy, Mike wrote: Here's my weekly(ish) question: For the purposes of this discussion, ActionForms also mean DynaActionForms and the like... Where does everyone cast their (String) request parameters to the 'proper' datatype? #1 My ActionForms only have Strings, I manually cast stuff

Re: [Poll] Action Form data types

2003-10-13 Thread Adam Hardy
#2 On 10/13/2003 09:37 PM Mainguy, Mike wrote: Here's my weekly(ish) question: For the purposes of this discussion, ActionForms also mean DynaActionForms and the like... Where does everyone cast their (String) request parameters to the 'proper' datatype? #1 My ActionForms only have Strings, I

RE: [Poll] Action Form data types

2003-10-13 Thread Jerry Jalenak
#2 Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 2:37 PM To: [EMAIL PROTECTED] Cc: Green, Matt Subject:

Re: [Poll] Action Form data types

2003-10-13 Thread Sgarlata Matt
#2, and sometimes #1 - Original Message - From: Mainguy, Mike [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Green, Matt [EMAIL PROTECTED] Sent: Monday, October 13, 2003 3:37 PM Subject: [Poll] Action Form data types Here's my weekly(ish) question: For the purposes of this discussion,

Re: No action instance for path /logoff could be created

2003-10-08 Thread Ted Husted
HTTP Status 500 usually means the Action class name was misspelled or is otherwise not on the class path. The Action couldn't be created because the Controller couldn't find it. If you don't see the error messages, check the source to be sure the formatting is correct. Sometimes things don't

Re: Servlet action is currently unavailable

2003-10-01 Thread Max Cooper
List' [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 9:33 PM Subject: RE: Servlet action is currently unavailable Hai Koni, Thanks for ur reply.I am not using any database stuff.Still i am getting the same message.I am trying to sort out.I'll let u know if i find any solution. Regards Partha

Re: Servlet action is currently unavailable

2003-09-30 Thread Sgarlata Matt
Try checking in the Tomcat log. You can usually find the source of the error there. The Tomcat log is in tomcat_home\logs. If your Tomcat is set up like mine, the correct log file will be localhost_log.2003-09-30.txt Matt - Original Message - From: Parthasarathy Kesavaraj [EMAIL

Re: Servlet action is currently unavailable

2003-09-30 Thread Koni Roth
Hi Partha Rarely I run into the same error. Until now I couldn't exactly localize the reason. My guess is the the database connection. I use Struts 1.1 data-sources with MS SQL-Server and it seems the database connection suddenly dies... After restarting Tomcat everything works fine again.

Re: [Poll] action mappings

2003-09-30 Thread Ted Husted
I use ActionMappings to represent a use-case or client story, rather than an atomic operation. The form-bean and validator collect the data the story needs, and an Action passes those to the business layer, and return the outcome. The business layer class is specified as a parameter so that I

RE: Servlet action is currently unavailable

2003-09-30 Thread Parthasarathy Kesavaraj
: Tuesday, September 30, 2003 8:45 PM To: Struts Users Mailing List Subject: Re: Servlet action is currently unavailable Hi Partha Rarely I run into the same error. Until now I couldn't exactly localize the reason. My guess is the the database connection. I use Struts 1.1 data

Re: Accessing action error problem

2003-09-27 Thread Sgarlata Matt
You can use the attached JSPs to display all the attributes in the request. Just look for the attribute that stores the errors. In general when I was starting with Struts I found the attached JSPs very helpful because you can see the types of information Struts stores for you and where it is

Re: Accessing action error problem

2003-09-27 Thread Manish Singla
a) Get ServletContext of Globals.ERROR_KEY. b) Typecast to ActionErrors c) Use errors.get(property) d) (c) wil return Iterator .. Sgarlata Matt wrote: You can use the attached JSPs to display all the attributes in the request. Just look for the attribute that stores the errors. In

Re: Forward Action with redirect?

2003-09-26 Thread Max Cooper
Joshua, I am not sure I understand quite what you want to do, but you can use the redirect attribute of a forward element in struts-config.xml to do a redirect: forward path=/foo.jsp redirect=true / -Max - Original Message - From: White, Joshua A (HTSC, CASD) [EMAIL PROTECTED] To:

Re: Forward Action with redirect?

2003-09-26 Thread Manish Singla
You can specify a forward action and validate the previous form at same time. It is just that instaed of calling your own action you called struts ready made action... White, Joshua A (HTSC, CASD) wrote: Currently, the Forward action forwards control to a resource on the server side. How can

Re: [Poll] action mappings

2003-09-25 Thread Timo Neumann
Mainguy, Mike wrote: I started with #1 but then switched to #2. As this is my first big struts project I might be wrong but I had the impression that #2 would be preferrable because with #1 I would have to repeat the action mapping as a string in my action classes. I saw that most of the

RE: [Poll] action mappings

2003-09-25 Thread shirishchandra.sakhare
somewhere else in the application, I can just use ReadUserAction.java again with a different mapping if required. Regards, Shirish -Original Message- From: Timo Neumann [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:37 AM To: Struts Users Mailing List Subject: Re: [Poll

RE: [Poll] action mappings

2003-09-25 Thread Susan Bradeen
- From: Timo Neumann [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:37 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings Mainguy, Mike wrote: I started with #1 but then switched to #2. As this is my first big struts project I might be wrong but I had

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
So far the results are as follows: #1 5 #2 1 #3 2 #4 0 I added myself to both 1 and 3 as I've done a project both ways... Now I wonder, how does everyone determine which operation you are doing? As a parameter in the action mapping? A big case-style (if else) statement? -Original

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
for the same Action? Matt - Original Message - From: Mainguy, Mike [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:47 AM Subject: RE: [Poll] action mappings So far the results are as follows: #1 5 #2 1 #3 2 #4 0 I added myself

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
Users Mailing List Subject: Re: [Poll] action mappings I think for #3 it would be silly not to use a DispatchAction or LookupDispatchAction, right? It seems like you would also want DispatchAction or LookupDispatchAction for #1, but I really don't understand why people are using #1 at all

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
on the servlet API. Thoughts? Matt - Original Message - From: Mainguy, Mike [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:59 AM Subject: RE: [Poll] action mappings You don't have to create a different ActionClass for every

RE: [Poll] action mappings

2003-09-25 Thread shirishchandra.sakhare
Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 3:47 PM To: 'Struts Users Mailing List' Subject: RE: [Poll] action mappings So far the results are as follows: #1 5 #2 1 #3 2 #4 0 I added myself to both 1 and 3 as I've done a project both ways... Now

RE: [Poll] action mappings

2003-09-25 Thread Richard J. Duncan
Users Mailing List Subject: RE: [Poll] action mappings +1. We found that #2 worked best for our current application. On 09/25/2003 03:42:52 AM shirishchandra.sakhare wrote: My choce would be #2. We are doing a quite a big struts project here and i have seen both the approaches being used

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:14 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings OK, I think I understand #1 now. However, I still disagree with it ;) If you are using the same form bean and display components, you can

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
How is #3 different from #5? Matt - Original Message - From: Richard J. Duncan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:29 AM Subject: RE: [Poll] action mappings What about: #5: A DispatchAction (struts 1.1) with a single action map entry

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
.. -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 3:47 PM To: 'Struts Users Mailing List' Subject: RE: [Poll] action mappings So far the results are as follows: #1 5 #2 1 #3 2 #4 0 I added myself to both 1 and 3 as I've done a project

RE: [Poll] action mappings

2003-09-25 Thread Michael Ruppin
: Thursday, September 25, 2003 10:25 AM To: [EMAIL PROTECTED] Subject: RE: [Poll] action mappings Thats what prompted me to vote for 2... Why to have unnecessary have this case statement in every action? HAve the actions as simple handlers.Performing just simple atomic operations

RE: [Poll] action mappings

2003-09-25 Thread shirishchandra.sakhare
, Mike [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 4:35 PM To: 'Struts Users Mailing List' Subject: RE: [Poll] action mappings #2 and #3 are, to me, flip sides of the same coin. Our team is really divided over which is better. Currently, we're using #3 and I personally think

Re: [Poll] action mappings

2003-09-25 Thread Adam Hardy
Normally a parameter in the action mapping, but other things affect it too, such as the cancel button. And then a big case-style if else in my action superclass. On 09/25/2003 03:47 PM Mainguy, Mike wrote: So far the results are as follows: #1 5 #2 1 #3 2 #4 0 I added myself to both 1 and 3 as

Re: [Poll] action mappings

2003-09-25 Thread Adam Hardy
layer from any web stuff and use request parameters to determine which business operation I was performing. -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:54 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings I think

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:44 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings I just find it naturally easier to grasp what is going on with one Action and one form bean for each object in my model (and normally one factory

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
, and will be adding this to my API in the next few minutes. Matt - Original Message - From: Mainguy, Mike [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:28 AM Subject: RE: [Poll] action mappings That is exactly the method signature I use

RE: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
Whoops!, I goofed up my response, let me clarify. From: Sgarlata Matt [mailto:[EMAIL PROTECTED] I just find it naturally easier to grasp what is going on with one Action and one form bean for each object in my model (and normally one factory or 'business delegate') plus a host of mappings.

RE: [Poll] action mappings

2003-09-25 Thread Richard J. Duncan
:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:31 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings How is #3 different from #5? Matt - Original Message - From: Richard J. Duncan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:29

Re: [Poll] action mappings

2003-09-25 Thread Adam Hardy
than I am. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:44 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings I just find it naturally easier to grasp what is going on with one Action and one form bean for each

  1   2   3   4   5   >