Struts + Tiles..

2002-02-20 Thread Tuomo Syvänperä
Hi.. I know you must be sick and tired of these stupid questions about struts tiles but I have a problem (imagine that). I keep getting java.lang.IllegalStateException from tomcat when using tiles. At first I thought I had just done something wrong when using tiles, but it seems that even a

Re: Struts + Tiles..

2002-02-20 Thread Tuomo Syvänperä
Okay... Seems to be a problem with tomcat. I tried the same thing with orion and it works like a charm. Anybody now about this kind of bug in tomcat ? Or is it a bug or a feature :) /tuomo Tuomo Syvänperä wrote: Hi.. I know you must be sick and tired of these stupid questions about struts

Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread Tuomo Syvänperä
] wrote: Yes I am using 1.4beta. But an almost identical webapp works with 1.4beta. Strange I say. Tuomo Syvänperä wrote: Hi Antony, Are you using Sun's JDK 1.4 beta.. I got the same 'object is not an instance of declaring class' - error when I used JDK 1.4. Try switching to 1.3

Chaining actions etc...

2001-12-14 Thread Tuomo Syvänperä
Hi, There's been loads of discussion about how to implement this action chaining.. Last night I cooked up yet another possible way to do it.. The chainToPage class implementation by Keith Bacon posted earlier seemed like a nice way to do it at first.. But what I'm looking for is a more generic

My implementation of Action chaining...

2001-12-14 Thread Tuomo Syvänperä
Hi.. I posted earlier my suggestion to the action chaining problem... Well, here's a bare-bones implementation of what I was talking about. Again, this may be totally f*cked up but it's your job to tell me what I'm doing wrong :) I've attached my (partial) implementation to this post.. /tuomo

My implementation of Action chaining - Fixed

2001-12-14 Thread Tuomo Syvänperä
Sorry.. I forgot one method from the ActionBase - class.. Attached is the new version. /tuomo Page A: - has the following app:returnStamp tag app:returnStamp to=pageA.do from=pageB.do / - if there is access to page B from some other page C we should also add the tag to page C otherwise

ActionMappings parameter - field

2001-12-13 Thread Tuomo Syvänperä
Hi, What is the parameter - field for in the ActionMapping class ? I was thinking about storing some info there that I use to communicate some things between my actions. Is it safe to just call ActionMapping.setParameter and set its value or should it be put inside a synchronized block ?

Re: ActionMappings parameter - field

2001-12-13 Thread Tuomo Syvänperä
. -Original Message- From: Tuomo Syvänperä [mailto:[EMAIL PROTECTED]] Sent: 13 December 2001 12:45 To: [EMAIL PROTECTED] Subject: ActionMappings parameter - field Hi, What is the parameter - field for in the ActionMapping class ? I was thinking about storing some info there that I use

Alternate form action

2001-12-12 Thread Tuomo Syvänperä
Hi, How can I return to correct page after submitting a form which can be called from several places.. What I have is a actionform which can be accessed from many different places. ie. I have page A with a link: html:link page=/editArticle.do?action=Edit paramId=id paramName=article

Re: Alternate form action

2001-12-12 Thread Tuomo Syvänperä
). Now in saveArticle - action mapping.getInput() returns the editArticle.jsp form and not the page from which we came from.. /tuomo Jon.Ridgway wrote: Hi Tuomo, You could try using: mapping.getInput () in your actions perform method. Jon. -Original Message- From: Tuomo

Re: Alternate form action - corrected!

2001-12-12 Thread Tuomo Syvänperä
) formBean.getReturnTo(); thisForm.setReturnTo() = returnTo; /* * 2 - on completion */ return new ActionForward(returnTo); --- Tuomo Syvänperä [EMAIL PROTECTED] wrote: Hmm.. Nope. mapping.getInput() always returns the same thing regardless of the page from which we came from. Here's a bit

Re: Alternate form action - corrected!

2001-12-12 Thread Tuomo Syvänperä
--- Tuomo Syvänperä [EMAIL PROTECTED] wrote: In a way this is exactly what I do right now.. But the problem is the request attributes parameters sent to the 'returnTo' page.. These are lost when using this technique.. In my version I also set the request attributes as hidden form fields