Using ValidatorFramework for different validation scenarios of same functioanlity/form.

2006-09-13 Thread Anil Kumar T
Hi Group, I need a help on general issue which every body would have solved. Generally we'll have four operations like Add, Update, Query and Remove. I believe we can use DispatchAction to handle all these operation in a single action. So for the validation part we are planning to use valida

RE: Validation framework for Dynamically added HTML elements?

2006-09-13 Thread Patil, Sheetal
U can create array and create field as per reqiuirment,but this has limit and here problem is for "arrayindexoutofboundexception" after limit exceeds. Elsewise u can use ajax, put ur form in session and send requeset to an action which will increase the size of array and again put into the session.

Validation framework for Dynamically added HTML elements?

2006-09-13 Thread Mallik
Hi Friends i have one form where user enter his family details for this i create on row of fields (like name,relationtype,occupation) if user want to add one more relation, he click on addmore button then i provied one more row and user need more, click on addmore and i create another row this w

report generation

2006-09-13 Thread Gomathi
hai, how to generate report whenever click one button. this report has no frame and no button

Re: Submitting forms with javascript in struts [*]

2006-09-13 Thread Andreas . Hartmann
Hello! Unfortunately the last posted solution didn't work either. That's why I'm using another way now to get the form submitted via href and javascript. The javascript function calls the existing submit-button and does a click: document.myform.target="mytarget"; document.myform.myproperty.value=

RE: OT(Open pdf in a frame on a web page)

2006-09-13 Thread Meenakshi Singh
Hi, Thanks a lot for your help. I have been able to do this much now. I have used an iframe & kept it in a jsp which also shows a button for xls output for the same content. However, my drop down menus go behind this frame. I am not able to get a way to unhide the drop down menu from this frame.

DownloadAction and concurrent threads

2006-09-13 Thread Oliver Meyn
Hi all, My app needs to allow downloads of relatively large files (10MB). Because Struts can/will reuse Actions for different threads, I'm worried that when multiple requests attempt to download these big files that a single "BigFileDownloadAction" will block until a download is complete ther

Re: RE: [Struts 2] link not rending from iterator

2006-09-13 Thread Garner Shawn
Also I just saw that the s:a tag doesn't support the target attribute. I want my link to open in a new window. Shawn On 9/13/06, Garner Shawn <[EMAIL PROTECTED]> wrote: Doesn't the a tag work via XMLHttpRequest instead of normal HttpRequest? I did consult the tag reference before posting. I ha

RE: RE: [Struts 2] link not rending from iterator

2006-09-13 Thread Garner Shawn
Doesn't the a tag work via XMLHttpRequest instead of normal HttpRequest? I did consult the tag reference before posting. I have it bookmarked. I'm not sure about the differences but I think I'd like to stay with HttpRequest if I can. Shawn -- Forwarded message -- From: "David F

Re: calling method of a bean from JSP

2006-09-13 Thread Lixin Chu
I thought this is for getting the value of a property ? and how to pass a parameter to the method ? I think I have tried that but does not work.

Re: [Struts 2] link not rending from iterator

2006-09-13 Thread Ted Husted
On 9/13/06, Garner Shawn <[EMAIL PROTECTED]> wrote: If there is a "getUrl" method on the "downloadsList" object, then try Click to Download If there is not a getUrl method, then it's not clear from where the value is derived. Do I need to assign it to

RE: tag library

2006-09-13 Thread David Friedman
I see you are using the BETA 1.3.5 version. Since I haven't tried it (I'm on the stable 1.2.9 official current release) so I don't know it's quirks. However, that being said I see you are making a few key mistakes: 1. You are using a 1.3 release but specifying the wrong dtd. This might cause pr

Re: tag library

2006-09-13 Thread David Fonseca Sánchez
The error apears when I access to jsp page where I have the form. In WEB-INF\lib I have the package app (RegisterForm.class and RegisterAction.class), servlet-2_3-fcs-classfiles.zip, struts-taglib-1.3.5.jar and struts-core-1.3.5.jar

RE: Adding another form fields to validator.xml problem

2006-09-13 Thread David Friedman
Are you by any chance using Tomcat? If so try clearing the "work" directory for that webapp in case the compiled object hasn't been updated when your webapp restarts. Regards, David -Original Message- From: Mallik [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 2:37 AM To: us

RE: tag library

2006-09-13 Thread David Friedman
Was the below error from setting your html:form action to "register.do" or to "/register" which is listed as your struts-config.xml action "path" settting? Regards, David -Original Message- From: David Fonseca Sánchez [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 1:22 PM T

Re: FormFile arrays

2006-09-13 Thread Jeremiah Johnson
See the documentation on using indexed properties [1] for more details. L. [1] http://struts.apache.org/1.2.x/faqs/indexedprops.html This seems like it should work. I created two accessors to the form that had an index parameter. Struts could not locate the getter. I ended up creating a cl

Re: tag library

2006-09-13 Thread David Fonseca Sánchez
The struts-config.html is http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";> and the error says: excepción org.apache

RE: [Struts 2] link not rending from iterator

2006-09-13 Thread David Friedman
Wouldn't you be better off doing something like this rather than mix an s:url inside an href tag? From: http://struts.apache.org/2.x/tagreference.html#a Regards, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

RE: tag library

2006-09-13 Thread David Friedman
Did you try making the action "register.do" match an action in your mappings? Did your struts-config.xml list it as "register.do" or perhaps like "/register" ? Regards, David -Original Message- From: David Fonseca Sánchez [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:57

[OT][ANN] REMINDER: JAVAWUG BOF 22 / Sun London / 20 Sept 2006 @ 18:30 / featuring Jason van Zyl, Maven 2.0

2006-09-13 Thread Peter . Pilgrim
Hi ``JAVAWUG'' (The Java Web User Group) is holding the twenty second Birds-of-Feather 22 at the Sun's London Office on Wednesday, 20th September 2006 from 18:30 onwards. For more information http://www.jroller.com/page/javawug?entry=announcement_javabof_xxii_jaso n_van The confirmed speake

Re: Trouble with titleKey attribute for Frame and Link elements

2006-09-13 Thread Antonio Petrelli
David Cagle ha scritto: I was able to find the "org.apache.struts.action.Action.setLocale(HttpServletRequest arg0, Locale arg1)" method and it seems to do the trick. Before I just had "" where "${helpSession.locale}" was the correct locale. Most of the labels were taken care of with that but

Re: Struts Modules: automatic validation using few resource bundles

2006-09-13 Thread Niall Pemberton
On 9/13/06, Jacek Konopelski <[EMAIL PROTECTED]> wrote: Hi All - it's my first mail here but don't be scared ;) Recently I have been doing My best to divide My web application into modules - so My boss could sell main part without addons (modules). I successed in everything except validation...

Re: tag library

2006-09-13 Thread David Fonseca Sánchez
Hello Thanks, I'm using struts-html.tld, but when I run the application in Tomcat, an error appear: org.apache.jasper.JasperException: Exception in JSP: /register.jsp:2 1: <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> 2: 3: UserName: 4: enter pa

RE: Problems with validator framework

2006-09-13 Thread Strachan, Paul
what I would do is: 1. keep form properties as String (and consider using DynaValidatorForm) 2. use the "required,float" or "required,int" validation 3. use BeanUtils.populate method to map the form onto a typed object (property names must match) From: Heidy Guti

Problems with validator framework

2006-09-13 Thread Heidy Gutiérrez Guzmán
Hi I need to validate a form with fields wich data type is "int" and "float" The validation that i use is "required", but that doesn't work. The fields are initilialized with default values (o for int types) and (0.0for float types). Whit string data types, validator works fine. If somebody w

[Struts 2] link not rending from iterator

2006-09-13 Thread Garner Shawn

RE: Trouble with titleKey attribute for Frame and Link elements

2006-09-13 Thread David Cagle
Thanks Antonio for the question! I think I figured the problem out last night. I was able to find the "org.apache.struts.action.Action.setLocale(HttpServletRequest arg0, Locale arg1)" method and it seems to do the trick. Before I just had "" where "${helpSession.locale}" was the correct local

Re: calling method of a bean from JSP

2006-09-13 Thread Monkeyden
or On 9/12/06, Lixin Chu <[EMAIL PROTECTED]> wrote: Hi, would like to check if there is existing tag available to allow method invocation from JSP directly, something similar to this : "Call JavaBean methods from JSP 2.0 pages " http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-callt

Struts Modules: automatic validation using few resource bundles

2006-09-13 Thread Jacek Konopelski
Hi All - it's my first mail here but don't be scared ;) Recently I have been doing My best to divide My web application into modules - so My boss could sell main part without addons (modules). I successed in everything except validation... What I have: 0. I'm using: Struts 1.2.2 1.Two struts

Re: OT(Open pdf in a frame on a web page)

2006-09-13 Thread Thomas Joseph
Hi, You should do something like this, For the link that will generate the PDF Generate Report For the Action/Servlet that generates set the content disposotion to "inline" to get an inline PDF (in the browser itself and not as attachment) response.setHeader("Content-Disposition", "in

Re: Problem in setting the value of hidden field in JSP

2006-09-13 Thread Pankaj Gupta
But then how do I do it? I mean how can I assign a hidden field a value of another attribute. Richard Yee <[EMAIL PROTECTED]> 09/13/2006 04:06 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: Problem in setting the value of hidden field in JSP

Re: Problem in setting the value of hidden field in JSP

2006-09-13 Thread Richard Yee
Pankaj, You shouldn't be setting both the value and the property attributes of html:hidden -Richard Pankaj Gupta wrote: Hi, In a JSP, I am iterating over a collection and want to set a hidden field with the value of one of the properties of the objects contained in hashtable. I am using the

Problem in setting the value of hidden field in JSP

2006-09-13 Thread Pankaj Gupta
Hi, In a JSP, I am iterating over a collection and want to set a hidden field with the value of one of the properties of the objects contained in hashtable. I am using the following code for that. Can somebody suggest what is going wrong. regards, Pankaj

Re: how to dynamically internationalize login page

2006-09-13 Thread Manfred Wolff
leo. Please don't do so. In Struts you can do the language switching with the locale Action. For this you have to provide several resources in the java resourcebundle manner: - provide a file for your message-ressource e.g. resources.properties - provide a file for each language and name it re

Re: Trouble with titleKey attribute for Frame and Link elements

2006-09-13 Thread Antonio Petrelli
David Cagle ha scritto: Hey everyone! I'm having trouble with the 'titleKey' attribute resolving to the correct translated title when the locale of my web app is something other than English. I'm currently only using the 'titleKey' on a couple of and elements, but when I change the locale,

Re: OT(Open pdf in a frame on a web page)

2006-09-13 Thread Thomas Joseph
What is preventing you from doing so? Could you please explain more? Thanks and Regards, Thomas Joseph Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin, Kerala - 682015 | India www.kottsoftware.com ---

RE: FormFile arrays

2006-09-13 Thread Raghuveer
try nested tags for file object in jsp and array of formfile for getter and setters mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 6:23 AM To: Struts Users Mailing List Subject: Re: FormFile arrays David Grundberg wrote: > You are right about the jakarta commons fileupload and stru

how to implement tokens

2006-09-13 Thread Gomathi
hai, Thanks for give this idea. I implemented in my action class like this if(isTokenValid(request)) resetToken(request) --- --- saveToken(request).. but no effect on this gomes

RE: empty fields of an input form get default value after submitting

2006-09-13 Thread Anil Kumar T
Hi, Since 0 would be the default value for primitive int, you cant do any thing over there. But if you are using Integer object then youc an get null. In the formBean you would have instantiated the fields globally. Check that. Ex : String s = ""; or String s = new String("") ; If so then you go

empty fields of an input form get default value after submitting

2006-09-13 Thread Sandra Reichert
Hi, I have an input form in jsp. After submitting empty fields (user entered nothing in input field) are set by default with specific values depending on their data typ. So an empty Integer field is set to 0, an String field to "" an so on. But i want to have a null value for empty fields. Or in

OT(Open pdf in a frame on a web page)

2006-09-13 Thread Meenakshi Singh
Hi all, We are wanting to open a PDF file (using FDF datastream) in the same frame within our existing web page.Surely there MUST be a way to do this. Can anybody suggest a way out of this problem. Thanks & Regards, MS “The information contained in this electronic message and any attachments to

RE: insertion problem view

2006-09-13 Thread Srinivas_Biragoni
Just add forward.setRedirect(true) before u return the forward. "David Friedman" <[EMAIL PROTECTED]