Re: alternative

2006-09-27 Thread Thomas Joseph
- Original Message - From: "Yariel Ramos Moreno" <[EMAIL PROTECTED]> To: "Struts" Sent: Thursday, September 28, 2006 6:17 AM > I'm working in a big management system. In this struts application almost all pages have > a lot of fields with a performance like a desktop application, special

Re: multiple module 403 forward

2006-09-27 Thread Niall Pemberton
http://struts.apache.org/1.x/userGuide/building_controller.html#exception_handler Niall On 9/28/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: Either by configuring the module or action for the exception in the struts-config.xml To configure it for the module... ...or for a specific A

Re: index value in custom validation message ?

2006-09-27 Thread Niall Pemberton
Theres nothing in struts to help you do this - but the extends validator can but it only does server side - see the indexed example: http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html#indexed Niall On 9/28/06, Tejesh Shetty <[EMAIL PROTECTED]> wrote: I am using struts 1.2.8, an

Re: multiple module 403 forward

2006-09-27 Thread Niall Pemberton
Either by configuring the module or action for the exception in the struts-config.xml To configure it for the module... ...or for a specific Action... Niall On 9/28/06, Martin Gainty <[EMAIL PROTECTED]> wrote: How does one redirect or forward to *alternate action* using Unaut

index value in custom validation message ?

2006-09-27 Thread Tejesh Shetty
I am using struts 1.2.8, and I am validating an indexed property and everything works just fine. When validation fails for an item I want to display action message saying Item is required, I was finding a way to do that couldn't find anything. Can anyone please suggest how to get this working?

Re: multiple module 403 forward

2006-09-27 Thread Martin Gainty
How does one redirect or forward to *alternate action* using UnauthorizedActionException Thanks for the info, Martin-- * This email message and any files transmitted with it contain confidential information intended only for the

Re: multiple module 403 forward

2006-09-27 Thread Niall Pemberton
On 9/27/06, Derrick Koes <[EMAIL PROTECTED]> wrote: How can I configure my web app so that each module will forward a 403 error to a different page? In the Struts 1.2.x series there is nothing to do what you want - the request processor just uses HttpServletResponse.sendError(403, "User is not

RE: Form conversion problem String to Date

2006-09-27 Thread Strachan, Paul
you could write a beanutils converter and plugin for struts config e.g. Your plugin class should register converters for each type e.g. Converter converter = new SqlDateConverter(..., sqlDateFormat, sqlDateAllowNull) ConvertUtils.register(converter, java.util.Date.class); etc -

can i access tile definition name directly in browser

2006-09-27 Thread Vinod Kumar
Hi, Can I access a tile definition name like "loginPage" as below directly in the browser. I have defined them in the tiles-defs.xml as below. Basically, I want to make the page printable and want to access the definition name for that purpose. Thanks in advance for your help.

Re: Tutorial on altering the .do extension?

2006-09-27 Thread Wendy Smoak
On 9/27/06, Bryce Nesbitt <[EMAIL PROTECTED]> wrote: Can anyone point me to a tutorial on alternatives to the "*.do" extension for Struts? We'd like to mix our legacy ".do" extensions with technology-neutral extensions. Thanks! Take a look a this article, "Struts URLs for Perfectionists". Th

alternative

2006-09-27 Thread Yariel Ramos Moreno
Hi all: I'm writing 'cause I need a suggestion about the best way to face an issue in a project. I'm working in a big management system. In this struts application almost all pages have a lot of fields with a performance like a desktop application, specially with a lot of validations. The main

Re: Tutorial on altering the .do extension?

2006-09-27 Thread Don Brown
You can map the ActionServlet to any extension you'd like, however, you cannot currently map it to multiple extensions. Don On 9/27/06, Bryce Nesbitt <[EMAIL PROTECTED]> wrote: Can anyone point me to a tutorial on alternatives to the "*.do" extension for Struts? We'd like to mix our legacy ".do

Tutorial on altering the .do extension?

2006-09-27 Thread Bryce Nesbitt
Can anyone point me to a tutorial on alternatives to the "*.do" extension for Struts? We'd like to mix our legacy ".do" extensions with technology-neutral extensions. Thanks! -Bryce Nesbitt -- Visit http://www.obviously.com/ --

multiple module 403 forward

2006-09-27 Thread Derrick Koes
How can I configure my web app so that each module will forward a 403 error to a different page? Thanks, Derrick

Re: Adding the source of struts.jar to my eclipse : HOWTO?

2006-09-27 Thread iner
Wendy Smoak wrote: On 9/27/06, Ink <[EMAIL PROTECTED]> wrote: would like to do that, but I cannot seem to find the struts.jar anywhere . What version of Struts are you using? There are links to binary and source distributions on the downloads page: http://struts.apache.org/download

RE: global exceptions, key?

2006-09-27 Thread Givler, Eric
I'm pretty sure the error.message1 key which is looked up in the resource file can be displayed in the resulting jsp with: In regards to the exception, that's stored as a request attribute, which can be obtained via: <% Exception e2 = (Exception) request.getAttribute( Globals.EXCEPTION_KEY ); %

Re: Form conversion problem String to Date

2006-09-27 Thread Chris Pratt
Change your mutator to accept a String and perform the conversion yourself. Then you can check for null or empty string before you start the conversion. (*Chris*) On 9/27/06, Tom Bednarz <[EMAIL PROTECTED]> wrote: I have a form with a date input field. This field is NOT mandatory, this means i

Re: How to validate an integer array

2006-09-27 Thread Wendy Smoak
On 9/26/06, Chetan Pandey <[EMAIL PROTECTED]> wrote: Thanks Wendy. I am trying to validate an array of ints. The following should be true: 1. The array is not null. 2. The first value in its index should be higher than 0. 3. If the first value is 0 then its length must be greater than 2. I'd

Re: Problems Checking and Array of html:checkbox

2006-09-27 Thread Uday Chandra Karrothi
Here is peace of code that i used . It uses a strign array to set the checkboxes and then get the values( in action form) selected as well.Have you tried using a multibox. . ... selectedAssets is an array that you can populate with the

Form conversion problem String to Date

2006-09-27 Thread Tom Bednarz
I have a form with a date input field. This field is NOT mandatory, this means it can contain a value or be empty. Whenever the user does NOT fill in this datefield I get the following exception: javax.servlet.ServletException: BeanUtils.populate org.apache.struts.util.RequestUtils.populate(R

Re: cannot get value using request.getParameter in struts tiles layout file

2006-09-27 Thread Uday Chandra Karrothi
HI vinod, its not the value of print that you need to make hidden. The variable name Print or whatever value you are passing. Try having that varaible as a hiddden property in the form. I hope that helps. I solved one of the problems liek that. But this may not work for you. Thanks Uday On 9/27/

Re: cannot get value using request.getParameter in struts tiles layout file

2006-09-27 Thread Vinod Kumar
Yes, but its showing null. basically, request.getParameter("print") is returning Null even when I pass a value of 1. thanks Vinod --- Antonio Petrelli <[EMAIL PROTECTED]> wrote: > Vinod Kumar ha scritto: > > <% > > > > String printParm1 = request.getParameter( "print" > ); > > > > System.out.pr

Re: Adding the source of struts.jar to my eclipse : HOWTO?

2006-09-27 Thread Wendy Smoak
On 9/27/06, ink erl <[EMAIL PROTECTED]> wrote: having struts 1.2.8 Struts 1.2.8 is available from the archive site. Source: http://archive.apache.org/dist/struts/source/ Binaries: http://archive.apache.org/dist/struts/binaries/ -- Wendy -

Checkboxes and HTTP (was: Re: [Strust2] how does Interceptor work?)

2006-09-27 Thread Wendy Smoak
On 9/27/06, Ted Husted <[EMAIL PROTECTED]> wrote: One thing you don't have to worry about doing before or after execute is fussing with checkboxes. Struts 2 has automatic support for stateful checkboxes, so there is no more mucking around with resetting input, just because HTTP can't say "false"

Re: Session scope Form-resolved

2006-09-27 Thread Matts
Thanks, it has worked well. - Original Message - From: "Wendy Smoak" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" ; "Matts" <[EMAIL PROTECTED]> Sent: Wednesday, September 27, 2006 12:17 PM Subject: Re: Session scope Form On 9/27/06, Matts <[EMAIL PROTECTED]> wrote: That's a

Re: Session scope Form

2006-09-27 Thread Adam J Samere
You can remove a form from the session the same way you your remove any session scoped attribute. request.getSession(false).removeAttribute(mapping.getName()); You are usually better off letting the Struts framework instantiate and initialize the form for you. Particularly with Dynamic Form Be

Re: Session scope Form

2006-09-27 Thread Wendy Smoak
On 9/27/06, Matts <[EMAIL PROTECTED]> wrote: That's a good idea, thanks. But how can i remove de form from de session??? The signature of the Action execute method gives you the request and the action mapping. From the request, you can get the session. From the action mapping, you can get

Re: [Strust2] how does Interceptor work?

2006-09-27 Thread Ted Husted
Maybe there is a better way? Have you looked at Prepare? http://cwiki.apache.org/WW/prepare-interceptor.html It's enabled by default, so if you want to be sure a method fires before execute (or input, or cancel, or anything else), then just implement preparable. The MailReader application doe

Re: Session scope Form

2006-09-27 Thread Matts
That's a good idea, thanks. But how can i remove de form from de session??? - Original Message - From: "Wendy Smoak" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, September 27, 2006 12:03 PM Subject: Re: Session scope Form On 9/27/06, Matts <[EMAIL PROTECTED]>

Re: Session scope Form

2006-09-27 Thread Wendy Smoak
On 9/27/06, Matts <[EMAIL PROTECTED]> wrote: Hi, I have a session scoped form and I want to destroy it and create for creating a new one in a certain action. How can I perform this??? In general, instantiating form beans is best left to the framework. Try removing it from the session when yo

Session scope Form

2006-09-27 Thread Matts
Hi, I have a session scoped form and I want to destroy it and create for creating a new one in a certain action. How can I perform this???

Re: Adding the source of struts.jar to my eclipse : HOWTO?

2006-09-27 Thread Wendy Smoak
On 9/27/06, Ink <[EMAIL PROTECTED]> wrote: would like to do that, but I cannot seem to find the struts.jar anywhere . What version of Struts are you using? There are links to binary and source distributions on the downloads page: http://struts.apache.org/downloads.html -- Wendy ---

Adding the source of struts.jar to my eclipse : HOWTO?

2006-09-27 Thread Ink
would like to do that, but I cannot seem to find the struts.jar anywhere . -i - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problems Checking and Array of html:checkbox

2006-09-27 Thread yamilka vallejo ramos
Please I have and Array of html:checkbox, but that array it of Long[] and I don't kwon how to say checked = true every element "tipoDon" of my list "listadoTiposDonante" has a boolean and I dont kwon how too work with that please if any boby could help me i will presure, thanks

Re: Multiple radio button groups

2006-09-27 Thread yamilka vallejo ramos
Hi, look I work with that and the way that I do it, its asking in the actionForm by the value of the radioButton I mean: In my case in the JSP I put this: And in the ActionForm: if(gestionarEdicionFarmacoMedicacionForm. getAnestesico().matches("farmacoA")){ ... } thats because I just have

Re: i want to display jsp data in new browser window

2006-09-27 Thread Wendy Smoak
On 9/27/06, Gomathi <[EMAIL PROTECTED]> wrote: I have one jsp page it contains header and footer and one table in body tag.In that page i have one button, by clicking the button one new browser window has to be open in this window i want to display only table it contains jsp data Take a l

RE: [Strust2] how does Interceptor work?

2006-09-27 Thread Labey Sébastien
Thanks for your help. I've read these pages and I better understand how it works. I've to try this further now... You said I could post my Interceptor to the list, but for the moment it doesn't really exist... It is only an idea to have an Interceptor that belongs to my default Interceptor stack

Re: [s2] Freemarker Shortcuts

2006-09-27 Thread David H. DeWolf
Thanks Ted. I'll file an issue and supply a patch later today. David Ted Husted wrote: <@s.textfield name="user.userName" label="%{getText('user.userName')}"/> should work, but, yes, this is an area where the Struts 2 tags are still strangely verbose. Feel free to file a feat

[Struts 2] strange behavior on s:url

2006-09-27 Thread Garner Shawn
I'm seeing some kind of inconsistent rendering and I don't know why: Home | Products renders as Home | Products Any help? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[Struts 2][Sitemesh] how do you use org.apache.struts2.sitemesh.TemplatePageFilter

2006-09-27 Thread Garner Shawn
Can somebody show me an implementation of this class? I'm not sure what I'm suppose to do with the abstract method. Shawn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: i want to display jsp data in new browser window

2006-09-27 Thread Thomas Joseph
Consider using tiles. - http://struts.apache.org/1.2.9/userGuide/building_view.html#tiles The table to be displayed in a saparate JSP. Then use two different templates to include the JSP with table, - one template with header and footer, another without header and footer (or even just call the Ta

Re: in a string

2006-09-27 Thread Aftab Vhora
correcting my self its bean:define instead of html:define Thanks & Regards, Aftab Vhora Oracle India Pvt Ltd, Cell-9880 311 391 Aftab Vhora wrote: Hi, Syntax for html:define ; Thanks & Regards, Aftab Vhora Jay wrote: Hi all, I want to store the value of value in a string. Or in

Re: in a string

2006-09-27 Thread Aftab Vhora
Hi, Syntax for html:define ; Thanks & Regards, Aftab Vhora Jay wrote: Hi all, I want to store the value of value in a string. Or in other words, i have a variable of string data type. i want to set its value equal to value of String variable = ; any idea to do this thanks -

Re: in a string

2006-09-27 Thread Antonio Petrelli
Jay ha scritto: Hi all, I want to store the value of value in a string. Or in other words, i have a variable of string data type. i want to set its value equal to value of String variable = ; any idea to do this Use or, the better, : http://java.sun.com/products/jsp/jstl/1.1/docs/

in a string

2006-09-27 Thread Jay
Hi all, I want to store the value of value in a string. Or in other words, i have a variable of string data type. i want to set its value equal to value of String variable = ; any idea to do this thanks -- View this message in context: http://www.nabble.com/%3Cbean%3Awrite%3E-in-a-str

global exceptions, key?

2006-09-27 Thread Andy.de
Hi struts experts, i have a global exception at my struts-config like this: How can i display the text specified by the key attribute on my jsp? How can i display myException.getMessage() and/or myException.getStackTrace() on my jsp? Regard, Andy -- View this message in context: http://www.n

Re: Init of forms

2006-09-27 Thread Andy.de
Thx Yamir, this was the hint i needed, all is workig well now. Regards, Andy Yamir Encarnacion wrote: > > Take a look at http://struts.apache.org/1.1/faqs/newbie.html#prepopulate > (How can I prepopulate a form?) > I believe that the struts-example.war example application that is shipped >

AW: Migrating Struts application from weblogic 8.1 to 9.2

2006-09-27 Thread Martin Burkhart
Another weird thing that may be connected to the issue is the following. When I start the administration console of WLS9.2 (which is built using struts 1.2.7 as well) I get the following warning in the log file: element does not contain a for "controllerClass". Page Flow actions in this mo

AW: Migrating Struts application from weblogic 8.1 to 9.2

2006-09-27 Thread Martin Burkhart
Hi Starki As i mentioned the only thing I did was upgrading the web.xml to http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> In the way of upgrading, the taglibs declaration is no longer done in web.xml but in the jsp files directly. But that would be a

AW: Migrating Struts application from weblogic 8.1 to 9.2

2006-09-27 Thread Martin Burkhart
Hi Eric The forward is defined like this: in the struts-config.xml. Might that be a problem? Used to work on WLS 8.1 all the time. -Ursprüngliche Nachricht- Von: Givler, Eric [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 22. September 2006 17:03 An: Struts Users Mailing List Betreff:

i want to display jsp data in new browser window

2006-09-27 Thread Gomathi
Hai, I have one jsp page it contains header and footer and one table in body tag.In that page i have one button, by clicking the button one new browser window has to be open in this window i want to display only table it contains jsp data thanks and regards gomes

Re: Init of forms

2006-09-27 Thread Ilja S.
Hi Lets see in example you declare an action in struts-config like this: type="com.example.struts.action.RegistrationAction" validate="false"> Now when you access "/registration" url Your Action's class "execute" method will be called. Inside this method you get instance of "registra

Re: cannot get value using request.getParameter in struts tiles layout file

2006-09-27 Thread Antonio Petrelli
Vinod Kumar ha scritto: <% String printParm1 = request.getParameter( "print" ); System.out.println("printParm1 = "+printParm1); %> This may be a stupid question but You suppose to see the "print" parameter value in the console, right? Ciao Antonio -