Re: struts problem

2007-01-26 Thread AQureshi
"Sócrates Medina" <[EMAIL PROTECTED]> wrote on 01/26/2007 08:34:08 AM: > Hello guys, > > I'm having a problem with struts. I have an actioon which receive some > parameters, but when i submit the struts form, i loose the parameters that i > used in the same formi just want to get help if th

Re: Need help with simple struts question

2007-01-26 Thread AQureshi
Jim John <[EMAIL PROTECTED]> wrote on 01/26/2007 01:50:45 PM: > I'm very new to struts and have a simple question > > I have a page called mailGroups.jsp which uses some > beans. I forward to mailGroupsEdit.jsp so that I can > use the data from the beans in mailGroups.jsp for > editing. So how do

Re: check if a file is OPEN status before uploading

2007-01-26 Thread AQureshi
Dave Newton <[EMAIL PROTECTED]> wrote on 01/26/2007 03:03:19 PM: > --- Vinod Kumar <[EMAIL PROTECTED]> wrote: > > [...] before uploading, I want to make sure that > file > > is not in open state. > > I know of no way you can do this, although there may > be some Javascript treachery. Your code i

Re: Creating an instance of an action a class

2007-01-26 Thread Joe Germuska
On 1/26/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, Frank W. Zammetti wrote: > There is no special status for an Action beyond that though, no > values set on it by Struts, that sort of thing. Just instantiate and > execute as you wo

Re: check if a file is OPEN status before uploading

2007-01-26 Thread Dave Newton
--- Vinod Kumar <[EMAIL PROTECTED]> wrote: > [...] before uploading, I want to make sure that file > is not in open state. I know of no way you can do this, although there may be some Javascript treachery. Your code is not being executed on the client; it does not have access to file system stati

Re: Struts2 Spring Info

2007-01-26 Thread Jim Reynolds
Thanks Don, On 1/26/07, Don Brown <[EMAIL PROTECTED]> wrote: A plugin: http://cwiki.apache.org/S2PLUGINS/spring-plugin.html There are also Spring Web Flow and Spring MVC plugins listed in the plugin registry: http://cwiki.apache.org/S2PLUGINS/home.html Don On 1/26/07, Jim Reynolds <[EMAIL P

Re: [s2] Actions in different Namespaces

2007-01-26 Thread Elie Ciment
Wes, On 1/26/07, Wesley Wannemacher <[EMAIL PROTECTED]> wrote: If you are looking for general configuration tips on mapping results check this - http://struts.apache.org/2.x/docs/result-types.html This is exactly what I was looking for: I found this particular snippet here - http://struts

Re: Creating an instance of an action a class

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, Frank W. Zammetti wrote: > There is no special status for an Action beyond that though, no > values set on it by Struts, that sort of thing. Just instantiate and > execute as you would any other class. Good to know. - -chris -BEGIN PGP S

Need help with simple struts question

2007-01-26 Thread Jim John
I'm very new to struts and have a simple question I have a page called mailGroups.jsp which uses some beans. I forward to mailGroupsEdit.jsp so that I can use the data from the beans in mailGroups.jsp for editing. So how do I get this information from mailGroups to mailGroupsEdit? What do I need t

RE: [s2] Actions in different Namespaces

2007-01-26 Thread Wesley Wannemacher
If you are looking for general configuration tips on mapping results check this - http://struts.apache.org/2.x/docs/result-types.html I found this particular snippet here - http://struts.apache.org/2.x/docs/redirect-action-result.html -Wes > -Original Message- > From: Elie Ciment [m

Re: Struts2 Spring Info

2007-01-26 Thread Don Brown
A plugin: http://cwiki.apache.org/S2PLUGINS/spring-plugin.html There are also Spring Web Flow and Spring MVC plugins listed in the plugin registry: http://cwiki.apache.org/S2PLUGINS/home.html Don On 1/26/07, Jim Reynolds <[EMAIL PROTECTED]> wrote: Does the S2 that is now beta have Spring IOC

Struts2 Spring Info

2007-01-26 Thread Jim Reynolds
Does the S2 that is now beta have Spring IOC built in? Or is this a plug in. I have been grepping through the docs, I see mention of spring mocks, but not of anything with the IOC layer. I wasn't sure if it is built-in per sey, or if it is a plug in, or just add as a listener. If so, are there do

Re: [s2] Actions in different Namespaces

2007-01-26 Thread Elie Ciment
Great, thanks Wes. Where is this type of thing documented? What other parameters can be passed to the result element? I'm using the following: /WEB-INF/jsp/Login.jsp /WEB-INF/jsp/LoginFailed.jsp

Re: [S2] What is the preferred way of exception handling (error 500 and similar)?

2007-01-26 Thread Don Brown
Perhaps this will help: http://struts.apache.org/2.x/docs/exception-configuration.html But for general 500 errors, normal servlet methods should work... Don On 1/26/07, Dariusz Wojtas <[EMAIL PROTECTED]> wrote: Hi, What is the suggested way of exception handling in Struts2? I am talking about

Re: [s2] Debugging and profiling

2007-01-26 Thread Don Brown
Oh, and profiling works similarly - ?profiling=yes - and the problem reports show up when exceptions are thrown. Don On 1/26/07, Don Brown <[EMAIL PROTECTED]> wrote: Not sure if we have official docs on it yet, but for now, if "devMode" is enabled, append "?debug=console" to any url. It will o

Re: [s2] Debugging and profiling

2007-01-26 Thread Don Brown
Not sure if we have official docs on it yet, but for now, if "devMode" is enabled, append "?debug=console" to any url. It will open up a ognl console that you can query the data behind the page. Don On 1/26/07, Asthana, Rahul <[EMAIL PROTECTED]> wrote: Hi All, I found this line "Built-in debug

RE: [s2] Actions in different Namespaces

2007-01-26 Thread Wesley Wannemacher
I'm using the following: /WEB-INF/jsp/Login.jsp /WEB-INF/jsp/LoginFailed.jsp index /customer This wo

Re: Creating an instance of an action a class

2007-01-26 Thread Frank W. Zammetti
An Action is no different from any other class, you can do this without any ill effects. Whether it's architecturally a good idea is a whole other question, but from a technical standpoint, no problem. I've done this numerous times in the past, it works just fine. Remember though that the method

S2 - Error when I use include in struts.xml

2007-01-26 Thread Alexandre Mendonça Lima
Hello, When I use tag include in my struts.xml, I get a error on startup of my application. My struts.xml file is: My struts-controleAcesso.xml is: class="embasa.jsime.view.action.controleAcesso.UsuarioAction" method="{1}"> name="success">/pages/ControleAcessoUsuarioLista

[S2] What is the preferred way of exception handling (error 500 and similar)?

2007-01-26 Thread Dariusz Wojtas
Hi, What is the suggested way of exception handling in Struts2? I am talking about cases when there is a * JSP page compilation error * exception inside an action is * someone types url /i.action instead of /index.action ... I tried to turn 'struts.devMode' to true and false. I tried to dec

Re: strange behaviour or working as intended with ActionForm and namespaces?

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dirk, Dirk Hesse wrote: > On the detailview he is clicking the Cancel button and will be > redirected back to the listItemsAction with the listForm. When you press CANCEL, which action receives the request? I would imaging something like SaveDetailAc

[s2] Actions in different Namespaces

2007-01-26 Thread Elie Ciment
Is it possible to redirect an action in one namespace to another? I wasn't able to do so... For example, to take an action "Example_create" in the "example" namespace, and if for some reason the user was logged out in the meantime, is there a way to forward them to the "security" namespace to the

Re: Creating an instance of an action a class

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chamal, chamal desilva wrote: > Is it safe to create an instance of a action class in > another action class and use. > >public ActionForward execute () >{ > OtherAction oact = new OtherAction(); > oact.execute(); >

check if a file is OPEN status before uploading

2007-01-26 Thread Vinod Kumar
Hi, I am uploading a file using struts (using FormFile) but before uploading, I want to make sure that file is not in open state. If so, I want to display message to the user to close the file and then try to upload. I am able to upload the file. Just wondering , how can i check if the file is ope

Re: R: Error : request.getReader()

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcello, Marcello Savino wrote: > You got it ! > More: i need to access the request body after the form was submited. The > only way i know is in the action subclass, but Struts process the > parameter before invoking the appropriate method in action

[s2] Debugging and profiling

2007-01-26 Thread Asthana, Rahul
Hi All, I found this line "Built-in debugging tools supporting profiling, problem reports, and interactive object model queries. " here http://struts.apache.org/2.x/docs/how-does-struts-2-make-web-applications-easier-to-develop-deploy-and-maintain.html Where can I find something more to read abou

Re: [s1] Cancel request parameters and attributes [anyone?]

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Poking at this thread to see if I can get any bites. - -chris Christopher Schultz wrote: > All, > > I have two actions in my code that I want to be able to cancel out-of, > but neither of them is exciting enough to warrant a form bean and a tri

Re: Struts 2.0 vs Struts 1.3.5 vs Struts 1.2

2007-01-26 Thread Frank W. Zammetti
You say the project will be heavily AJAX-based, so you may want to look at the AJAX support S2 provides. If it suits your needs, you may well want to take the plunge because not only is S2 generally easier to develop for, you can also avoid most of the client-side code, so any learning curve setba

NPE in TagUtils.getStack

2007-01-26 Thread Scott Nesbitt
I am getting the same NPE in TagUtils.getStack that was mentioned before at: http://www.mail-archive.com/dev@struts.apache.org/msg26104.html However, the resolution mentioned there (update web.xml, get other necessary files) does not seem to work for me. I have no doubt that there is a simple c

put types and useAttribute classnames

2007-01-26 Thread Tim Williams
What's the relationship between the type attribute in the put and the classname in the useAttribute. I've just resolved some of my 'type' issues that occurred because I apparently don't understand it. What I was trying to do was: - have a basedialog tile defined in tile-defs.xml that "puts" wha

RE: struts problem

2007-01-26 Thread Dave Newton
From: Sócrates Medina > I'm having a problem with struts. I have an actioon which receive some > parameters, but when i submit the struts form, i loose the parameters > that i used in the same formi just want to get help if there;s a > way for keeping the same parameters after submitting the f

Loss of request attributes after validation form

2007-01-26 Thread bjorn.de.bakker
Ok, I resolved the previous error, but now a new one pops up. This is the situation: We have a database in which we can look up certain persons. When we find a person, we have the ability to register him in another database, with additional values. If you find a user, you have a button to regis

struts problem

2007-01-26 Thread Sócrates Medina
Hello guys, I'm having a problem with struts. I have an actioon which receive some parameters, but when i submit the struts form, i loose the parameters that i used in the same formi just want to get help if there;s a way for keeping the same parameters after submitting the form. I don;t wan

RE: Struts 2.0 vs Struts 1.3.5 vs Struts 1.2

2007-01-26 Thread Forum subscriber
Another +1 from me. A couple oy years ago, our project moved from Struts(1) to Webwork. We had absolutely no problems to recharge our brains and I can still feel that breeze... :) Cheers, Peter _ From: Dave Newton [mailto:[EMAIL PROTECTED] To: Struts Users Mailing List [mailto:[EMAIL PR

RE: Struts 2.0 vs Struts 1.3.5 vs Struts 1.2

2007-01-26 Thread Dave Newton
From: Tom Schneider > Joe Germuska wrote: > > Struts 2 is substantially different. I would not expect a Struts 1 > > developer to implement a project on the same time frame if it also > > included learning to switch to Struts 2. > I disagree to a certain degree. If the project is large enough and

Re: Struts 2.0 vs Struts 1.3.5 vs Struts 1.2

2007-01-26 Thread Tom Schneider
Joe Germuska wrote: Struts 1.3.5 is intended to be essentially backwards compatible with 1.2.x; information on the details is here: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 Struts 2 is substantially different. I would not expect a Struts 1 developer to implement a project on the

[S2] Getting a formated value inside an input field

2007-01-26 Thread André Faria
Hi People, I have the following ApplicationResources.properties: format.number={0,number} format.date={0,date} format.time={0,time} format.percent={0,number,percent} format.money={0,number,currency} How could I do to get a formated number in a input field? I tried but that didn't works...

RE: Error : request.getReader()

2007-01-26 Thread Dave Newton
From: Marcello Savino > Before you suggest me to re-write Struts ;-) .. > The proccessing of the request i need must be implemented in a large > struts existing application... Maybe the filter is a good idea, i > have to study how to implement it, where to put it. The request processor is

R: Error : request.getReader()

2007-01-26 Thread Marcello Savino
>Dave Newton wrote: >Actually it was Chris that got it, I was still stupid until he said that :) >You may want to consider doing something in a custom request processor. Marcello Savino: Not so stupid as i am, if you think i'm still looking for a solution ... Before you suggest me to re-wr

Re: Struts 2.0 vs Struts 1.3.5 vs Struts 1.2

2007-01-26 Thread Joe Germuska
Struts 1.3.5 is intended to be essentially backwards compatible with 1.2.x; information on the details is here: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 Struts 2 is substantially different. I would not expect a Struts 1 developer to implement a project on the same time frame if it

Multiple resource bundles

2007-01-26 Thread bjorn.de.bakker
Before, I had no problems with this, but all of a sudden, errors appear in my console window. I have 2 resource bundles, one with captions and titles and 1 with error messages. To use them, I found this on the net: To use a specific resource bundle in my application, I simply had to type:

RE: Error : request.getReader()

2007-01-26 Thread Dave Newton
From: Marcello Savino > >Dave Newton wrote: > >[...] he just wants access to the request body *after* the parameters > have been processed. > >That's the only reason that request.getReader would throw an > exception. > >[...] > > [Marcello] > You got it ! Actually it was Chris that got it, I was

Re: Make Struts set form data onto the action in same order as the form's fields

2007-01-26 Thread Célio Cidral Junior
Hi Chris, 2007/1/25, Christopher Schultz <[EMAIL PROTECTED]>: I agree with Dave: you're trying to do too much in your forms. I disagree. There are two options that I consider acceptable for me. One of them is to write getters and setters for each form's field (just like a form bean). The other

strange behaviour or working as intended with ActionForm and namespaces?

2007-01-26 Thread Dirk Hesse
Hello i'am working on a 3 tier -web app and we are using struts. Yesterday we found a strange behaviour with the propertynames of our ActionForms. Firstly i will describe the situation: I have two jps's with different forms. For example a listItems.jsp and a detailItem.jsp. Both are using

R: Section 508 and html:text tag issue

2007-01-26 Thread Marcello Savino
In a jsp file: MY FIELD Marcello -Messaggio originale- Da: Weisfield, Russell (HAC) [mailto:[EMAIL PROTECTED] Inviato: giovedì 25 gennaio 2007 23.25 A: user@struts.apache.org Oggetto: Section 508 and html:text tag issue Hello, To abide by Section 508 compliance I need to associate

Struts 2.0 vs Struts 1.3.5 vs Struts 1.2

2007-01-26 Thread Chetan Pandey
Hi All: We have been using Struts 1.2 for many months in our company. Now we have a fresh project and some of us are confused whether we should use Struts 1.3.5 or Struts 2.0 or just continue with 1.2 as we have been doing for the past few months. I have gone through the Struts Docs and the

R: Error : request.getReader()

2007-01-26 Thread Marcello Savino
>Dave Newton wrote: >[...] he just wants access to the request body *after* the parameters have been processed. >That's the only reason that request.getReader would throw an exception. >[...] [Marcello] You got it ! More: i need to access the request body after the form was submited. The only wa