Re: Is Tiles the right way to go?

2004-08-31 Thread PC Leung
Do you know where the trend will go? your sitemesh or tiles? On Tue, 31 Aug 2004 01:57:03 -0400, Rick Reumann [EMAIL PROTECTED] wrote: PC Leung wrote: I am trying to learn Tiles. Is Tiles the right way to go with Struts? Should I study other tool before sticking with Tiles? Tiles

Re: [OT] Tomcat MD5 Authentication

2004-08-31 Thread Paul Thomas
On 30/08/2004 22:34 Steven Leija wrote: I'm trying to configure Tomcat to use MD5 encryption for my JDBCRealm. Has anyone successfully gotten this to work? Thanks, Steven Yes. It works a trat for me. Your RDBMS will need to be able to support MD5 passwords of course. -- Paul Thomas

Re: AW: Design patterns used in Struts

2004-08-31 Thread Janne Mattila
Well, original poster asked the question for some reason. Who knows, maybe he has to give a presentation of Struts? I wouldn't like to embarrass myself by speaking of patterns that do not exist. Have a look at some random books on the subject, I'll bet they all talk about Model 1, Model 2, and

Questions on logging

2004-08-31 Thread Sebastian Ho
Hi I am in the stage of implementing logging in my struts application. I have been reading online but have some questions unanswered. 1. Action class should be thread-safe. Therefore no static variable, I should just use a non-static variable to hold my logger? 2. In a multi-user web

Re: Questions on logging

2004-08-31 Thread Nicolas De Loof
1. thread-safe require no variable (instance or static) that a thread may consider to be the only one to update. Read-only member (as a logger instance) can be used safely. 2. you can configure log4j to add the thread id to the log, so that a simple grep will extract all logs for a request.

Re: tile: including one layout .jsp inside another?

2004-08-31 Thread brenmcguire
Mmm... I think there is some misunderstanding in your use of Tiles. If I understood, maybe you want to have an effect of panel and subpanels. If you want to do such a thing, you can use what I call as definitions of definitions. If I understood (again :-P ) you want to have a main page, divided

RE: ActionForm: simply calling reset() or have to recreate one ?

2004-08-31 Thread Paul McCulloch
I think it was me who pointed you down that route to destroy recreate a form bean to clear any data in it. reset() is not used for this purpose - read up on what reset() does. servlet is a variable of Action and is available in all methods of your own Action classes. Paul -Original

RE: Possible to change input path in actionForm validate?

2004-08-31 Thread Paul McCulloch
What I meant is that you can use the same action class multiple times, each with a different path input: action path=/Handler1 type=com.foo.some.Action input=/file.jsp /action action path=/Handler2

problem with jsp:include

2004-08-31 Thread vineesh . kumar
hi all, I had written the code in a.jsp like: tr td bgcolor=#ff align=center width=20%html:link page=/accountlisting.dofont color=#00Accounts/font/html:link/td td bgcolor=#ff align=center width=20%html:link page=/ContactsListing.dofont color=#00Contacts/font/html:link/td td

Re: problem with jsp:include

2004-08-31 Thread Nicolas De Loof
taglibs must be set in the included JSP when using jsp:include tag : it includes JSP result, not JSP source code as does %@ include %. Nico. - Original Message - From: vineesh . kumar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 11:17 AM Subject: problem

Validator 1.1.3 with Struts 1.1

2004-08-31 Thread Spisser Reinhard
Can I use the validator 1.1.3 also with applications developed with Struts 1.1 or do I need to upgrade my application to Struts 1.2? Thanks Reinhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

html:errors for indexed properties

2004-08-31 Thread Milind Rao
I have googled and searched the mailing list, but couldn't find an answer to this. I have a DynaValidatorForm containing a collection of objects presented using the logic:iterate tag in the JSP. The validation of the objects in the collection is done in the validation.xml file using something

Patterns in struts.

2004-08-31 Thread nitin dubey
Hello folks, I just want to know the list of patterns that we are using while implementing struts with tiles framework. I have just started working with the struts framework hence correct me if I am going wrong somewhere.. 1. Front Controller - With ActionServlet and struts-config.xml 2.

RE: SecurityFilter Question?

2004-08-31 Thread Robert Taylor
I haven't been following this thread too closely but I know its been some what long so if this solution has already been proposed, I apologize in advance. We use SecurityFilter and an additional filter which checks for the Principal in the request. If the Principal exists, then we can be assured

The jar files in the C:\jakarta-struts-1.1\contrib\struts-el\lib directory

2004-08-31 Thread Caroline Jen
There are three .jar files in the C:\jakarta-struts-1.1\contrib\struts-el\lib directory that are not in the C:\jakarta-struts-1.1\lib directory. Those three files are jstl.jar, standard.jar, and struts-el.jar. Do we also copy those three files to the C:\TOMCAT\webapps\AppName\WEB-INF\lib

RE: The jar files in the C:\jakarta-struts-1.1\contrib\struts-el\ lib directory

2004-08-31 Thread Paul McCulloch
These files are need if you wish to use JSP EL in a JSP 1.2 container. If you use a JSP 2 container then EL is supported for the standard struts tags (by the container rather than the tags themselves). See http://struts.apache.org/faqs/struts-el.html for more details. Paul -Original

Re: html:errors for indexed properties

2004-08-31 Thread Bill Siggelkow
You have to use the html:messages tag in a loop to generate the property values in a loop. Here's an example -- logic:iterate name=IndexedListForm property=orders id=orders indexId=ndx tr td html:text name=orders

Re: prechecked checkbox using DynaValidatorForm

2004-08-31 Thread Yves Sy
Hi, Try declaring eatable in your form-bean declaration as java.lang.Boolean and in the action before your edit page go myForm.set(eatable, new Boolean(true)) -Yves- On Tue, 31 Aug 2004 12:25:18 +0200, Wolfgang Woger [EMAIL PROTECTED] wrote: Hi, I have acheckbox that needs to be prechecked

Submit to 3rd party URL after completing Action

2004-08-31 Thread Richard Aukland
Hi, I have a form which must be sent to an external site for payment processing. But first I want to run it through my own action to insert the values in the database, and then forward to the 3rd party URL for payment. If I submit to the 3rd party directly from a JSP using an html form (ass

Re: The jar files in the C:\jakarta-struts-1.1\contrib\struts-el\lib directory

2004-08-31 Thread Yves Sy
Hi, There's a long thread about that just yesterday. Check the messages history. -Yves- On Tue, 31 Aug 2004 04:36:57 -0700 (PDT), Caroline Jen [EMAIL PROTECTED] wrote: There are three .jar files in the C:\jakarta-struts-1.1\contrib\struts-el\lib directory that are not in the

Re: Learning the basics

2004-08-31 Thread Chris Keladis
Hi Kenneth, Everyone. Since we're on the subject, using the example being discussed, towards the end of the chain we call findRecords.do which takes us to foundRecords.jsp. All well and good. I'm having trouble understanding how to get database output from the model to the view layer? How is

Re: Learning the basics

2004-08-31 Thread Emmanouil Batsis
Geia sou re Keladi, Chris Keladis wrote: Hi Kenneth, Everyone. Since we're on the subject, using the example being discussed, towards the end of the chain we call findRecords.do which takes us to foundRecords.jsp. [...] I'm having trouble understanding how to get database output from the model to

Re: Submit to 3rd party URL after completing Action

2004-08-31 Thread Bill Siggelkow
You are only going to be able to redirect to an external URL. However, when you redirect its a new request so the form data is lost. I would use the Jakarta Commons HttpClient to do the posting. Bill Siggelkow Richard Aukland wrote: Hi, I have a form which must be sent to an external site for

Re: Learning the basics

2004-08-31 Thread Bill Siggelkow
Chris -- Struts knows nothing of the model -- the subject you need to learn is Java database programming. There are many different tutorials on this -- a good one can be found at http://java.sun.com/docs/books/tutorial/jdbc/. Chris Keladis wrote: Hi Kenneth, Everyone. Since we're on the

RE: Learning the basics

2004-08-31 Thread Daniel Perry
If you want to follow common java 'patterns' then try to find some info about data access objects (DAOs), data transfer objects (DTOs or TOs), and view objects (VOs). That should point you in the right direction. Basically, they are javabeans! Daniel. -Original Message- From: news

Re: The jar files in the C:\jakarta-struts-1.1\contrib\struts-el\lib directory

2004-08-31 Thread Caroline Jen
How do I check the message history for yesterday's message? --- Yves Sy [EMAIL PROTECTED] wrote: Hi, There's a long thread about that just yesterday. Check the messages history. -Yves- On Tue, 31 Aug 2004 04:36:57 -0700 (PDT), Caroline Jen [EMAIL PROTECTED] wrote: There are three

NoClassDefFoundError: .../commons/beanutils/Converter

2004-08-31 Thread Caroline Jen
What am I missing? I got the following error java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter What should I do? ___ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush

RE: NoClassDefFoundError: .../commons/beanutils/Converter

2004-08-31 Thread Robert Shields
NoClassDefFoundError - this means the JVM cannot find the class in question. You need to make this class available to the JVM by adding the commons-beanutils JAR to the WEB-INF/lib directory. Rob -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: 31 August 2004

RE: Submit to 3rd party URL after completing Action

2004-08-31 Thread Partha Ranjan Das
If you use redirect to the payment url, the data in the form is in the session in your site and not the external site where it is needed. So redirect or forward will not help. Try splitting up this work-flow into two steps: 1. in the first one you write the action class and save the stuff

Re: html:errors for indexed properties

2004-08-31 Thread Milind Rao
Worked well. Thanks. Used html:errors instead of the message for brevity. It would have been nice if html:errors could have been set with indexed=true. Would have prevented the scriplet and been more consistent. Regards Milind

Struts 1.2.2 is up

2004-08-31 Thread struts lover
Hi Everyone, Struts 1.2.2 is up and available. http://struts.apache.org/acquiring.html __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail

RE: validate in ActionForm not working for errors

2004-08-31 Thread struts lover
what is your directory structure ??? Are you giving the correct relative path for the input parameter --- Jim Barrows [EMAIL PROTECTED] wrote: -Original Message- From: Saurabh Bhatla [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 2:52 PM To: Struts Users

Re: html:errors for indexed properties

2004-08-31 Thread Lynn Stevens
instead of the scriptlet, I think you could use html-el and do the following: html-el:messages id=error property=orders[${ndx}].partNumber The el notation forces the ndx to evaluate From: Bill Siggelkow [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED]

[ANN] Struts 1.2.2 release is now available for download.

2004-08-31 Thread James Mitchell
The Apache Struts team is extremely proud to announce the availability of Struts 1.2.2. This release represents the first official release available for General Availability since Struts 1.1. You can find all of the features, enhancements, and bug fixes in the release notes listed below. I

Will the Struts 1.2.2 jar be available Apache's Maven Repository?

2004-08-31 Thread Paul Spencer
Will the Struts 1.2.2 jar be available Apache's Maven Repository? http://www.apache.org/dist/java-repository/struts/jars/ BTW: Thank you for the release! Paul Spencer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Learning the basics

2004-08-31 Thread bmf5
Chris, In our app we're building a model object Assignment from a dao object AssignmentDAO. We then fill the form AssignmentForm from the model object. All this is controlled from the AssignmentAction. I think I've recently read that in general a lower layer should not be aware of a higher

Re: Will the Struts 1.2.2 jar be available Apache's Maven Repository?

2004-08-31 Thread Joe Germuska
At 10:33 AM -0400 8/31/04, Paul Spencer wrote: Will the Struts 1.2.2 jar be available Apache's Maven Repository? http://www.apache.org/dist/java-repository/struts/jars/ The preferred repository would continue to be iBiblio. James, do you want me to do the deployment to the Maven mirror

Re: Will the Struts 1.2.2 jar be available Apache's Maven Repository?

2004-08-31 Thread James Mitchell
I've already started on it..should be done in a minute. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Joe Germuska [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday,

RE: Submit to 3rd party URL after completing Action

2004-08-31 Thread Richard Aukland
Many thanks to Bill and Partha for your suggestions. I used the javascript (2nd) technique because I am currently more familiar with it. It is now working. :) Cheers Richard If you use redirect to the payment url, the data in the form is in the session in your site and not the external

RE: Learning the basics

2004-08-31 Thread Daniel Perry
It's generally best practice not to tie layers in together. Assume that you have your DAOs that are aware of ActionForm (or subclasses), in constructors, or methods. Now say you want to use the same DAOs in a standalone app. In order to do that, you are going to have to include the struts jar,

Re: Submit to 3rd party URL after completing Action

2004-08-31 Thread Christoph Kutzinski
I'm currently trying to do something similar. Therefore I would like to share my thoughts: Relying on javascript for business critical functions (and if payment is not a business critical function, what is?) is IMO NEVER a good idea, because it is not fail-proof at all. What only if the user

Re: Patterns in struts.

2004-08-31 Thread Michael McGrady
Someone else taking this exam already got the answers on this list. ///8-) Check the archives, unless you want to do it yourself. LOL nitin dubey wrote: Hello folks, I just want to know the list of patterns that we are using while implementing struts with tiles framework. I have just started

RE: Submit to 3rd party URL after completing Action

2004-08-31 Thread Daniel Perry
Whenever i come accross this, i put a 'confirmation' screen, with all the details repeated, and a 'pay now' button that submits the (hidden) form to the external site. Daniel. -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: 31 August 2004 16:17 To:

RE: Is Tiles the right way to go?

2004-08-31 Thread Jim Barrows
-Original Message- From: PC Leung [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 8:58 PM To: [EMAIL PROTECTED] Subject: Is Tiles the right way to go? I am trying to learn Tiles. Is Tiles the right way to go with Struts? Should I study other tool before sticking with

Re: including one layout .jsp inside another?

2004-08-31 Thread Bill Schneider
I raised exactly the same question on this list a week or two ago. I'm glad to see someone else attempting the same thing. Two workarounds came out of that discussion--structure your tiles defs differently, or futz with tiles:importAttribute and tiles:put. The first approach doesn't scale

RE: including one layout .jsp inside another?

2004-08-31 Thread Jim Barrows
-Original Message- From: Bill Schneider [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 8:54 AM To: [EMAIL PROTECTED] Subject: Re: including one layout .jsp inside another? I raised exactly the same question on this list a week or two ago. I'm glad to see someone

Struts-faces form input with rendered attribute set

2004-08-31 Thread Xav DECO
Craig, All, I would like to discuss the issue I have entered in Bugzilla (issue #30511) with title “Struts-faces form input with rendered attribute set” that you put invalid a while ago. I am first going to rewrite the issue and I will try to explain where I do not find things logical. First

RE: Identifying the 'clicked' line when iterating over collection

2004-08-31 Thread Jim Barrows
-Original Message- From: andy wix [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 9:19 AM To: [EMAIL PROTECTED] Subject: Re: Identifying the 'clicked' line when iterating over collection Hi, I have tried most of the code in the replies and, alas, fear my brain is

RE: Identifying the 'clicked' line when iterating over collection

2004-08-31 Thread Daniel Perry
I would do somthing like the following: TABLE border=0 c:forEach items=${contacts} var=contact TR TD${contact.name}/TD TD${contact.number}/TD TDc:url var=url scope=session value=/do/modifyContact c:param name=ID value=${contact.id}//c:url

Re: html:errors for indexed properties

2004-08-31 Thread dhay
Do you want to supply a patch?! |-+ | | Milind Rao | | | [EMAIL PROTECTED]| | | m | | || | | 08/31/2004 09:40 | | |

Iterating over collection ...

2004-08-31 Thread eid4k
Hello there I am having some issue getting the correctly output while iterating over my collection I'm doing the following: I'm iterating over an processList(ArrayList) which contains 4 objects of type ProcessBO. ProcessBO has 3 attributes; int ID String name ArrayList tasklist The

RE: Iterating over collection ...

2004-08-31 Thread Jim Barrows
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 9:48 AM To: [EMAIL PROTECTED] Subject: Iterating over collection ... Hello there I am having some issue getting the correctly output while iterating over my collection

Classloading problem

2004-08-31 Thread Ivan Vasquez
We have Tomcat 5.0.16 and were incorrectly placing common jars (such as JDBC drivers) in /common/lib. Now we just moved them to /shared/lib (for truly common stuff) and WEB-INF/lib, but now all applications complain giving a java.lang.ClassNotFoundException, just like if things weren't in

Re: Iterating over collection ...

2004-08-31 Thread Erik Weber
Don't you want a nested iteration of the second ArrayList, similar to the iteration you already have? Erik [EMAIL PROTECTED] wrote: Hello there I am having some issue getting the correctly output while iterating over my collection I'm doing the following: I'm iterating over an

RE: Iterating over collection ...

2004-08-31 Thread Daniel Perry
You need to nest another iterate'er in order to iterate through the inner list for each object: logic:iterate id=process name=processlist    bean:write name=process property=name/    bean:write name=process property=ID/br    logic:iterate id=task name=process property=tasklist    

Re: Identifying the 'clicked' line when iterating over collection

2004-08-31 Thread Rick Reumann
andy wix wrote: session). To get the ID would be something, but it would save me needing an action class at all if I could get the contact object representing the 'clicked' row into the session or request scope. To do what you want above would take a slightly different approach. Say you had

RE: Iterating over collection ...

2004-08-31 Thread eid4k
Thanks Daniel, this worked. I have tried nesting a iterate tag earlier today but I wasn't setting it correct. Thanks for the answer. Regards Karim PS: Thanks to the other replies too. Daniel Perry [EMAIL PROTECTED] wrote: You need to nest another iterate'er in order to iterate through the

RE: Classloading problem

2004-08-31 Thread Ivan Vasquez
Sure, in common/lib it works well. But from Tomcat docs: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html The following rules cover about 95% of the decisions that application developers and deployers must make about where to place class and resource files to make them

RE: Iterating over collection ...

2004-08-31 Thread eid4k
Thanks Jim, the reply Daniel Perry posted worked/ I have done it your way earlier nad it did not produce the correct output. Have look (if you care at Daniel Perry's reply. It did produce the correct outpu. Thanks anyway Karim Jim Barrows [EMAIL PROTECTED] wrote: -Original

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread James Mitchell
What steps did you take when you upgraded? What library and files did you replace? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 31, 2004

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread Michael Nascimento Santos
The exception is not clear enough, but it contains most info you need to know: Some code in Struts 1.2.2 [probably org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:169)] is using Boolean.valueOf(boolean), which was added in Java 1.4. It is pretty simple to fix that one if

Re: Identifying the 'clicked' line when iterating over collection

2004-08-31 Thread Rick Reumann
Rick Reumann wrote: To do what you want above would take a slightly different approach. Say you had your ArrayList of Contacts in Session scope and after the user clicked on a link you wanted to edit one of those objects. In this case you wouldn't use the ID to look him up you'd have to use the

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread James Mitchell
Let's get this into bugzilla so we can get it fixed quickly. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Michael Nascimento Santos [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent:

Initial invocation (HTTP GET) Instantiates an Action, but does no t invoke execute(...)

2004-08-31 Thread Sheehan, Andrew
Good Afternoon, An instance of a my Action class only has its' constructor firing when the ActionServlet first loads it, when the execute(...) function should be invoked at some point afterward. I do not have any need for a ActionForm with this specific request; only that the request must

[OT] Sorry could not resist [was RE: [OT] Tomcat MD5 Authenticati on ]

2004-08-31 Thread Pilgrim, Peter
-Original Message- From: klute [mailto:[EMAIL PROTECTED] ==///== have not done it myself but hopefully this thread is of some help.. [ Now, I remember ... ] Klute Weren't you the tearful little girl who found herself left alone after all the settlers had been murdered on the

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread James Mitchell
I would propose this as the fix [EMAIL PROTECTED] ~/cvs/jakarta-struts $ cvs diff -u src/share/org/apache/struts/validator/ValidatorPlugIn.java Index: src/share/org/apache/struts/validator/ValidatorPlugIn.java === RCS file:

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread Michael Nascimento Santos
This is the only difference from 1.25 to 1.26 (file version) http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/validator/ValidatorPlugIn.java?r1=1.25r2=1.26diff_format=h BTW, the log for 1.26 says: * Use Boolean.valueOf() instead of creating new instances. That is

RE: Initial invocation (HTTP GET) Instantiates an Action, but does not invoke execute(...)

2004-08-31 Thread Jim Barrows
-Original Message- From: Sheehan, Andrew [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 10:43 AM To: [EMAIL PROTECTED] Subject: Initial invocation (HTTP GET) Instantiates an Action, but does not invoke execute(...) Good Afternoon, An instance of a my

RE: [ANN] Struts 1.2.2 release is now available for download.

2004-08-31 Thread Hollaway, Shedrick CIV (TRFKB C600)
A big thanks to you James for your leadership and all involved your labor :-D Shed. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 10:19 AM To: Struts Users Mailing List Cc: Struts Developers List Subject: [ANN] Struts 1.2.2 release

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread James Mitchell
Ok, so without looking, my proposed fix is basically putting it back to the way it wasnow that's sad. Martin, what should we do with this? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Michael

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread Kris Schneider
I was gonna post this suggestion anyway, but here's something that will work with JDK 1.3 and is in the spirit of avoiding the creation of Boolean instances. Instead of: new Boolean(this.stopOnFirstError) How about something like: (this.stopOnFirstError ? Boolean.TRUE : Boolean.FALSE) Or

Re: Classloading problem

2004-08-31 Thread Erik Weber
This is from the JDBC DataSource howto: DBCP uses the Jakarta-Commons Database Connection Pool. It relies on number of Jakarta-Commons componenets: * Jakarta-Commons DBCP 1.0 * Jakarta-Commons Collections 2.0 * Jakarta-Commons Pool 1.0 These jar files along with your the jar file for

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread James Mitchell
That works for me. I'll make the change unless anyone disagrees. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: Kris Schneider [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent:

Re: Questions on logging

2004-08-31 Thread Craig McClanahan
On 31 Aug 2004 15:43:29 +0800, Sebastian Ho [EMAIL PROTECTED] wrote: Hi I am in the stage of implementing logging in my struts application. I have been reading online but have some questions unanswered. 1. Action class should be thread-safe. Therefore no static variable, I should just use

Re: Classloading problem

2004-08-31 Thread Erik Weber
Also, since you appear to be trying to follow the documenation, have you ever gotten a Context XML file placed within the META-INF directory of your web app to work? I can't get this to work (I have gotten them to work when placed in the conf directory -- though I had to learn the hard way to

Re: Classloading problem

2004-08-31 Thread Erik Weber
Kris, this is from context.html in the Tomcat 5 docs:* Please note that for tomcat 5.x, unlike tomcat 4.x, it is NOT recommended to place Context elements directly in the server.xml file.* Instead, put them in the META-INF/context.xml directory of your WAR file or the conf directory as

RE: Classloading problem

2004-08-31 Thread Ivan Vasquez
Thanks for your answer, that explains it all. Yes, we were trying to clean server.xml and to avoid server restarts every time something changes (e.g. db connection pool info). Context was directly cut and pasted into the local META-INF/context.xml. But Tomcat gets it only when you create a

Re: Is Tiles the right way to go?

2004-08-31 Thread John Plate
Hi Craig I am trying to learn Tiles. Is Tiles the right way to go with Struts? Should I study other tool before sticking with Tiles? ... It is impossible to give you any useful help on this question without understanding what you are trying to accomplish with (or without) Tiles, and what

Re: Classloading problem

2004-08-31 Thread Kris Schneider
Hang on, my bad - it should be /META-INF/context.xml. So, rename Foo.xml to be context.xml and place it in *META-INF*. Quoting Erik Weber [EMAIL PROTECTED]: Kris, this is from context.html in the Tomcat 5 docs:* Please note that for tomcat 5.x, unlike tomcat 4.x, it is NOT recommended to

Re: Classloading problem

2004-08-31 Thread Erik Weber
I have tried this repeatedly. I am using the same Foo.xml file that does work when placed in conf/Catalina/localhost/. I have tried with and without the path and docBase attributes to the Context element. I have renamed the file to context.xml and it is in META-INF in my war file. I have also

RE: Classloading problem

2004-08-31 Thread Ivan Vasquez
Erik, here goes my context.xml, Tomcat renames it the same as the app's directory. I assume your Tomcat has autodeploy enabled. !--By Ivan: WAR-contained Application Context-- !--Path defines the directory name created when war is deployed-- Context path=/nahrgisdev docBase=nahrgisdev debug=5

File Upload and DynaForms

2004-08-31 Thread Ryan Tyer
Is it possible to use dynaforms to setup file upload? If so, any tips? Thanks in advance. R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: 1.2.2 validator problem in websphere

2004-08-31 Thread James Mitchell
Just for sanity sake, I reconfigured Eclipse to build with 1.3.1 and found one more place with 1.3.1 incompatibilities. Same issue with Boolean, but in a different spot (Tiles). I have fixed that also. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017

After sesion invalidate cannot find bean

2004-08-31 Thread Ricardo Andres Quintero
Hello Guys i notice this error that when the session expirates, if an action that uses a beanform is requested, and validate is true, the framework normally tries to execute the validate method of the bean, but you know the beanform just doesnt exist anymore, but the request can not be treated for

Re: After sesion invalidate cannot find bean

2004-08-31 Thread James Mitchell
How can i solve this problem? You can have some way of catching this so the user won't see this error. I use a meta tag that makes the page redirect to /logon.do after the (configurable) timeout has expired (this happens client side and no javascript required). -- James Mitchell Software

Re: Classloading problem

2004-08-31 Thread Erik Weber
Here is mine, which does not work: Context path=/Foo docBase=Foo debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_Foo_log. suffix=.txt timestamp=true/ Resource name=jdbc/MySQLDB auth=container type=javax.sql.DataSource/

Re: Classloading problem

2004-08-31 Thread Erik Weber
[eweber]$ jar tf $TOMCAT_HOME/webapps/Foo.war . . . META-INF/context.xml META-INF/MANIFEST.MF . . . Right? Erik Ivan Vasquez wrote: Erik, here goes my context.xml, Tomcat renames it the same as the app's directory. I assume your Tomcat has autodeploy enabled. !--By Ivan: WAR-contained Application

Re: SecurityFilter Question?

2004-08-31 Thread struts Dude
Thanks robert. Greatly appreciated. Now has anyone tried to put login form on every page of site if user hasn't login with STRUTS? Say, put a small login form on left hand column menu/navigational bar. Is there anything I need to look out for? - Original Message - From: Robert Taylor

RE: Classloading problem

2004-08-31 Thread Ivan Vasquez
Yes. And I just deployed a war with my config to another server to double-check. -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 5:17 PM To: Struts Users Mailing List Subject: Re: Classloading problem [eweber]$ jar tf

Re: Classloading problem

2004-08-31 Thread Erik Weber
You are using Tomcat 5.0.27? Erik Ivan Vasquez wrote: Yes. And I just deployed a war with my config to another server to double-check. -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 5:17 PM To: Struts Users Mailing List Subject: Re:

RE: Classloading problem

2004-08-31 Thread Ivan Vasquez
Also, the name under which it gets to conf/Catalina/localhost is app_name_folder.xml Inside, path and docBase are untouched. No war extensions anywhere. BTW, these are tomcat 5.0.16, just in case. -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31,

Re: After sesion invalidate cannot find bean

2004-08-31 Thread Ricardo Andres Quintero
It sounds good but i dont know how to do it! can u explain to me how to? On Tue, 31 Aug 2004 17:30:44 -0400, Erik Weber wrote Perhaps you could override one of the RequestProcessor methods, and check for the existence of a known Session attribute, before Struts tries to work with the

Re: After sesion invalidate cannot find bean

2004-08-31 Thread Erik Weber
Seemingly (I haven't done this but actually I need to and probably will try it): 1) extend org.apache.struts.action.RequestProcessor 2) override either the processPreprocess method, or the processMapping method, either of which is invoked *before* processActionForm 3) in processPreprocess,

Re: Classloading problem

2004-08-31 Thread Erik Weber
Ivan, as you can see I've tried everything I can think of. Perhaps when I have more time I will mess around with it some more, but it's easier just to use JBoss. I appreciate your help (and Kris's). Erik Ivan Vasquez wrote: Also, the name under which it gets to conf/Catalina/localhost is

Re: After sesion invalidate cannot find bean

2004-08-31 Thread Ricardo Andres Quintero
Thank you i will try it later! On Tue, 31 Aug 2004 17:45:29 -0400, Erik Weber wrote Seemingly (I haven't done this but actually I need to and probably will try it): 1) extend org.apache.struts.action.RequestProcessor 2) override either the processPreprocess method, or the processMapping

tiles and ActionForwards

2004-08-31 Thread Leung, Albert
I would like to use a tile definition in an action forward with request parameters. I have an Action that takes a forward mapped in the Action definition and supplies it with parameters by appending it to the path and then creating a new ActionForward with the supplied parameters. I can't use

RE: tiles and ActionForwards

2004-08-31 Thread Jim Barrows
-Original Message- From: Leung, Albert [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 4:08 PM To: Struts Users Mailing List Subject: tiles and ActionForwards I would like to use a tile definition in an action forward with request parameters. I have an Action that

RE: tiles and ActionForwards

2004-08-31 Thread Leung, Albert
That makes sense, but how would I do that? These parameters are not part of a form. I would like to use a tile definition in an action forward with request parameters. I have an Action that takes a forward mapped in the Action definition and supplies it with parameters by appending it to

RE: tiles and ActionForwards

2004-08-31 Thread Jim Barrows
-Original Message- From: Leung, Albert [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 4:14 PM To: Struts Users Mailing List Subject: RE: tiles and ActionForwards That makes sense, but how would I do that? These parameters are not part of a form.

RE: tiles and ActionForwards

2004-08-31 Thread Leung, Albert
You're right. Thanks. I'll give that a try. That makes sense, but how would I do that? These parameters are not part of a form. request.setAttribute( page, page); Forms have nothing to do with putting things into request, session or application scope. I would like to use a

  1   2   >