Re: Token is wrapped by div/div

2006-09-05 Thread David Grundberg
Antonio Petrelli wrote: MC Moisei ha scritto: When I use html:form with tokens the hidden token is wrapped by div. Is there a reason for that ? It messes up my layout and seems that Firefox is most affected by the div... form name=editForm method=post action=edit.do divinput type=hidden

Validator FRamework

2006-09-05 Thread sheetal
Hi All, I had problem.. I am trying to implement client side validation using Validator FRamework. I have added validator-rules.xml, and validation.xml, in my web -inf file. And made following entry in validation.xml formset form name=runCommandForm field property=commandId

How to avoid the same user logging several times at the same time?

2006-09-05 Thread Pedro Del Gallego
Hi, I like to avoid to users can run the application in a moment. A user can only have one application running in a moment. Now i manage the session using jsessionid and expire session. session-config session-timeout10/session-timeout /session-config There are a better form to avoid these

validation framework problem?

2006-09-05 Thread Mallik
HI Friends i am using validation framework with struts at fontend but the validation is not working properly first-time validation is taking place at server side ( displaying errors on window) second-time onwards it is taking place at client side (getting alert) why these all? this is my code:

Re: validation framework problem?

2006-09-05 Thread Jorge Martín Cuervo
Hi i used validator and i got problems with validWhen, i wrote validWhen with caps and until i change to validwhen it didn't work properly. Please send us the struts-config.xml or the action you use, maybe the problem is there. El mar, 05 de 09 de 2006 a las 13:05, Mallik escribió: HI

Re: validation framework problem?

2006-09-05 Thread Mallik
Hi friends -- this is my Action Login.java package com.pack1; import org.apache.struts.action.*; import javax.servlet.http.*; public class Login extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest

Security for the Struts web application

2006-09-05 Thread SrinivasaReddy
HI All.., I am developing an web application in Struts. I want to give the security for the application like -- if the session present(user is logged in) then only requested pages should display otherwise redirect to login page. In this application all pages are secured. Anyone help me..

RE: validation framework problem?

2006-09-05 Thread RoseIndia.net Help
HI, Have a look at http://www.roseindia.net/struts/struts_validator_framework.shtml In this tutorial you will learn how to use Struts Validator Framework to validate the user inputs on the client browser. Regards Deepak Kumar http://www.roseindia.net -Original Message- From: Mallik

Re: Token is wrapped by div/div

2006-09-05 Thread MC Moisei
That implies I cannot have divs without class or id... David Grundberg wrote: Antonio Petrelli wrote: MC Moisei ha scritto: When I use html:form with tokens the hidden token is wrapped by div. Is there a reason for that ? It messes up my layout and seems that Firefox is most affected by

Re: Token is wrapped by div/div

2006-09-05 Thread David Grundberg
MC Moisei wrote: That implies I cannot have divs without class or id... David Grundberg wrote: Try to specify the stylesheet for this specific tag to display:none; It should remedy the problem. Well, I suppose you'll have to use some tricks to make it work. div class=hidedivs

Re: Validator FRamework

2006-09-05 Thread Jorge Martín Cuervo
ups, sorry i thought you were using dinaform sorry El mar, 05 de 09 de 2006 a las 13:13, Jorge Martín Cuervo escribió: hi why you use com.hns.nme.frontend.apps.cmdexecution.form.SelectCommandForm instead java.lang.String in form-bean type? El mar, 05 de 09 de 2006 a las 10:48, sheetal

tiles with struts 1.2.9

2006-09-05 Thread Darren Hall
Quick question, I'm using struts 1.2.9 and I'm attempting to configure tiles. In some online documentation files I've found, it outlines how tiles.jar should be included with my struts deployment, however I don't see tiles.jar anywhere in my struts related files. Are the tiles objects

RE: tiles with struts 1.2.9

2006-09-05 Thread Darren Hall
Ignore that last message. I see the tiles package in the 1.2.9 API. The tld file still needs to be included, though, I take it - and I need a tiles-config.xml file. Is there anything else I'm missing to get tiles running on 1.2.9? Thanks, Darren -Original Message- From:

Re: tiles with struts 1.2.9

2006-09-05 Thread Monkeyden
Add an init-param to the ActionServlet Add the plug-in the struts-config.xml Add the taglib directive to the JSP pages using tiles. http://struts.apache.org/1.x/struts-tiles/installation.html On 9/5/06, Darren Hall [EMAIL PROTECTED] wrote: Ignore that last message. I see the tiles package in

Re: Security for the Struts web application

2006-09-05 Thread Monkeyden
You could override the processPreprocess or processRoles method of RequestProcessor. If you only need to check for a session, more likely the former. If you have more fine-grained security (like role-based screens) then you could do it in the latter. On 9/5/06, SrinivasaReddy [EMAIL

Re: Validator FRamework

2006-09-05 Thread Laurie Harper
sheetal wrote: Hi All, I had problem.. I am trying to implement client side validation using Validator FRamework. I have added validator-rules.xml, and validation.xml, in my web -inf file. And made following entry in validation.xml formset form name=runCommandForm field

Re: How to avoid the same user logging several times at the same time?

2006-09-05 Thread Monkeyden
Data Structure - Initialize a static map somewhere (perhaps the Servlet). Verification - For every login, check the map to see if the supplied credentials exist. Clean up - Implement HttpSessionBindingListener to remove the credentials from the map when the Session expires. On 9/5/06, Pedro Del

Re: validation framework problem?

2006-09-05 Thread Laurie Harper
Everything looks OK so far, based on a quick scan through. What does the rest of your login.jsp look like? In particular, what does your html:form tag look like and where is the html:javascript tag? You specified staticJavascript=false, so where are you importing the static Javascript from?

Re: tiles with struts 1.2.9

2006-09-05 Thread Wendy Smoak
On 9/5/06, Monkeyden [EMAIL PROTECTED] wrote: http://struts.apache.org/1.x/struts-tiles/installation.html Now I see the reference to 'tiles.jar'. That documentation is for Struts 1.3, in which we've split the distribution into several jar files: struts-core, struts-tiles, struts-el, etc.

How to Forward Request Parmeters in Struts

2006-09-05 Thread Help My PC!
Hi, In struts, I have an action Act1 that forwards to a display page Page1. On that page there is a submit button whose action act2 forwards to display page Page2. I need to modify Page1 in such a way that I add an additional submit button whose action Act1A forwards to display page Page1A. On

RE: Security for the Struts web application

2006-09-05 Thread David Friedman
You have many options: 1. The filter route like http://securityfilter.sourceforge.net. 2. As suggested override how the process works. In older versions of Struts you can do as suggested and override one of the process methods (I also recommend processRoles) while in some (not sure which)

Re: Security for the Struts web application

2006-09-05 Thread Monkeyden
I'm not crazy about #3 mainly because it's more the obligation of the front controller and not the task controllers. There is no way to enforce the call to super at the task level. On 9/5/06, David Friedman [EMAIL PROTECTED] wrote: You have many options: 1. The filter route like

displaytag/ struts layout tag?

2006-09-05 Thread fea jabi
which one is preferable? When I posted here for pagination/sorting an year ago, I was pointed towards displaytag. I see that struts layout tag does these too. which one is preffered to use? Thanks. _ Get the new Windows Live

RE: displaytag/ struts layout tag?

2006-09-05 Thread David Friedman
Personally, I would suggest Displaytag because you could easily use it with Struts 2.0 when it comes out and not have to worry about how long it might take for Struts-Layout to update their code base. I suppose that would only matter if you are considering eventually upgrading to Struts 2.0

(Rename) How Do I Forward Request Parameters in Struts?

2006-09-05 Thread Help My PC!
Hi, In struts, I have an action Act1 that forwards to a display page Page1. On that page there is a submit button whose action act2 forwards to display page Page2. I need to modify Page1 in such a way that I add an additional submit button whose action Act1A forwards to display page Page1A.

Re: (Rename) How Do I Forward Request Parameters in Struts?

2006-09-05 Thread Michael Jouravlev
On 9/5/06, Help My PC! [EMAIL PROTECTED] wrote: Hi, In struts, I have an action Act1 that forwards to a display page Page1. On that page there is a submit button whose action act2 forwards to display page Page2. I need to modify Page1 in such a way that I add an additional submit button whose

What is action's parameter usage

2006-09-05 Thread Fei LI
Hi, Can anybody help me to understand action's parameter usage. Can you give me a simple example like: action parameter=reference to who and for what? ... / Thanks Fei Li MDA/GSI St Hubert Phone: 450 462 6970 Fax: 450 462 6998 email: [EMAIL PROTECTED]

Re: What is action's parameter usage

2006-09-05 Thread Frank W. Zammetti
http://struts.apache.org/1.x/struts-extras/apidocs/org/apache/struts/actions/DispatchAction.html Fei LI wrote: Hi, Can anybody help me to understand action's parameter usage. Can you give me a simple example like: action parameter=reference to who and for what? ... / Thanks Fei Li MDA/GSI

RE: What is action's parameter usage

2006-09-05 Thread David Friedman
Or to put it simply: The parameter field is for your individual use. It allows you to put information in the action config which you can retrieve in your action to use as you see fit. Two good examples are DispatchAction and ForwardAction. DispatchAction uses it to determine which method to

Re: What is action's parameter usage

2006-09-05 Thread Frank W. Zammetti
Thanks David, I frankly forgot it was used for anything other than DispatchAction :) Frank David Friedman wrote: Or to put it simply: The parameter field is for your individual use. It allows you to put information in the action config which you can retrieve in your action to use as you see

Re: What is action's parameter usage

2006-09-05 Thread Frank W. Zammetti
I definitely agree... I remember reading it at some point last year (for what I don't remember) and learning all sorts of neat little things. Definitely a good read for any new developers. Frank David Friedman wrote: Frank, I had the same question when I was learning Struts. I had to read

Re: Mapping between a request parameter name and a Struts form property name

2006-09-05 Thread David Durham
David Friedman wrote: You jogged my memory and I have a solution from the Appendix of Struts In Action. Version 1.1 and onward (possibly even in 1.0), struts ActionMappings have had two attributes: prefix and suffix. The are from the ActionConfig class but carry over to the ActionMapping class

Re: Validator FRamework

2006-09-05 Thread sheetal
Laurie Harper wrote: sheetal wrote: Hi All, I had problem.. I am trying to implement client side validation using Validator FRamework. I have added validator-rules.xml, and validation.xml, in my web -inf file. And made following entry in validation.xml formset form