Re: text field not populating after validate() fails.

2005-12-22 Thread Vikrama Sanjeeva
Actually I'm using a javascript which needs to define form name. And in struts, when you define form name it is mandatory to define type too. I just change the scope in struts-config from request to session and it is working fine now. But question is, why it is not working with scope=request?

instance validation struts shale?

2005-12-22 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
Can we do instance validation for particular field in SHALE? Like onblur() event. Please let me know Regards, JEEVANANTHAM PARAMASAMY, Software Engineer, 3i - INFOTECH Limited, Alwarpet, Chennai - 600018. Phone: 044 24678000 extn:418 Cell no: 09840933967 -- Greetings! ICICI

Re: Problem in img src=img.gif path?

2005-12-22 Thread Vikrama Sanjeeva
Hi, The myForm.jsp is called when a user clicks a link in another JSP. Here is the flow: 1. User click the link in home.jsp . html:link page=/do/SetUpMyFormMy Form/html:link 2. Action, SetUpMyForm is called and it actually set's up some variables, pull-down menues and then it return

Struts implementation of Synchronizer Token pattern

2005-12-22 Thread Shiby Maria John
Hi, I was trying to check out this implementation of Synchronizer Token pattern in Struts. But I am getting an error while trying to run the example code given in the Java tip for the same. java.lang.NullPointerException org.apache.struts.util.RequestUtils.pageURL(RequestUtils.java:1441)

NewB: Struts FormFile and Session scope FormBean

2005-12-22 Thread Kedar Panse
Hello gurus, I want to use a wizard type of flow where in one screen there is File Upload. As this is wizard, i was using session scoped formbean with one property formfile. But seems like formfile is not serializable. What is proper way of handling this? Thanks! Kedar

[OT] Leaving the list

2005-12-22 Thread Gregory Seidman
I can't say I've been very active on this list, but I used to read it carefully. I find that I am now only giving it a cursory glance. I originally joined because I had intended to create a wedding guest management webapp for my own user for planning my wedding. (I wrote a prototype with JSP and a

Re: text field not populating after validate() fails.

2005-12-22 Thread Rahul Akolkar
On 12/22/05, Vikrama Sanjeeva [EMAIL PROTECTED] wrote: Actually I'm using a javascript which needs to define form name. And in struts, when you define form name it is mandatory to define type too. I just change the scope in struts-config from request to session and it is working fine now.

Accessing global constants programatically

2005-12-22 Thread Ramesh Mohan Reddy
Hi there, I am using 1.2.7 version of struts. Is there any way using which I can access global constants declared in validation xml file inside my actions. The reason being I need to apply regular expressions explicitly. Regards, Ramesh. __ Do

Tiles with Struts

2005-12-22 Thread Buntin, Seth - KATE
I am having an issue getting Tiles to work. I am totally new to Struts so bear with me. The issue is I don't see anything. I got to home.do (which is set up as what the user will see first) and it is totally blank and the source is totally empty. I think I have everything in my configuration

RE: [.do - JSF/Shale]

2005-12-22 Thread Garner, Shawn
Can you elaborate on the first two bullets (*)? I'm not familiar with either. I'm not inclined to be for the idea of mixing architectures by including action based struts in JSF/Shale so I'm not big on the third bullet (*). Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: [JSF/Shale] Controller returning null

2005-12-22 Thread Garner, Shawn
Cool thanks, I was hoping that was the case. Makes for a lot less work. Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Wednesday, December 21, 2005 7:08 PM To: Struts Users Mailing List Subject: Re: [JSF/Shale] Controller

Re: Tiles with Struts

2005-12-22 Thread brenmcguire
How about your home.do action mapping and the connected action? Maybe you return a wrong ActionForward... Ciao Antonio Petrelli Buntin, Seth - KATE ha scritto: I am having an issue getting Tiles to work. I am totally new to Struts so bear with me. The issue is I don't see anything. I got to

Re: Tiles with Struts

2005-12-22 Thread Greg Reddin
On Dec 22, 2005, at 8:59 AM, Buntin, Seth - KATE wrote: I am having an issue getting Tiles to work. I am totally new to Struts so bear with me. The issue is I don't see anything. I got to home.do (which is set up as what the user will see first) and it is totally blank and the source is

validation.xml

2005-12-22 Thread rahul kshirsagar
Hi, I am using validation.xml in my application.It takes care of client side as well as server side validations.It is working fine.But i dont understand how exactly it takes care of both validations. Regards, Rahul.  

Re: validation.xml

2005-12-22 Thread Pazhanikanthan Periasamy
I believe you would have read this article from Struts documentation. http://struts.apache.org/struts-doc-1.2.4/userGuide/dev_validator.html Thanks and regards, Pazhanikanthan. P Project Leader, Caritor (India) Pvt. Ltd., Madras - 600 006 Mob: 9886152717 Extn: 40123 rahul kshirsagar [EMAIL

Re: validation.xml

2005-12-22 Thread Srinivas Jadcharla
When it looks validate = true in struts-config.xml and when you form extends ValidatorForm it looks for validations in Validator.xml this is how Client Side Validation Works.How Exactly you are implementing Serverside validations? On 22 Dec 2005 15:21:39 -, rahul kshirsagar [EMAIL PROTECTED]

Re: validation.xml

2005-12-22 Thread Pazhanikanthan Periasamy
Hello Srinivas, When Struts identifies the attribute validate=true in its config files, it check whether the Validator Plug In is configured in the configuration. Then it checks if the validation.xml contains the form name which is being accessed. If yes, it identifies the form fields to be

Re: html:multibox with LabelValueBean

2005-12-22 Thread fea jabi
Thanks, Laurie. that worked. why is JSTL prefered over the logic tags? is there any doc I can read about the same? Thanks. From: Laurie Harper [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: user@struts.apache.org Subject: Re: html:multibox with

Re: html:multibox with LabelValueBean

2005-12-22 Thread Pazhanikanthan Periasamy
Hello Fea, I dont think, there are any differences in the way both JSTL and Struts logic tags work. Fundamentally they both iterate the same input array and produce the output. Using Logic Iterate tags, you can eliminate many scriptlet tags that you might end up using when you use JSTL

Re: html:multibox with LabelValueBean

2005-12-22 Thread Srinivas Jadcharla
I think its always better to use Struts taglibs where ever it is possible because of less coding.Where exactly we need JSTL(Wild guess .where its not possible with Struts tag libs?) .Correct me if iam wrong On 12/22/05, Pazhanikanthan Periasamy [EMAIL PROTECTED] wrote: Hello Fea, I dont

Re: html:multibox with LabelValueBean

2005-12-22 Thread Pazhanikanthan Periasamy
Apache Struts developers are very very clever to ensure that you wont get an oppurtunity for using JSTL :) Thanks and regards, Pazhanikanthan. P Project Leader, Caritor (India) Pvt. Ltd., Madras - 600 006 Mob: 9886152717 Extn: 40123 Srinivas Jadcharla [EMAIL PROTECTED] 12/22/2005 09:14 PM

Re: validation.xml

2005-12-22 Thread Rahul Akolkar
On 12/22/05, Srinivas Jadcharla [EMAIL PROTECTED] wrote: When it looks validate = true in struts-config.xml and when you form extends ValidatorForm it looks for validations in Validator.xml this is how Client Side Validation Works.How Exactly you are implementing Serverside validations? snip/

Re: html:multibox with LabelValueBean

2005-12-22 Thread Srinivas Jadcharla
I may be wrong but i saw in some situations i dont have proper tag libs in struts. On 12/22/05, Pazhanikanthan Periasamy [EMAIL PROTECTED] wrote: Apache Struts developers are very very clever to ensure that you wont get an oppurtunity for using JSTL :) Thanks and regards, Pazhanikanthan. P

Re: html:multibox with LabelValueBean

2005-12-22 Thread Pazhanikanthan Periasamy
If the requirement is deviated from the regular / common requirements, then obviously it is possible. Based on my experience, I have not faced a situation where I cannot use. Not offending anyone in particular, most of such difficulties arise becoz some of us (developers including me) dont

Re: Tiles with Struts

2005-12-22 Thread Buntin, Seth - KATE
My web.xml file has: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list index.jsp: %@ taglib uri=/tags/struts-logic prefix=logic % logic:redirect forward=home/ struts-config.xml: global-forwards forward name=home path=/Home.do/

Re: Same action with multiple submit buttons

2005-12-22 Thread Dakota Jack
Again, how lookup dispatch action works is explained at http://www.michaelmcgrady.com/button/. But the options there are simpler, faster, superior. LookupDispatchAction is a dynosaur. On 12/21/05, Shiby Maria John [EMAIL PROTECTED] wrote: Hi, I tried using the LookupDispatchAction for

Re: Tiles with Struts

2005-12-22 Thread brenmcguire
DoFirst.java: package edu.msu.kate.struts.action; import org.apache.struts.action.*; import javax.servlet.http.*; public class DoFirst extends Action { public ActionForward perform( ActionMapping aMapping,

WebLogic serializing ServletContext

2005-12-22 Thread George.Dinwiddie
Is anyone successfully using Struts on a WebLogic Managed Server? We are seeing errors like this: Oct 26, 2005 10:20:31 PM MST Error HTTP BEA-101309 [ServletContext(id=18877050,name=servicerlink,context-path=)] could not deserialize the context attribute

RE: Tiles with Struts

2005-12-22 Thread Buntin, Seth - KATE
Thanks Antonio. That was it. I just found that off a web site and I guess the site was somewhat old. Seth Buntin Web Resources Coordinator Kentucky Academy of Technology Education Murray State University

Re: instance validation struts shale?

2005-12-22 Thread Craig McClanahan
On 12/22/05, JEEVANATHAM P. /BPCRP/INFOTECH/VASHI [EMAIL PROTECTED] wrote: Can we do instance validation for particular field in SHALE? Like onblur() event. Shale's support for validation, along with other features, are described on the Shale web site:

Ich bin im Urlaub

2005-12-22 Thread bednarz
Sehr geehrte Damen und Herren, in der Zeit vom 27. Dezember 2005 bis 1. Januar 2006 bin ich im Urlaub. Bitte wenden Sie sich bei allen Fragen und technischen Problemen entweder direkt an [EMAIL PROTECTED] oder telefonisch an: 0511 / 300 345 00 Mit freundlichen Grüßen, Andreas Bednarz ID.on

Re: [.do - JSF/Shale]

2005-12-22 Thread Craig McClanahan
On 12/22/05, Garner, Shawn [EMAIL PROTECTED] wrote: Can you elaborate on the first two bullets (*)? I'm not familiar with either. The current remoting implementation in Shale allows you to register commands or chains (in the Commons Chain sense) to context-relative URL patterns. It uses a

Re: html:multibox with LabelValueBean

2005-12-22 Thread Craig McClanahan
On 12/22/05, fea jabi [EMAIL PROTECTED] wrote: Thanks, Laurie. that worked. why is JSTL prefered over the logic tags? is there any doc I can read about the same? Thanks. A couple of reasons I (as the original developer of the logic tags :-) prefer the JSTL versions: * The expression

Re: Back Button Problem..

2005-12-22 Thread Marcelo Morales
Hello On Dec 16, 2005, at 10:48 AM, Priya Saloni wrote: Hi there, I facing a BIG problem in my struts based application.When i logout my website and hit back button it showing a page like the following // Warning: Page has Expired The page you requested was created using information you

Re: Back Button Problem..

2005-12-22 Thread Priya Saloni
Hi Marcelo, //You solve this issue with a redirtect-after-post hack on the logoff //action. Thats what iam doing in the following code.. request.getSession().removeAttribute(sessionState); request.getSession().invalidate(); response.sendRedirect(/BMS/logout_success.jsp); //This you solve by

Re: [OT] JavaWebParts and Struts / Ajax integration

2005-12-22 Thread Frank W. Zammetti
Sorry to not reply sooner Peter... my web host has been under a major DoS attack today, my mail just came back up a minute or so ago. Pilgrim, Peter wrote: Hi Frank et Al I am not sure if the latest 1.0 current version of JavaWebPart actually distributes the right libraries. If looks like

Re: Back Button Problem..

2005-12-22 Thread Marcelo Morales
Hello again On Dec 22, 2005, at 3:27 PM, Priya Saloni wrote: Hi Marcelo, //You solve this issue with a redirtect-after-post hack on the logoff //action. Thats what iam doing in the following code.. request.getSession().removeAttribute(sessionState); request.getSession().invalidate();

Re: Maven version for Struts

2005-12-22 Thread James Mitchell
I'm sure someone will get to that eventually. Thanks -- James Mitchell 678.910.8017 Skpe: jmitchtx On Dec 21, 2005, at 11:25 PM, Andres Paz Sampedro wrote: Hi, I saw you have worked in the StrutsMaintenanceMaven wiki page, that's why I'm bothering you. I have been trying to build struts

Re: Maven version for Struts

2005-12-22 Thread James Mitchell
I see that Wendy did this yesterday. Sorry for the noise. -- James Mitchell 678.910.8017 Skpe: jmitchtx On Dec 22, 2005, at 5:37 PM, James Mitchell wrote: I'm sure someone will get to that eventually. Thanks -- James Mitchell 678.910.8017 Skpe: jmitchtx On Dec 21, 2005, at 11:25 PM,

Checkboxes...

2005-12-22 Thread Shilpa . Nalgonda
Hi All, I am using struts checkboxes. When the checkboxes are populated i make some of them as checked by default. But the user submits the page there might be cases when default ones will be unchecked... Even though teh default boxes are unchecked, they are coming as selected in the java

Ich bin im Urlaub

2005-12-22 Thread bednarz
Sehr geehrte Damen und Herren, in der Zeit vom 27. Dezember 2005 bis 1. Januar 2006 bin ich im Urlaub. Bitte wenden Sie sich bei allen Fragen und technischen Problemen entweder direkt an [EMAIL PROTECTED] oder telefonisch an: 0511 / 300 345 00 Mit freundlichen Grüßen, Andreas Bednarz ID.on

Re: Checkboxes...

2005-12-22 Thread Wendy Smoak
On 12/22/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Even though teh default boxes are unchecked, they are coming as selected in the java code. How can i unselect them... Are you setting them to false in the 'reset' method of your form bean, as described in the documentation?

Re: Problem in img src=img.gif path?

2005-12-22 Thread Laurie Harper
Vikrama Sanjeeva wrote: Hi, The myForm.jsp is called when a user clicks a link in another JSP. Here is the flow: 1. User click the link in home.jsp . html:link page=/do/SetUpMyFormMy Form/html:link 2. Action, SetUpMyForm is called and it actually set's up some variables, pull-down

Re: NewB: Struts FormFile and Session scope FormBean

2005-12-22 Thread Laurie Harper
Kedar Panse wrote: Hello gurus, I want to use a wizard type of flow where in one screen there is File Upload. As this is wizard, i was using session scoped formbean with one property formfile. But seems like formfile is not serializable. What is proper way of handling this? Given that a

Re: [OT] customizing JSF view management (was [shale][struts-faces] structured URLs with JSF (reprised))

2005-12-22 Thread Laurie Harper
I think I've found an easier way... It looks like both our needs can be met by installing a custom ViewHandler that just delegates all methods to its parent, but which changes the viewId passed into createView before calling super.createView: public class ProjectivaViewHandler extends

Re: [OT] customizing JSF view management (was [shale][struts-faces] structured URLs with JSF (reprised))

2005-12-22 Thread Craig McClanahan
On 12/22/05, Laurie Harper [EMAIL PROTECTED] wrote: I think I've found an easier way... It looks like both our needs can be met by installing a custom ViewHandler that just delegates all methods to its parent, but which changes the viewId passed into createView before calling

custom server side validation in shale

2005-12-22 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
Hi all, Please let me know about how can we do server side validation in shale. Like user validation, when user enters some value that time we need to check with database whether that is correct one or not. If not that will through a alert not message on the screen. Regards,

Re: [OT] customizing JSF view management (was [shale][struts-faces] structured URLs with JSF (reprised))

2005-12-22 Thread Laurie Harper
Craig McClanahan wrote: On 12/22/05, Laurie Harper [EMAIL PROTECTED] wrote: I think I've found an easier way... It looks like both our needs can be met by installing a custom ViewHandler that just delegates all methods to its parent, but which changes the viewId passed into createView before

RE: [OT] customizing JSF view management (was [shale][struts-faces] structured URLs with JSF (reprised))

2005-12-22 Thread David G. Friedman
I've also been thinking about the ViewHandler approach for a day or two but haven't tried anything with that yet. Your code is much simpler than what I'd been daydreaming/pondering in between other tasks today. Regards, David -Original Message- From: news [mailto:[EMAIL PROTECTED]