Re: validation - form set

2006-09-18 Thread Raja Nagendra Kumar
As per the dtd, global attributes should come first and formset later.. Move the global tags before formset and this should fix it. Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com - Original Message - From: "Tom Jerry" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: T

validation - form set

2006-09-18 Thread Tom Jerry
why do I get this error ? SEVERE: Parse Error at line 87 column 19: The content of element type "form-validation" must match "(global*,formset*)". org.xml.sax.SAXParseException: The content of element type "form-validation" must match "(global*,formset*)".

Re: Web Application Security -- Help needed

2006-09-18 Thread Raja Nagendra Kumar
Hi, You need to define a secruity constaint similar to the following in web application. Once this done, container takes care of the two issues transperantly. Regards, Raja Nagendra Kumar, C.T.O, www.tejasoft.com 10 4096 HTMLManger and Manager command /jmxproxy/*

Re: Dynamically Generated html:Text

2006-09-18 Thread Aftab Vhora
Hi, Somehow I was able to generate text boxes dynamically here is wht i did ==struts-config.xml=== type="org.apache.struts.action.DynaActionForm" size="4"> scope="request"> Action Form myMapForm.java pub

Re: Dynamically Generated html:Text

2006-09-18 Thread Puneet Lakhina
On 9/18/06, Aftab Vhora <[EMAIL PROTECTED]> wrote: Hi, I m dynamically generating the html:text , i have made correct entry in the struts config.xml and also implemented the Action Form and Action class. But I m getting below error, request you to kindly provide me the solution. ===ER

Re: Web Application Security -- Help needed

2006-09-18 Thread paz . periasamy
Go for standard Web Security [Form based Authentication] provided by Web Containers. This solution is free. Else, you can use Access Management Solutions by various vendors: SiteMinder, Java Enterprise System Access Manager, IBM Tivoli Access Manager (TAM). Choose a product appropriate to your

Web Application Security -- Help needed

2006-09-18 Thread SrinivasaReddy
HI All.., I am developing the Application in Struts+Hibernate, it is an Web Application.I need to apply the security for this applicaiton like --> If Session Timeout over that should redirect to Login page --> After login if we copy the url and open it in new browser, that should redirect to log

Two drop downs, and I need that the contents of the second dependent on the value selected in the first!!!

2006-09-18 Thread yamilka vallejo ramos
Hii everyone, I have two drop downs in my jsp page, and I need to the contents of the second dependent on the value selected in the first. To handle this, I need for the first combo box to do a submit when it changes, so that I have a chance to update the second. But I don't know in which part o

Re: Validation framework problem?

2006-09-18 Thread Laurie Harper
Mallik wrote: Hi friends i have stuckup in validation framework because my form will get fields dynamically on user request and i cannot predect how my fields it will have when posting the form i am creating Dynamic form fields using javascript like txt = document.createElement('input'); tx

Re: Struts 1.0 redirect problem!

2006-09-18 Thread Michael Jouravlev
Do you see the action with path "/GroupRulesManager/Global/returnToPrev"? Me neither. I see one with the path "/GroupRulesManager/returnToPrev" instead. I have no idea why it worked before. On 9/18/06, Swaminathan Subramanian <[EMAIL PROTECTED]> wrote: Hello! I am working on upgrading a Struts

Struts 1.0 redirect problem!

2006-09-18 Thread Swaminathan Subramanian
Hello! I am working on upgrading a Struts application (running on Linux with Resin 2.1) to use Resin 3.0. One of the modules simulates a wizard in which there is an index.jsp, then a data entry jsp and then on confirmation, the user gets redirected to the index.jsp. This was working with Resin 2.1.

RE: Websphere mapping problem

2006-09-18 Thread Hehl, Thomas
That's actually my question. I am simply accessing /ejuror. The welcome file points to index.jsp which has a redirect to "start". This feeds to struts and should get turned into /start.do which should resolve to login.jsp. When I get back "/do/start" in my browser. i take it as an indication that

RE: Websphere mapping problem

2006-09-18 Thread David Friedman
First, if you are invoking an action it looks for the mapping. The mapping is for anything ending in .do (*.do to be exact in the mapping). That means if your url is "/start.do" it tries to find the action-mapping with the name "/start" and invokes it. The global-forward section's "forwards" are

RE: Websphere mapping problem

2006-09-18 Thread Hehl, Thomas
Doesn't this: Map the start name to start.do? The path is simply turned over to struts to resolve "start" and so it should resolve to start.do, right? -Original Message- From: David Friedman [mailto:[EMAIL

RE: Websphere mapping problem

2006-09-18 Thread David Friedman
Your error suggests your are using the wrong url. The error lists "/do/start" but your mapped your servlet to "*.do" so it expects the path "/start.do" What path are you trying to reach your webapp on for each platform? -David -Original Message- From: Hehl, Thomas [mailto:[EMAIL PROTECT

Re: Dynamically Generated html:Text

2006-09-18 Thread Monkeyden
It's not finding the ActionForm. It looks like you need a slash before "process" in the form tag, provided that you indeed have an action mapping with path "/process" in your Struts config file. On 9/18/06, Aftab Vhora <[EMAIL PROTECTED]> wrote: Hi, I m dynamically generating the html:text ,

Websphere mapping problem

2006-09-18 Thread Hehl, Thomas
1) I'm a newbie on struts, but I just got hired to be the expert on my project.:) 2) Everything I'm about to say works under tomcat perfectly. OK, so the problem is that when I deploy my app and access it, I get the following error: Error 404: SRVE0190E: File not found: /do/start Here's the in

[ANNOUNCE] Struts v1.3.5 (General Availability)

2006-09-18 Thread Wendy Smoak
The Apache Struts team is pleased to announce that Struts 1.3.5 has been promoted to General Availability. Struts 1.3.5 is available in a full distribution, or as separate library, source, example and documentation distributions. http://struts.apache.org/download.cgi#struts135 It is also av

RE: R: Dynamically Generated html:Text

2006-09-18 Thread Lance
Try -Original Message- From: Marcello Savino [mailto:[EMAIL PROTECTED] Sent: 18 September 2006 13:29 To: Struts Users Mailing List Subject: R: R: Dynamically Generated html:Text Something like that: public class myMapForm extends ActionForm { public void setTxt(int index, Object

R: R: Dynamically Generated html:Text

2006-09-18 Thread Marcello Savino
Something like that: public class myMapForm extends ActionForm { public void setTxt(int index, Object value) { a[i]=value; } public String getTxt() { return (String)a[i]; } } JSP file(test.jsp)= Google Client

RE: validation

2006-09-18 Thread Givler, Eric
There's an example of doing this inside the Struts Live Sample Chapters (p 144). You can register on TheServerSide, and download it here: http://www.theserverside.com/tt/books/sourcebeat/JakartaStrutsLive/index.tss The section is titled: Extending Validate and Custom Validation in the Validate()

RE: validation

2006-09-18 Thread Strachan, Paul
I think just make sure any existing messages object is not replaced e.g. ActionMessages errors = new ActionMessages(); errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("my.error.key")); saveErrors(request, errors); ... // then later errors = form.validate(mapping, request); // retur

Re: calling method of a bean from JSP

2006-09-18 Thread Yujun Liang
I only used String as key. public Object getStringMapped(String key) { return map.get(key); } public void setStringMapped(String key, Object value) { map.put(key, value); } Regards On 9/18/06, Lixin Chu <[EMAIL PROTECTED]> wrote: On 9/17/06, Yujun Liang <[EMAIL PR

Re: Accessing ApplicationResources in Action class (AFTER changing locale)

2006-09-18 Thread Ted Husted
What is the idiom for obtaining the message from other than the default (English bundle). If I change the locale to "es", the tags work fine, but I can't seem to access it from the Actoin. MessageResources resources = getResources(request,getLocale(request).toString()); Returns null for

Hot deployable actions

2006-09-18 Thread Lance
Hi, I've written a utility that uses a proxy to re-load a class if the .class file has a later modified date than the last loaded date. I'd like to plug this into struts so that my action classes can be hot-deployed. I'm wanting some guidance about what classes I should interface / extend and wher

Re: R: Dynamically Generated html:Text

2006-09-18 Thread Aftab Vhora
Hi Savino, Thanks for the reply. Could u please provide me an example my test.jsp using indexed properties. Thanks & Regards, Aftab Vhora Marcello Savino wrote: 1) You have some kind of getter and setter for txt property not for txt1, txt2, txt3 property You'd better look for indexe

Re: validation

2006-09-18 Thread Tom Jerry
Thank you so much. It worked. btw, what did u mean "be careful to perserve any messages" ? On 9/18/06, Ted Husted <[EMAIL PROTECTED]> wrote: Yes, but you have to call the super class's validate to fire the validation framework, and be careful to perserve any messages. -- HTH, Ted. * http://www

R: Dynamically Generated html:Text

2006-09-18 Thread Marcello Savino
1) You have some kind of getter and setter for txt property not for txt1, txt2, txt3 property You'd better look for indexed properties -Messaggio originale- Da: Aftab Vhora [mailto:[EMAIL PROTECTED] Inviato: lunedì 18 settembre 2006 12.06 A: Struts Users Mailing List Oggetto: Dynamic

Dynamically Generated html:Text

2006-09-18 Thread Aftab Vhora
Hi, I m dynamically generating the html:text , i have made correct entry in the struts config.xml and also implemented the Action Form and Action class. But I m getting below error, request you to kindly provide me the solution. ===ERROR javax.servlet.jsp.JspException: N

Re: validation

2006-09-18 Thread Ted Husted
Yes, but you have to call the super class's validate to fire the validation framework, and be careful to perserve any messages. -- HTH, Ted. * http://www.husted.com/struts/ On 9/18/06, Tom Jerry <[EMAIL PROTECTED]> wrote: is it NOT possible to use both validation.xml and ActionErrors validate (

validation

2006-09-18 Thread Tom Jerry
is it NOT possible to use both validation.xml and ActionErrors validate ( ) ?? For eg: consider Login Form. 1) I used validation.xml to make sure that the username / password fields are not empty. 2) I used validate ( ) to validate the values entered in the form fields If I use either of th

Re: R: How to OR condition in JSP using Struts

2006-09-18 Thread Balwinder
Marcello Savino wrote: Try something like this Hih, marcello -Messaggio originale- Da: Hanmay Udgiri [mailto:[EMAIL PROTECTED] Inviato: domenica 17 settembre 2006 21.21 A: Struts Users Mailing List Oggetto: How to OR condition in JSP using Struts Hi I want to check an OR conditio

Struts @ ApacheCon US 2006

2006-09-18 Thread Ted Husted
Three Struts related events will be hosted atApacheCon US 2006 * Migrating to Struts 2 - Tutorial with Ted Husted, Monday, October 9 at 1:30pm in Room 3 (pre-registration required). * Struts 2.0 - Session with

R: Display only specific keys on a page

2006-09-18 Thread Marcello Savino
1) populate the collection, only with values you want display OR 2) in jsp use logic tags Hih, Marcello -Messaggio originale- Da: Vaylee Mckenzie-Daniels (VA) [mailto:[EMAIL PROTECTED] Inviato: lunedì 18 settembre 2006 8.12 A: user@struts.apache.org Oggetto: Display only specific keys on

R: How to OR condition in JSP using Struts

2006-09-18 Thread Marcello Savino
Try something like this Hih, marcello -Messaggio originale- Da: Hanmay Udgiri [mailto:[EMAIL PROTECTED] Inviato: domenica 17 settembre 2006 21.21 A: Struts Users Mailing List Oggetto: How to OR condition in JSP using Struts Hi I want to check an OR condition in struts using logic tag