Re: Multiple struts-config.xml

2005-04-14 Thread sridhar
Hi Néstor Boscán, You can use multiple struts-config.xml files. for that you have modify web.xml file steps 1. in ActionServlet init params u can pass all the struts-config.xml file(s) as a values. action org.apache.struts.action.A

Re[2]: form authentication

2005-04-14 Thread Peter Laufer
I have there only these examples: * Taglib Test Pages * Upload examples * Validator and Localization examples there is nothing about authentication... Peter Thursday, April 14, 2005, 4:43:42 PM, you wrote: > There are examples in the Struts shipment. > On 4/14/05, Peter L

Re: [OT] question about open source data base selection

2005-04-14 Thread M. Bitner
The "modification" clause is why many businesses do not use GPL software. They can't modify the source, even for internal use, without their own work being encumbered by the GPL. The GPL only kicks in when you are distributing. You can freely modify GPL'd software for your own use, even in a busi

Re: jsp location when using modules

2005-04-14 Thread Andreas Toom
Hello again, The main reason I wanted to use WEB-INF at first was to protect jsp/xml but this would lead to module contents i two places, static content (images etc) in /modulename and pages in WEB-INF/pages/modulename. After trying some things I have decided, for now, to place each module with

[HELP] encodes special characters automatically?

2005-04-14 Thread Pham Anh Tuan
Hi all, I got a problem, again :) when I input special characters like japanese or vietnamese character into , automatically encodes that characters Decimal NCRs before mapping to bean property. Example 1: or ... I input japanese characters: ããã Before it is mapped to bean property myPro:

help on accessing txt file

2005-04-14 Thread Richard Reyes
Hello Guys, I need to access a file from inside an actions class. I will use its content as email contents. Regards Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [HELP] How to do validation in Struts + iBatis + DAO???

2005-04-14 Thread Brandon Goodin
Whether it extends ActionForm or ValidatorActionForm doesn't matter. You can still access the validation functionality as normal. I was just clarifying the inheritence. The most current version of jpetstore that you can download from ibatis.com extends ActionForm. The version in SVN has the same ar

Fw: [ANNOUNCE] JSP 2.1 and Faces 1.2 Public Review

2005-04-14 Thread James Mitchell
FYI -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Pierre Delisle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTE

Re: [HELP] How to do validation in Struts + iBatis + DAO???

2005-04-14 Thread Pham Anh Tuan
Hi Brandon, As you mean, I must code new BaseBean, which extends from ValidatorActionForm more than using default BaseBean of iBatis which extends from ActionForm? If so, thank you very much ... may be my problem is solved by you :") again, thank you! Pham - Original Message - From: "Br

Re: [OT] question about open source data base selection

2005-04-14 Thread Erik Weber
Thanks Ted. Yes, I dig the BSD-style license, and I sure am glad Apache is aligned that way. Too bad there doesn't seem to be a database on par with MySQL under a BSD-style license, but PostgreSQL is at least something I think I can work with. The GPL style license is just as important to have

Re: code repetation in action classes

2005-04-14 Thread Dave Newton
temp temp wrote: I am implementing pagination for most of my jsp's so I created a pagination bean with properties corresponding to pagination and this bean extends to ActionForm . All my formbeans extend to the pagination bean class. In all my action classes I am repeating code to set values co

code repetation in action classes

2005-04-14 Thread temp temp
I am implementing pagination for most of my jsp's so I created a pagination bean with properties corresponding to pagination and this bean extends to ActionForm . All my formbeans extend to the pagination bean class. In all my action classes I am repeating code to set values corresponding to pa

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread K.C. Baltz
Done: http://issues.apache.org/bugzilla/show_bug.cgi?id=34460 K.C. Joe Germuska wrote: At 11:19 AM -0700 4/14/05, K.C. Baltz wrote: I stand corrected and informed. Now that you mention it, I remember looking into this before. I wish the Struts Users Guide HTML tag API made the difference a litt

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread Joe Germuska
At 3:24 PM -0400 4/14/05, Les Dunaway wrote: Joe, Thanks for looking at it. Yes, I am saving the errors - I cut it too short here's all the code if(!ud.isUserExist(username)){ errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.logon.

Re: Error Messages from the Database - Simple method?

2005-04-14 Thread David Johnson
Thank you. This is something I havent gotten to yet (trying to talk the client ouf ot if given the time contraints, of course) but thank you. I will no doubt make use of it!! On 4/14/05, David Johnson <[EMAIL PROTECTED]> wrote: > -- Forwarded message -- > From: Fogleson, Allen <[E

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread Les Dunaway
Joe, Thanks for looking at it. Yes, I am saving the errors - I cut it too short here's all the code if(!ud.isUserExist(username)){ errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.logon.invalid.user")); log.debug("Inval

Re: ot: cvsignore not ignoring - solution I think

2005-04-14 Thread Vic Cekvenich (NETSQL)
Vic Cekvenich (NETSQL) wrote: Craig McClanahan wrote: Did you check your .cvsignore files in to the repository? If you do, they get respected on future transactions. OK, that works for "new" files, but if x.class is already there, it will sync, so I had to rm *. .V --

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread Joe Germuska
At 11:19 AM -0700 4/14/05, K.C. Baltz wrote: I stand corrected and informed. Now that you mention it, I remember looking into this before. I wish the Struts Users Guide HTML tag API made the difference a little more obvious in the description. I'm not saying the documentation is incorrect, jus

Re: ot: cvsignore not ignoring

2005-04-14 Thread Vic Cekvenich (NETSQL)
Craig McClanahan wrote: Did you check your .cvsignore files in to the repository? If you do, they get respected on future transactions. Yes. The on next cycle I compile and it wants to sync class files. Of course this is Eclipse 3.1. I wonder if I should try some CVS gui tool to double check.

[OT] tree structure design question

2005-04-14 Thread David Bolsover
Design Question - this is not strictly a struts question but relates to the data structure underpinning the application and the mechanisms for accessing that data so I hope I will be forgiven. First, an explanation of (some of) the issues: The project has both GUI (Swing) and Browser (Struts) int

[OT] tree structure design question

2005-04-14 Thread David Bolsover
Design Question - this is not strictly a struts question but relates to the data structure underpinning the application and the mechanisms for accessing that data so I hope I will be forgiven. First, an explanation of (some of) the issues: The project has both GUI (Swing) and Browser (Struts) int

Re: ot: cvsignore not ignoring

2005-04-14 Thread Craig McClanahan
Did you check your .cvsignore files in to the repository? If you do, they get respected on future transactions. Craig On 4/14/05, Vic Cekvenich (NETSQL) <[EMAIL PROTECTED]> wrote: > so I create .cvsignore and cvsignore all over place, including CVSROOT > for *.class and... it still syncs classes

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread K.C. Baltz
I stand corrected and informed. Now that you mention it, I remember looking into this before. I wish the Struts Users Guide HTML tag API made the difference a little more obvious in the description. I'm not saying the documentation is incorrect, just that the quick skim I did before I sent m

Re: JSTL simply love it however ...

2005-04-14 Thread K.C. Baltz
The error is suggesting that it can't find an entry for "status" in the page scope of your page. Do you still have the in there? If you have the scope attribute, make sure it's set to page. Otherwise you'll have to replace pageContext with request, or session depending on your choice of sc

Re: JSTL simply love it however ...

2005-04-14 Thread gdeschen
Umh... I am now getting this error: Attribute addTableRow( has now value. I have downloaded the Struts 1.2.4 and noticed that there is a lib directory and then there is a contrib/lib. What is necessary to use the Struts-EL tags? I think that with RT the attribute is all expression or no express

Re: what do you suggest me... JSTL or Struts tags

2005-04-14 Thread Jeff Beal
The taglib documentation for the bean and logic tag libraries both start with the following note: "Note: - Many of the features in this taglib are also available in the JavaServer Pages Standard Tag Library (JSTL). The Struts team encourages the use of the standard tags over the Struts specific ta

Re: JSTL simply love it however ...

2005-04-14 Thread David Evans
I think that with RT the attribute is all expression or no expression. so try : "> I'm not sure if i parsed your intention correctly, but the idea is that the attribute should be all expression. a simpler example: wrong -> right -> "> dave On Thu, 2005-04-14 at 12:42, [EMAIL PROTECTED] wrote

what do you suggest me... JSTL or Struts tags

2005-04-14 Thread Milson Cardona
Hi i desire to work with tags, i have been researching about Struts tags and JSTL, ¿what do you suggest me?, thanks -- Ing Milson Fredy Cardona E

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread Joe Germuska
At 8:55 AM -0700 4/14/05, K.C. Baltz wrote: Perhaps you should be using to display your error messages instead of I think it depends on if you use saveErrors or saveMessages in your Action. This is NOT true. The differences between the h:errors tag and the h:messages tag are functional, but bo

Re: JSTL simply love it however ...

2005-04-14 Thread gdeschen
Okay... I tried the following: ')"> and I get this error: Error 500: /WEB-INF/personal/timeAndAttendance/cWWHistory.jsp(215,129) Attribute status has no value I'd really like to get this working, I will then spend some time looking into upgrading to a later version of Struts ti use the E

Re: JSTL simply love it however ...

2005-04-14 Thread Rick Reumann
[EMAIL PROTECTED] wrote the following on 4/14/2005 12:03 PM: Okay... I am not using the Struts EL taglibs. Should I be using them? I think you should. Makes the code a lot cleaner. Remember if you are using a JSP2.0 container (ie Tomcat 5), just use the regular html tags (not the el ones). (Then

Re: [contribution] Consecutive Date Validator

2005-04-14 Thread K.C. Baltz
Absolutely and of course. I based this validator on the TwoFields validator floating around. I never changed that property. I think laterDate would be my pick. dateBefore is a good choice as well. Thanks for the feedback, K.C. Dave Newton wrote: If this is going to get into the distro could

Re: JSTL simply love it however ...

2005-04-14 Thread K.C. Baltz
I think Dave's got it. Use the struts-el tags if you want to have EL expressions instead of RT expressions (<%= ... %>) If you want/have to stick with RT, then you'd need this instead of ${status.index} <%= ((javax.servlet.jsp.jstl.core.LoopTagStatus) pageContext.getAttribute("status")).getIn

Re: JSTL simply love it however ...

2005-04-14 Thread gdeschen
Okay... I am not using the Struts EL taglibs. Should I be using them? You choose to use the struts EL tags by a) using the struts EL tld (like struts-html-el.tld) and b) by having the struts-el tag JAR file. I don't know if they come by default with the latest release or not; you'd have to che

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread K.C. Baltz
Perhaps you should be using to display your error messages instead of I think it depends on if you use saveErrors or saveMessages in your Action. K.C. Les Dunaway wrote: I am having problems with Struts 1.2.4 ActionMessage / ActionError. I'm using a setup like recommended on the wiki Acti

RE: Session now with Filter

2005-04-14 Thread Paul McCulloch
Hi Scott, Firstly - changing the subject breaks the threading in many mailreaders! Securing your application is completely independant of Struts. Neither needs to know anything about the other - that is why it is such a nice & easy solution. Yes - I'm implying exactly what you say I am. Here's

Re: [contribution] Consecutive Date Validator

2005-04-14 Thread Dave Newton
If this is going to get into the distro could we call secondProperty endDate "secondProperty" to 'laterDate' or 'endDate' or whatever to

RE: cvsignore not ignoring

2005-04-14 Thread Fogleson, Allen
Don't feel bad Vic my .cvsignore ignores everything except my .project and .classpath files :) it just grates on me to see the little > in eclipse when I know it is just the stupid project and classpath files. Worse is the fact that because of that I always have to check to make sure I haven't miss

Re: JSTL simply love it however ...

2005-04-14 Thread Dave Newton
[EMAIL PROTECTED] wrote: How can I tell which version of the struts tags? You choose to use the struts EL tags by a) using the struts EL tld (like struts-html-el.tld) and b) by having the struts-el tag JAR file. I don't know if they come by default with the latest release or not; you'd have t

ot: cvsignore not ignoring

2005-04-14 Thread Vic Cekvenich (NETSQL)
so I create .cvsignore and cvsignore all over place, including CVSROOT for *.class and... it still syncs classes. anyone know? I guess sign up for the cvsmail list. .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: Session now with Filter

2005-04-14 Thread Dave Newton
Scott Purcell wrote: Thank you very much for your comments on this topic Paul. Now, I understand the basics of using a filter, extending the base class and configuration in the web.xml file. But how can I use a filter in unison with Struts. I am not seeing how I would use the filter. Are you impl

Re: [contribution] Consecutive Date Validator

2005-04-14 Thread K.C. Baltz
Sure. I had figured to bring it to the -users list before anything -dev related so I could get it reviewed. But I'm happy to put in an enhancement. Done. http://issues.apache.org/bugzilla/show_bug.cgi?id=34454 K.C. Baltz James Mitchell wrote: Thanks for your contribution. Any chance I could

Re: [HELP] How to do validation in Struts + iBatis + DAO???

2005-04-14 Thread Brandon Goodin
"Right, like Mark said, I'm following JPetStoreExample, Rick :), when you use DAO, ur Bean must extends from Basebean of DAO pattern." Pham, the way you are explaining this doesn't seem quite right. The inheritence of the Presentation bean goes as such: AccountBean <- AbstractBean <- BaseBean <-

Re: JSTL simply love it however ...

2005-04-14 Thread gdeschen
How can I tell which version of the struts tags? Dave Newton <[EMAIL PROTECTED]> 14/04/2005 10:53 AM Please respond to "Struts Users Mailing List" To: Struts Users Mailing List cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA) Subject:Re: JSTL simply love

Session now with Filter

2005-04-14 Thread Scott Purcell
Thank you very much for your comments on this topic Paul. Now, I understand the basics of using a filter, extending the base class and configuration in the web.xml file. But how can I use a filter in unison with Struts. I am not seeing how I would use the filter. Are you implying that I should

Re: JSTL simply love it however ...

2005-04-14 Thread Dave Newton
[EMAIL PROTECTED] wrote: Niether solution works... The expression is never evaluated. The output is: Are you using the EL version of the struts tags? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

RE: JSTL simply love it however ...

2005-04-14 Thread gdeschen
Niether solution works... The expression is never evaluated. The output is: "Abdullah Jibaly" <[EMAIL PROTECTED]> 14/04/2005 10:06 AM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)

Re: form authentication

2005-04-14 Thread Dakota Jack
There are examples in the Struts shipment. On 4/14/05, Peter Laufer <[EMAIL PROTECTED]> wrote: > Hi theere. > I'm newbie to struts. > I need some simple example how to do FORM AUTHENTICATION with struts. > can you help me? (send it to: [EMAIL PROTECTED]). > > thank you very much. > > Best Regard

Re: Handling Session Expiration Properly

2005-04-14 Thread Joe Germuska
Scott: I'm kind of confused by a couple of things you wrote. Can you clarify? Now don't get me wrong this works, but by extending the Action class I kind of screwed myself by not being able to use a RequestDispatcher because now the signature of the "subclassed action" was not the same as what

Re: Handling Session Expiration Properly

2005-04-14 Thread Dakota Jack
+1 on Paul's comments. Doing this with the RequestProcessor is putting a relatively minor detail into the core of your application. Filters are good. I also think attaching a User.java object to your HttpSession is a very good idea. I actually have a number of things I like to attach with the u

RE: Handling Session Expiration Properly

2005-04-14 Thread Paul McCulloch
Hi Scott, I can't remeber if it was your question I replied to regarding authentication where I recommended using a filter to do this, rather than modifying the request processor. If it wasn't your question then I'd recommend a serach of the archives. If it was you - I still think modifying the re

form authentication

2005-04-14 Thread Peter Laufer
Hi theere. I'm newbie to struts. I need some simple example how to do FORM AUTHENTICATION with struts. can you help me? (send it to: [EMAIL PROTECTED]). thank you very much. Best Regards, Peter - To unsubscribe, e-mail: [EMAIL

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread Joe Germuska
At 8:03 AM -0400 4/14/05, Les Dunaway wrote: What am I messing up? In the code you included in your email, you were not saving the errors. If that's not just a copy/paste mistake, then there's your problem. Joe I am having problems with Struts 1.2.4 ActionMessage / ActionError. I'm using a set

Re: accessing session variables in java Bean(In business logic Layer)

2005-04-14 Thread Hubert Rabago
Maybe Mallik should use a filter that would clear thread locals after the request has been processed. On 4/14/05, Jeff Beal <[EMAIL PROTECTED]> wrote: > I'm not sure that web containers are required to create a new thread > at the beginning of each request. Weblogic, for example, seems to > keep

RE: JSTL simply love it however ...

2005-04-14 Thread Abdullah Jibaly
I think ${status.index} in place of s_SOMETHING_HERE would work fine. Otherwise, try setting onChange="${addTableRow}" with addTableRow prior defined as: addTableRow('historyTable','') -Abdullah -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 1

Handling Session Expiration Properly

2005-04-14 Thread Scott Purcell
Hello, I hope I have not beaten this to death on this list, but I have never gotten an answer that has served my interest. So I rethought the question and I am reposting it now. The application I created, is a web-app in which a login is required of a "username" and "password". Pretty standar

Re: accessing session variables in java Bean(In business logic Layer)

2005-04-14 Thread Jeff Beal
I'm not sure that web containers are required to create a new thread at the beginning of each request. Weblogic, for example, seems to keep a pool of available threads, and uses one of these threads to process each request. Using ThreadLocal with this type of app server would mean that whatever y

Re: accessing session variables in java Bean(In business logic Layer)

2005-04-14 Thread Jeff Beal
All of our application state (including the user) is kept in a separate "session" object in the business layer. (We use a stateful session EJB, but you could easily write your own POJO for this.) The web session, then, only has a reference to this session object (and a few other view-specific var

Jsp java.lang.VerifyError

2005-04-14 Thread Mohd Amin
Hi all, getting the above error while running oracle 9ias 9.0.3 (Java Servlet 2.3 and JavaServer Pages 1.2) but works fine with oracle 10g(Java Servlet 2.4 and JavaServer Pages 2.0). The page uses JSTL and a lot of tags. Anyone have experience on this? Exception: java.lang.VerifyError: (class:

Re: Validator error messages from different resource files

2005-04-14 Thread David Whipple
Thanks much - this is what I was looking to find out. Dave |-+--> | | "Niall Pemberton" | | | <[EMAIL PROTECTED]| | | nder.co.uk>| | | | |

JSTL simply love it however ...

2005-04-14 Thread gdeschen
I have started to use JSTL this week. I simply love it !!! However, I have one small problem that I cannot seem to get working. Here is a snippet of code that works fine: What I need to do is add an onChange event for

Re: jsp location when using modules

2005-04-14 Thread Hubert Rabago
I haven't done this before, but try this: 1. Use the forwardPattern attribute of and give it the same value you're giving pagePattern now. 2. Set up a custom ForwardAction. The existing ForwardAction sets contextRelative which skips the use of forwardPattern. For your custom version, copy the

Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread Les Dunaway
I am having problems with Struts 1.2.4 ActionMessage / ActionError. I'm using a setup like recommended on the wiki ActionMessages am = new ActionMessages(); am.add( ActionMessages.GLOBAL_MESSAGE, new ActionMessage( "not.authorized.for.account" ) ); saveErrors( request, am );

Re: [OT] question about open source data base selection

2005-04-14 Thread Ted Husted
On 4/13/05, Erik Weber <[EMAIL PROTECTED]> wrote: > I get the feeling that the GPL restrictions (at least in MySQL's case) > are meant for those who are taking the database and specializing it for > their business (by altering or extending the source code) not just > merely using it to power the da

Re: accessing session variables in java Bean(In business logic Layer)

2005-04-14 Thread Lionel
Corey Probst wrote: > Take a look at ThreadLocal, I've never used it but it should do what > you want. > Someone correct me if this is not a good idea or won't work It works fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

RE: [OT]find available language property files in a web applicati on

2005-04-14 Thread Jesse Alexander (KBSA 21)
-Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 2:46 AM To: user@struts.apache.org Subject: [OT]find available language property files in a web application Hi How to find out which language property files are availble in a web project, for

RE: [OT]find available language property files in a web applicati on

2005-04-14 Thread Jesse Alexander (KBSA 21)
-Original Message- Just in case you don't know this, Ashish, which you probably do, if the user's browser is in a language and you have that language available, the language will be shown automatically without the user having to see if it is available. Having choices is valuable only where

Re: TagLibs

2005-04-14 Thread Rafael Taboada
thanks so much :) -- Rafael Taboada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

jsp location when using modules

2005-04-14 Thread Andreas Toom
Hello, We are currently refactoring our Web applications into one application using Struts modules so that we can share common resources more easily between the different modules. Now to the problem, we are currently placing all our jsps in /WEB-INF/pages/ but when introducing modules I get 404