Re: chain or redirectAction ResultType

2011-05-30 Thread Steven Yang
chaining is not recommended. basically as you have observed, chaining is a server-side redirect. you go to another page without changing client's browser url. i have not seen a formal argument of the bad of it (or i forgot) but what i have observed is that the user may hit Reload on browser and ge

chain or redirectAction ResultType

2011-05-30 Thread Sachin Lale
Hi, I am migrating an application from struts1.1 to struts 2.2.3. I have two action 1. InstitutuionAction : The purpose is to prepare the data required to display and then forward to a Institution.JSP (using tiles) 2. InstitutionAddEditAction: This action exposed two methods insert,

Re: How to allow to accept dynamic src image file?

2011-05-30 Thread Emi Lu
On 05/30/2011 03:05 PM, Chris Pratt wrote: Argh, hit send too early. No, EL is disabled in the struts for security reasons. But OGNL should work fine. Something like src="%{#imageName}" should do the trick. (*Chris*) Thank you very much Chris! It works. bean.java private String image_f

Re: How to allow to accept dynamic src image file?

2011-05-30 Thread Chris Pratt
Argh, hit send too early. No, EL is disabled in the struts for security reasons. But OGNL should work fine. Something like src="%{#imageName}" should do the trick. (*Chris*) On May 30, 2011 12:01 PM, "Chris Pratt" wrote: > > No, EL is disabled in the struts for security reasons. But src="%{

Re: How to allow to accept dynamic src image file?

2011-05-30 Thread Chris Pratt
No, EL is disabled in the struts for security reasons. But src="%{#}" On May 30, 2011 9:37 AM, "Dave Newton" wrote: > On Mon, May 30, 2011 at 11:30 AM, Emi Lu wrote: >> But does not support src = "<%%>" > > Does normal EL work? > > Dave > > --

Re: How to allow to accept dynamic src image file?

2011-05-30 Thread Dave Newton
On Mon, May 30, 2011 at 11:30 AM, Emi Lu wrote: > But does not support src = "<%%>" Does normal EL work? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apach

Re: How to allow to accept dynamic src image file?

2011-05-30 Thread Burton Rhodes
You can override the freemarker template to do this. It's fairly easy. Just look for the submit tpl file, copy it a templates dir, and modify it to accept 'src' parameter. There are examples of how to override struts templates by googling it. On Monday, May 30, 2011, Emi Lu wrote: > Hello list, >

How to allow to accept dynamic src image file?

2011-05-30 Thread Emi Lu
Hello list, A question about in struts2.2.3 Icon is dynamic: <% String pdf_icon= request.getContextPath() + "/img/pdficon.png" ; %> action="preview_pdfProcessAction" /> But does not support src = "<%%>" Is there a way, can make s:submit accept dynamic src image location? Thanks a lot!

Re: Struts2 Date time picker problem in Firefox

2011-05-30 Thread Maurizio Cucchiara
Could you post your jsp file (preferably through a pastebin service) ? On 30 May 2011 10:16, Amol Ghotankar wrote: > @Maurizio: > > I have not changed anything, and the application is very simple do not use > any dojo manipulation too. > > Yes the output is from the client browser retrieved via

Re: Hidden Exceptions

2011-05-30 Thread Christian Grobmeier
Cool thanks. This worked for me. As I don't use a default stack, it was better for me to configure directly: true ERROR Cheers and thanks again, this helped me working with more comfort. Christian Is it the "exception" interceptor, because OGNL does some magic and calls th

Re: Hidden Exceptions

2011-05-30 Thread M.C. Wilson
Well, let's see... I am no Struts expert, but one way that I know of to log errors is by using your struts.xml configuration. Make sure you have something like this in your interceptors: true ERROR

Hidden Exceptions

2011-05-30 Thread Christian Grobmeier
Hi, given this Action: public class MyAction { public String execute() throws Exception { // throws IllegalArgumentException } } I do not get a log output or anything else indicating that error. I have struts dev mode = true. Report page shows: "Struts has detected an unhandled exce

Problem on json result on includeparameter configuration

2011-05-30 Thread benny
I am using hibernate to generate a json object by Struts & struts-json-plugin on 2.2.1 my object is kind of list[].set[].set[] when my add a pattern as below: list\[\d+\]\.set\[\d+\]\.set\[\d+\]\.attr, apple.*, orange.* the json result cannot generate the correct json string. After I debu

Re: Struts2 Date time picker problem in Firefox

2011-05-30 Thread Amol Ghotankar
@Maurizio: I have not changed anything, and the application is very simple do not use any dojo manipulation too. Yes the output is from the client browser retrieved via firebug & similar browser plug-ins where I can see that in FF the value is blank. Any quick fix for this. Regards, Amol

Re: Struts2 Date time picker problem in Firefox

2011-05-30 Thread Maurizio Cucchiara
How did you check the output? are you sure this is not the output of some plugin like firebug, etc? AFAICR there is no difference between the FF and IE output, I'm inclined to think that what really happens has to do with dojo manipulation. On 30 May 2011 08:21, Amol Ghotankar wrote: > I checked