Re: [S2]Checkbox value

2007-12-12 Thread carmi_cd
hello i tried to view the value of and its value is just one id for each row.. but it seems the checkbox are not accepting this value.. "/> i dont know what wrong with this? thanks again. Ray Chen wrote: > > carmi_cd 写道: >> hello >> i have a checkbox which supposed to have the value of

Re: struts2-showcase-2.0.11 ajax is not working under IE 7

2007-12-12 Thread Jeromy Evans
Christopher Cheng wrote: It seems that struts2-showcase-2.0.11 ajax under tomcat-5.5 doesn't work on IE 7 but IE6 and firefox only Is there a patch or a newer version of dojo will make it work? What happens (or doesn't happen)? I apply only one work-around and one patch for IE7: - work-ar

Re: Is Struts2 ready for prime time?

2007-12-12 Thread Jeromy Evans
Dave Newton wrote: --- Rubens <[EMAIL PROTECTED]> wrote: I need to make a decision whether to use Struts vs Struts2. Even a year ago I would have used S2 over S1; AFAIC there's absolutely no question whatsoever. S2 is being used in production apps; I have two running now, will have tw

struts2-showcase-2.0.11 ajax is not working under IE 7

2007-12-12 Thread Christopher Cheng
It seems that struts2-showcase-2.0.11 ajax under tomcat-5.5 doesn't work on IE 7 but IE6 and firefox only Is there a patch or a newer version of dojo will make it work? - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: tiles and waitAndExec working together?

2007-12-12 Thread Christopher Cheng
JIRA Issue created: https://issues.apache.org/struts/browse/WW-2375 "Antonio Petrelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007/12/12, Christopher Cheng <[EMAIL PROTECTED]>: >> >> I have a problem of having tiles and waitAndExec working together. >> WaitAndExec and the t

Re: Is Struts2 ready for prime time?

2007-12-12 Thread Dave Newton
--- Rubens <[EMAIL PROTECTED]> wrote: > I need to make a decision whether to use Struts vs Struts2. Even a year ago I would have used S2 over S1; AFAIC there's absolutely no question whatsoever. S2 is being used in production apps; I have two running now, will have two more Q1, and know personall

Re: Struts 2, file tag, accept attribute not working?

2007-12-12 Thread Dave Newton
--- Martin Gainty <[EMAIL PROTECTED]> wrote: > you can hook the submit event to JS function and then test the content type > before submitting > >

Is Struts2 ready for prime time?

2007-12-12 Thread Rubens
I would like to hear developer's experience with Struts 2 so far. I am starting a new web app project, and I need to make a decision whether to use Struts vs Struts2. BTW, I did some prototyping with Struts2 a year ago -- and as far as I can remember there were some impacting issues back then (I

Re: Struts 2, file tag, accept attribute not working?

2007-12-12 Thread Martin Gainty
you can hook the submit event to JS function and then test the content type before submitting function doSubmit() { if("%{uploadContentType}%"=="'text/xml'") { document.form.action="WhateverAction"; document.form.submit(); } } - Original Message - From: "Amit

Re: Resource Bundles and token replacement

2007-12-12 Thread Wes Wannemacher
I could be wrong, but if you are using the s:text tag, you can specify an s:param that will be used. I could be wrong, and hopefully someone will correct me if I am but - Mr. Smith package.properties - message.key=Hello {0} The docs aren't real specific on it, but there is some information

Re: To post

2007-12-12 Thread Dave Newton
--- Steven Liu <[EMAIL PROTECTED]> wrote: > To post Perchance to read, ay there's the rub. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

struts 2.0.11 datetimepicker problem of type time

2007-12-12 Thread akash agrawal
Hi, I am displaying date and time separately gotten from server on a JSP using datetimepicker tag. My problem is that, the date shows up correctly but the time does not. Below is the snippet of the JSP code. Any help is appreciated. Thanks. -Akash This with the type="date" shows up correctly.

To post

2007-12-12 Thread Steven Liu
To post

Re: substitute for JSP EL tags in struts 2.0.11

2007-12-12 Thread Randy Burgess
Have you tried this: Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Swathi Ram <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Wed, 12 Dec 2007 10:11:04 -0800 (PST) > To: > Subject: Re: substitute for JSP EL tags in str

RE: Strut2: How to determine if a request is a form submission?

2007-12-12 Thread Zheng, Xiahong
Thanks Dave. I just implemented my own interceptor for this purpose. I just thought for such a common use case (handling simple form submission), the framework may already have built-in support for it. I know Spring's SimpleFormController provides such work flow support. -Original Message-

Re: [struts] ActionMappingAware ?

2007-12-12 Thread Dale Newfield
Alberto A. Flores wrote: Have you tried? ActionContext.getContext().getContextMap().get(ServeltActionContext.ACTION_MAPPING); Thanks for the suggestion. I did not try that because I've found a different solution that didn't require getting ahold of the mapping. w/o specifying an action re

Re: [struts] ActionMappingAware ?

2007-12-12 Thread Dave Newton
--- Martin Gainty <[EMAIL PROTECTED]> wrote: > Alberto/Dale > > there is a mapping parameter in execute method of DispatchAction > http://struts.apache.org/1.2.x/api/org/apache/struts/actions/DispatchAction. > html > which class should implement mapping attribute? They're talking S2, and there's

Re: [struts] ActionMappingAware ?

2007-12-12 Thread Martin Gainty
Alberto/Dale there is a mapping parameter in execute method of DispatchAction http://struts.apache.org/1.2.x/api/org/apache/struts/actions/DispatchAction. html which class should implement mapping attribute? Martin-- - Original Message - From: "Alberto A. Flores" <[EMAIL PROTECTED]> To: "

Resource Bundles and token replacement

2007-12-12 Thread Alberto A. Flores
In struts 1.x, a resource bundle can have: errors.required={0} is required. And the validation.xml files will have a param set to the token (key) to be plugged in the {0} variable. Is there such a functionality in Struts 2? I have been able to only print one resource bundle using the key att

Re: [struts] ActionMappingAware ?

2007-12-12 Thread Alberto A. Flores
Have you tried? ActionContext.getContext().getContextMap().get(ServeltActionContext.ACTION_MAPPING); Although I haven't taken the time (yet) to explore all source code relationships within Struts 2. Good luck! Dale Newfield wrote: Alberto A. Flores wrote: Is this a Struts 1.x or Struts 2.x

RE: preselect

2007-12-12 Thread Jake Robb
What about using s:checkboxlist with a single-item list? -Jake -Original Message- From: bhaarat Sharma [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 12, 2007 4:36 PM To: Struts Users Mailing List Subject: Re: preselect tried it and doesnt work :( this is a real drawback that st

Re: preselect

2007-12-12 Thread bhaarat Sharma
tried it and doesnt work :( this is a real drawback that struts2 allows only true or false to come from checkboxes On 12/12/07, Jason Deffenbaugh <[EMAIL PROTECTED]> wrote: Try this: > > fieldValue=\\\"something\\\" value=\"checkboxField1\"/> > > I\'m not sure that will work. > > -J > > On Wed,

RE: Strut2: How to determine if a request is a form submission?

2007-12-12 Thread Dave Newton
When I did this I wrote an interceptor that did various things based on the request type; it was a bit more involved but underneath it all that was just checking for GET v. POST. You could use the same idea to set a flag or whatever (or take it further and call action methods, modify what method ge

RE: Strut2: How to determine if a request is a form submission?

2007-12-12 Thread Zheng, Xiahong
OK. Then, what's the best way to set the request method to my action class? Is there an MethodAware interface I can use. I try to avoid working with HttpServletRequest class which I can get by implementing ServletRequestAware interface. -Original Message- From: Dave Newton [mailto:[EMAIL P

Re: preselect

2007-12-12 Thread Jason Deffenbaugh
Try this: I'm not sure that will work. -J On Wed, 2007-12-12 at 16:15 -0500, bhaarat Sharma wrote: > but in my action class i am doing a lot of stuff based on the > \'value\' of the checkbox. > > is there no way to do this other than making fieldValue a boolean value!?! > > If I do that I wi

Re: preselect

2007-12-12 Thread bhaarat Sharma
but in my action class i am doing a lot of stuff based on the \'value\' of the checkbox. is there no way to do this other than making fieldValue a boolean value!?! If I do that I will have to change a lot of stuff in my action class. Also, this isnt mentioned in the documentation for checkbox. :

Re: preselect

2007-12-12 Thread Johannes Geppert
try to use boolean and not String for checkboxes. Bye jogep > my getters and setters: > public String getCheckboxField1() { > return checkboxField1; > } > > public void setCheckboxField1(String checkboxField1) { > this.checkboxField1 = checkboxField1; > } > ---

Re: Fw: different tiles definition files for packages

2007-12-12 Thread Dave Newton
This is already available in S2 and does not address the question as asked. d. --- Martin Gainty <[EMAIL PROTECTED]> wrote: > if you use matt's patched webwork-2.2.2.jar > http://raibledesigns.com/rd/entry/how_to_use_tiles_with > > M-- > > - Original Message - > From: "Christopher Che

Re: How to call a method passing a parameter inside jsp with struts 2

2007-12-12 Thread Dave Newton
--- "Matthew (IRQ)" <[EMAIL PROTECTED]> wrote: > Apparently, you can only retrieve "properties" with the property tag (so it > only allows you to call get Methods with no parameters). can call arbitrary methods with parameters. Given an action method: public String foo(final String s_) {

Re: [struts] ActionMappingAware ?

2007-12-12 Thread Dale Newfield
Alberto A. Flores wrote: Is this a Struts 1.x or Struts 2.x? Sorry I didn't include that. Struts2. (If I recall correctly, that was one of the arguments to the action's exectute method in Struts1.) -Dale Dale Newfield wrote: I think I'm missing something. Shouldn't there be a way for an

Re: ActionMappingAware ?

2007-12-12 Thread Alberto A. Flores
Is this a Struts 1.x or Struts 2.x? Dale Newfield wrote: I think I'm missing something. Shouldn't there be a way for an action to get ahold of the mapping that resulted in the action being called, and maybe even the ActionMapper that chose it? ActionMapper has a very useful method getUriFrom

Re: Strut2: How to determine if a request is a form submission?

2007-12-12 Thread Dave Newton
POST v. GET, assuming all your form submissions are POSTs? --- "Zheng, Xiahong" <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to write an action to support a simple form submission work > flow. The "execute" and "prepare" methods will differ depending on > whether it's form submission or

ActionMappingAware ?

2007-12-12 Thread Dale Newfield
I think I'm missing something. Shouldn't there be a way for an action to get ahold of the mapping that resulted in the action being called, and maybe even the ActionMapper that chose it? ActionMapper has a very useful method getUriFromActionMapping that I'd like to be able to call from within

Fw: different tiles definition files for packages

2007-12-12 Thread Martin Gainty
if you use matt's patched webwork-2.2.2.jar http://raibledesigns.com/rd/entry/how_to_use_tiles_with M-- - Original Message - From: "Christopher Cheng" <[EMAIL PROTECTED]> To: Sent: Wednesday, December 12, 2007 3:07 AM Subject: different tiles definition files for packages > Could I ha

preselect

2007-12-12 Thread bhaarat Sharma
Hello I have a form with multiple checkboxes. this form is submitted to the action class and some validation is done in the action class (not using annotations). when validation fails the control comes back to the same page with some error messages. However, the problem is that when the control c

Re: Enum conversion problem

2007-12-12 Thread Laurie Harper
Vencent Chen wrote: Hi,all! I am testing the Struts Showcase 2.0.11. With the Java 5 Enum conversion, I think the checkboxlist 's list property availableOperations just come from OperationsEnumAction's getAvailableOperations() method. So I change the name availableOperations to avai

Re: rendering

2007-12-12 Thread Laurie Harper
FYI: http://struts.apache.org/2.x/docs/themes-and-templates.html L. wild_oscar wrote: Ah! I didn't know there were predefined themes. Thank you very much for your quick reply. Alberto A. Flores wrote: Try theme="simple" in your tag. Alternatively, you can set up a constant in struts.xml

Re: How to validate MobileNumber using regex Expression

2007-12-12 Thread Laurie Harper
[EMAIL PROTECTED] wrote: iam validating mobile number using the regex Expression But even though iam giving a valid number, its showing invalid number message (cityLedger.contactDetails.mobileNumber.matches('^(\?([0-9]{3})?([0-9]{4}|[0-9]{4})$'))

Re: substitute for JSP EL tags in struts 2.0.11

2007-12-12 Thread Swathi Ram
alberto, thanks a lot. actually the previous method worked. I was just not casting it right. <% String job = (String)((User)pageContext.getAttribute("jobResults")).getUserId() ; request.setAttribut

Re: substitute for JSP EL tags in struts 2.0.11

2007-12-12 Thread Alberto A. Flores
Have you tried: Now foo has (should) have the value of the row and placed in request scope. Swathi Ram wrote: I'm unable to get the current row using PageContext. It is throwing me an error. Alberto A. Flores wrote: Ok, this is a bit more of a hack, but should work (haven't test it). Fro

Re: S2 - using display tag with Struts

2007-12-12 Thread Serge Bornow
Just wanted to share my experience. To fix this problem with Display tag, i had to download Beanutils 1.7 (1.6 didn't work) and Commons Collections. Now it works. All the best everyone, thanks. Serge Randy Burgess wrote: This is working code. No try to it. :) Regards, Randy Burgess

Re: substitute for JSP EL tags in struts 2.0.11

2007-12-12 Thread Swathi Ram
I'm unable to get the current row using PageContext. It is throwing me an error. Alberto A. Flores wrote: > > Ok, this is a bit more of a hack, but should work (haven't test it). > From the DisplayTag documentation (note that "id" is similar to "uid"): > > "The object representing the curren

Re: How to call a method passing a parameter inside jsp with struts 2

2007-12-12 Thread Matthew (IRQ)
Apparently, you can only retrieve "properties" with the property tag (so it only allows you to call get Methods with no parameters). However, I'm using the following workaround: The push tag pushes a new object (the return value in this case) onto the value stack. It is this object I am r

Strut2: How to determine if a request is a form submission?

2007-12-12 Thread Zheng, Xiahong
Hi, I am trying to write an action to support a simple form submission work flow. The "execute" and "prepare" methods will differ depending on whether it's form submission or initial rendering of the form. On the initial rendering, the "prepare" method will load the model from DB. On form submi

Re: substitute for JSP EL tags in struts 2.0.11

2007-12-12 Thread Alberto A. Flores
Ok, this is a bit more of a hack, but should work (haven't test it). From the DisplayTag documentation (note that "id" is similar to "uid"): "The object representing the current row is also added to the pageContext under this name, so that you can refer to it in column bodies using ${uid}"

Re: different tiles definition files for packages

2007-12-12 Thread Antonio Petrelli
2007/12/12, Dave Newton <[EMAIL PROTECTED]>: > --- Christopher Cheng <[EMAIL PROTECTED]> wrote: > > Could I have a different tiles defintion file for different package > > like struts1? > > You can still have multiple tiles definition files, although AFAIK there > isn't a way to have defs by packag

Re: substitute for JSP EL tags in struts 2.0.11

2007-12-12 Thread Swathi Ram
Thanks Alberto, Below is my code When the checkbox is checked then I should be able to get the corresponding userid value in the action class. Any idea how I can achieve that. Thanks Alberto A. Flores wrote: > > If you mean for "jsps using EL tags" the JSTL tags, th

portlet with a servlet

2007-12-12 Thread Brian Relph
Hello, I have a struts2 portlet with a registration page that contains a captcha. The captcha i generate from a servlet that i declare in my web.xml and map to /captcha. The captcha's are identified by the session id of the request, and then are validated in my action using the ServletRequestAwar

Re: substitute for JSP EL tags in struts 2.0.11

2007-12-12 Thread Alberto A. Flores
If you mean for "jsps using EL tags" the JSTL tags, then a quick fix can be to make your EL expressions use scope="request" and make the tags (Struts 2.x) use the expression "%{#request.varInScope}" to get to them. If you mean the EL tags from Struts 1.x, then you are going to have to change

substitute for JSP EL tags in struts 2.0.11

2007-12-12 Thread Swathi Ram
I recently upgraded to Struts 2.0.11, and all my jsps using the EL tags don't work anymore. I'm using these along with displaytags, to pass values of checkbox lists or field values to the action class. Is there any other way to do this. For example, in a table list of users, if the checkbox is

Re: S2 - using display tag with Struts

2007-12-12 Thread Serge Bornow
Hi Randy, It did not work for me. The same result. I am bound to ask, is there some configuration of display tag that i should know about? I just added the jar to the classpath and that is it. I also have this on top of my page: <%@ taglib uri="http://displaytag.sf.net"; prefix="display" %> Is

Re: different tiles definition files for packages

2007-12-12 Thread Dave Newton
--- Christopher Cheng <[EMAIL PROTECTED]> wrote: > Could I have a different tiles defintion file for different package > like struts1? You can still have multiple tiles definition files, although AFAIK there isn't a way to have defs by package automagically. Not a bad idea, though--if there is a

Re: Struts 2, file tag, accept attribute not working?

2007-12-12 Thread Raghuveer Rawat
I am facing same problem and was about to post this question. How to validate file content type in struts2? Thanks in Advance.. Raghu On Dec 12, 2007 5:48 AM, Amit Rana <[EMAIL PROTECTED]> wrote: > Hi Anton, > Were you able to finally get it to work? > > I am using 2.0.9 and accept just doens'

Re: Problem passing parameters do action...parameters remain displayed

2007-12-12 Thread Dave Newton
--- Paranoid_Fabio <[EMAIL PROTECTED]> wrote: > How can i set includeParams="none" as default in all the pages? http://struts.apache.org/2.x/docs/strutsproperties.html struts.url.includeParams > Which side effects can it have?if any.. Parameters won't be included automagically. d. --

Re: Struts2: Problem result input

2007-12-12 Thread Dave Newton
There is *some* reason it's expecting an input result: it could be your configuration, a type conversion error, something... if nothing else I'd crank up logging full-blast and see what's there. HTHBIPD (Hope This Helps But It Probably Doesn't) d. --- Marc Eckart <[EMAIL PROTECTED]> wrote: > Hi,

Enum conversion problem

2007-12-12 Thread Vencent Chen
Hi,all! I am testing the Struts Showcase 2.0.11. With the Java 5 Enum conversion, I think the checkboxlist 's list property availableOperations just come from OperationsEnumAction's getAvailableOperations() method. So I change the name availableOperations to availableOperation .But it

Re: S2 - using display tag with Struts

2007-12-12 Thread Randy Burgess
This is working code. No try to it. :) Regards, Randy Burgess Web Applications Developer Nuvox Communications > From: Serge Bornow <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Tue, 11 Dec 2007 23:07:24 -0500 > To: Struts Users Mailing List > Subject: Re: S2 - using

Re: rendering

2007-12-12 Thread Randy Burgess
If you leave the theme set to the default and use the label attribute in the textfield that value will be placed in the first table column. Regards, Randy Burgess Web Applications Developer Nuvox Communications > From: wild_oscar <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date

Re: rendering

2007-12-12 Thread wild_oscar
Ah! I didn't know there were predefined themes. Thank you very much for your quick reply. Alberto A. Flores wrote: > > Try theme="simple" in your tag. > > Alternatively, you can set up a constant in struts.xml > > > > of place it in struts.properties (in classpath) > > wild_oscar wrote:

Re: rendering

2007-12-12 Thread Alberto A. Flores
Try theme="simple" in your tag. Alternatively, you can set up a constant in struts.xml of place it in struts.properties (in classpath) wild_oscar wrote: I am finding it strange that is rendered as: Is this the normal rendering of the textfield? Can't I render it just as

Re: How to redirect error message

2007-12-12 Thread Adam Hardy
Gary Affonso on 09/12/07 23:58, wrote: Yayo wrote: Errors are stored in a request scope attribute and after a redirect they're lost because a new request is launched by the client browser. You must explicitly (by code) store them in a session attribute to get them in the second request. Prese

rendering

2007-12-12 Thread wild_oscar
I am finding it strange that is rendered as: Is this the normal rendering of the textfield? Can't I render it just as a normal input tag, without all the tr and td's? Because I can't seem to get my table right when I want to do something like:

Problem passing parameters do action...parameters remain displayed

2007-12-12 Thread Paranoid_Fabio
Dave Newton yahoo.com> writes: > > See if helps. > > You can also set that as a default. > > I do agree with the other response that using the tag makes > things a little cleaner. > > d. Thank you. The problem of the "growing" parametes is gone, but the parameter ?amount=... remains on a

Struts2: Problem result input

2007-12-12 Thread Marc Eckart
Hi, I have a problem when I call a action with dojo by publishing a topic. Struts wants a input result and I don't know why. I haven't changed anything in this region of the application and it worked for a long time. I don't have any validation methods neither have I added a validation intercepter

How to validate MobileNumber using regex Expression

2007-12-12 Thread ginu
iam validating mobile number using the regex Expression But even though iam giving a valid number, its showing invalid number message (cityLedger.contactDetails.mobileNumber.matches('^(\?([0-9]{3})?([0-9]{4}|[0-9]{4})$'))

Re: Tabbed Panel and useSelectedTabCookie

2007-12-12 Thread quinquin2209
Thanks for your kindly help. I am new to dojo and I have some further questions wanna ask: I can understand the function init(). And we need to connect a function (e.g. onTab1Selected), which is called when the tab is shown, for each tab. However, I am not sure how can I do it if the tab is gener

Re: Struts 2, file tag, accept attribute not working?

2007-12-12 Thread Amit Rana
Hi Anton, Were you able to finally get it to work? I am using 2.0.9 and accept just doens't seem to be doing anything. Regards, Amit. >Re: Struts 2, file tag, accept attribute not working? > >Anton Pussep >Sat, 03 Nov 2007 10:09:23 -0800 > >Modifying FileUploadInterceptor or settings its param

Dynamic Column generation in Displaytag

2007-12-12 Thread quinquin2209
I read the source code provided by Display Tag example about dynamically generate table column. This sample use the jstl to loop a list of hashmap. I wanna see if it is possible to do the same thing without using jstl? Queenie -- View this message in context: http://ww

Re: [S2]Checkbox value

2007-12-12 Thread Ray
carmi_cd 写道: hello i have a checkbox which supposed to have the value of UserId property of the action class I try to do it this way but its having an exception.. here is how i've done it.. /> and here is the exception.. Unexpected Exception catched: Error setting expression 'chkUserId' w

[S2]Checkbox value

2007-12-12 Thread carmi_cd
hello i have a checkbox which supposed to have the value of UserId property of the action class I try to do it this way but its having an exception.. here is how i've done it.. /> and here is the exception.. Unexpected Exception catched: Error setting expression 'chkUserId' with value '[Lja

Re: tiles and waitAndExec working together?

2007-12-12 Thread Antonio Petrelli
2007/12/12, Christopher Cheng <[EMAIL PROTECTED]>: > > I have a problem of having tiles and waitAndExec working together. > WaitAndExec and the tag cannot generate the action request correctly > on the wait page. > > On the wait page "wait.jsp" uses the tiles template file > "http://localhost:808

Re: tiles and waitAndExec working together?

2007-12-12 Thread Christopher Cheng
My success tiles is like this: "Antonio Petrelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007/12/12, Christopher Cheng <[EMAIL PROTECTED]>: >> >> success >> ... >> >> >> >> >> >> >> >>

different tiles definition files for packages

2007-12-12 Thread Christopher Cheng
Could I have a different tiles defintion file for different package like struts1? Is it possible to pass some parameters to TilesResult? - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: tiles and waitAndExec working together?

2007-12-12 Thread Antonio Petrelli
2007/12/12, Christopher Cheng <[EMAIL PROTECTED]>: > > success > ... > > > > > > > > > Where is the "success" Tiles definition? Ciao Antonio