RE: Struts2 - JasperReport Plugin - Subreport Problem

2008-07-12 Thread Bruce Phillips
Thanks to some great help from Dave Newton, I was able to figure out how to use Struts2, JasperReports, a main report and a sub-report in my web application. I blogged about how I got it all to work here: http://tinyurl.com/5h7nvv on my blog at http://www.brucephillips.name/blog In that blog e

Thoughts of using explicit regexps instead of wilcards for action mappings?

2008-07-12 Thread Karr, David
One thing that's always bothered me a bit about using wildcards for action mappings is that it's somewhat less self-documenting than I'd like. Although I like being more concise, I'd really rather have an alternative form that is still concise but still specifies what possible wildcard values to e

error only in eclipse not in tomcat

2008-07-12 Thread nani2ratna
Hi, I am doing small example, when i start the application (means running the tomcat server from eclipse) i am getting exception like this Unable to load configuration. - bean - jar:file:/C:/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/quickstart/WEB-INF/lib/struts2-c

Re: [S2] Recipe for Action and View

2008-07-12 Thread Andreas Mähler
Hi ! Gabriel Belingueres schrieb: The problem you want to solve is very common (skipping form validation the first time you call an action) Aah - I thought so - that's why I was asking for a recipe. and, as Dave wrote, it is commonly solved by invoking the action with the input() method [1].

Re: [S2] Recipe for Action and View

2008-07-12 Thread Dave Newton
--- On Sat, 7/12/08, Andreas Mähler wrote: > Are there any interceptors that actually change the parameter map? > As I said, I am a S2 newbie and haven't heard of many things, but I > would consider it as bad style. As an example, the checkbox interceptor removes the hidden checkbox parameters

Re: [S2] Recipe for Action and View

2008-07-12 Thread Gabriel Belingueres
Sorry it seems I entered the conversation later and didn't saw that email. The problem you want to solve is very common (skipping form validation the first time you call an action) and, as Dave wrote, it is commonly solved by invoking the action with the input() method [1]. This method will do not

Re: [S2] Recipe for Action and View

2008-07-12 Thread Andreas Mähler
Hello again, Gabriel Belingueres schrieb: Without knowing what are you actually trying to accomplish with this interceptor, I would warn that when an interceptor messes up with the parameters, you need to carefully think where in the interceptor chain this interceptor will execute. I explain w

CodeBehind and index action?

2008-07-12 Thread Paul Benedict
Does the CodeBehind plugin allow me to specify a default action for a directory? So that way I can just do /dir instead of /dir/index.action? If not, how can I do it? I want any directory to go invoke index.action I am using Struts 2.0.11 Paul

Struts2 - JasperReport Plugin - Subreport Problem

2008-07-12 Thread Bruce Phillips
I'm having a problem getting the Struts2 JasperReport plugin to work when my JasperReport main report uses a sub-report. I can get the the plugin to work fine with a JasperReport that doesn't use a subreport. But when I add a sub-report to the main report that uses an new JRBeanCollectionDataS

Re: Struts2 application doesn't work with Firefox 3

2008-07-12 Thread Dave Newton
There *is* a workaround, and I provided the link for it yesterday. Dave --- On Sat, 7/12/08, Pierrot52 <[EMAIL PROTECTED]> wrote: > From: Pierrot52 <[EMAIL PROTECTED]> > Subject: Re: Struts2 application doesn't work with Firefox 3 > To: user@struts.apache.org > Date: Saturday, July 12, 2008, 9:0

Re: Problem with s:set and s:if

2008-07-12 Thread Gabriel Belingueres
Looking at the docs: http://struts.apache.org/2.1.2/docs/ognl.html there is no #page notation when using struts taglibs, since they all use OGNL syntax. If you need to access a page scoped object, you need to use the #attr notation. 2008/7/12 Othon Reyes Sanchez <[EMAIL PROTECTED]>: > #page is no

Re: [S2] Recipe for Action and View

2008-07-12 Thread Gabriel Belingueres
Without knowing what are you actually trying to accomplish with this interceptor, I would warn that when an interceptor messes up with the parameters, you need to carefully think where in the interceptor chain this interceptor will execute. 2008/7/11 Andreas Mähler <[EMAIL PROTECTED]>: > Hello Gab

Re: Problem with s:set and s:if

2008-07-12 Thread Othon Reyes Sanchez
#page is not an instance of a user class. page is an implicit object of jsp like request, session, application, etc. i don't know what is happening if i use to put the variable "aver" in the page object it works fine. i mean, i can use EL to use this var i.e. ( ${pageScope.aver} ). I think that

Re: Struts2 application doesn't work with Firefox 3

2008-07-12 Thread Pierrot52
Again My application works fine with Firefox 2, IE6, IE7, Opera 9.51, and Safari 3.1.2 but not with Firefox 3. I reported the problem to Firefox 3 Mozilla and they told me that Firefox 3 works fine with Dojo 1.x I agree but there are problems with Struts2 and with Dojo 0.4 that is bundled with.

Re: Struts2 application doesn't work with Firefox 3

2008-07-12 Thread Pierrot52
With the tag the pages load and then become blank while Firefox hangs trying to load something. Well if I change the to it works fine. On the other hand I lose the ajax functionality. The widgets provided by dojo are not displayed. Regards. newton.dave wrote: > > --- On Fri, 7/11/08, Pier

Re: For the authors of Mannings Struts 2 in Action, a question

2008-07-12 Thread Don Brown
On Sat, Jul 12, 2008 at 5:56 PM, Lyallex <[EMAIL PROTECTED]> wrote: > Wouldn't it be great to have the redirect resultType parameterised in > some way so that the target could be set depending on which action was > selected .. You can. Try something like this: ${destination} /cha

Re: For the authors of Mannings Struts 2 in Action, a question

2008-07-12 Thread Dave Newton
--- On Sat, 7/12/08, Lyallex <[EMAIL PROTECTED]> wrote: > Well I did try posting to the authors blog on the Manning > site but the post was thrown out because of the XML... Using a service like pastebin, paste2, nopaste, etc. solves that problem, and can be a better alternative for long-ish snipp

Re: For the authors of Mannings Struts 2 in Action, a question

2008-07-12 Thread Lyallex
:- There are decent forums at manning.com that might be a better place to put :- this note -- I know the authors read the forums there. Well I did try posting to the authors blog on the Manning site but the post was thrown out because of the XML ... >> I'm not one of the authors, but I helped...