Re: how do i obtain the selected value of the select element

2008-02-13 Thread Prashant Khanal
Hello Markus, Can you please elucidate your mail with an example? Actually my requirement is if i use a list of objects to populate on the select element, how can i get the selected element as an object. For example if i populate select element using list of Banner objects, how can i get the

Re: i18N jsp application on linux and windows

2008-02-13 Thread Nuwan Chandrasoma
Hi, Why dont you try putting UTF-8, i think this character set is not in Linux may be. Thanks, Nuwan. Raghuveer wrote: This is regarding the damage of polish messages from struts application deployed on Tomcat on Linux and Windows XP . I get polish messages from SAP that to be

i18N jsp application on linux and windows

2008-02-13 Thread Raghuveer
This is regarding the damage of polish messages from struts application deployed on Tomcat on Linux and Windows XP . I get polish messages from SAP that to be displayed in JSP page. I have set ISO8859_2 in JSP page for charset. %@ page contentType=text/html;charset=ISO8859_2 %

Re: how do i obtain the selected value of the select element

2008-02-13 Thread Markus Stauffer
Have a look at the struts-showcase examples. There are lots of s:select tags with Actions. http://www.planetstruts.org/struts2-showcase/tags/ui/example!input.action Regards -- Markus Stauffer On Wed, Feb 13, 2008 at 9:17 AM, Prashant Khanal [EMAIL PROTECTED] wrote: Hello Markus, Can you

Struts2 WebApp context

2008-02-13 Thread Rushikesh Thakkar
I want to release a database connection while reloading the context (using Tomcat Manager web app) of a Struts2 Web Application. I am also using Spring and hibernate. (Spring's HibernateTemplate, Spring SessionFactory and Apache Commons-dbcp with HSql standalone-database) As I am using HSql

Re: YUI and S2 : problem in rendering date component

2008-02-13 Thread ravi_eze
hi, My implementation is as follows: I have a page that displays a datetimepicker provided by struts2(2.0.9). When i tried to put the same into the YUI tabbed panel the timepicker componetn is not being displayed. The following is the code in the YUI: script type=text/javascript (function()

Struts2 Validaions

2008-02-13 Thread Sanjeewa Saman
Hi All, We have a problem in using validations. I have tried both xml based and annotation based validations. But the problem is , The error messages don't get cleared once we get a error message and it will repeat in the UI. This will happen with the simple theme ,as if we don't

action mapping - how can I map ALL incoming urls to one action?

2008-02-13 Thread Galia Angelova
Hallo everybody, I use struts version 2.0.11 with spring 2.0.5. I need to map all incomming urls to one and the same action. This action works like a dispatcher - acctording to some data taken from the data base, decides where to redirect the request. I''ll appreciate any ideas! Thanks!

Re: action mapping - how can I map ALL incoming urls to one action?

2008-02-13 Thread Piero Sartini
I need to map all incomming urls to one and the same action. This action works like a dispatcher - acctording to some data taken from the data base, decides where to redirect the request. I''ll appreciate any ideas! I think an Interceptor would be a better solution for this:

Re: action mapping - how can I map ALL incoming urls to one action?

2008-02-13 Thread Galia Angelova
Thank you, Piero! The problem with the interseptors is that they come after the ServletDispatcher. That means that i get an exception before I get to the interseptors, because the mapping was not found :) I think I have found a solution - custom ActionMapper. I extended the

[OT] Re: In s:file tag change the Browes button to Attach Button

2008-02-13 Thread Dave Newton
--- Naveen Kumar M [EMAIL PROTECTED] wrote: Can any one suggest a way to change the Browes button to some thing called Attach button using Struts2 tag. I am using follwoing Struts2 tag which is generating the Browes button but requirment is to have Attach button s:file

Re: YUI and S2 : problem in rendering date component

2008-02-13 Thread Dave Newton
Why not use the YUI calendar component? I'd be wary of mixing multiple JavaScript libraries simply because they may do different DOM manipulations on load, have specific load order requirements, and who knows what else. Jeremy already explained some of the load/instantiation issues. I don't

Re: how do i obtain the selected value of the select element

2008-02-13 Thread Jeromy Evans
Hi Prashant, For simple objects, the Type Conversion[1] feature is intended to convert, say, a string value in into an object before its set in your action. In your case however, there's no automatic way for struts 2 to load the selected Entity instance. At best, the key/id from the select

Re: how do i obtain the selected value of the select element

2008-02-13 Thread Dave Newton
--- Prashant Khanal [EMAIL PROTECTED] wrote: Can you please elucidate your mail with an example? Actually my requirement is if i use a list of objects to populate on the select element, how can i get the selected element as an object. For example if i populate select element using list of

RE: YUI and S2 : problem in rendering date component

2008-02-13 Thread Ravichandra C
Hi, I think in that case, I need to put a string text box and convert the entered string value to Date by using java conversion on server submit. Is it possible for me to avoid all this? i.e. on user entry from the calendar component the date should come baack instead of converting and then

RE: YUI and S2 : problem in rendering date component

2008-02-13 Thread Dave Newton
--- Ravichandra C [EMAIL PROTECTED] wrote: I think in that case, I need to put a string text box and convert the entered string value to Date by using java conversion on server submit. I'm not sure how using the YUI calendar component implies that, but okay. Is it possible for me to avoid all

Re: Struts2 Validaions

2008-02-13 Thread Nuwan Chandrasoma
Hi, Your issue is not clear. can you please tell. what is the theme now your using? are you using javascript validation? what is the theme that didnt have this issue? Thanks, Nuwan Sanjeewa Saman wrote: Hi All, We have a problem in using validations. I have tried both xml based

RE: Struts2 Validaions

2008-02-13 Thread Sanjeewa Saman
HI nuwan, We are using simple theme with struts2 here and the problem is repeating the error message in the UI. And do not use any java scripts for validation. When we do not use a theme may be the default theme we do not have this issue , but we have problem of the arrangement of the

RE: Struts2 Validaions

2008-02-13 Thread Dave Newton
--- Sanjeewa Saman [EMAIL PROTECTED] wrote: We are using simple theme with struts2 here and the problem is repeating the error message in the UI. The simple theme's UI components, IIRC, don't include the error messages. When we do not use a theme may be the default theme we do not have this

Re: Struts + Maven + Eclipse problem

2008-02-13 Thread Randy Burgess
Have you run mvn eclipse:eclipse in the project directory? Have you set the web root for the project in Eclipse? I had to do both when creating a Struts Maven project from the command line. This structure sounds like the project that is created from the following which was discussed on the list

Re: OT: Alternative to html frames

2008-02-13 Thread Randy Burgess
As to the multiple identical portlets on the same web page question, I think most portals have a portlet id for each portlet or some other unique identifier. It is a best practice to append the portlet identifier onto function names, form names in the case of Struts 2 with client side validation,

Re: OT: Alternative to html frames

2008-02-13 Thread Randy Burgess
I would imagine that it is portal specific. It is up to the developer with AquaLogic. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: Frank W. Zammetti [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org Date: Wed, 13 Feb 2008

Re: Struts2 WebApp context

2008-02-13 Thread Ian Roughley
Implement the ServletContextListener and configure it in web.xml - this has the initialize and destroy methods you are looking for, and they are called when the container loads and destroys your application. /Ian -- Ian Roughley From Down Around, Inc. Consulting * Training / Mentoring *

Re: How to redirect to the same page

2008-02-13 Thread Randy Burgess
I would save the action name as a string in the users session and then redirect to that location once auth is complete. That is the way I have done it in the past. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: Dravid [EMAIL PROTECTED] Reply-To: Struts Users

Re: Get current URL on a page

2008-02-13 Thread Randy Burgess
I'm not sure how to get it with OGNL but you could make your action implement ServletRequestAware, call request.getRequestURL() somewhere in your action and set that value in an instance variable with a getter and then call the getter in your action. Regards, Randy Burgess Sr. Web Applications

Re: How to redirect to the same page

2008-02-13 Thread Dravid
please some one help me thanks in advance Dravid wrote: Hi, After a successful login I don't want to redirect the user to a hardcodes page, but I want the user to be redirected where he wanted to go. E.g. if a user clicks on 'sell' he will be forced to log in and after login the

Re: Struts2 Validaions

2008-02-13 Thread Martin Castellanos
I had this problem, I don't think it's related to the theme. I'm new to struts so this might not be the best solution, I made my action implements Preparable and I clean up the errors in the prepare method. On Feb 13, 2008 7:46 AM, Dave Newton [EMAIL PROTECTED] wrote: --- Sanjeewa Saman [EMAIL

Re: OT: Alternative to html frames

2008-02-13 Thread Marc Eckart
Hmm, in our case the single applications should not know it they are running in a portal or somewhere else. They should just see their context, nothing else. Another question to hold the application in simple divs: How does the action handling works if I include the applications in simple divs?

Re: Struts2 Validaions

2008-02-13 Thread Dave Newton
--- Martin Castellanos [EMAIL PROTECTED] wrote: I had this problem, I don't think it's related to the theme. I'm new to struts so this might not be the best solution, I made my action implements Preparable and I clean up the errors in the prepare method. I believe you may be responding to a

Re: OT: Alternative to html frames

2008-02-13 Thread Frank W. Zammetti
Marc Eckart wrote: Hmm, in our case the single applications should not know it they are running in a portal or somewhere else. They should just see their context, nothing else. In my experience, which I admit was a while back and fairly limited, a portlet is specifically written as a portlet,

Re: OT: Alternative to html frames

2008-02-13 Thread Frank W. Zammetti
So that seems to say that it's left to the portlet developers to ensure there are no naming conflicts, am I understanding that right? Frank Randy Burgess wrote: As to the multiple identical portlets on the same web page question, I think most portals have a portlet id for each portlet or some

[s2] Forward directly to JSP w/o processing

2008-02-13 Thread Allen, Daniel
Hi. I have a few places in my web app where a URL goes to a page that is more or less static. We still use JSPs for these static pages, since we're looking to use Tiles to re-use header/footer code and so on. Currently, though, my attempts to get Struts2 are just yielding no response on the

Re: How to redirect to the same page

2008-02-13 Thread Dave Newton
Randy already gave you an answer. In the interceptor that checks for a logged-in user (or an action subclass, but an interceptor is probably better) save the URL that was being requested. After login check for the presence of this URL and if there redirect to it. It's unlikely you'll get many

Re: How to redirect to the same page

2008-02-13 Thread Randy Burgess
There is a good article on a login interceptor here: http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor. A question is posted further down the page on how to redirect to the originally requested page after a successful login. Regards, Randy Burgess Sr. Web Applications

Re: OT: Alternative to html frames

2008-02-13 Thread Marc Eckart
The most applications are hosted in the intra net. We have another subnet with some Websphere servers secured by firewalls but they can all be accessed within out domain. So I think I'm back with frames respectively iframes :-) Thank you all for your answers :-) Best Regards, Marc 2008/2/13,

Re: OT: Alternative to html frames

2008-02-13 Thread Randy Burgess
A portal implementation is typically quite an undertaking. Frames would be a whole lot easier. :) Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: Marc Eckart [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org Date: Wed, 13 Feb 2008

about paramsPrepareParamsStack

2008-02-13 Thread GF
paramsPrepareParamsStack is defined this way: interceptor-stack name=paramsPrepareParamsStack interceptor-ref name=exception/ interceptor-ref name=alias/ interceptor-ref name=params/ interceptor-ref name=servletConfig/

Re: OT: Alternative to html frames

2008-02-13 Thread Randy Burgess
In AquaLogic there is a feature called In Place Refresh, which stops a portlet from taking over the page due to a redirect or whatever. You can use divs if you want but I have portlets without a single div. With AquaLogic you can use JSR 168 portlets or not, if you don't want to. Since I have this

Beging in Strust 2 with Jdeveloper 10.1.3

2008-02-13 Thread Alvaro Ernesto Gomez Cerna
Now beging in strust 2 with Jdeveloper. Display error en screen all compile, What is problem..? The codigo is form is simple: %@ page contentType=text/html;charset=windows-1252% %@ taglib uri=/struts-tags prefix=s% html head meta http-equiv=Content-Type content=text/html; charset=windows-1252

Re: [struts] about paramsPrepareParamsStack

2008-02-13 Thread Dale Newfield
GF wrote: do you think is there any issue adding interceptor-ref name=staticParams/ also before the first interceptor-ref name=params/ in this way: interceptor-ref name=staticParams/ interceptor-ref name=params/ ... interceptor-ref

[OT]printer frineldy page support

2008-02-13 Thread bhaarat Sharma
Hello, this is OT and kind of html related but I have a printerfrinndly page in which I am showing dynamic data while iterating over a collection using s:iterator data is basically shown in 4 different columns. and ofcourse there are 4 different column headers before the s:iterator tag. the

Re: OT: Alternative to html frames

2008-02-13 Thread Frank W. Zammetti
Marc Eckart wrote: The most applications are hosted in the intra net. We have another subnet with some Websphere servers secured by firewalls but they can all be accessed within out domain. So I think I'm back with frames respectively iframes :-) Sounds like it :) Yeah, I'd definitely think

[OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

2008-02-13 Thread Dave Newton
Please reply to the struts-user mailing list. --- Alvaro Ernesto Gomez Cerna [EMAIL PROTECTED] wrote: In directory web-inf\lib found freemarker-2.3.8.jar ognl-2.6.11.jar strust.jar strust2-core-2.0.11.jar xwork-2.0.4.jar Others directory web-inf strust-tags.tld You need to set up

datetimepicker (type=time) problem

2008-02-13 Thread Belinda Lawson
Hello, We are trying to use the datetimepicker tag to enter both a date and a time independently. The date portion works fine. However, I find that when I use the attribute type=time, my picker does not appear on the page. My tag looks like this: s:datetimepicker label=Start Time type=time

Re: Beging in Strust 2 with Jdeveloper 10.1.3

2008-02-13 Thread Alberto A. Flores
NoClassDefFoundError is an Throwable which indicates that the container does not find a class definition. Looks like your path does not reference the libraries for xwork-xxx.jar. Please refer to the documentation on JDeveloper (if you are using that IDE) or if you are deploying your war/ear in

Re: [OT]printer frineldy page support

2008-02-13 Thread Dave Newton
--- bhaarat Sharma [EMAIL PROTECTED] wrote: One way for me is to \'guesstimate\' how many records a page can display, say 20. Then i will keep a counter and when couter hits 20..again display the column headers. But this is really bad i think since the data is dynamic so my guess of how many

Re: Beging in Strust 2 with Jdeveloper 10.1.3

2008-02-13 Thread Dave Newton
--- Alvaro Ernesto Gomez Cerna [EMAIL PROTECTED] wrote: Now beging in strust 2 with Jdeveloper. Display error en screen all compile, What is problem..? The error running is: Error: java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/ValueStack You don't have all the required

RE: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

2008-02-13 Thread Allen, Daniel
Have you, in fact, added the struts2 filter to your web.xml? If not, drop the following in: filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-cla ss /filter filter-mapping

RE: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

2008-02-13 Thread Alvaro Ernesto Gomez Cerna
It's code page %@ taglib prefix=s uri=/struts-tags % html head titleHello World!/title /head body h2s:property value=message //h2 /body /html -Mensaje original- De: Dave Newton [mailto:[EMAIL PROTECTED] Enviado el: MiƩrcoles, 13 de Febrero de 2008

RE: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

2008-02-13 Thread Alvaro Ernesto Gomez Cerna
It's compiling 0 errors, 0 warnings, When running in explorer present next error: 500 Internal Server Error The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its

Re: [S2] : Help with annotated validation

2008-02-13 Thread Dave Newton
--- Zheng, Xiahong [EMAIL PROTECTED] wrote: My annotated validation doesn't happen. The following are the code snippets for action class and config files. When I leave the SSN field blank and hit submit my action's execute method is called hence fails instead of redisplay of the login page

RE: [OT] RE: Beging in Strust 2 with Jdeveloper 10.1.3

2008-02-13 Thread Alvaro Ernesto Gomez Cerna
Others problem is when attachemt objets in page jsp display en log next message: --- Error exercising tag : s:form The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its

Re: [S2] s:url / encode

2008-02-13 Thread Laurie Harper
That's the expected behaviour; s:url's encode attribute specifies that each parameter should be encoded, not that the entire result should be. If it gave what you're expecting, it wouldn't be giving back a valid URL. What you need to do is store the url in a variable (using s:url var=url...)

RE: [S2] : Help with annotated validation

2008-02-13 Thread Zheng, Xiahong
That's indeed what I am missing. Thanks for your prompt help. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 13, 2008 2:48 PM To: Struts Users Mailing List Subject: Re: [S2] : Help with annotated validation --- Zheng, Xiahong [EMAIL PROTECTED]

Re: i18N jsp application on linux and windows

2008-02-13 Thread Laurie Harper
Raghuveer wrote: This is regarding the damage of polish messages from struts application deployed on Tomcat on Linux and Windows XP . I get polish messages from SAP that to be displayed in JSP page. I have set ISO8859_2 in JSP page for charset. %@ page contentType=text/html;charset=ISO8859_2

[S2] : Help with annotated validation

2008-02-13 Thread Zheng, Xiahong
My annotated validation doesn't happen. The following are the code snippets for action class and config files. When I leave the SSN field blank and hit submit my action's execute method is called hence fails instead of redisplay of the login page again with validation error message. What am I

Logic tag library

2008-02-13 Thread Allen, Daniel
Is there any reason we shouldn't use the Logic tab library (http://struts.apache.org/tags-logic) with Struts 2? If so, is there any subsitute? I'm looking specifically for logic:redirect and logic:messagesPresent (along with the old html: messages) ~Dan Allen -Original Message- From:

Re: Struts2 WebApp context

2008-02-13 Thread Laurie Harper
(3) web.xml doesn't contain anything but struts2 filter declaration. If that's the case, how is Spring getting initialized? Usually you would configure one of Spring's context listeners, which will take care of loading the Spring context on startup and destroying it when the application is

RE: Logic tag library

2008-02-13 Thread Allen, Daniel
Keeping logic: tags actually renders perfectly well for me right now (no exceptions, no apparent problems with the resulting page), but with peculiar results for the actual logic it's supposed to be doing, so I wasn't sure whether that was a configuration issue making it not evaluate correctly, or

Re: action mapping - how can I map ALL incoming urls to one action?

2008-02-13 Thread Laurie Harper
That's probably the best approach if you want to map incoming requests to different actions based on custom logic. If you really just want to have every request handled by the same action, you can just use a wildcard action mapping (name=/*) to achieve that with less configuration. L. Galia

Re: Logic tag library

2008-02-13 Thread Dave Newton
--- Allen, Daniel [EMAIL PROTECTED] wrote: Is there any reason we shouldn't use the Logic tab library (http://struts.apache.org/tags-logic) with Struts 2? Because it won't work. If so, is there any subsitute? I'm looking specifically for logic:redirect and logic:messagesPresent (along with

RE: Logic tag library

2008-02-13 Thread Dave Newton
--- Allen, Daniel [EMAIL PROTECTED] wrote: Keeping logic: tags actually renders perfectly well for me right now (no exceptions, no apparent problems with the resulting page), but with peculiar results for the actual logic it's supposed to be doing, so I wasn't sure whether that was a

RE: [S2] : Help with annotated validation

2008-02-13 Thread Dave Newton
--- Zheng, Xiahong [EMAIL PROTECTED] wrote: Followup question: If I use the same action class to handle both the form rendering and submission, how do I avoid validation on the rendering phase? I use the HTTP method to tell whether it is a form submission or not. My problem is validation error

datetimepicker (type=time) problem

2008-02-13 Thread Belinda Lawson
Hello, I'm trying to use the datetimepicker tag to enter both a date and a time independently. The date portion works fine. However, I find that when I use the attribute type=time, my picker does not appear on the page. My tag looks like this: s:datetimepicker label=Start Time type=time

radio tag - how to have the items order vertically?

2008-02-13 Thread xianwinwin
Hi there, I have a list of items ordered on my jsp page with a radio buttons: s:radio name=fruitsname list=fruits / my question is how to have the list vertically? (I get it horizontally) I tried to dig the info from http://struts.apache.org/2.x/docs/radio.html but couldn't get it right

Re: datetimepicker (type=time) problem

2008-02-13 Thread Jeromy Evans
Your JSP below looks correct. If the date picker is on the same page and is working, all I can think of is an ID conflict or the time picker is using the wrong theme. Have a look at the generated HTML to ensure the dojo tag is included and looks right. Ensure there's no ID conflict with the

Re: datetimepicker (type=time) problem

2008-02-13 Thread Belinda Lawson
It appears that planetstruts.org's demo pages suffer the same problem. See anything wrong there with their examples? http://www.planetstruts.org/struts2-showcase/tags/ui/timepicker/ I'll take a look in firebug too. Thanks -- I hadn't used that before. View Source shows something sort of

Re: best way to handle multiple buttons in a form?

2008-02-13 Thread akinss
Yep I've had the same problem and it has been registered in the Struts 2 jira. https://issues.apache.org/struts/browse/WW-2362 Not sure how to work around it though. Steve Jason Dolinger wrote: Hi all, I'm new to Struts 2 (and Struts in general), and I'm having a hard time figuring

Re: best way to handle multiple buttons in a form?

2008-02-13 Thread stanlick
Why not use the method attribute of the tag? This allows you to wire a button to a method on the action. On Feb 13, 2008 6:47 PM, akinss [EMAIL PROTECTED] wrote: Yep I've had the same problem and it has been registered in the Struts 2 jira. https://issues.apache.org/struts/browse/WW-2362

Re: best way to handle multiple buttons in a form?

2008-02-13 Thread Alberto A. Flores
Have you tried using the method attribute (of the tag)? akinss wrote: Yep I've had the same problem and it has been registered in the Struts 2 jira. https://issues.apache.org/struts/browse/WW-2362 Not sure how to work around it though. Steve Jason Dolinger wrote: Hi all, I'm new to

Re: datetimepicker (type=time) problem

2008-02-13 Thread Jeromy Evans
StrutsTimePicker is an extension of the dropdowndatepicker included with Struts2. I found my test program that uses the Timepicker in Struts 2.0.8 and it still works. The JSP is below: %@ taglib prefix=s uri=/struts-tags % html head titleHello World!/title s:head theme=ajax

Re: [s2] Forward directly to JSP w/o processing

2008-02-13 Thread Jeromy Evans
I'm not sure what you mean by no response from the server. When you omit the class name on the action definition the default action will be used (usually ActionSupport) to set up the value stack and resources so you can use struts tags within the JSP. Your tiles result looks fine. If you

German/Turkey etc decimal use comma in input fields.

2008-02-13 Thread Ned Collyer
Has anyone fixed this issue, or got an easy working implementation. I've read http://www.nabble.com/Struts-2-requires-input-result-on-failed-type-conversion-td11543906.html#a11543906 which seems to be ended rather abruptly when Martin did not get an answer. -- View this message in context:

Question on usage of EL in tiles:put name attribute

2008-02-13 Thread Anup Chatterjee
Hi, I'm trying to use a tile insert with dynamic attributes passed into the tile from a model. These values were passed into the current tile and I'm passing it to the child tile. I am trying to insert with the tiles:put tag (struts-tiles.tld prefix=tiles) with EL expression for names and values.

RE: Simple dropdown box population

2008-02-13 Thread Jack Haynes
Hi, I have a list of objects in my action. Each object in the list represents a Company. I want to populate my dropdown box, in my jsp, with company names. When a companyName is selected in the dropdown box, the companyID (which corresponds to the companyName) will be sent upon form

Re: German/Turkey etc decimal use comma in input fields.

2008-02-13 Thread Jeromy Evans
Ned Collyer wrote: Has anyone fixed this issue, or got an easy working implementation. I've read http://www.nabble.com/Struts-2-requires-input-result-on-failed-type-conversion-td11543906.html#a11543906 which seems to be ended rather abruptly when Martin did not get an answer. The default

Re: Using il8n text in an interceptor

2008-02-13 Thread Grish
Well I read this: package.properties (of the directory where class is located and every parent directory all the way to the root directory) and tried moving around the package.properties around but findDefaultText always returns null. My actions though are still able to retrieve the proper

Re: Simple dropdown box population

2008-02-13 Thread Prashant Khanal
Suppose you declare list of companies as: private ListCompany companies = new ArrayListCompany(); Now you got to have getter for this property as: public ListCompany getCompanies(){ return companies; } You can prepopulate your companies list implementing Preparable interface in your action.

Re: jQuery plugin for Struts 2?

2008-02-13 Thread matt.payne
He Dave, Thanks for the response. Do to the performance penalty, with struts 2.0.x, I just would like to not touch dojo again. Off the bat, I was curious if client side validation could benefit from writing out jquery validation rules

problem in validating optiontransferselect element

2008-02-13 Thread Prashant Khanal
Hello all, I was able to validate simple input elements like textfield but could not validate optiontransferselect element. Actually i want to show the validation error when the selected list is empty. the code snippet is shown below: s:optiontransferselect label=Levels of Sequence

Re: German/Turkey etc decimal use comma in input fields.

2008-02-13 Thread Ned Collyer
Thanks :) I'll give it a crack. Started looking at the BigDecimal validator - org.apache.commons.validator.routines.BigDecimalValidator Rgds Ned Jeromy Evans - Blue Sky Minds wrote: This should give you an idea. It's modified from existing code so I haven't tested it. I've decided to

Re: best way to handle multiple buttons in a form?

2008-02-13 Thread akinss
Spot on. There are probably several other ways to do routing based on Button selects too. Using: s:submit name=redirect-action:doThis value=This/ in the tag is another way of handling Buttons. You could then inject a boolean value as an Action mapping parameter. eg. action name=doThis

Re: Struts2 Validaions

2008-02-13 Thread Martin Castellanos
Ok this is my problem: The first time I tried to add validation I made an ActionName-methodname-validation.xml file, and added the validationWorkFlow stack. The validation was executed and errors were detected but the action just kept going, I asked and the problem was that my action needed to

Re: German/Turkey etc decimal use comma in input fields.

2008-02-13 Thread Ned Collyer
Thanks for the reply. I was hoping for some code. It's obviously been fixed before somewhere, so why do we need to all implement it again on a per case basis. I'll go hack something together - if its worthy i'll contrib back here. I'm a bit sick of struts and its quirks tbh. Jeromy Evans -

Re: German/Turkey etc decimal use comma in input fields.

2008-02-13 Thread Jeromy Evans
This should give you an idea. It's modified from existing code so I haven't tested it. I've decided to use a collection of NumberFormat's. You could use any string - decimal conversion technique you like. This can be used to an action by created a actionname-conversion.properties will in the

Re: Simple dropdown box population

2008-02-13 Thread Al Sutton
or use something like; MapString, String dropdownValues then do a series of; dropdownValues.put(companyId, companyName) and then have s:select label=Select Company name=company list=dropDownValues / If you're not using a object-relation bridge of some kind (e.g. Hibernate), it's usually

Re: radio tag - how to have the items order vertically?

2008-02-13 Thread Jeromy Evans
xianwinwin wrote: Hi there, I have a list of items ordered on my jsp page with a radio buttons: s:radio name=fruitsname list=fruits / my question is how to have the list vertically? (I get it horizontally) I tried to dig the info from http://struts.apache.org/2.x/docs/radio.html but

Re: Question on usage of EL in tiles:put name attribute

2008-02-13 Thread Antonio Petrelli
2008/2/14, Anup Chatterjee [EMAIL PROTECTED]: The above code in JSP doesn't work saying that the attribute I'm passing in the put is not found in the child tile's context. Are you sure that you put every attributes present in your template page? Question is - the JSR spec says EL can be