RE: Dynamic bean in a result list

2003-11-12 Thread Sumit S.
You could use a DynaActionForm that contains a property of type ArrayList ... Something like... This arraylist can contain DynaBeans inside it and you can access these from your Struts based JSP Struts handles DynaActionForms & typical Act

RE: how to read request attribute

2003-11-12 Thread Manjunath Bhat
If the varName is an instance of a bean then you can try where username is member of the bean -Original Message- From: Garg Raman (SDinc) [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 5:02 PM To: Struts Users Mailing List Subject: how to read request attribute Hi, can a

fix itarate problem

2003-11-12 Thread hari_s
Hi everyone.. Is it possible to fix the row that iterate with logic:iterate , I already use length property but it's work when the data is more than value that we set. And my problem is , I only have 2 data and I want to display 6 row .. Thank you for the answer..

RE: CSS and Struts

2003-11-12 Thread Ipsita
Thanks a lot! - Ipsita On Thu, 13 Nov 2003 09:18:18 +0530, "Manjunath Bhat" <[EMAIL PROTECTED]> said: > > > > -Original Message- > From: Ipsita [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 13, 2003 9:16 AM > To: Struts Users Mailing List; Struts Users Mailing List > Subject:

RE: CSS and Struts

2003-11-12 Thread Manjunath Bhat
-Original Message- From: Ipsita [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 9:16 AM To: Struts Users Mailing List; Struts Users Mailing List Subject: CSS and Struts Hi, I have an application which I want to change to a struts application. All the jsps have css applied.

CSS and Struts

2003-11-12 Thread Ipsita
Hi, I have an application which I want to change to a struts application. All the jsps have css applied. How do I apply the same css if I use instead of . Where do I put the css? Thanks in advance -- http://www.fastmail.fm - A fast, anti-spam email service.

RE: Show validation error messages next to the corresponding inpu t fields

2003-11-12 Thread David Liles
Try this... : -Original Message- From: Kevin Wang [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 8:39 PM To: Struts Users Mailing List Subject: RE: Show validation error messages next to the corresponding inpu t fields Thanks Vishu, But m

RE: Show validation error messages next to the corresponding inpu t fields

2003-11-12 Thread Kevin Wang
Thanks Vishu, But my question is that how to put the error messages in the location next to their input fields. Something like this: User name: (input box for user name) First name: (input box for first name) *Error: Last name can't be empty. Last name:(input box for last name) *Erro

RE: Show validation error messages next to the corresponding inpu t fields

2003-11-12 Thread Ghanakota, Vishu
use the "errors" tag under html taglib. When you instantiate an ActionError and add it to ActionErrors, you can specify a key, which can be linked to an entry in ResourceBundle. "errors" tag will pick that up. you can also use html formatting around the entry in ResourceBundle, so it can go with re

Show validation error messages next to the corresponding input fields

2003-11-12 Thread Kevin Wang
Does anybody know how to do this? I know I can get ActionErrors which is an array of messages.. but is there a way I can put the messages in place with their input fields? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: PDF File Display in JSP-Struts

2003-11-12 Thread Craig R. McClanahan
Quoting Christian Bollmeyer <[EMAIL PROTECTED]>: > Am Mittwoch, 12. November 2003 21:31 schrieb Craig R. McClanahan: > > Quoting Larry Meadors <[EMAIL PROTECTED]>: > > > Why would you ever do this? This looks like a complete and total > > > kludge. > > > > > > If you are sending back binary data (

Re: chaining actions

2003-11-12 Thread Manish Singla
It's true. In case you have coarse grained ActionForm which is used by BOTH actions in that case reset() will be called twice as request will go from RequestProcessor both times. Theoretically, in case you have DIFFERENT ActionForms for BOTH actions in that case reset() will be called for re

How to Mask input fields?

2003-11-12 Thread Vicky
Hello Group, I am looking for code example to mask input fields in Java(using Swing) for Date, decimals and few other types. Any pointers/examples will be appreciated. Thanks, Vicky - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard

XML via POST as only entry point for web application

2003-11-12 Thread Jesse Clark
I've spent several days searching the archives and the web looking for information and haven't been able to find a clear solution for my problem. So, I am going to outline what it is I need to do, identify the problems and the possible solutions I have been able to come up with, and see if anyone e

OT: RE: Connect close the DB connection in Form Action

2003-11-12 Thread Yee, Richard K,,DMDCWEST
Eric, I'd suggest switching to MySQL or PostgresSQL databases. There are Type 4 drivers available for both. Is this a commercial site or just for development purposes? What application server are you using? -Richard -Original Message- From: Zhou, Qin (Eric) [mailto:[EMAIL PROTECTED] Sen

chaining actions

2003-11-12 Thread Yury Rabiankou
Hello everybody, I cannot understand the following passage from Ted Husted's Struts in Action (p.228): "If you forward from one Action to another Action... the ActionForm bean is reset, repopulated, and revalidated, and, if all goes well, passed to the second Action" How can the same ActionForm

RE: Need a RegExp mask for: all charactors except for "\", "/" and "?"

2003-11-12 Thread Kevin Wang
Thanks Dan. It's for an input field for user's name that can't have "/","\" or "?" in it. I use it in Strut's validation.xml So it should be [^\\/?]* then? Kevin

RE: Connect close the DB connection in Form Action

2003-11-12 Thread Zhou, Qin (Eric)
Richard I am not experienced with DB access. Which driver do you suggest? I am reading from ACCESS. Can you provide some sample code for initilizing the driver. Thanks Eric Zhou -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2

RE: Need a RegExp mask for: all charactors except for "\", "/" and "?"

2003-11-12 Thread Daniel Lipofsky
Do this [^\\/?] (one char) [^\\/?]* (zero or more chars) Also if in a java string don't forget to escape the backslashes again like "[^/?]*" - Dan > From: Saul Q Yuan [mailto:[EMAIL PROTECTED] > > Try this, > > ^[\\|\/|\?] > > or (^[\\|\/|\?])* for 0 or more matches > > From: Kevin W

Re: How to Turn off Struts logging?

2003-11-12 Thread atta-ur rehman
http://www.mail-archive.com/[EMAIL PROTECTED]/ - Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, November 12, 2003 1:59 PM Subject: RE: How to Turn off Struts logging? > Can someone point me to the archives? > > Thanks > >

DynaAction differences?

2003-11-12 Thread Nathan Maves
What is the difference between these three DynaActionForm DynaValidatorForm DynaValidatorActionForm I assume that the first does no validation. But I can not find any docs on how to use the second two. nathan - To unsubscribe,

RE: Need a RegExp mask for: all charactors except for "\", "/" and "?"

2003-11-12 Thread Saul Q Yuan
Try this, ^[\\|\/|\?] or (^[\\|\/|\?])* for 0 or more matches Saul -Original Message- From: Kevin Wang [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 4:54 PM To: Struts Users Mailing List Subject: Need a RegExp mask for: all charactors except for "\", "/" and "?"

Re: PDF File Display in JSP-Struts

2003-11-12 Thread Larry Meadors
>>> [EMAIL PROTECTED] 11/12/03 3:14 PM >>> Am Mittwoch, 12. November 2003 21:31 schrieb Craig R. McClanahan: > Quoting Larry Meadors <[EMAIL PROTECTED]>: > > Why would you ever do this? This looks like a complete and total > > kludge. > > > > If you are sending back binary data (application/pdf), j

Re: PDF File Display in JSP-Struts

2003-11-12 Thread Christian Bollmeyer
Am Mittwoch, 12. November 2003 21:31 schrieb Craig R. McClanahan: > Quoting Larry Meadors <[EMAIL PROTECTED]>: > > Why would you ever do this? This looks like a complete and total > > kludge. > > > > If you are sending back binary data (application/pdf), just do it > > from the action class using t

Re: Can't see my ActionForm in Action or any Context

2003-11-12 Thread Hubert Rabago
Peter: You sent it only to my email but I got a delivery failure when I replied to yours. I'm sending this to the mailing list so others might benefit from it, or may correct me if I'm wrong (though it works for me). You can do the following: 1. Create a new ActionForm in your Action 2. Populate

RE: How to Turn off Struts logging?

2003-11-12 Thread Gerald_Beattie
Can someone point me to the archives? Thanks "Yee, Richard K,,DMDCWEST" <[EMAIL PROTECTED]> 11/12/2003 04:46 PM Please respond to "Struts Users Mailing List" To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> cc: Subject:RE: How to Turn off Struts logg

Need a RegExp mask for: all charactors except for "\", "/" and "?"

2003-11-12 Thread Kevin Wang
Thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to Turn off Struts logging?

2003-11-12 Thread Yee, Richard K,,DMDCWEST
Set the debug parameter in the web.xml file to 0. Search the archives, this question has been asked many times already. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 1:44 PM To: Struts Users Mailing List Subject: How to Turn off S

RE: Validation using mask

2003-11-12 Thread Ramadoss Chinnakuzhandai
sorry Saul I tried that as well but again it does not accepting "." Any idea/suggestion would be appreciated. -Ram -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:20 PM To: 'Struts Users Mailing List' Subject: RE: Validation using mask

How to Turn off Struts logging?

2003-11-12 Thread Gerald_Beattie
Help make it stop. Can struts logging be turned off? If so how? Can it be integrated with Log4j so the logging level can be set by a properties file?

RE: Connect close the DB connection in Form Action

2003-11-12 Thread Yee, Richard K,,DMDCWEST
Eric, It is generally not recommended to use the JDBC-ODBC bridge driver. There are several bugs in the driver and it doesn't perform as well as a type 4 driver. What DB are you using? Also, you don't have to register the driver every time. Put the Class.forName call in a static initializer or some

Connect close the DB connection in Form Action

2003-11-12 Thread Zhou, Qin (Eric)
I have the following code in my Form file. The methods retrieve data from access DB to populated the two drop down boxes. But con.close() generates 'General error' exception? Any help is appreciated. /** * Return a list of week ending date * @return

RE: Validation using mask

2003-11-12 Thread Ramadoss Chinnakuzhandai
sure Saul...let me test it and update you :) -Ram -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:20 PM To: 'Struts Users Mailing List' Subject: RE: Validation using mask Try take out the "-" before "\.", ie. Use: ^[0-9a-zA-Z\.]*$

RE: PDF File Display in JSP-Struts

2003-11-12 Thread Craig R. McClanahan
Quoting Larry Meadors <[EMAIL PROTECTED]>: > Why would you ever do this? This looks like a complete and total kludge. > > If you are sending back binary data (application/pdf), just do it from the > action class using the response.getOutputStream() and return null from the > execute method. > >

RE: Validation using mask

2003-11-12 Thread Saul Q Yuan
Try take out the "-" before "\.", ie. Use: ^[0-9a-zA-Z\.]*$ Saul -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:09 PM To: Struts Users Mailing List Subject: RE: Validation using mask Any suggestions or ideas for the be

RE: PDF File Display in JSP-Struts

2003-11-12 Thread Larry Meadors
Why would you ever do this? This looks like a complete and total kludge. If you are sending back binary data (application/pdf), just do it from the action class using the response.getOutputStream() and return null from the execute method. Advantages: - you already have everything you need righ

RE: Validation using mask

2003-11-12 Thread Ramadoss Chinnakuzhandai
Any suggestions or ideas for the below mail would be greatly appreciated. Tnx in advance, -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Wednesday, November 12, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Validation using mask Sorry for posting my prev question again..

Re: File upload problem with Struts 1.1

2003-11-12 Thread Martin Cooper
This usually happens when you have your jars in the wrong place and your container also includes (a different version of) FileUpload. Make sure that the Commons FileUpload jar file, as well as the Struts jar file and other Commons jar files, are in your WEB-INF/lib directory, and not in a container

RE: Null DynaActionForm

2003-11-12 Thread Yee, Richard K,,DMDCWEST
Sumit, If your form parameter is null, it indicates that there is an error in your configuration of struts-config.xml. When things are configured correctly, form should never be null. -Richard -Original Message- From: Sumit S. [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003

RE: Null DynaActionForm

2003-11-12 Thread Matt Pease
Probably you aren't properly setting up the dynaActionForm in your struts-config.xml file. matt -Original Message- From: Sumit S. [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 12:55 PM To: [EMAIL PROTECTED] Subject: Null DynaActionForm Hi, How do I create a new instan

RE: PDF File Display in JSP-Struts

2003-11-12 Thread Jarrod M. Lugo
It may be an issue with using white space inside your jsp. I normally do something like this (using a custom fo to pdf bean)... (note: everything up to, and including, the is on one line) <%@ page contentType="application/pdf" %><%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>

RE: PDF File Display in JSP-Struts

2003-11-12 Thread Larry Meadors
Are you using the jsp writer, or the servlet output stream? JSP writer assumes char data and totally borks the pdf. SOS assumes binary data. Larry === Hi All, I want to display one PDF file in my websphere struts framework. when i do it without struts (only servlets ) it works but when i use

RE: Two actionForm in the same Action

2003-11-12 Thread Fedor Smirnoff
Hi, You can do something like this: HttpSession session = request.getSession(); RechForm rechForm =(RechForm)session.getAttribute("rechForm"); Hope it helps Fedor -Original Message- From: Zakaria khabot [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 12, 2002 6:39 AM To: struts-user

RE: PDF File Display in JSP-Struts

2003-11-12 Thread David Gagnon
It's not the Internet Explorer problem with pdf ? Check http://xml.apache.org/fop/servlets.html#ie Let me know ... I can give clue on how I solved it. /David -Message d'origine- De : Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] Envoyé : 10 novembre, 2003 07:55 À : Struts Users Mailing Li

Null DynaActionForm

2003-11-12 Thread Sumit S.
Hi, How do I create a new instance of a DynaActionForm when the form passed to my Action.execute() method is null ? public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,

Re: Dynamic Image from DB to JSP

2003-11-12 Thread Marc AMIR-TAHMASSEB
ok, Fortunatly i have no performance problem and theres no more than 30 images that are small (100x100 - 2Ko)... But i will probably do what you said... thanks, Marc David Friedman wrote: Marc, If you have performance problems, here is a suggestion: Keep an index in your application scope tha

Direct Call of some Actions within another Action ?

2003-11-12 Thread Gleichmann, Mario
Dear Community, is it possible to call one or more Actions within another Action (let's say a 'Composite-Action') ? I want to call a certain Method of a collection of Actions in a row (let's say i want to call update-methods within some DispatchActions and then do the rest of the work in the Comp

RE: Dynamic Image from DB to JSP

2003-11-12 Thread David Friedman
Marc, If you have performance problems, here is a suggestion: Keep an index in your application scope that has the totals (since load-time) of how many times each item has been displayed. Then, keep copies of the top 50 on-disk. That way, if the image is one of your top-50, you don't need the d

Validation using mask

2003-11-12 Thread Ramadoss Chinnakuzhandai
Sorry for posting my prev question again... In my form I'm validating a TextField "hostname" in order to accept only "^[0-9a-zA-Z-\.]*$" in its input value using mask pattern in validation.xml. maxlength 63

Re: Where is Struts 1.0.2 distribution???

2003-11-12 Thread Anthony Leonard
Thanks David - just found it. http://archive.apache.org/dist/jakarta/struts/old/release/v1.0.2/ Got spooked by all the legacy links pointing to the wrong places - and no help on the mailing lists. Maybe this'll help others find it... David Liles wrote: > > I believe on the jakarta struts site

Re: fmt:message, fmt:setLocale and struts

2003-11-12 Thread Kris Schneider
No idea about that. The JSTL algorithm is defined in Chapter 8 of the JSTL spec (1.0 & 1.1), so that's probably not changing in the near future. I haven't looked at commons-resources too deeply so I can't comment on whether that will help. The key concepts with JSTL seem to be an ordered list of pr

commons upload FileItem objects?

2003-11-12 Thread Matt Pease
Hi all - I'm putting together a webapp that'll do lots of file-uploading. The commons Fileupload package has a nifty little API that'll let you write an uploaded file directly. According to their docs, http://jakarta.apache.org/commons/fileupload/using.html, it'll actually move the file rathe

RE: Where is Struts 1.0.2 distribution???

2003-11-12 Thread David Liles
I believe on the jakarta struts site there is a link to archived downloads... try this: http://archive.apache.org/dist/jakarta/struts/ -Original Message- From: Anthony Leonard [mailto:[EMAIL PROTECTED] Sent: Wed 11/12/2003 8:58 AM To: [EMAIL PROTECTED]

Re: xdoclet strutsconfigxml thingy

2003-11-12 Thread harm
You can easily set the destination directory for your struts-config.xml. So you can have many different sub-apps... Regards, Harm de Laat Informatiefabriek The Netherlands Caoilte O'Connor <[EMAIL PROTECTED]> 11/12/2003 01:55 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTE

Re: Dynamic Image from DB to JSP

2003-11-12 Thread Marc AMIR-TAHMASSEB
Dear Hubert and David, thanks for your help. Finaly i did like this : in my jsp a create a image tag as : loadImage.do create first a Java Temporary File (File.createTempFile) containing the bytes of the image comming from the DB. Then it generates a "document" with the approp

Where is Struts 1.0.2 distribution???

2003-11-12 Thread Anthony Leonard
Maybe I'm missing something but I can't find Struts 1.0.2 binaries or source anywhere... Has it been de-supported? I've been working fine with Struts 1.0.1 all year. Now using Tiles, but have fallen over a bug which was fixed in Struts 1.0.2 according to the release notes (below), but all the down

Re: who want to join xmoon project ?

2003-11-12 Thread Stack Buffer
Hi, I just read your mail on the struts, I checked the link u provided, but I will still like to know more about the project, it sounds very appealling to be able to reduce development time and I would like to join ur project if possible. Edward Mario <[EMAIL PROTECTED]> wrote: It's an openso

RE: validation

2003-11-12 Thread MANCHIKALAP, KRISHNA (SBCSI)
sairam, If u r using struts 1.1 then u can find a zip file called "struts-example.zip" else download the struts 1.1 Unzip the file & u can find an example on validating ur form at "struts-example\WEB-INF\src\java\examples\validator" -- Kri$hn@ ---

Re: how to read request attribute

2003-11-12 Thread Stack Buffer
hi, you can try the following JSTL tags, which can be used with the Struts-el library if thats what ur looking for "Garg Raman (SDinc)" <[EMAIL PROTECTED]> wrote: Hi, can anyone tell me I want to show value of my request.setAttribute("varName",varName); in my jsp page created in strut

Two actionForm in the same Action

2003-11-12 Thread Zakaria khabot
Hi, How to call two ActionForm in the same Action. I have wrote : EnregisterForm enregForm = (EnregisterForm) form; and also RechForm rechForm = (RechForm) form; but I received an Exception. How to do. thanks. Zakaria KHABOT Ingénieur d'état Réseaux informa

Re: Hello World gone wrong

2003-11-12 Thread Adam Hardy
On 11/12/2003 02:50 AM Richard Morris wrote: Adam, The struts.jar is located in the /WEB-INF/lib folder. I know the struts.jar file is working because I can use the html tags (i.e. , , etc.) without error. I just don't know what the problem could be. I am sure it is something stupid but with suc

Re: Apply an Xslt to the struts-config.xml

2003-11-12 Thread Stephan Wiesner
Attached is a simple XSL file you can use. You might want to adapt it to display different Informations, though. Stephan Nick Heudecker wrote: Adrien, StrutsDoc, my project, does this. You can check it out at: http://struts.sf.net/strutsdoc Feel free to contact me with questions or comments.

RE: validation

2003-11-12 Thread Ramadoss Chinnakuzhandai
field[0] checkBox fie

Re: Apply an Xslt to the struts-config.xml

2003-11-12 Thread Nick Heudecker
Adrien, StrutsDoc, my project, does this. You can check it out at: http://struts.sf.net/strutsdoc Feel free to contact me with questions or comments. On Wed, Nov 12, 2003 at 02:41:22PM +0100, Adrien GEYMOND wrote: > Hello all, > > I am looking for a nice presentation of the struts-config.xml.

Re: fmt:message, fmt:setLocale and struts

2003-11-12 Thread Adam Hardy
Presumably the Jakarta Taglibs developers and the Struts people are going to centralize on the Commons-Resources package at some point in the future, in which case the divergence will disappear? On 11/11/2003 08:31 PM Kris Schneider wrote: The JSTL algorithm will only use the root resource (your

Apply an Xslt to the struts-config.xml

2003-11-12 Thread Adrien GEYMOND
Hello all, I am looking for a nice presentation of the struts-config.xml. I want to apply a Xslt file on the struts-config.xml in order to have a well displayed view of my struts-config. the result format should be HTML, SVG or Does somedy have already seen something like that ? Is there a t

who want to join xmoon project ?

2003-11-12 Thread Mario
It's an opensource project that speed up your development time. http://www.xmoon.it contact me.

AW: Problem with - tag

2003-11-12 Thread Peter Friesleben
Thanks for the hint Nimish. That`s how it is usually done. My problem is slightly different. I want to use another form than the one which is mapped to the action in the struts config. So if action A is mapped to form B in the struts config, I want my options tag to retrieve values from form C. Oth

Re: xdoclet strutsconfigxml thingy

2003-11-12 Thread Caoilte O'Connor
ok. i have something similar enough. But which bit in that specifies that you have a subapp, ie struts-config-XXX.xml instead of, struts-config.xml and do you put the subapp xml merge files in a sub dir of the root merge dir? or specify them as a separate merge dir in another webdoclet in

Re: xdoclet strutsconfigxml thingy

2003-11-12 Thread Mark Lowe
I had to use the destdir attribute On 12 Nov 2003, at 12:23, [EMAIL PROTECTED] wrote: Yes it is quitte easy: In build.xml uri="struts-bean"

Re: Utter Newbie Question

2003-11-12 Thread Arne Brutschy
Wednesday, November 12, 2003, 11:03:15 AM, you wrote: JH> Why stop a storing a Boolean in the session to determine "logged-inness"? JH> Why not just store the (validated) "User" object in the session and check for JH> it's presence? That way, if it's there, one can utilize the data in the User JH>

Re: xdoclet strutsconfigxml thingy

2003-11-12 Thread harm
Yes it is quitte easy: In build.xml

xdoclet strutsconfigxml thingy

2003-11-12 Thread Caoilte O'Connor
Does anyone who uses XDoclet know how to make it generate struts-config sub-app config files? I've been looking at it and can't work out whether it's covered. c - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

RE: Problem with - tag

2003-11-12 Thread Nimish Chourey , Tidel Park - Chennai
Probably .. The form tag has the action , which is linked to some different form . Ie say you have form tag like this And in struts config , the action is mapped to some form say form name B , then your html options tag should be like In case of bean write , it wont look up for the

Re: ActionError.

2003-11-12 Thread Ovidiu EFTIMIE
In your default application.properties file you have errors.detail = {0} so using this, you can have new ActionError("errors.detail","deepak"); And the message shown will be deepak Ovidiu - Original Message - From: "deepaksawdekar" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[

ActionError.

2003-11-12 Thread deepaksawdekar
Hi All, Please help me how to do this. I want to create a instance of ActionError, but i don't want to the messages to be taken from applicationresource.properties file. I have to give some other message which will be hard coded. sample code I want some thing like this, err = new ActionError(

Re: Re: validation

2003-11-12 Thread sumeet sharma
Hi , This link is useful for u http://jakarta.apache.org/struts/faqs/newbie.html#requiredif ...Regards, Sumeet On Wed, 12 Nov 2003 sairam manda wrote : > >Hello Sir, > >Thank you for the reply but Iam looking to use t he requiredIf >validator . > >reg

how to read request attribute

2003-11-12 Thread Garg Raman \(SDinc\)
Hi, can anyone tell me I want to show value of my request.setAttribute("varName",varName); in my jsp page created in struts, do we have any method to show the value wihtout using jsp tags <%=request.getAttr. %> I want to show it in "

Re: Dynamic bean in a result list

2003-11-12 Thread Ovidiu EFTIMIE
Ok, I've found the answer : Mapped properties http://jakarta.apache.org/struts/faqs/indexedprops.html - Original Message - From: "Ovidiu EFTIMIE" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, November 12, 2003 11:47 AM Subject: Dynamic bean in a

Re: File upload problem with Struts 1.1

2003-11-12 Thread Caoilte O'Connor
hi, are you using a struts nightly build? it appears that might require a different version of commons-upload (cvs probably). c On Wednesday 12 November 2003 11:20, Garg Raman \(SDinc\) wrote: > Hi Connor, > > Thanks for your reply. We have the > commons-upload.jar in the lib of our app

RE: MySql NoClassDefFoundError

2003-11-12 Thread Ajay Kalidindi
Hi Frank, I downloaded the legacy.jar and there is no problem now. Tomorrow night I am going to test the connectivity itself. Thanks Regards Ajay Kalidindi -Original Message- From: Otto, Frank [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 2:20 AM To: 'Struts Users Maili

Dynamic bean in a result list

2003-11-12 Thread Ovidiu EFTIMIE
Hi, I have a jsp page where I must diplay a list of results like this DOCUMENTS is an Array List which contains JavaBeans. The thing is that I want to use a dynamic JavaBean, so I could have an ArrayList of objects like th

AW: MySql NoClassDefFoundError

2003-11-12 Thread Otto, Frank
Hi, You need the struts-legacy.jar. Regards, Frank -Ursprüngliche Nachricht- Von: Ajay Kalidindi [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. November 2003 11:16 An: [EMAIL PROTECTED] Betreff: MySql NoClassDefFoundError Hi below are the 4 entries that I tried seperately and ever

MySql NoClassDefFoundError

2003-11-12 Thread Ajay Kalidindi
Hi below are the 4 entries that I tried seperately and every time I got : java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource What I am using? Redhat 9 Apache 2.0.48 Tomcat 4.1.29 mysql 3.23.58 Please help me thru this. Regards Ajay Kalidindi struts-config.xml segment

Re: File upload problem with Struts 1.1

2003-11-12 Thread Garg Raman \(SDinc\)
Hi Connor, Thanks for your reply. We have the commons-upload.jar in the lib of our appliction directory and as well the struts.jar. We also have set the Controller size to 2MB which is quite nice for any file. If you want to see the error coming itself we can pass on the URL for our develop

Re: XML importing :

2003-11-12 Thread Caoilte O'Connor
if you're using it on a small scale (or for unit testing like me) then dbunit (www.dbunit.org) is a great tool that integrates with ant very well. c On Tuesday 11 November 2003 13:54, [EMAIL PROTECTED] wrote: > Sorry for a unrelated question, but is there a easy way > of taking xml data and im

Re: ResourceBundle not available in ActionForm

2003-11-12 Thread Caroline Lauferon
I think you can't but i think the error appears on display, doesn't it? Caroline > Hi Caroline, > > thanks. But how can i specify what bundle to use in the ActionForm class? > > > if( ( null == this.accountname ) || ( 1 > this.accountname.length() ) ) > errors.add( "accountname", new Acti

Re: File upload problem with Struts 1.1

2003-11-12 Thread Caoilte O'Connor
have you got the commons-upload jar in your lib dir? you need that as well as the struts jars. Also check your controller (in struts-config) has something like this (though i think it's optional actually), c On Wednesday 12 November 2003 08:18, Raman Garg wrote: > Hi, > > We are gettin

Re: ResourceBundle not available in ActionForm

2003-11-12 Thread Dominique Kraus-Ahma
Hi Caroline, thanks. But how can i specify what bundle to use in the ActionForm class? if( ( null == this.accountname ) || ( 1 > this.accountname.length() ) ) errors.add( "accountname", new ActionError( "errors.login.noaccountname" ) ); Dominique "Caroline Lauferon" <[EMAIL PROTECTED]> schri

Utter Newbie Question

2003-11-12 Thread Joe Hertz
I'm making using struts for more or less than first time. I read the FAQ on how to handle logins to an application and I'm left with one question: Why stop a storing a Boolean in the session to determine "logged-inness"? Why not just store the (validated) "User" object in the session and chec

Re: validation

2003-11-12 Thread sairam manda
Hello Sir, Thank you for the reply but Iam looking to use t he requiredIf validator . regards sairam From: "Garg Raman \(SDinc\)" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTE

Re: validation

2003-11-12 Thread Garg Raman \(SDinc\)
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if((checkbox!=null)){ if((text1==null) || (text1.equals(""))){ errors.add("text1", new ActionError("error.text1.requir

validation

2003-11-12 Thread sairam manda
Hello Sir, I am new to struts .I have a question in validating a form . My form has a checkbox and few textfields corresponding to the checkbox ie I want to validate these textfeilds only if the checkbox is checked . Can anybody guide me how I can do this using requiredIf validation. regards sa

validatro framewrok and nested vector property

2003-11-12 Thread sumeet sharma
Hi , I have to validate on a nested date property.The date will be coming from a object which is present in my form and this object in turn has a vector of objects. Now for each of these objects I need to perform validation on its date property . Can I do this using the struts validator framew

Re: ResourceBundle not available in ActionForm

2003-11-12 Thread Caroline Lauferon
you have to specify which bundle has to be used. if you don't, Struts tries to use the resources registered under key org.apache.struts.action.MESSAGE, and there is none. so you have to specify: by example hope it helps. Caroline

WG: Problem with - tag

2003-11-12 Thread Peter Friesleben
I’m receiving this error using Tomcat 4.1 and Struts 1.0 „javax.servlet.ServletException: No getter method available for property vendors for bean under name null” I’m using the tag this way: Since formbean „SomeForm“ is reused from another context it is explicitly initialized and set t

Re: Rephrased: MysqlDataSource problem?

2003-11-12 Thread Max Cooper
1. Here is at least one problem, fix this first: > java.lang.ClassNotFoundException: pu.strutsapp.actionform.LogonForm Perhaps the package structure does not match the structure in WEB-INF/classes? 2. You need the other jars that come with Struts in your WEB-INF/lib directory. 3. There are some H

Re: URGENT: struts random tag

2003-11-12 Thread Ajay Patil
Hi Mohan, I am out of touch with Struts. But, I think you should make a property in your Form class, and assign it the random value there. Other quick and dirty way is to simply use: <% String random1 = ; // Java code to create random number. out.println(" If you insist to generate the

RE: Accessing application scope in Action.execute()

2003-11-12 Thread Geert Van Landeghem
The Action class contains the protected ActionServlet servlet variable through which each subclass can access the servlet context. A good approach to accessing session and application objects is by extending the Action class (I've got this from O'Reilly's Programming Jakarta Struts) By extending

Validator and Javascript

2003-11-12 Thread Sezmillenium
Hi, I have a problem with javascript client-side. I have two forms in one jsp page. But, I include tag for everyone.This is the code: With form "SaludoForm" I don't have any problem. But, "UserInfoForm" don't validate the data in the client-side and send the request to server and this res

  1   2   >