Looking for a wizard flow

2005-12-15 Thread hicham abassi
Hello, I need to create a wizard with struts. I find this project : http://struts.apache.org/struts-flow/ Have you docs or other toolkits to do this ? Thanks. -- Struts 1.1 JBoss 3.x Eclipse 3.1 - To unsubscribe, e-mail:

How can I attach error messages with the field

2005-12-15 Thread Sony Thomas
HI, Is there is any way to attach error messages with the specific field. I mean I have an error messsage Username required How can I print that message just down the label of username. thanks sony - To unsubscribe, e-mail:

RE: [ANNOUNCEMENT] Apache Struts offers Shale for JSF

2005-12-15 Thread Chris McCormack
This might be a dumb question but for those of us not able to make ApacheCon, are there any videos of the presentations online anywhere? Chris -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: 14 December 2005 20:22 To: announcements@struts.apache.org;

ServletException: duplicate class definition ?!

2005-12-15 Thread Jean-Charles Giardina
Hi every body, I get an javax.servlet.ServletException: duplicate class definition: com/amarda/framework/taglib/RowTag on webapp start up only. Upon refreshing the page this error goes away. This exception occurs when using more than one frame (including internal frame). Tks folks.

Need help about storeException method of ExceptionHandler

2005-12-15 Thread vishakha sawant
Hi, I am trying to use ExceptionHandler to handle the exception and to throw the customized error message using html:error/ tag but I am not able to display the message. I want help about what actually storeException method do. I tried google search but I didnt get clear Idea about that. Code of

Upload all files of a dir at one go

2005-12-15 Thread Shivani Sawhney
Hi, I want to upload all the files of a directory at one go. Is there a tag available that I can use. The html:file tag would only let me select a file not a directory. Any help will be much appreciated. Regards, Shivani This message may contain confidential and/or privileged

Re: validation javascripts

2005-12-15 Thread Raghu Kanchustambham
I'm not sure it matters much which order they're applied in, though, since all have to pass anyway. Order does matter... That will decide which *one* of the error messages to display to the user when one of these tests fail. On 12/15/05, Laurie Harper [EMAIL PROTECTED] wrote: Deepa Khetan

Re: [ANNOUNCEMENT] Apache Struts offers Shale for JSF

2005-12-15 Thread Alexandre Poitras
The presentation looks similar to the one made during JavaOne 2005. Audio is available on JavaOne website. On 12/15/05, Chris McCormack [EMAIL PROTECTED] wrote: This might be a dumb question but for those of us not able to make ApacheCon, are there any videos of the presentations online

Re: Upload all files of a dir at one go

2005-12-15 Thread Dave Newton
Shivani Sawhney wrote: I want to upload all the files of a directory at one go. Is there a tag available that I can use. The html:file tag would only let me select a file not a directory. Short answer: no. That's just not how browsers work. off-topic There seems to be a general lack of

Problem with using Logic:equla tag.

2005-12-15 Thread Legolas Woodland
Hi I have a un-natural problem here Im trying to use : [code] logic:equal name=sysvar value=loop td .. /td /logic:equal [/code] it never enter the above block. even i tried and showed sysvar by using the following code line in the browser [code] %=sysvar% [/code] I can see that

RE: Problem with using Logic:equla tag.

2005-12-15 Thread hermod.opstvedt
Hi Don't use this. Use the jstl tags instead. In this case c:if test=${sysvar=='loop'}/c:if If you read the tag doc's you will see that you are encouraged to switch to the jstl tags in place og the struts tags. In so doing, use the struts-el tag librarys Hermod -Original

Re: Problem with using Logic:equla tag.

2005-12-15 Thread Martin Gainty
Legolas- what is the scope for variable sysvar? Anyone else? Martin- - Original Message - From: Legolas Woodland [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, December 15, 2005 7:43 AM Subject: Problem with using Logic:equla tag. Hi I have a

Re: Struts DTD - basic question

2005-12-15 Thread Wendy Smoak
On 12/15/05, Rivka Shisman [EMAIL PROTECTED] wrote: When I use in my struts-config.xml the line: !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration1.2//EN http://struts.apache.org/dtds/struts-config_1_2.dtd; - it works while running the application but not

org.apache.struts.mock classes

2005-12-15 Thread Robert Taylor
I've downloaded Struts 1.2.8 and am interested in using the classes in org.apache.struts.mock package to unit test my actions, forms, etc... I see the source files but cannot seem to find the binaries. Am I missing something? Do I have to build and integrate them into the struts.jar myself or

RE: Upload all files of a dir at one go

2005-12-15 Thread Shivani Sawhney
Hi Dave, Thanks for the reply. off-topic When I said upload all the files of a directory at one go, I didn't really mean that upload the directory as is. May be a smarter reply would be that yes, we actually can upload all files of a directory at one go, given that we zip the directory and

Ideas needed for SSL problem

2005-12-15 Thread Jim Reynolds
Hello, I have got a problem. I have created a struts module that fits into an existing java model 1 architecture webapp. Anyway, when moving the code to test, I realized that the site is all HTTPS. But the webservers are not doing the 443. There are a pair of load balancers handling the 443

[OT] utility to move data from one database to other

2005-12-15 Thread Ashish Kulkarni
Hi Is there any open source utility which will help in moving data from one database to other, Does this utility works with most available and commonly used databases. Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam

Re: Upload all files of a dir at one go

2005-12-15 Thread Dave Newton
Shivani Sawhney wrote: And tell me something, probably I am just thinking aloud and am even wrong, but if I can do it through code then can't we just have a custom tag that zips the chosen directory at client side, uploads the zipped file on to the server and provides the programmer with

Re: Looking for a wizard flow

2005-12-15 Thread Michael Jouravlev
You may try this one for a change (it is part of my project): http://struts.sourceforge.net/strutsdialogs/wizardaction.html Michael. On 12/15/05, hicham abassi [EMAIL PROTECTED] wrote: Hello, I need to create a wizard with struts. I find this project : http://struts.apache.org/struts-flow/

Re: [ANNOUNCEMENT] Apache Struts offers Shale for JSF

2005-12-15 Thread Dakota Jack
This reads like Shale is not only a proposal but part of Struts. Is that true? If that is true, can someone explain how that happened? What the process was? On 12/14/05, Martin Cooper [EMAIL PROTECTED] wrote: 14 Dec 2005 - To give JavaServer Faces developers a head start on building

SSLEXT extension and Struts 1.2.7

2005-12-15 Thread Randy Shepherd
The latest version of SSLEXT seems to be for Struts 1.2.2, is there a newer version, or have people had success implementing the 1.2.2 version of SSLEXT with Struts 1.2.7? Thanks, Randy - To unsubscribe, e-mail: [EMAIL

Specify a file name when using DownloadAction

2005-12-15 Thread Vu, Thai
Does anybody know how to specify a file name when we use DownloadAction to send a file to users? Sincerely, Thai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Specify a file name when using DownloadAction

2005-12-15 Thread Wendy Smoak
On 12/15/05, Vu, Thai [EMAIL PROTECTED] wrote: Does anybody know how to specify a file name when we use DownloadAction to send a file to users? This page might help: http://wiki.apache.org/struts/StrutsFileDownload -- Wendy

Re: chinese characters and bean tags

2005-12-15 Thread Laurie Harper
[EMAIL PROTECTED] wrote: I have problem to show chinese characters stored in MySQL database with use of struts bean tag. Data is read out using Hibernate. When I call myHibernateObject.getMyProperty() method - everything works fine. But using bean:write name=myHibernateObject

Re: Upload all files of a dir at one go

2005-12-15 Thread Laurie Harper
Dave Newton wrote: Shivani Sawhney wrote: And tell me something, probably I am just thinking aloud and am even wrong, but if I can do it through code then can't we just have a custom tag that zips the chosen directory at client side, uploads the zipped file on to the server and provides the

Re: ServletException: duplicate class definition ?!

2005-12-15 Thread Laurie Harper
Jean-Charles Giardina wrote: Hi every body, I get an javax.servlet.ServletException: duplicate class definition: com/amarda/framework/taglib/RowTag on webapp start up only. Upon refreshing the page this error goes away. This exception occurs when using more than one frame (including internal

Re: SSLEXT extension and Struts 1.2.7

2005-12-15 Thread Laurie Harper
Randy Shepherd wrote: The latest version of SSLEXT seems to be for Struts 1.2.2, is there a newer version, or have people had success implementing the 1.2.2 version of SSLEXT with Struts 1.2.7? I haven't used sslext, but Struts 1.2.7 should be similar enough to 1.2.2 that you shouldn't have

Re: Ideas needed for SSL problem

2005-12-15 Thread Danny Lee
Well I really tried to solve this one, but finaly redirect true for all actions aviable from under the HTTPS part was the only solution... I mean, finally, HTTPS and HTTP is something like 2 different servers, I don't really think you can move around there without redirect... Btw, what do

Re: How can I attach error messages with the field

2005-12-15 Thread Laurie Harper
Sony Thomas wrote: Is there is any way to attach error messages with the specific field. I mean I have an error messsage Username required How can I print that message just down the label of username. Use html:messages property=user.../... to access messages specific to the field 'user'. For

Re: Problem with using Logic:equla tag.

2005-12-15 Thread Legolas Woodland
[EMAIL PROTECTED] wrote: Hi Don't use this. Use the jstl tags instead. In this case c:if test=${sysvar=='loop'}/c:if Thank you very much. I think my problem is wired , I used c:if test=${sysvar=='loop'} Do this Tags when sysvar is equal to loop/c:if and in some next lines i did : c:if

[ot] XML Formatter that lets path be first

2005-12-15 Thread Garner, Shawn
Is there a free XML Formatter that lets path be first in the struts config file be first? The one I have puts the attributes in alphabetical order and I hate that. Shawn This email may contain confidential material.

Subject: [ot] XML Formatter that lets path be first

2005-12-15 Thread Garner, Shawn
Is there a free XML Formatter that lets path be first in the struts config file be first? The one I have puts the attributes in alphabetical order and I hate that. Shawn This email may contain confidential

Re: Problem with using Logic:equla tag.

2005-12-15 Thread David Evans
As someone else mentioned, the problem could be the scope of your variable. Another thing to check, are you sure that EL is being evaluated in your page? dave On Fri, 2005-12-16 at 00:30 +0330, Legolas Woodland wrote: [EMAIL PROTECTED] wrote: Hi Don't use this. Use the jstl tags instead.

Re: Problem with using Logic:equla tag.

2005-12-15 Thread Legolas Woodland
Martin Gainty wrote: Legolas- what is the scope for variable sysvar? variable is in scope , i think it is in page scope . this variable defined in another jsp file inside some scriptlet. I think , there is no problem about variable scope because i can view the content of variable by using

Re: Problem with using Logic:equla tag.

2005-12-15 Thread Legolas Woodland
David Evans wrote: As someone else mentioned, the problem could be the scope of your variable. Another thing to check, are you sure that EL is being evaluated in your page? How i can ensure about : does EL evaluate or not ? What i have done is : I add the JSTL taglib declaration to my jsp

Re: Problem with using Logic:equla tag.

2005-12-15 Thread Legolas Woodland
[EMAIL PROTECTED] wrote: Hi Don't use this. Use the jstl tags instead. In this case c:if test=${sysvar=='loop'}/c:if Thank you very much. I think my problem is wired , I used c:if test=${sysvar=='loop'} Do this Tags when sysvar is equal to loop/c:if and in some next lines i did : c:if

Re: Ideas needed for SSL problem

2005-12-15 Thread Martin Gainty
actually its fu-bar it means nicht genau Martin- - Original Message - From: Danny Lee [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday, December 15, 2005 3:57 PM Subject: Re: Ideas needed for SSL problem Well I really tried to solve this one, but finaly redirect true for

Re: Problem with using Logic:equla tag.

2005-12-15 Thread David Evans
I am not sure the specifics, but some versions of jsp require you to do this: %@ page isELIgnored=false % and some older version of the jstl don't take EL in the attributes. you could test to see if EL is being evaluted by doing this: c:out value=${sysvar} / maybe this will help:

Re: Problem with using Logic:equla tag.

2005-12-15 Thread Rahul Akolkar
On 12/15/05, David Evans [EMAIL PROTECTED] wrote: I am not sure the specifics, but some versions of jsp require you to do this: %@ page isELIgnored=false % and some older version of the jstl don't take EL in the attributes. you could test to see if EL is being evaluted by doing this: c:out

Problem with Tiles and URLRewrite Filter

2005-12-15 Thread Randy Shepherd
Hey all, So I am trying to get outbound url rewriting working using the Tuckey URLRewrite Filter (http://tuckey.org/urlrewrite/) with Struts 1.2.7 with Tiles 1.1. It appears that my outbound rules are not even being evaluated when the Struts target is a tile. As a result none of my links

Re: Problem with Tiles and URLRewrite Filter

2005-12-15 Thread Greg Reddin
On Dec 15, 2005, at 5:14 PM, Randy Shepherd wrote: So I am trying to get outbound url rewriting working using the Tuckey URLRewrite Filter (http://tuckey.org/urlrewrite/) with Struts 1.2.7 with Tiles 1.1. It appears that my outbound rules are not even being evaluated when the Struts

Re: Problem with Tiles and URLRewrite Filter

2005-12-15 Thread Randy Shepherd
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I should clarify one thing. The target JSP when made a tile, is included in the body of the tile definition tag that extends a template., If I make the target JSP the path, and do not have the definition inherit from a template, then the outbound

The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Rick R
Cutting right to the chase... I'm curious on how others handle the age-old struts problem of: How do you handle nested objects in an ActionForm that have non String properties that might be editable by a user on a JSP? To provide a watered down example... Imagine you go to the DB to get a List

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Hubert Rabago
I've always used String values. Given that difference, I've seen this work: field property=birth indexedListProperty=employees depends=required,date arg0 key=employeeform.birth.displayname/ var var-namedatePatternStrict/var-name

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Rick R
On 12/15/05, Hubert Rabago [EMAIL PROTECTED] wrote: I've always used String values. But that above is the problem - you can't always have String values returned to you in nested objects from the domain-layer, backend, mid-tier, etc. When you query the backend for value objects that have nested

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Hubert Rabago
Ok, my fault. I focused on the validation part. For this part: Why if you already have existing code working great wtih iBATIS, hibernate, or EJBs should you have to try and re-write all you POJOs to have String properties included in the objects. That would be a maintenance nightmare and

Re: ServletException: duplicate class definition ?!

2005-12-15 Thread Jean-Charles Giardina
Thank, But all my JAR are in WEB-APP/lib. And I've not found multiple copie. In my my frame there is only JSP from one webapp ! Regards. 2005/12/15, Laurie Harper [EMAIL PROTECTED]: Jean-Charles Giardina wrote: Hi every body, I get an javax.servlet.ServletException: duplicate class

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Paul Benedict
Action Forms are DTO objects. They are not your model/domain/business objects. Struts is the only framework (historical design) that forces you to use String objects in the Form/DTO, but that's not a bad thing. It's a container to accept user input, which is all from the Internet transmitted as

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Rick R
This below is very interesting Hubert. I'm going to have to to give this a try tomorrow. So basically there is a way to bind all your nested objects to Dyna objects which of course can be validated as String properties even though they'll map to non-string props if validation passes. I think this

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Rick R
On 12/15/05, Paul Benedict [EMAIL PROTECTED] wrote: Action Forms are DTO objects. They are not your model/domain/business objects. Struts is the only framework (historical design) that forces you to use String objects in the Form/DTO, but that's not a bad thing. It's a container to accept

Re: [ANNOUNCEMENT] Apache Struts offers Shale for JSF

2005-12-15 Thread Paul Benedict
Dakota, Last week, I wrote about three messages voicing my opinon that I think it is an error to accept Shale under the Struts banner. I still hold that to be true, but I also see the justification of the commiters, which are: [1] Struts is now an umbrella label to contain MANY frameworks. As

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Paul Benedict
I'm concerned with having to deal with that limitation then how DO you deal with the 'model/domain/business' objects that do need to get populated? Sure in a simple form it's easy, but real life is a different story. Many times you get back objects that are nested in Collections... As I

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Rick R
On 12/15/05, Paul Benedict [EMAIL PROTECTED] wrote: As I said, the problem is you're using model objects for input. Don't do that. Your load action should convert the specific and limit poritions of your intended user input into the Form; probably a list of Strings. In your save action, you

Re: [ANNOUNCEMENT] Apache Struts offers Shale for JSF

2005-12-15 Thread Craig McClanahan
On 12/15/05, Paul Benedict [EMAIL PROTECTED] wrote: Dakota, Last week, I wrote about three messages voicing my opinon that I think it is an error to accept Shale under the Struts banner. I still hold that to be true, but I also see the justification of the commiters, which are: [1]

Re: validation javascripts

2005-12-15 Thread Deepa Khetan
ya.. i agree with you Raghu!! I would want minlength validation to work before mask is applied.. But the order in which the validations are specified do not affect the order in which they are applied. I have tried that out. On 12/15/05, Raghu Kanchustambham [EMAIL PROTECTED] wrote: I'm not

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Paul Benedict
Rick, I just hope you're not making the situation more complicated than it needs to be. If I have to display a 2D list of items (like say a table), I may be using a DTO which has multiple properties. These are all strings. I only found nested objects to be complex when I tried to make them

Re: [ANNOUNCEMENT] Apache Struts offers Shale for JSF

2005-12-15 Thread Craig McClanahan
On 12/15/05, Chris McCormack [EMAIL PROTECTED] wrote: This might be a dumb question but for those of us not able to make ApacheCon, are there any videos of the presentations online anywhere? Some of the sessions were videotaped, but this one wasn't alas. As was mentioned in a different

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Raghu Kanchustambham
Have a strDate which is of type string. The setStrDate() needs to be coded in such a way that it sets the date attribute also which is of type Date. The getDate() which returns Date object can be used in the business layers. For example, my Hibernate mappings map to getDate and not to

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Paul Benedict
I want to add one thing to Raghu's advice: You only need String-only DTOs at the form layer for INPUT variables only. Anything you retrieved from the business layer can be stuck in the request as it is for display purposes, or attached right to the form. You may want something like this in your

y this happens?

2005-12-15 Thread Shiby Maria John
I have an error coming when I start my application using Tiles. org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.bean.CookieTei org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)

Re: Specify a file name when using DownloadAction

2005-12-15 Thread Ext . Ilitia2
Hi, You can try with this, for me work fine // Set the headers. res.setContentType(application/x-download); res.setHeader(Content-Disposition, attachment; filename= + filename); // Send the file. OutputStream out = res.getOutputStream( ); returnFile(filename, out); // Shown earlier in