RE: use html:form to pass the a child window to a parent window

2006-05-11 Thread José María Tristán
Ok. Thank you very much. -Mensaje original- De: M Faizal [mailto:[EMAIL PROTECTED] Enviado el: viernes, 12 de mayo de 2006 5:32 Para: Struts Users Mailing List Asunto: RE: use html:form to pass the a child window to a parent window Add target attrib. in the form of your popup window

Re: Accessing List in JSP

2006-05-11 Thread Sunil_Sahu
Sonu, Make two changes in your code, it will definitely work.. 1. Add the following line in your Action Class: request.setAttribute("myForm",myForm); 2. Modify the JSP code Hope it helps. Thanks & Regards Sunil Sahu Sonu S <[EMAIL PROTECTED]

RE: Accessing List in JSP

2006-05-11 Thread Patil, Sheetal
First thing you have to set your form object in either session or request by in action classs if("request".equals(mapping.getScope())) { request.setAttribute(mapping.getAttribute(),form); }else { request.getSession().setAttribute(mapping.getAttribute(), form)

Accessing List in JSP

2006-05-11 Thread Sonu S
Hi 2 all I am using Struts 1.2 in my action class i am writing List testList = new ArrayList(); testList.add("str 1"); testList.add("str 2"); testList.add("str 3"); MyForm myForm = (MyForm) form; myForm.setMyList(testList); In Action Form i have done public class myForm extends ActionForm{

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Richard Wallace
Craig McClanahan wrote: On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 5/11/06, Jason Vincent <[EMAIL PROTECTED]> wrote: > According to the HTML specification, disabled input controls > are *not* included in the request attr

RE: use html:form to pass the a child window to a parent window

2006-05-11 Thread M Faizal
Add target attrib. in the form of your popup window ... -Original Message- From: José María Tristán [mailto:[EMAIL PROTECTED] Sent: May 11, 2006 6:33 PM To: 'Struts Users Mailing List' Subject: use html:form to pass the a child window to a parent window Hi, Sorry but I

Re: Browser Back Button

2006-05-11 Thread Rob Manthey
And I'll be contrary and toss in a "Yes, but ..." (apol: Eric Berne) (as usual, corrections to my notes are welcome) Yes, but you have to do it programmatically. I don't think there's anything in j2ee (or any other web app) interfaces or implementations that handles this, as Phil said, so you hav

Re: Browser Back Button

2006-05-11 Thread Philihp Busby
No. When people have a problem with back buttons, 95% of the time they are either doing one of the following: - Confusing the GET and POST methods and their intended purpose with forms. - Abusing client-side browser scripting for forwarding users. On 5/11/06, temp temp <[EMAIL PROTECTED]> wrote:

Re: How do otherS deal with being OO and dealing with multi-selects on front end?

2006-05-11 Thread Adam Hardy
I did (3) slightly differently - I did BeanUtils.copyProperties(formBean, Person) in the action, followed by the Helper stuff. No great difference really. I think that this is really the only feasible current mechanism for it. Rick Reumann on 11/05/06 19:13, wrote: What I ended up doing is

Re: [OT] - JSTL Parameter Conventions

2006-05-11 Thread David Evans
Check out Velocity and Freemarker, both are templating systems that are not tied to jsp. http://jakarta.apache.org/velocity/ http://freemarker.sourceforge.net/ I use velocity to do all of the email body templating in my applications, it works great. Dave On Thu, 2006-05-11 at 12:43 -0700, Kalce

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Craig McClanahan
On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: How do you know that dialog is completed? :-) By virtue of explicit transition to an end state, just like Spring WebFlow. This causes the per-dialog state information to be popped off the session-scoped statck where it is maintained, t

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Michael Jouravlev
On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > > Also, is it possible to lock the server-side bean on a fr

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Craig McClanahan
On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > Also, is it possible to lock the server-side bean on a framework > > level, so it would be guaranteed that the bean won'

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Michael Jouravlev
On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Also, is it possible to lock the server-side bean on a framework > level, so it would be guaranteed that the bean won't get second > request until the first one is serviced and respo

Re: [OT] - JSTL Parameter Conventions

2006-05-11 Thread Craig McClanahan
On 5/11/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote: Well, I briefly looked at it. It might not be what I am looking for if I cannot use it within my Actions, and not just on the JSP. Like I said, I haven't look at it too much yet though. If you are using JSF 1.1 today, you can execute

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Craig McClanahan
On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 5/11/06, Jason Vincent <[EMAIL PROTECTED]> wrote: > According to the HTML specification, disabled input controls > are *not* included in the request attributes submitted to the s

RE: [OT] - JSTL Parameter Conventions

2006-05-11 Thread Kalcevich, Daniel
Well, I briefly looked at it. It might not be what I am looking for if I cannot use it within my Actions, and not just on the JSP. Like I said, I haven't look at it too much yet though. Daniel -Original Message- From: David Durham [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006

Browser Back Button

2006-05-11 Thread temp temp
Is there any way I can realize using java that the user clicked on browsers back button ? Thanks & Regards - Yahoo! Mail goes everywhere you do. Get it on your phone.

Re: [OT] - JSTL Parameter Conventions

2006-05-11 Thread David Durham
Kalcevich, Daniel wrote: Dang, I must have been spacing when I was looking on the Jakarta Site earlier. Thanks Dave. I wasn't sure if that's what you needed or not. Good to hear that it is. -Dave - To unsubscribe, e-mail: [

RE: [OT] - JSTL Parameter Conventions

2006-05-11 Thread Kalcevich, Daniel
Dang, I must have been spacing when I was looking on the Jakarta Site earlier. Thanks Dave. Daniel -Original Message- From: David Durham [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 1:15 PM To: Struts Users Mailing List Subject: Re: [OT] - JSTL Parameter Conventions Kalcevich

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Michael Jouravlev
On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: On 5/11/06, Jason Vincent <[EMAIL PROTECTED]> wrote: According to the HTML specification, disabled input controls are *not* included in the request attributes submitted to the server. Therefore, disabling the submit button will mean that the

Re: [OT] - JSTL Parameter Conventions

2006-05-11 Thread David Durham
Kalcevich, Daniel wrote: Everyone, Does anyone know of a tool or library that can be used to perform similar operations as JSTL does with arguments like ${object.method}? I need to build a String that has to have arguments replaced on the fly and thought if I could find something like how JSTL

[OT] - JSTL Parameter Conventions

2006-05-11 Thread Kalcevich, Daniel
Everyone, Does anyone know of a tool or library that can be used to perform similar operations as JSTL does with arguments like ${object.method}? I need to build a String that has to have arguments replaced on the fly and thought if I could find something like how JSTL does it, that it would w

RE: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread James Reynolds
Oh, I totally missed the point. Best of luck. -Original Message- From: Jason Vincent [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 1:21 PM To: Struts Users Mailing List Subject: Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click) hmmm t

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Jason Vincent
Thanks Craig... that explains it. thanks, Jason On 5/11/06, Jason Vincent <[EMAIL PROTECTED]> wrote: hmmm that isn't going to solve my issue. I don't want the button disabled on reload. I only want it to be disabled from the time the user clicked the button, until the time the server is

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Jason Vincent
hmmm that isn't going to solve my issue. I don't want the button disabled on reload. I only want it to be disabled from the time the user clicked the button, until the time the server is able to send back a response. Here is an example: On a login form... enter username and pwd and click

Re: How do otherS deal with being OO and dealing with multi-selects on front end?

2006-05-11 Thread Rick Reumann
What I ended up doing is 1) A Helper class will generate my String[] conversions to and from a List of "SomeObject" 2) My form beans stick with String[] properties for multiple selects/multibox situations 3) Rather than use BeanUtils.copyProperties( myFormBean, Person ) in my Action, I end up p

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Craig McClanahan
On 5/11/06, Jason Vincent <[EMAIL PROTECTED]> wrote: Hi all, My project spec is asking me to disable form buttons once they are clicked. It seemed easy to me, just add onclick="disabled='true'" to the commandButton. But as anything I've found with JSF, it isn't that easy. When I do this, the

RE: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread James Reynolds
The first thought that occurs to me is, how about binding the button's JSF 'disabled' attribute to a boolean property on your backing bean? As part of the button's action method, you could set the boolean to true, thereby disabling the button when the page reloads. -Original Message- Fr

Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Jason Vincent
Hi all, My project spec is asking me to disable form buttons once they are clicked. It seemed easy to me, just add onclick="disabled='true'" to the commandButton. But as anything I've found with JSF, it isn't that easy. When I do this, the action method isn't being called after it passes valid

Re: Problems fetching struts-config DTD

2006-05-11 Thread Craig McClanahan
On 5/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi! I have a Struts webapp with a struts-config.xml that starts with the usual http://struts.apache.org/dtds/struts-config_1_3.dtd";> Which version of Struts are you trying to use this with? Since you are asking for version 1.3 of

Re: How do other deal with being OO and dealing with multselects on front end?

2006-05-11 Thread Adam Hardy
This is something for which I've tried to find an elegant solution on the last couple of projects I worked on. Using DTO / POJOs from Hibernate for the Person and the Cats and Dogs, I end up using a sorted set of Cats or Dogs in the page context, which I then iterate over in the JSP. This me

re: File upload using tag fails..java.lang.IllegalArgumentException:

2006-05-11 Thread kommineni Anita
Yeah it worked by just using the common_fileupload.jar and also by removing the commons 1.1 from all my other libs in the Websphere Appserver lib ext aswell. Thanks, Anita --- Kyle Wu <[EMAIL PROTECTED]> wrote: > as far as I know, file upload issue just require > commons-fileupload.jar which i

Re: How do other deal with being OO and dealing with multselects on front end?

2006-05-11 Thread Zoran Avtarovski
I know exactly what you mean. What we decided on as a standard I store cats and dogs as Lists and then have getter/setter methods for Array objects which convert to/from a List on the fly. I'm not sure if this adheres to OO principles but it's serves our purpose well. Zoran > Lets assume you wa

Re: unable to load validation-rules.xml

2006-05-11 Thread Anil Kumar Pippalapalli
hi richard, I mentioned that plugin definition in my struts-config.xml.Iam sending you the exact error which iam gettin while deployin my app in tomcat 5.5, May 10, 2006 3:40:26 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 May 10, 2006 3:40:26

Struts error of Default value from the server.....

2006-05-11 Thread rajan pahuja
I am getting this error: javax.servlet.ServletException: General error message from server: "Field 'firstname' doesn't have a default value" org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523) org.apache.struts.action.RequestProcessor.processActionPerform(Re

Re: problem while deployin

2006-05-11 Thread Sunil_Sahu
Anil, I think problem is with your validation.xml file. While doing the validation of a field (of form-bean) in validation.xml, we usually use the and element, and i think instead of writing element you have wrongly mentioned element somewhere in your validation.xml. Verify your validatio

Re: Problems fetching struts-config DTD

2006-05-11 Thread Sunil_Sahu
Niklas, I think there is nothing to do with any kind of validation. When you refer a doctype in your struts-config.xml file, it will verify it from DTD which is part of struts.jar, either you can put jar file in such a place that classloader can load it (web-inf/lib) or you can place DTD file i

RE: Problems fetching struts-config DTD

2006-05-11 Thread Shoukat, Faisal
U could use a classpath entity resolver and put the dtd in a jar on the path -Original Message- From: A. Alonso Dominguez [mailto:[EMAIL PROTECTED] Sent: 11 May 2006 11:25 To: Struts Users Mailing List Subject: Re: Problems fetching struts-config DTD Take a look to the possible configura

RE: problem while deployin

2006-05-11 Thread Marco Mistroni
Check ur validation file INFO: Loading validation rules file from '/WEB-INF/validation.xml' May 10, 2006 3:40:40 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 50 column 35: Element type "va-value" must be declared. org.xml.sax.SAXParseException: Element type "va-value"

RE: problem while deployin

2006-05-11 Thread Patil, Sheetal
Hay u havent mention what is this "va-value" -Original Message- From: Anil Kumar Pippalapalli [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 4:32 PM To: user@struts.apache.org Subject: problem while deployin Hi all, I have a simple application which tries to validate user

problem while deployin

2006-05-11 Thread Anil Kumar Pippalapalli
Hi all, I have a simple application which tries to validate user using username and password.The problem is when iam tryin to deploy application in tomcat 5.5, it gives out lots of errors. Iam furnishing the errors which i got, Any help would be appreciated, May 10, 2006 3:40:26 PM org.a

use html:form to pass the a child window to a parent window

2006-05-11 Thread José María Tristán
Hi, Sorry but I'm speak only a little english. I have two windows. the first windows call to a popup windows that gets data. When user subbmit the form this is close and the parent window show this data. First Window Name: Street:

Re: Problems fetching struts-config DTD

2006-05-11 Thread A. Alonso Dominguez
Take a look to the possible configurations of commons-digester, the ActionServlet fallsback to that library when it loads all the struts-config.xml files for your webapp. A working solution is to remove the DOCTYPE reference in the xml files. Alonso 2006/5/11, [EMAIL PROTECTED] <[EMAIL PROTECTE

Re: Struts and WebServices with both FORM and BASIC authentication in same web app

2006-05-11 Thread Robert Taylor
Frank, thanks for the response. I was afraid that was going to be the answer. /robert Frank W. Zammetti wrote: Robert Taylor wrote: Greetings, can you have both FORM and BASIC authentication in the same web application? (I don't think so, but thought I would ask) No, you cannot. I recent

Problems fetching struts-config DTD

2006-05-11 Thread strutsniklas
Hi! I have a Struts webapp with a struts-config.xml that starts with the usual http://struts.apache.org/dtds/struts-config_1_3.dtd";> So when the web application is started Struts goes out to struts.apache.org to try to fetch the DTD file. This is becoming a problem since the Internet can't

RE: Basic

2006-05-11 Thread nageshkumar.siddu
Hi, If you are using logic equal , you should also use logic not equal. Regards, Nagesh -Original Message- From: siva sajja [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 12:08 PM To: Struts Users Mailing List Subject: Re: Basic wrote: > > Greetings everyone: > > Objective: Re

General error message from server : "Field 'firstname' doesn't have a default value"

2006-05-11 Thread rajan pahuja
javax.servlet.ServletException: General error message from server: "Field 'firstname' doesn't have a default value" org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)