Re: Why two struts2 projects can not exsits in one server at one time

2007-12-22 Thread Ray
So it's because two projects can not use the same port number right? thank u. -- Ray Chen Email:[EMAIL PROTECTED] Blog: http://clraychen.blogcn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: Why two struts2 projects can not exsits in one server at one time

2007-12-22 Thread Nuwan Chandrasoma
Hi, Any reason to say like this? Thanks, Nuwan. (http://code.google.com/p/struts2-ssl-plugin/) Ray wrote: > hello everyone, > Why two struts2 projects can not exsits in one server at one time. > I use Jboss 4.0 > thank u > > -

Why two struts2 projects can not exsits in one server at one time

2007-12-22 Thread Ray
hello everyone, Why two struts2 projects can not exsits in one server at one time. I use Jboss 4.0 thank u -- Ray Chen Email:[EMAIL PROTECTED] Blog: http://clraychen.blogcn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: [OT] Exception.getLocalizedMessage()

2007-12-22 Thread Gary Affonso
A agree that you're going to have to bind something to the Exception in order to do I18N resolution. And I agree that creating that binding sucks. If you don't want to ditch getLocalizedMessage you could AOP it. Have your getLocalizedMessage() method wrapped with some advice that swaps in th

Re: [struts] [OT] Exception.getLocalizedMessage()

2007-12-22 Thread Dale Newfield
Adam Hardy wrote: And of course, I can't pass in parameters when calling getLocalizedMessage(). ThreadLocal? -Dale "Pass through the common block" Newfield - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[OT] Exception.getLocalizedMessage()

2007-12-22 Thread Adam Hardy
I came across a conundrum while implementing the S2 exception handling that we were discussing in another thread. As the title suggests, I'm interested in Exception.getLocalizedMessage() but have a seemingly intractable problem with it. Exception.getLocalizedMessage() returns by default the m

Re: Exception Handling keeping user input

2007-12-22 Thread Adam Hardy
OK, I'm with you on that point, but the interceptor should just return the user to the 'input' result in the event of an exception (and a redirect would lose the parameters). I thought it would require 'input' to be the default result if none other is specified. Martin Gainty on 22/12/00 21:00

Re: Exception Handling keeping user input

2007-12-22 Thread Martin Gainty
Hi Adam You can redirect to a customised Action e.g. ${redirectURL} OR you can call a predefined action with customised parameter otherAction?id=${id} http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html >From across the pond M-- - Original Message -

RE: struts 2 vs struts 1+spring

2007-12-22 Thread Joe Yuen
Thank you. It's nice to get a gracious, useful answer. I am not familiar with Struts 2 yet but am trying to learn as much as I can. Is it possible to run both Struts 1 and 2 together so that I can do the migration slowly rather than all at once? From: [EM

Re: direct access to freemarker files

2007-12-22 Thread Dave Newton
Can you just put them under WEB-INF like with JSP files? d. --- Leonidas Papadakis <[EMAIL PROTECTED]> wrote: > Greetings to all, > > i have implemented an area on a website only for registered users. The > issue is that i want to avoid people calling freemarker files directly > from the brow

Re: Exception Handling keeping user input

2007-12-22 Thread Adam Hardy
Jeremy, how do you control which result is chosen? Adam Jeremy JGR. Grumbach on 20/12/07 13:14, wrote: It's working with an interceptor :-) All my actions are implementing ActionSupport and I use the ActionSupport class in my interceptor. This is maybe not the final version, and every comment

Re: [S2]Using javascript to hide a struts tag

2007-12-22 Thread Dave Newton
--- Justin Frost <[EMAIL PROTECTED]> wrote: > OK seeing how I can not wrap tags in a , how would I go > about using the default theme to remove the whole that has the label > and field? > > I'm out of my knowledge area with this one. There are several ways around this issue, each having tradeof

Re: Error: dojo is not defined

2007-12-22 Thread ravi_eze
check if u had defined in ur jsp tag. one more thing: explode strruts-core.jar and copy the folder struts in it. it would contain dojo.. etc files. on including the head tag as said above, and view source u will find stru ts is trying to call some .js files. make sure that u get them all from s

checkbox interceptor

2007-12-22 Thread ravi_eze
hi, i have a form which has multiple checkbox lists in it. by default in each of the checkboxes few of them are selected. The problem is: when user unchecks all the boxes and submits the form is getting submitted with the default values. When i am using checkbox interceptor, and view source of t

Re: struts 2 vs struts 1+spring

2007-12-22 Thread Ted Husted
On Dec 22, 2007 2:21 AM, Joe Yuen <[EMAIL PROTECTED]> wrote: > Thanks that was a good analogy. I have used Spring and and I like it but then > let me turn the > question around, what do we gain by adding Struts 2 to be used with Spring? Spring MVC is a capable framework, and I wouldn't hesitate t

Re: struts 2 vs struts 1+spring

2007-12-22 Thread Ted Husted
On Dec 21, 2007 9:23 PM, Alberto A. Flores <[EMAIL PROTECTED]> wrote: > If you are following the typical scenario, here are some of the things > you would lose (that no Struts release will do): > > - Transaction Management (if you are using Spring for this) > - AOP support > - Dependency Injection

direct access to freemarker files

2007-12-22 Thread Leonidas Papadakis
Greetings to all, i have implemented an area on a website only for registered users. The issue is that i want to avoid people calling freemarker files directly from the browser since they will not produce html resulting in viewing the freemarker file code ( it should redirect if appropriate se

Struts1 config reload

2007-12-22 Thread Numen
Hi, Struts1 config reload is not suported,but in develop stage struts config is alway modified,then we must restart web server (e.g. tomcat),this is waste a lot of time,especially when server restart is slowly(e.g. in our project),so I write a tools to resolve the struts config reload.Thi