Re: read the source code

2009-10-29 Thread mark lu
I want to write the book,however,maybe you'll be disappointed! because i can spend very little time on reading the source code. in the work ,i don't use the struts,so... Thank you for your encouragement!! Wendy Smoak-3 wrote: > > On Wed, Oct 28, 2009 at 6:50 PM, mark lu wrote: >> Thank you ver

checkbox in table struts 1.2

2009-10-29 Thread fea jabi
I am trying to add checkboxes in table column and unable to do so. need to send a boolean value when the checkbox is checked otherwise false. * Created a bean for each row in the table Have a bean Employee firstName lastname . Bo

Getting Struts2 Action class values.

2009-10-29 Thread sharath karnati
Hi All,       Say I'm having below submit.jsp file.      First Name: Last Name:        on submit this form it will invoke InquiryAction   public class InquiryAction extends ActionSupport implements ParameterAware {       private String first_name; private String last_name;

Re: Preserving Messages and Garbage values Across a Redirect in Struts 2

2009-10-29 Thread Siddiq Syed
I donno If i can able to explain it to you, I will try my best , here is the secinario Step 1. When the user click the button on the page, depend on the string return from the action method the page will be display and is configured in the struts.xml file as mention below.

Re: Preserving Messages and Garbage values Across a Redirect in Struts 2

2009-10-29 Thread Greg Lindholm
Still don't understand why you need to redirect on input result. Normally when validation fails you want to return the user back to the same page. If you dispatch back to the input jsp page (instead of redirect) then all the input parameters will be there so can be redisplayed with the error messa

Re: Preserving Messages and Garbage values Across a Redirect in Struts 2

2009-10-29 Thread Siddiq Syed
Hi Greg, Thanks for your quick repley,! The reason for doing a redirect on the input is that system needs to determine what will be the page to display next along with the error messages and the garbage values. As a temporary solution i am using the getter and setter methods of the variables of

Re: Convention Plugin & Struts Packages

2009-10-29 Thread Musachy Barroso
It is a file where you put annotations that are applied to the package. See: http://onjava.com/pub/a/onjava/2004/04/21/declarative.html?page=3 musachy On Thu, Oct 29, 2009 at 11:51 AM, Roger wrote: > On Thursday 29 October 2009 19:33:49 Musachy Barroso wrote: >> also, the @ParentPackage can be a

Re: Convention Plugin & Struts Packages

2009-10-29 Thread Roger
On Thursday 29 October 2009 19:33:49 Musachy Barroso wrote: > also, the @ParentPackage can be applied to a whole package by putting > it in a package-info.java file. I will add that to the docs. > I've seen package-info.java mentioned in couple of places in the Convention docs. This is probably

Re: Convention Plugin & Struts Packages

2009-10-29 Thread Musachy Barroso
also, the @ParentPackage can be applied to a whole package by putting it in a package-info.java file. I will add that to the docs. musachy On Thu, Oct 29, 2009 at 7:01 AM, James Cook wrote: > If you use > > struts.convention.default.parent.package > > In either the web.xml or struts.xml, I think

Re: i18n within dojo attribute

2009-10-29 Thread larryreed
Thank you for your help. This was, I believe, a typo in the email, but not in the code. In any case, including the closing single quote does not solve the problem. Here is the exact text and error message: The generated error text: 'The function getText must be used with a prefix when a

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
however, this does not gurantee the order (because of the HashMap)... something else can be used to preserve the order On Thu, Oct 29, 2009 at 12:31 PM, Bhaarat Sharma wrote: > got it. > > it should be list="#...@java.util.hashmap@{'1':'January', > '2':'February','3':'March'}" > > source: > http

RE: struts.convention.package.locators.basePackage

2009-10-29 Thread James Cook
Just did :-). I took source from the Struts 2.1.6 and the xwork 2.1.2 tags and have backward ported Brians fix to it. Passes the unit tests and works on deployments. Just need to confirm I haven't broken anything else because of it. Must say, quite fun rolling around the Struts internals... ---

Re: struts.convention.package.locators.basePackage

2009-10-29 Thread Musachy Barroso
you can just build it from trunk, and dump the new convention jar into your existing app, it should work. musachy On Thu, Oct 29, 2009 at 3:16 AM, James Cook wrote: > Infact I think I have answered my own question. > > In context of my previous email regarding the scanning, this bug: > https://i

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
got it. it should be list="#...@java.util.hashmap@{'1':'January', '2':'February','3':'March'}" source: http://www.nabble.com/JasperException-and-javax.el.ELException-when-running-under-Jetty-td13734373.html

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
how can I keep it from interpreting it as EL expression its OGNL.. I am using Sun App Server 9.1 could there be a setting on the server? On Thu, Oct 29, 2009 at 12:10 PM, Bhaarat Sharma wrote: > :( > > still it gives this error: > > javax.el.ELException: Error Parsing: %{#{'ALL':'All Progr

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
:( still it gives this error: javax.el.ELException: Error Parsing: %{#{'ALL':'All Programs', 'BU':'all BU programs'}} On Thu, Oct 29, 2009 at 12:02 PM, James Cook wrote: > Hi, > > I checked the javadoc for select and this is what is listed. > > name="months" >headerKey="-1" he

RE: javax.el.ELException Select Tag

2009-10-29 Thread James Cook
Hi, I checked the javadoc for select and this is what is listed. This is what I used last night. So #{} worked for me. -Original Message- From: Dale Newfield [mailto:d...@newfield.org] Sent: 29 October 2009 15:54 To: Struts Users Mailing List Subject: Re: javax.el.ELException Select

Re: javax.el.ELException Select Tag

2009-10-29 Thread Dale Newfield
Bhaarat Sharma wrote: so it should be: No: list='%{#{"All":"All Programs", "BU":"BY Problems"...}}' -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.a

RE: javax.el.ELException Select Tag

2009-10-29 Thread James Cook
Oh so I do. Sorry. I am pretty certain I did it with # last night, because I remember I blindly attacked it with a % and had to change -Original Message- From: Bhaarat Sharma [mailto:bhaara...@gmail.com] Sent: 29 October 2009 15:41 To: Struts Users Mailing List Subject: Re: javax.el.ELEx

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
you have the same code as my original code ...right? On Thu, Oct 29, 2009 at 11:39 AM, James Cook wrote: > Should a # > > list="#{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS > Programs'}" > value="selectedProgram" required="true"/> > > I made the same overs

RE: javax.el.ELException Select Tag

2009-10-29 Thread James Cook
Should a # I made the same oversight last night Cookie -Original Message- From: Bhaarat Sharma [mailto:bhaara...@gmail.com] Sent: 29 October 2009 15:36 To: Struts Users Mailing List Subject: Re: javax.el.ELException Select Tag so it should be: ? On Thu, Oct 29, 2009 at 11

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
so it should be: ? On Thu, Oct 29, 2009 at 11:34 AM, Dale Newfield wrote: > If you indicated that the attribute was OGNL by wrapping it in %{}, the > container wouldn't try to parse it as JSTL-EL. > > -Dale > > - > To uns

Re: javax.el.ELException Select Tag

2009-10-29 Thread Dale Newfield
If you indicated that the attribute was OGNL by wrapping it in %{}, the container wouldn't try to parse it as JSTL-EL. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h..

Re: javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
furthermore, I have struts-tags.tld in my WEB-INF folder. Are there any other tld's that the select tag depends on On Thu, Oct 29, 2009 at 11:30 AM, Bhaarat Sharma wrote: > I have the following code: > > name="programType" > list="#{'ALL':'All Programs', 'BU':'BY Proble

Re: Preserving Messages and Garbage values Across a Redirect in Struts 2

2009-10-29 Thread Greg Lindholm
The short answer is don't redirect when validation fails. For results of "input" you should not be doing a redirect or you get the problem you described. On Thu, Oct 29, 2009 at 11:13 AM, Siddiq Syed wrote: > > Hi all, > > I have been using Glindholm's RedirectMessageInterceptor to perserve th

javax.el.ELException Select Tag

2009-10-29 Thread Bhaarat Sharma
I have the following code: which is giving error: org.apache.jasper.JasperException: /reports/threshold/reportselection_struts2.jsp(102,12) PWC6038: "#{'ALL':'All Programs', 'BU':'BY Problems', 'TS':'TS Programs'}" contains invalid expression(s): javax.el.ELException: Error Parsing

Preserving Messages and Garbage values Across a Redirect in Struts 2

2009-10-29 Thread Siddiq Syed
Hi all, I have been using Glindholm's RedirectMessageInterceptor to perserve the validations/error messages and is working absoulty fine. But the problem is the values in the fields are not stored. If a form has 10 fields of which 2 fields are not valid(It does not pass validation), Intercerpt

RE: Convention Plugin & Struts Packages

2009-10-29 Thread James Cook
If you use struts.convention.default.parent.package In either the web.xml or struts.xml, I think what you specify there will be the default for all actions. I have a link in the previous email but I think it must have been removed : struts.apache.org/2.1.6/docs/convention-plugin.html#Conventio

Re: JRebel Struts integration

2009-10-29 Thread Sander Sõnajalg
On Thu, Oct 29, 2009 at 1:28 PM, Martin Gainty wrote: > > Sõnajalg-- > > does Jrebel work with WebApp classloader or System classloader? > i didnt catch which containers you are supporting? > Which events does Jrebel listen for? > > i agree a redeploy should not take more than a week > Martin

RE: Convention Plugin & Struts Packages

2009-10-29 Thread RogerV
James Cook-13 wrote: > > Hey Roger, > > You need to use @ParentPackage I believe. Or use this > > struts.convention.default.parent.package > > Hope this helps > > Cookie > Thanks Cookie, adding @ParentPackage to all my secure actions has solved the problem and I'm now getting the secureSt

RE: Convention Plugin & Struts Packages

2009-10-29 Thread James Cook
Hey Roger, You need to use @ParentPackage I believe. Or use this struts.convention.default.parent.package Check out: http://struts.apache.org/2.1.6/docs/convention-plugin.html#ConventionPlu gin-ParentPackageannotation Hope this helps Cookie -Original Message- From: RogerV [mailto:rog

Convention Plugin & Struts Packages

2009-10-29 Thread RogerV
I'm having a bad day today, I cannot get Struts 2 using the Convention plugin to recogize the fact that the package "secure" (which extends struts-default) uses a different interceptor stack. I know I'm doing something stupid, but I can't see what. When I call an action in the secure namespace t

RE: JRebel Struts integration

2009-10-29 Thread Martin Gainty
Sõnajalg-- does Jrebel work with WebApp classloader or System classloader? i didnt catch which containers you are supporting? Which events does Jrebel listen for? i agree a redeploy should not take more than a week Martin __ Verzicht und Vertraulich

RE: struts.convention.package.locators.basePackage

2009-10-29 Thread James Cook
Infact I think I have answered my own question. In context of my previous email regarding the scanning, this bug: https://issues.apache.org/struts/browse/WW-3234 The XWorks scans all classes on the CP first then the PackageBasedActionConfigBuilder attempts to eval, and I am assuming this is where

struts.convention.package.locators.basePackage

2009-10-29 Thread James Cook
Hi All, Pretty certain this is a bug, but I can't get struts.convention.package.locators.basePackage To be noticed, I am using 2.1.6 libs Any one suggest anything? Cheers James

JRebel Struts integration

2009-10-29 Thread Sander Sõnajalg
Hey Guys, For the last few weeks, I've been working on building Struts/Struts2 integration into JRebel, for a couple reasons: JRebel is a JVM agent that brings class reloading to the JVM platform, enabling web-application development without waiting for redeploys each time you change something. Fo

Re: i18n within dojo attribute

2009-10-29 Thread Zoran Avtarovski
You¹re missing the closing inverted comma on fieldPrompt. Z. > > It occurred to me to use an OGNL form to do this, but I am still having a > challenge getting it to work. > > I've tried > > promptMessage="${getText('fieldPrompt)}" /> > > This gets me past the first problem, but still doesn't

AW: i18n within dojo attribute

2009-10-29 Thread samuel.robert
Hi, I think you just need to write "%" instead of "$" in the promptMessage attribute. Regards, Sitz der Gesellschaft / Corporate Headquarters: Lufthansa Technik AG, Hamburg, Registereintragung / Registration: Amtsgericht Hamburg HRB 56865 Vorsitzender des Aufsichtsrats / Chairman of the Sup

Re: Getting result of JSP before sending to client

2009-10-29 Thread Steven Yang
hi i just looked at embeddedjsp plugin it requires JAVA 1.6 which i am not using, only using 1.5. i also need to make sure saving the HTML is in the same Transaction(database transaction) as saving the record. Therefore, intercepting the result in filter may not be a solution for me. is there oth

Re: Getting result of JSP before sending to client

2009-10-29 Thread Steven Yang
i will take a look at embeddedjsp plugin actually what we are doing is we have a form/survey and after user completes it, we, originally, want to save it as PDF which would have no problem for me, but due the time constraint we decided to simply save the file/report as HTML, thats why i want to kn