Re: Struts2.1 and ajax

2009-02-18 Thread Frank W. Zammetti
ion: 8.0.237 / Virus Database: 270.11.0/1959 - Release Date: 02/18/09 20:55:00 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org __ Informatio

Re: To use Struts Validation or not?

2009-02-18 Thread Wes Wannemacher
On Thursday 19 February 2009 01:02:16 Rajeshwari Godbole wrote: > Hi all, > > Our team here has developed a portal using Struts2. Most of the developers > have used javascript to validate the forms. I know using the Struts > validation framework is a better way to do this but I think this was > avo

RE: How to get dropdown list value even if validation intercetor intercepts

2009-02-18 Thread Seshagiri V
Hi, Please send a snippet of my code in the jsp: Thank you, Seshagiri V seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486) US Fax: 312.242.3029 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information contained in this

To use Struts Validation or not?

2009-02-18 Thread Rajeshwari Godbole
Hi all, Our team here has developed a portal using Struts2. Most of the developers have used javascript to validate the forms. I know using the Struts validation framework is a better way to do this but I think this was avoided in the project due to the (perceived) cumbersome setup (xml file, rule

Re: Hiding s:select control: SOLVED!

2009-02-18 Thread Rajeshwari Godbole
Mitch, I think the question may have been directed at you as you indicated in your email that if ajax was required, then setting the form theme to simple may not work? Thanks for the form tip, it sure would make the code better :) Thanks, Rajeshwari On Tue, Feb 17, 2009 at 7:19 PM, mitch gorman

RE: Struts2.1 and ajax

2009-02-18 Thread Seshagiri V
Hi , Java Web Parts, The AjaxTags component of the Java Web Parts project is a taglib. Please follows url: http://www.ajaxwith.com/AjaxTags-Sub-Component-of-the-Java-Web-Parts-oject.h tml may be given solution. Thank you, Seshagiri V seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486) US

How to get dropdown list value even if validation intercetor intercepts

2009-02-18 Thread sheva j
Hi, I am using struts 2.0.11. I am using tag, struts is populating the list box correctly for all the time, except when the validation error occurs for any other field. My issue is: When I first enter into the page, I am able to get the dropdown value, When I submit the page with out entering s

Re: Errors repopulating the list after validation.

2009-02-18 Thread sheva j
Hi, Declare like this in your action class, List country = new ArrayList(); Hope this will solve your problem - Sheeva On Thu, Feb 19, 2009 at 5:47 AM, Sidharth Bhatia wrote: > Hi, > > > > I have form, and a list that is being populated with it. When I first enter > the action the list po

RE: Why is Validation not firing?

2009-02-18 Thread Martin Gainty
Mike- not understanding the situation you are presenting can you show us your declared result types? e.g. .\classes\struts-actionchaining.xml actionChain2 Martin USCitizen(Contractor) GMT+5 __ Disclaimer and confidentialit

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread SanJ.SANJAY
I have'nt increased the logging level. I also suspect the same that its not even starting. All the S1 action works but not S2 links/actions newton.dave wrote: > > Have you increased the logging level for S2 and XWork? Is there anything > in the log file on app startup? It sounds to me like i

RE: getText did not return value in s:submit

2009-02-18 Thread Martin Gainty
Good Evening Lu- there is a good illustration of this resolution of getText available in Struts 2.1.2 editEmployee.jsp the example is a textfield which pulls attribute firstName from employee here is the definition for 'save' method defined for EmployeeAction in struts.xml:

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread Dave Newton
Have you increased the logging level for S2 and XWork? Is there anything in the log file on app startup? It sounds to me like it's not even starting. Dave SanJ.SANJAY wrote: I think I have explained every step and procedure I have followed for this application in this thread. And I also have

Errors repopulating the list after validation.

2009-02-18 Thread Sidharth Bhatia
Hi, I have form, and a list that is being populated with it. When I first enter the action the list populates properly. But the second time, I get the following error: tag 'select', field 'list', name 'country': The requested list key 'countries' could not be resolved as a collection/array/

Re: exception in jsp file

2009-02-18 Thread Lalchandra Rampersaud
Can you be more specific as to when the error occurs. Saludos Lalchandra Rampersaud - Original Message - From: "elyes sallem" To: "Struts Users Mailing List" Sent: Wednesday, February 18, 2009 7:41 AM Subject: exception in jsp file Hello, i m developping a web application wit

Re: struts2 validation

2009-02-18 Thread PEGASUS84
sorry but i can't. this is my code jsp: and this is the image http://www.nabble.com/file/p22089792/Image.jpg i don't want the message; please help me -- View this message in context: http://www.nabble.com/struts2-validation-tp22068251p22089792.html Sent from the Struts - User

Re: [S1] struts integration with AjaxAnywhere

2009-02-18 Thread Lukasz Lenart
2009/2/19 Lalchandra Rampersaud : > How do I go about integrating JSF into my struts application (what jars > would I need, etc..). Sorry, but I don't understand. You can use MyFaces and follow installation instruction for Tomcat for example. Regards -- Lukasz http://www.lenart.org.pl/ ---

Re: [S1] struts integration with AjaxAnywhere

2009-02-18 Thread Lalchandra Rampersaud
I guess that I could use a JSF-enabled servlet container since it seems to be the most logical at this point. How do I go about integrating JSF into my struts application (what jars would I need, etc..). Saludos Lalchandra - Original Message - From: "Lukasz Lenart" To: "Struts User

Re: struts2 validation

2009-02-18 Thread Lukasz Lenart
2009/2/18 PEGASUS84 : > but in this way i'cant se the labels of the form; You can use s:label tag [1] > Can i override theme simple and remove only errorMessage? Yes you can, take a look on [2] and [3] [1] http://struts.apache.org/2.1.6/docs/label.html [2] http://struts.apache.org/2.1.6/docs/e

Re: struts2 validation

2009-02-18 Thread PEGASUS84
thanks, but in this way i'cant se the labels of the form; Can i override theme simple and remove only errorMessage? -- View this message in context: http://www.nabble.com/struts2-validation-tp22068251p22087958.html Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread SanJ.SANJAY
I think I have explained every step and procedure I have followed for this application in this thread. And I also have tested Sample Appluication that comes with struts2 distribution and it runs fine and I can execute all the lesson examples there. The only difference I see here is the Sample A

Re: Struts2.1 and ajax

2009-02-18 Thread Lukasz Lenart
2009/2/18 Jiří Chaloupka : > If it is deprecated, is there any other recomended library for AJAX? What ever you can use, jQuery for instance. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr.

Re: exception in jsp file

2009-02-18 Thread benjamin haimerl
hi, do you have a jsp called: ajust_005fcpe1.jsp in your project? it looks like a null pointer on this jsp take a look at tomcat/work/../yourApp where all the jsp's should be dropped as a java class.. then you should see where the null pointer came from. ben elyes sallem wrote: Hello, i

Re: struts2 validation

2009-02-18 Thread Lukasz Lenart
Use theme simple [1] and add what tags you want [1] http://struts.apache.org/2.1.2/docs/themes-and-templates.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For add

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread Musachy Barroso
at this point anything can be wrong with your config, from missing the filter configuration in web.xml, to trying to run the webapp in IIS. Take the blank web app and start learning with it, or follow a tutorial, or use the maven archetype to create a new app. musachy On Wed, Feb 18, 2009 at 11:4

Re: Action mapping issue while Integrating S2 and S1

2009-02-18 Thread SanJ.SANJAY
Running http://struts.apache.org/2.x/docs/config-browser-plugin.html also giving the same error : HTTP Status 404 - /starter/config-browser/index.action type Status report message /starter/config-browser/index.action description The requested resource (/starter/config-browser/index.action) is

Re: struts2 validation

2009-02-18 Thread PEGASUS84
thanks for your answer i've removed the conversion error interceptor but the same message apper in my jsp page; if i see the html code i see with the message invalide field value... is there a way for remove this td? -- View this message in context: http://www.nabble.com/struts2-validation-t

Re: @Result annotation (2.1.6) -- name does not default to 'success'

2009-02-18 Thread Musachy Barroso
Fixed in trunk. https://issues.apache.org/struts/browse/WW-3003 thanks for reporting. musachy On Wed, Feb 18, 2009 at 11:21 AM, Musachy Barroso wrote: > That looks like a bug to me. > > musachy > > On Wed, Feb 18, 2009 at 11:12 AM, wrote: >> I noticed while upgrading that the new @Result annot

Re: @Result annotation (2.1.6) -- name does not default to 'success'

2009-02-18 Thread Musachy Barroso
That looks like a bug to me. musachy On Wed, Feb 18, 2009 at 11:12 AM, wrote: > I noticed while upgrading that the new @Result annotation > [import org.apache.struts2.convention.annotation.Result] > forces you to explicitly put in the name attribute. Is there a reason fro > dropping > the conv

How do I add a paramter to the request and forward?

2009-02-18 Thread laredotornado
Hi, I'm using Struts 2. I am fairly new to Struts and wondered how I would set this up. What I want to do is when someone types in "mydomain.com/context_path/flow.do", something on the server side catches the request, and a parameter with name="token", value="123" to the request, and then forwa

@Result annotation (2.1.6) -- name does not default to 'success'

2009-02-18 Thread musomesa
I noticed while upgrading that the new @Result annotation [import org.apache.struts2.convention.annotation.Result] forces you to explicitly put in the name attribute. Is there a reason fro dropping the convention that it defaults to "success"? Chris Mawata

ajax autocompleter

2009-02-18 Thread Jiří Chaloupka
Hi, I tried to use autocompleter on base of tutorial http://www.benmccann.com/dev-blog/struts-2-ajax-tutorial-dojo-autocompleter-example/, which do nothing. My code is: public class HintAddresses extends ActionSupport{ private String namePart; private Map json; static Logger log = Log

Re: issues when using urlrewritefilter with struts2

2009-02-18 Thread Bill Stilwell
On Wed, Feb 18, 2009 at 1:22 AM, Wim De Smet wrote: > This only seems to happen when setting use-query-string=true in the > filter. Since our filters rely on being able to access the query > string it doesn't really work well when we don't include it, but at > least the parameters get set properly

exception in jsp file

2009-02-18 Thread elyes sallem
Hello, i m developping a web application with struts framework i got this error,which indicates that there a null pointer exception but nothing else any one know how can i find the null variable ... here is the exception java.lang.NullPointerException at org.apache.jsp.pages.CPFA_005fMensuel.

Re: how to configure the json handler in the rest plugin?

2009-02-18 Thread Jack Qu
You can use struts2-jsonplugin ,that's can return json result type! -- From: "Andrei Ivanov" Sent: Wednesday, February 18, 2009 11:03 PM To: "Struts Users Mailing List" Subject: how to configure the json handler in the rest plugin? Hello, I'm tr

Re: Struts2-Spring Integration Issue

2009-02-18 Thread Wes Wannemacher
Try using CGLIB proxies rather than Dynamic JDK proxies... I'm guessing that your methods are not defined in one of the extended interfaces. Assuming you are using Spring 2.5 or higher, try adding this to your applicationContext.xml -> Then make sure you have the CGLIB jars available. You also h

Re: struts2 + tiles

2009-02-18 Thread Пламен Узунов
Thanks, Antonio!!! This works perfectly! Greetings! 2009/2/18 Antonio Petrelli > 2009/2/17 Пламен Узунов : > > How will do it if you have a tiles list-attribute for title? > > Something like this: > > > > > > > > > > > > > > > > > > > > > > >

RE: Struts2-Spring Integration Issue

2009-02-18 Thread Sundararaman, Anand
Hi Dale and Wes, I am the original poster. But I did get a lot of information in this discussion. I will like to explain my original issue again. In my Struts2- Spring2 application, I had configured the struts2-Spring plugin and made Spring initialize all the action classes etc. Basically I

how to configure the json handler in the rest plugin?

2009-02-18 Thread Andrei Ivanov
Hello, I'm trying to use some custom settings(provide my own JsonConfig) for the json content type handler(org.apache.struts2.rest.handler.JsonLibHandler) but I don't see a way to do that. Any advice? Thanks - To unsubscribe, e-m

Struts2 form layout

2009-02-18 Thread David Kerwick
Hi, Is it possible to adjust the layout of an ajax themed form by using css? I'd like to have a four column layout instead of two. I tried creating a div around half the content and floating it right put the div ends up outside the form table for some reason. I tried creating another table aro

Re: Struts2.1 and ajax

2009-02-18 Thread Jiří Chaloupka
If it is deprecated, is there any other recomended library for AJAX? Jirka Lukasz Lenart napsal(a): 2009/2/18 : I found a lot of articles which describes how to use ajax in Struts2.0 using DOJO / JSON But in Struts 2.1 I found that DOJO is deprecated and replaced by Java Web Part - but I

Re: struts2 + tiles

2009-02-18 Thread Antonio Petrelli
2009/2/17 Пламен Узунов : > How will do it if you have a tiles list-attribute for title? > Something like this: > > > > > > > > > HTH Antonio - To unsubscribe, e-mail: u

Re: struts2 + tiles

2009-02-18 Thread Пламен Узунов
The problem is that I can't put multiple values from 'tab' list attribute as a values from properties file which have internationalized text (it I use for menus, tabs, etc.)

Re: Struts2.1 and ajax

2009-02-18 Thread Lukasz Lenart
2009/2/18 : > I found a lot of articles which describes how to use ajax in > Struts2.0 using DOJO / JSON > But in Struts 2.1 I found that DOJO is deprecated and replaced by > Java Web Part - but I did not found any tutorial. In JWP pages I Yes, Dojo is deprecated but where did you find that is

Struts2.1 and ajax

2009-02-18 Thread konf
BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Hi, I found a lot of articles which describes how to use ajax in Struts2.0 using DOJO / JSON But in Struts 2.1 I found that DOJO is deprecated and replaced by Java Web Part - but I did not found any tutorial. In JWP pages I found

RE: struts2 + tiles

2009-02-18 Thread David Kerwick
Not sure Can you not add in Before your To pass the title to the template. Dave -Original Message- From: Пламен Узунов [mailto:puzun...@gmail.com] Sent: 17 February 2009 17:28 To: Struts Users Mailing List Subject: Re: struts2 + tiles How will do it if you have a tiles list-attribute

Struts performance metrics

2009-02-18 Thread Mohan Radhakrishnan
Hi, There were some concerns raised about the performance of OGNL. We are evaluating Struts 2 for an internet site. How bad is the performance of OGNL ? Are there any methods to gather metrics by profiling that the forum recommends ? Thanks, Mohan -- View this message in context: http://

ExecAndWait interceptor + stream

2009-02-18 Thread Francisco Exposito
Hi, I have to generate a report and while it is being generated I need to show a waiting page. My xml file has: tiles.irgenerarpartes.wait application/zip ficheroZip filename="p

Re: issues when using urlrewritefilter with struts2

2009-02-18 Thread Wim De Smet
Hi again, On Mon, Feb 16, 2009 at 10:12 AM, Wim De Smet wrote: > I hope this is the right venue for asking questions like this. If I'm > mistaken, feel free to redirect me. :-) > > I'm currently working on a project where we are trying to use tuckey's > urlrewritefilter[1] v3.2.0 to rewrite urls

Re: [S1] struts integration with AjaxAnywhere

2009-02-18 Thread Lukasz Lenart
2009/2/18 Lalchandra Rampersaud : > I am trying to use the zoneJSF tag with struts 1.3 and tiles, but it shows > javax.servlet.ServletException: java.lang.NoClassDefFoundError: > javax./faces/webapp/UIComponentTag when I try to load the page. > However, I am able to use the zone tag without probl

Re: struts2 validation

2009-02-18 Thread Lukasz Lenart
2009/2/17 PEGASUS84 : > Does someone knows how to hide the error message which cames from the action > with name=input? > i don't want to view this message Invalid field value... I thing you're talking about conversion errors, if so remove Conversion Error Interceptor [1] from your stack [1] http