Re: (Struts2) howto access the user.fname on the jsp page (user's object in http session)
\--- On Wed, 9/17/08, mctdeveloper wrote: > Click the following link > > http://intricatetips.blogspot.com Or read the documentation: http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Prepare method being invoked twice
Finally i figured out the issue.The problem was that i had mistakenly incorporated struts "defaultStack" prior to paramsPrepareParamsStack in the large set of interceptors that i had used . The prepare interceptor in the default stack and again in paramsPrepareParamsStack was causing invocation of prepare method twice . During the first invocation the null values of prepare came , as "defaultStack" doesn't have params interceptor ahead of prepare interceptor ,so no values were set from request.Now i have replaced the "defaultStack" from the interceptor with paramsPrepareParamsStack and its running fine with no issues. If any discrepancy in my perception please let me know. Jayeshpowar wrote: > > Hi, > I have an action class which implements preparable . It works fine but i > noticed that the prepare method inside the action class gets invoked twice > before getting to the intended method.In first invocation the variables > inside the action class are all null , However in second invocation they > all are prefilled from the page.Can anyone explain why it gets invoked > twice ?. > -- View this message in context: http://www.nabble.com/Prepare-method-being-invoked-twice-tp18978969p19529661.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL Mapper Best Pracitices Question
Frans Thamura wrote: http://www.jroller.com/fthamura -> my login fthamura There's several ways to do this in struts 2. The best approach depends on what else your application does. Option 1. Low effort Implement a custom ActionMapper. It'll contain the logic to detect that the URI references a user and select the appropriate action with the username as a param. Option 2: Higher effort, but generic a. Use Struts 2.1 b. enable the NamedVariablePatternMatcher (instead of with WildcardPatternMatcher) c. Implement a custom ActionMapper that supports IndexActions. (or an action to invoke when no action is named) d. Create an IndexAction with namespace "/{username}". It'll be invoked with the username as a param. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session based pojo as form variables
Here are some examples of how I am accessing the session pojo fields on my form: and then in my action class (SampleAction): public String showForm() throws Exception { MyFormBean formBean = new MyFormBean(); Map session = (Map)ActionContext.getContext().get("session"); session.put("formBean",formBean); return ("showFormPage"); } public String submit() throws Exception { Map session = (Map)ActionContext.getContext().get("session"); MyFormBean formBean = (MyFormBean)session.get("formBean"); formBean.setMessage("submit was received and processed."); return "showFormPage"; } So when I set a break point in submit(), I can see that it is invoked, but when I pull the "formBean" out of session I find that it is still the unedited copy (original). Struts2 apparently has not copied the form value into the pojo valueobj for me. BTW - I am using "zero configuration" and struts2 2.1.2 Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Velocity Integration
Christopher Schultz wrote: I'm an S1 user and a member of the Velocity team. I recently posted a message to the velocity-dev list regarding the ugly syntax required by the S2 tag Velocity implementation. Hi Chris, It's probably worth posting to the struts-dev list with a more specific subject line. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL Mapper Best Pracitices Question
> > >> > There's several ways to do this in struts 2. The best approach depends on > what else your application does. > > Option 1. Low effort > Implement a custom ActionMapper. It'll contain the logic to detect that > the URI references a user and select the appropriate action with the > username as a param. > > Option 2: Higher effort, but generic > a. Use Struts 2.1 > b. enable the NamedVariablePatternMatcher (instead of with > WildcardPatternMatcher) > c. Implement a custom ActionMapper that supports IndexActions. (or an > action to invoke when no action is named) > d. Create an IndexAction with namespace "/{username}". It'll be invoked > with the username as a param. > is the roller the best practices one? any implementation for my reference F
Re: question: indexed textfields and maps
Your get/set method signatures provide a *huge* hint to the conversion magic logic. If you are curious to see how this actually works, take a look at Ognl, OgnlUtil amd OgnlRuntime. If you can make it through the reflection code, it is quite amazing. Scott tREXX - wrote: > > Hi Dave, > > Ok, i've tried that one and it works like it should. > > So that getter method works as kind of a "type hint" to the framework so > that struts knows it has to convert the parameter "amount" to the given > Map - Is that correct? Up to now I've only added getter > methods to struts-actions when i really wanted to access some properties > from my JSP. I never thought they would have an effect on the type > conversion (and on using the right setter method). > > Anyway - problem solved. Thanks for your help and patience! > > André > > -- View this message in context: http://www.nabble.com/question%3A-indexed-textfields-and-maps-tp19519758p19535398.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session based pojo as form variables
I've never used a form field name like "#session.formBean.firstName" before, but if you refactor your code a little: Make your action implement SessionAware interface and put a formBean getter/setter in your actions (or some superclass of your wizard actions), which takes it from the session: public FormBean getFormBean() { return (FormBean) sessionMap.get("formBean"); } public void setFormBean(FormBean f) { sessionMap.put("formBean", f); } then in your JSP page name your form fields like this: 2008/9/17 928572663 <[EMAIL PROTECTED]>: > Here are some examples of how I am accessing the session pojo fields on > my form: > > > > >value="%{#session.formBean.firstName}" label="First Name" size="16" /> > > > > > > and then in my action class (SampleAction): > > public String showForm() throws Exception > { > MyFormBean formBean = new MyFormBean(); > > Map session = (Map)ActionContext.getContext().get("session"); > session.put("formBean",formBean); > > return ("showFormPage"); > } > > public String submit() throws Exception > { > Map session = (Map)ActionContext.getContext().get("session"); > MyFormBean formBean = (MyFormBean)session.get("formBean"); > > formBean.setMessage("submit was received and processed."); > > return "showFormPage"; > } > > So when I set a break point in submit(), I can see that it is invoked, > but when I pull the "formBean" out of session I find that it is still > the unedited copy (original). Struts2 apparently has not copied the > form value into the pojo valueobj for me. > > BTW - I am using "zero configuration" and struts2 2.1.2 > > Thanks. > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] Action chaining and validation problem
Without going into a lot of detail, suffice to say our application benefits from action chaning, and we are using it in the documented way. We've begun to go through and add the validation to some actions, but we have run into a snag with validation and action chaining. Whenever one action in the chain encounters an error as a result of validation all other actions are affected. Struts then calls the input method on all downstream actions. However, some actions don't override input, and by calling only the input method on those actions Struts is not calling the intended method (be it execute() or a named method), and those actions are not executing properly. Not only are downstream actions affected, but simple actions called using the
RE: [S2] Action chaining and validation problem
check your validators.xml to see if your short-circuit attribute is set to true The invokemethod grants the Interceptor the power to short-circuiting the Action Invocation. Instead of calling invoke, the Interceptor can return a result String and bypass any remaining Interceptors on the stack and the Action's execute method. e.g. you'll want to set short-circuit="false" to allow interceptors and execute to be invoked http://struts.apache.org/2.x/docs/understanding-interceptors.html Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: [S2] Action chaining and validation problem > To: user@struts.apache.org > From: Becky.L.O'[EMAIL PROTECTED] > Date: Wed, 17 Sep 2008 10:30:06 -0700 > > > Without going into a lot of detail, suffice to say our application benefits > from action chaning, and we are using it in the documented way. > > We've begun to go through and add the validation to some actions, but we > have run into a snag with validation and action chaining. > > Whenever one action in the chain encounters an error as a result of > validation all other actions are affected. Struts then calls the input > method on all downstream actions. However, some actions don't override > input, and by calling only the input method on those actions Struts is not > calling the intended method (be it execute() or a named method), and those > actions are not executing properly. Not only are downstream actions > affected, but simple actions called using the affected in the same way. > > It seems like, whenever there are action errors in the value stack, > everything passed that value stack gets a call to input. > > Has anyone else run in to this kind of issue with action chaining and > validation? > > Thanks, > -B > > > > - > This message, together with any attachments, is > intended only for the use of the individual or entity > to which it is addressed. It may contain information > that is confidential and prohibited from disclosure. > If you are not the intended recipient, you are hereby > notified that any dissemination or copying of this > message or any attachment is strictly prohibited. If > you have received this message in error, please notify > the original sender immediately by telephone or by > return e-mail and delete this message, along with any > attachments, from your computer. Thank you. > > - > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _ Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
Re: Struts 2 + AjaxTags + DisplayTag
After some long hours I got pagination and export working with ajaxtags and displaytag THis is how you do ajax pagination. AjaxTags 1.3 rc7 Struts2.0.12 DisplayTag 1.1.1 I had to make small change in the ajaxtags.js for it to work Comment out the line that calls the prefunction in the ajaxtags.js /** * Prefunction Invoke Ajax.Update TAG */ AjaxJspTag.PreFunctionUpdateInvoke = Class.create(); AjaxJspTag.PreFunctionUpdateInvoke.prototype = Object.extend(new AjaxJspTag.Base(), { initialize: function(ajaxupdateData) { /** this.preFunction = ajaxupdateData.preFunction; if (isFunction(this.preFunction)) { this.preFunction(); } */ if (this.cancelExecution) { alert("I am canceling the excution"); this.cancelExecution = false; return ; } /** * alert("Here I am in PreFunction Ajaxupdatedata"+ ajaxupdateData.id + " " + ajaxupdateData.href + " " + ajaxupdateData.postFunction + " prefunction" + this.preFunction); */ var thisCall = new Ajax.Updater(ajaxupdateData.id,ajaxupdateData.href,{onComplete: ajaxupdateData.postFunction}); } }); Add this to the head section of the page in this order In the jsp page for me which is seperate from the indexpage <%@ taglib prefix="s" uri="/struts-tags" %> <%@ taglib uri="http://displaytag.sf.net"; prefix="display" %> <%@ taglib uri="http://ajaxtags.org/tags/ajax"; prefix="ajax" %> Delete One thing to note here is that do not use use instead. s:form create a Table and when the ajax call happens it will refresh a different div in the table and you will see 2 divs with same data When you look at the page source you will see the links ajaxified as one below a onclick="new AjaxJspTag.PreFunctionUpdateInvoke({id: "userList", href: "/ViewAllUsers.action?d-3610194-p=2&userList=true" }); return false;" href="javascript://nop/">Next Hey Márcio Where you ever successful in getting AjaxTags to work with Dispay Tag and Struts2 I am at the same junction as you were. Please let me know. Thanks Márcio Gurgel wrote: > > Hi Randy, > > I also tried to set requestURI. > I'm having lots of problems with components inside tabbedPanels... > > For example: > This example works outside a tabbed panel: > > 2. Attach to "onmouseover", and "onclick" event on Area below and update > content of Div1, highlight targets with green color > targets="div1" events="onmouseover,onclick" highlightColor="green"/> > > Mouse Over or Click Here! > > > When its inside a div from tabbedpanel just doesn't work. > > Does anyone can help me? > > > 2008/4/15, Randy Burgess <[EMAIL PROTECTED]>: >> >> Well your requestURI is not set so the URL is set to the current JSP and >> not >> the action. I have never had any success leaving requestURI blank with >> DisplayTag on S1 or S2. I always set it to the name of an action. >> >> Regards, >> Randy Burgess >> Sr. Web Applications Developer >> Nuvox Communications >> >> >> >> > From: Márcio Gurgel <[EMAIL PROTECTED]> >> > Reply-To: Struts Users Mailing List >> > Date: Tue, 15 Apr 2008 01:18:34 -0300 >> > To: Struts Users Mailing List >> > Subject: Re: Struts 2 + AjaxTags + DisplayTag >> >> > >> > Matt, tanks for your help. But I need to persist with displayTags /: >> > >> > I guess that there's some kind of validation inside struts 2 that >> doesnt >> > allow the correct work of ajaxtags.. >> > Just take a look at my generated url from displaytag pagination. >> > >> > http://localhost:8080/SGVDBA/view/usuario/UsuPesquisaResultados.jsp? >> > >> currentUsu.eMail=¤tUsu.chv=¤tUsu.dtGvr=&struts.enableJSONValidatio >> > n=true >> > &buttonPesquisar=Pesquisar&dojo.currentUsu.dtGvr=&d-49489-p=2 >> > >> > >> > Tanks all! >> > >> > 2008/4/14, matt.payne <[EMAIL PROTECTED]>: >> >> >> >> >> >> You could try struts2 + jquery + jgrid >> >> (http://trirand.com/jqgrid/jqgrid.html) >> >> If you need ajax, you need something that returns an json or xml >> response >> >> (insert you velocity, freemarker, json result, jsp result here). >> >> >> >> Matt >> >> >> >> >> >> >> >> Márcio Gurgel wrote: >> >>> >> >>> Hi all! >> >>> >> >>> Since this morning I'm having troubles to configure ajaxTags in my >> >>> project. >> >>> I followed the steps from ajaxTags web site, I also saw the ajaxTags >> >> show >> >>> case wich contains a example of display:table. >> >>> But doen't work... >> >>> >> >>> Is there some kind os special configuration for struts 2? >> >>> My displayTable is inside a >> >>> >> >>> I also tried to use: useSelectedTabCookie="useSelectedTabCookie" to >> >> select >> >>> the correct tab when my displayTable pagination submits the page. >> >>> In this case, the content of the first tab doesn't appear. >> >>> >> >>> Regards. >> >>> >> >>> Márcio Gurgel >> >>> >> >>> >> >> >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Struts-2-%2B-AjaxTags-%2B-DisplayTag-tp1
RE: [S2] Action chaining and validation problem
--- On Wed, 9/17/08, Martin Gainty wrote: > check your validators.xml to see if your short-circuit > attribute is set to true My understanding is that validation short-circuiting means that additional validations for the same field won't be run as soon as the first validation error is encountered (plus rules for plain vs. field validators). See http://struts.apache.org/2.x/docs/validation.html#Validation-ShortCircuitingValidator This won't affect the invocation chain at all. I'd be interesting in clarifying this--where is the documentation that supports what you're saying? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
autowiring in html tag
Hi all, Is it possible to use html tag instead struts 2 tag which should implement the autowiring. I tried with instead of . I can pass value form jsp to action but not from action to jsp. Where i did wrong. Please give me the solution ASAP. With Regards, Ashok, -- View this message in context: http://www.nabble.com/autowiring-in-html-tag-tp19539274p19539274.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 + AjaxTags + DisplayTag
hi, Are you using struts 2.1.2 Beta for your project? With Regards, Ashok dynamicd wrote: > > After some long hours I got pagination and export working with ajaxtags > and displaytag > THis is how you do ajax pagination. > > AjaxTags 1.3 rc7 > Struts2.0.12 > DisplayTag 1.1.1 > > > I had to make small change in the ajaxtags.js for it to work > Comment out the line that calls the prefunction in the ajaxtags.js > > /** > * Prefunction Invoke Ajax.Update TAG > */ > AjaxJspTag.PreFunctionUpdateInvoke = Class.create(); > AjaxJspTag.PreFunctionUpdateInvoke.prototype = Object.extend(new > AjaxJspTag.Base(), { > > initialize: function(ajaxupdateData) { > /** > this.preFunction = ajaxupdateData.preFunction; > if (isFunction(this.preFunction)) > { > this.preFunction(); > } > */ > if (this.cancelExecution) { > alert("I am canceling the excution"); > this.cancelExecution = false; > return ; > } > /** > * alert("Here I am in PreFunction Ajaxupdatedata"+ ajaxupdateData.id + " > " + ajaxupdateData.href + " " + ajaxupdateData.postFunction + " > prefunction" + this.preFunction); > */ > > var thisCall = new > Ajax.Updater(ajaxupdateData.id,ajaxupdateData.href,{onComplete: > ajaxupdateData.postFunction}); > } > > }); > > > Add this to the head section of the page in this order > > > > > > In the jsp page for me which is seperate from the indexpage > > <%@ taglib prefix="s" uri="/struts-tags" %> > <%@ taglib uri="http://displaytag.sf.net"; prefix="display" %> > <%@ taglib uri="http://ajaxtags.org/tags/ajax"; prefix="ajax" %> > > > > > > > >export="true" excludedParams="*" pagesize="15" > requestURI="/Dashboard/ViewAllUsers.action"> > theme="simple" fieldValue="%{#attr.userlist.id}" > > >> >> >escapeXml="true" > >escapeXml="true"> >escapeXml="true"> > > > > > > > > id="deleteUser" cssClass="anchors" theme="ajax" targets="users" > formId="userform">Delete > > > > One thing to note here is that do not use use instead. > s:form create a Table and when the ajax call happens it will refresh a > different div in the table and you will see 2 divs with same data > > When you look at the page source you will see the links ajaxified as one > below > a onclick="new AjaxJspTag.PreFunctionUpdateInvoke({id: "userList", href: > "/ViewAllUsers.action?d-3610194-p=2&userList=true" }); return false;" > href="javascript://nop/">Next > Hey Márcio > Where you ever successful in getting AjaxTags to work with Dispay Tag and > Struts2 > I am at the same junction as you were. Please let me know. > Thanks > > > > > Márcio Gurgel wrote: >> >> Hi Randy, >> >> I also tried to set requestURI. >> I'm having lots of problems with components inside tabbedPanels... >> >> For example: >> This example works outside a tabbed panel: >> >> 2. Attach to "onmouseover", and "onclick" event on Area below and >> update >> content of Div1, highlight targets with green color >> > targets="div1" events="onmouseover,onclick" highlightColor="green"/> >> >> Mouse Over or Click Here! >> >> >> When its inside a div from tabbedpanel just doesn't work. >> >> Does anyone can help me? >> >> >> 2008/4/15, Randy Burgess <[EMAIL PROTECTED]>: >>> >>> Well your requestURI is not set so the URL is set to the current JSP and >>> not >>> the action. I have never had any success leaving requestURI blank with >>> DisplayTag on S1 or S2. I always set it to the name of an action. >>> >>> Regards, >>> Randy Burgess >>> Sr. Web Applications Developer >>> Nuvox Communications >>> >>> >>> >>> > From: Márcio Gurgel <[EMAIL PROTECTED]> >>> > Reply-To: Struts Users Mailing List >>> > Date: Tue, 15 Apr 2008 01:18:34 -0300 >>> > To: Struts Users Mailing List >>> > Subject: Re: Struts 2 + AjaxTags + DisplayTag >>> >>> > >>> > Matt, tanks for your help. But I need to persist with displayTags /: >>> > >>> > I guess that there's some kind of validation inside struts 2 that >>> doesnt >>> > allow the correct work of ajaxtags.. >>> > Just take a look at my generated url from displaytag pagination. >>> > >>> > http://localhost:8080/SGVDBA/view/usuario/UsuPesquisaResultados.jsp? >>> > >>> currentUsu.eMail=¤tUsu.chv=¤tUsu.dtGvr=&struts.enableJSONValidatio >>> > n=true >>> > &buttonPesquisar=Pesquisar&dojo.currentUsu.dtGvr=&d-49489-p=2 >>> > >>> > >>> > Tanks all! >>> > >>> > 2008/4/14, matt.payne <[EMAIL PROTECTED]>: >>> >> >>> >> >>> >> You could try struts2 + jquery + jgrid >>> >> (http://trirand.com/jqgrid/jqgrid.html) >>> >> If you need ajax, you need something that returns an json or xml >>> response >>> >> (insert you velocity, freemarker, json result, jsp result here). >>> >> >>> >> Matt >>> >> >>> >> >>> >> >>> >> Márcio Gurgel wrote: >>> >>> >>> >>> Hi all! >>> >>> >>> >>> Since this morning I'm having troubles to configure ajaxTags in my >>> >>> project. >>> >>> I followed the steps fro
Re: autowiring in html tag
How would the HTML tag receive information from your Struts action? The tag is designed to receive that data. HTML's basic tag is not. On Wed, Sep 17, 2008 at 3:22 PM, MyAshok <[EMAIL PROTECTED]> wrote: > > Hi all, > > Is it possible to use html tag instead struts 2 tag which should implement > the autowiring. > I tried with instead of name="username" >. > I can pass value form jsp to action but not from action to jsp. > Where i did wrong. > Please give me the solution ASAP. > > With Regards, > Ashok, > -- > View this message in context: > http://www.nabble.com/autowiring-in-html-tag-tp19539274p19539274.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jim Kiley Technical Consultant | Summa [p] 412.258.3346 [m] 412.445.1729 http://www.summa-tech.com
Re: autowiring in html tag
--- On Wed, 9/17/08, MyAshok wrote: > Is it possible to use html tag instead struts 2 tag which > should implement the autowiring. Well no, that's what the tag *does* (amongst other things). > Where i did wrong. You didn't provide the value anywhere. > Please give me the solution ASAP. ASAP, huh? Must be really important. Use the S2 tag. Alternatively, you could use an HTML input element and fill the value yourself, if you don't mind losing the rest of the S2 tag functionality (error reporting, theme artifacts, etc.) if you're using a JSP 2.0 container, or "/> If your issue is actually with the default "xhtml" theme and the table tags it renders you could also just use the "simple" theme either for the entire form. Dave "Sure hope I answered your question in time" Newton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: autowiring in html tag
--- On Wed, 9/17/08, Jim Kiley wrote: > How would the HTML tag receive > information from your Struts action? Magic, yo. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: autowiring in html tag
Dave, Thank You very much for the timely reply. I need to do the submit in ajax theme, so if i change the theme to render table tag - the requirement will collapse. I thought to say " values from jsp to action is passing, but not the viceversa", there was misspelled as "form" instead of "from" in my thread. Regards, Ashok newton.dave wrote: > > --- On Wed, 9/17/08, Jim Kiley wrote: >> How would the HTML tag receive >> information from your Struts action? > > Magic, yo. > > Dave > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/autowiring-in-html-tag-tp19539274p19539808.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
action method not called by
Hi, I came across which I believe is a weird OGNL behavior: I have an action B which extends from action A which extends from ActionSupport (executing using the defaultStack) In my struts.xml file I have an action defined this way: listing.jsp my listing.jsp: ... ... Now, hasPanding is a method defined in B: public boolean hasPending() { System.out.println("call me"); return true; } The surprising thing is it is NEVER called (which I believe OGNL can not resolve it) HOWEVER, if I pull up the hasPending() method to class A, then OGNL found it and call it OK. I tested it against S2.1.2 and a current S2.1.3 snapshot. Any advice? Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: action method not called by
--- On Wed, 9/17/08, Gabriel Belingueres wrote: > The surprising thing is it is NEVER called > (which I believe OGNL can not resolve it) I don't see how that's possible; it would be called on whatever is on the stack and normal inheritance mechanics would apply. I am also unable to reproduce the problem, so I suspect something else is happening. Can you provide more info? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: action method not called by
Yes something else was happening...me! I've mistakenly been written this method in some other subclass C of A (which was not the executing action.) what a waste of time...sorry... 2008/9/17 Dave Newton <[EMAIL PROTECTED]>: > --- On Wed, 9/17/08, Gabriel Belingueres wrote: >> The surprising thing is it is NEVER called >> (which I believe OGNL can not resolve it) > > I don't see how that's possible; it would be called on whatever is on the > stack and normal inheritance mechanics would apply. > > I am also unable to reproduce the problem, so I suspect something else is > happening. Can you provide more info? > > Dave > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session based pojo as form variables
I tried both suggestions and neither worked. The first thing I tried was to implement the getter/setters and change the JSP as you suggested. When I did this I got the following: Caused by: ognl.OgnlException: formBean [java.lang.NullPointerException] at ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:935) at ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:53) at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:121) at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.getProperty(ObjectAccessor.java:17) at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1643) at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:116) ... 145 more Then I tried adding the SessionAware interface. The SessionAware interface requires me to implement this function: public void setSession(Map session) { session.put("formBean", formBean); } however, when the interceptor calls setSession() my formBean object hasn't been initialized yet, because the displayForm() action function hasn't been called yet. This is the function that creates the pojo form bean. Gabriel Belingueres wrote: I've never used a form field name like "#session.formBean.firstName" before, but if you refactor your code a little: Make your action implement SessionAware interface and put a formBean getter/setter in your actions (or some superclass of your wizard actions), which takes it from the session: public FormBean getFormBean() { return (FormBean) sessionMap.get("formBean"); } public void setFormBean(FormBean f) { sessionMap.put("formBean", f); } then in your JSP page name your form fields like this: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: action method not called by
--- On Wed, 9/17/08, Gabriel Belingueres wrote: > Yes something else was happening...me! > I've mistakenly been written this method in some other > subclass C of A (which was not the executing action.) *whew* Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [S2] Action chaining and validation problem
We actually have no validation XML files (we're setting error fields manually). We're not performing validation using that approach, but we want to remain open to doing so in the future. The validation interceptor is in the struts-default stack, which is what our packages extend from. From what Dave said it sounds like short circuiting is not our solution. Is there perhaps a setting we're missing on the chaining interceptor to tell it not to call validation/input on downstream chained actions? I read a similar thread where someone suggested reordering the interceptor stack so that validation is above chain, because when chain is first it copies action errors into the next action in the chain. I've started making a custom interceptor stack to try this, but my guess is the action that JSP result won't see the action errors from the one action that *does* set action error messages because they won't get copied down the stack. It seems like the framework is calling input on any downstream chained action if action errors are placed on the value stack by an upstream chained action. We even have some actions called via s:action (execute results = true) in the JSP result and it's trying to call input even on those actions. -B Martin Gainty <[EMAIL PROTECTED] com> To Struts Users Mailing List 09/17/2008 11:21 AM cc Subject Please respond to RE: [S2] Action chaining and "Struts Users validation problem Mailing List" <[EMAIL PROTECTED] he.org> check your validators.xml to see if your short-circuit attribute is set to true The invokemethod grants the Interceptor the power to short-circuiting the Action Invocation. Instead of calling invoke, the Interceptor can return a result String and bypass any remaining Interceptors on the stack and the Action's execute method. e.g. you'll want to set short-circuit="false" to allow interceptors and execute to be invoked http://struts.apache.org/2.x/docs/understanding-interceptors.html Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: [S2] Action chaining and validation problem > To: user@struts.apache.org > From: Becky.L.O'[EMAIL PROTECTED] > Date: Wed, 17 Sep 2008 10:30:06 -0700 > > > Without going into a lot of detail, suffice to say our application benefits > from action chaning, and we are using it in the documented way. > > We've begun to go through and add the validation to some actions, but we > have run into a snag with validation and action chaining. > > Whenever one action in the chain encounters an error as a result of > validation all other actions are affected. Struts then calls the input > method on all downstream actions. However, some actions don't override > input, and by calling only the input method on those actions Struts is not > calling the intended method (be it execute() or a named method), and those > actions are not executing properly. Not only are downstream actions > affected, but simple actions called using the affected in the same way. > > It seems like, whenever there are action errors in the value stack, > everything passed that value stack gets a call to input. > > Has anyone else run in to this kind of issue with action chaining and > validation? > > Thanks, > -B > > > > - > This message, together with any attachments, is > intended only for the use of the individual or entity > to which it is addressed. It may contain information > that is confidential and prohibited from disclosure. > If you are not the intended recipient, you are hereby > notified that any d
RE: [S2] Action chaining and validation problem
1 down ..more to go..have you have declared any methods in excludeMethods ? http://struts.apache.org/2.0.6/struts2-core/apidocs/com/opensymphony/xwork2/validator/ValidationInterceptor.html Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: RE: [S2] Action chaining and validation problem > To: user@struts.apache.org > From: Becky.L.O'[EMAIL PROTECTED] > Date: Wed, 17 Sep 2008 15:32:49 -0700 > > We actually have no validation XML files (we're setting error fields > manually). We're not performing validation using that approach, but we > want to remain open to doing so in the future. The validation interceptor > is in the struts-default stack, which is what our packages extend from. > > From what Dave said it sounds like short circuiting is not our solution. > Is there perhaps a setting we're missing on the chaining interceptor to > tell it not to call validation/input on downstream chained actions? > > I read a similar thread where someone suggested reordering the interceptor > stack so that validation is above chain, because when chain is first it > copies action errors into the next action in the chain. I've started > making a custom interceptor stack to try this, but my guess is the action > that JSP result won't see the action errors from the one action that *does* > set action error messages because they won't get copied down the stack. > > It seems like the framework is calling input on any downstream chained > action if action errors are placed on the value stack by an upstream > chained action. We even have some actions called via s:action (execute > results = true) in the JSP result and it's trying to call input even on > those actions. > > -B > > > > > > Martin Gainty > <[EMAIL PROTECTED] > com> To >Struts Users Mailing List > 09/17/2008 11:21 > AM cc > >Subject > Please respond to RE: [S2] Action chaining and >"Struts Users validation problem >Mailing List" > <[EMAIL PROTECTED] > he.org> > > > > > > > > > check your validators.xml to see if your short-circuit attribute is set to > true > The invokemethod grants the Interceptor the power to short-circuiting the > Action Invocation. > Instead of calling invoke, the Interceptor can > return a result String and > bypass any remaining Interceptors on the stack and the Action's execute > method. > e.g. > > > > > you'll want to set short-circuit="false" to allow interceptors and execute > to be invoked > > http://struts.apache.org/2.x/docs/understanding-interceptors.html > > Martin > __ > Disclaimer and confidentiality note > Everything in this e-mail and any attachments relates to the official > business of Sender. This transmission is of a confidential nature and > Sender does not endorse distribution to any party other than intended > recipient. Sender does not necessarily endorse content contained within > this transmission. > > > > Subject: [S2] Action chaining and validation problem > > To: user@struts.apache.org > > From: Becky.L.O'[EMAIL PROTECTED] > > Date: Wed, 17 Sep 2008 10:30:06 -0700 > > > > > > Without going into a lot of detail, suffice to say our application > benefits > > from action chaning, and we are using it in the documented way. > > > > We've begun to go through and add the validation to some actions, but we > > have run into a snag with validation and action chaining. > > > > Whenever one action in the chain encounters an error as a result of > > validation all other actions are affected. Struts then calls the input > > method on all downstream actions.
[S2] Avoiding usage of struts-tags
Hello Everyone, do you know if the "communication" between the S2 Action and the struts-tags is standardised? Or am I opening a black box if I replace sth. like with a VanillaHTML+JSTL version like rows="6">${object.description} ? It is currently working; but can I rely on it? Do you know how the field- and action-errors can be accessed with JSTL-EL? The reason I do this is because I don't like the struts-tags and OGNL. Thanx in advance, ~Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Avoiding usage of struts-tags
Andreas Mähler wrote: Hello Everyone, do you know if the "communication" between the S2 Action and the struts-tags is standardised? Or am I opening a black box if I replace sth. like rows="6"/> with a VanillaHTML+JSTL version like rows="6">${object.description} ? This approach is okay. You will struggle with collections though (like populating the values of a select) An edge case is radio buttons as they include a hidden field (or was that checkboxes). Just check the templates for what they render as html. It is currently working; but can I rely on it? Do you know how the field- and action-errors can be accessed with JSTL-EL? ${actionErrors} is a Collection ${actionMessages} is a Collection ${fieldErrors} is a Map> where the key is the name of the field The reason I do this is because I don't like the struts-tags and OGNL. That's understandable, but the template system of the tags is quite good and it may be more productive to create better templates. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Avoiding usage of struts-tags
Thank you for your quick answer, Jeromy! Jeromy Evans schrieb: do you know if the "communication" between the S2 Action and the struts-tags is standardised? Or am I opening a black box if I replace sth. like rows="6"/> with a VanillaHTML+JSTL version like rows="6">${object.description} ? This approach is okay. You will struggle with collections though (like populating the values of a select) An edge case is radio buttons as they include a hidden field (or was that checkboxes). Just check the templates for what they render as html. It was the checkboxes - i know about this issue (CheckboxInterceptor) and i think that I can handle it :-) Haven't tried to replace Collection-backed tags like s:select yet, but I think (using c:forEach) it shouldn't be too painful aswell. The reason I do this is because I don't like the struts-tags and OGNL. That's understandable, but the template system of the tags is quite good and it may be more productive to create better templates. I've already tried that, but I don't know Freemaker yet and I don't even like the code that is generated by the simple theme. (e.g: it was my intention to write a 100% JavaScript-free webinterface) I also think that the interface is quirky and not as straightforward as JSTL's (at least the core tags - i rarely use the other stuff) - but that's just my opinion. I think I've also discovered a bug in the s:colgroup tag, so I can't use it. I've opened a ticket[1], but I think that I'm not allowed to schedule it to - say - the 2.1.3 release (at least if I don't provide a patch). Greetings, ~Andreas [1] https://issues.apache.org/struts/browse/WW-2758 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session based pojo as form variables
You need to instantiate your formBean before the interceptor stack tries to set the parameters. Common points in your code where you can accomplish that are: instantiating the object when declared as an instance variable, inside a constructor of your action, or implement the Preparable interface and create it inside the prepare() method. 2008/9/17 928572663 <[EMAIL PROTECTED]>: > I tried both suggestions and neither worked. > > The first thing I tried was to implement the getter/setters and change the > JSP as you suggested. When I did this I got the following: > > Caused by: ognl.OgnlException: formBean [java.lang.NullPointerException] >at ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:935) >at > ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:53) >at > ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:121) >at > com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.getProperty(ObjectAccessor.java:17) >at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1643) >at > com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:116) >... 145 more > > Then I tried adding the SessionAware interface. The SessionAware interface > requires me to implement this function: > > public void setSession(Map session) > { > session.put("formBean", formBean); > } > > however, when the interceptor calls setSession() my formBean object hasn't > been initialized yet, because the displayForm() action function hasn't been > called yet. This is the function that creates the pojo form bean. > > > > > Gabriel Belingueres wrote: >> >> I've never used a form field name like "#session.formBean.firstName" >> before, but if you refactor your code a little: >> >> Make your action implement SessionAware interface and put a formBean >> getter/setter in your actions (or some superclass of your wizard >> actions), which takes it from the session: >> public FormBean getFormBean() { >> return (FormBean) sessionMap.get("formBean"); >> } >> public void setFormBean(FormBean f) { >> sessionMap.put("formBean", f); >> } >> >> then in your JSP page name your form fields like this: >> >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Avoiding usage of struts-tags
Andreas Mähler wrote: I've already tried that, but I don't know Freemaker yet and I don't even like the code that is generated by the simple theme. (e.g: it was my intention to write a 100% JavaScript-free webinterface) I also think that the interface is quirky and not as straightforward as JSTL's (at least the core tags - i rarely use the other stuff) - but that's just my opinion. I think I've also discovered a bug in the s:colgroup tag, so I can't use it. I've opened a ticket[1], but I think that I'm not allowed to schedule it to - say - the 2.1.3 release (at least if I don't provide a patch). Greetings, ~Andreas I didn't even know s:colgroup existed. I've been through the same pain and have many times started writing new tag implementations (less optional attributes, leaner templates) but its much larger than I expected. Even though I dislike the tags too, they do have many things going for them to the credit of the original developers; automatically include field errors in the right place and (usually) selecting the correct option in a select, populating values from collections etc. Complex forms become a mess if you don't use them. FreeMarker is overwhelming at first because the numerous <#rt> tags distracting from the important fields. I threw together this tool (http://www.freemarker-tool.com/) specifically for tweaking struts2 tag templates (see the examples). In one of my projects, prior to struts 2.0.9, I created a lot of JSP tags (.tag files) that wrapped struts2 simple tags with more behaviour/markup. eg. textfields that included a radio button to enable it first and an attribute to set the radio value. In 2.0.9 EL in struts2 tags was disallowed so eventually I had to rewrite them as custom struts 2 tags. Creating the new tags and templates was surprisingly straight-forward and definitely more productive that copy & pasting the relevant JSP into every page. Anyway, hopefully just giving you some ideas. cheers, Jeromy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Avoiding usage of struts-tags
Hello! Jeromy Evans schrieb: I didn't even know s:colgroup existed. Whoops ;-) s:optgroup is what I meant It's 3 in the morning here in GER and I am still working at my diploma thesis... should go to sleep now :-) Thanx for the hints, ~Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [S2] Action chaining and validation problem
I'm referencing defaultStack. Can I simply pass that parameter to the default stack and the validator interceptor will pick it up? We don't actually use xml-based validation. We set action errors on our own. Do you think it'll still work even though that interceptor is specifically for xml based validation? Is there no setting on the chain interceptor to proceed "business as usual" through all downstream action methods if one encounters an error? Thanks, -B Martin Gainty <[EMAIL PROTECTED] com> To Struts Users Mailing List 09/17/2008 03:55 PM cc Subject Please respond to RE: [S2] Action chaining and "Struts Users validation problem Mailing List" <[EMAIL PROTECTED] he.org> 1 down ..more to go..have you have declared any methods in excludeMethods ? http://struts.apache.org/2.0.6 /struts2-core/apidocs/com/opensymphony/xwork2/validator/ValidationInterceptor.html Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: RE: [S2] Action chaining and validation problem > To: user@struts.apache.org > From: Becky.L.O'[EMAIL PROTECTED] > Date: Wed, 17 Sep 2008 15:32:49 -0700 > > We actually have no validation XML files (we're setting error fields > manually). We're not performing validation using that approach, but we > want to remain open to doing so in the future. The validation interceptor > is in the struts-default stack, which is what our packages extend from. > > From what Dave said it sounds like short circuiting is not our solution. > Is there perhaps a setting we're missing on the chaining interceptor to > tell it not to call validation/input on downstream chained actions? > > I read a similar thread where someone suggested reordering the interceptor > stack so that validation is above chain, because when chain is first it > copies action errors into the next action in the chain. I've started > making a custom interceptor stack to try this, but my guess is the action > that JSP result won't see the action errors from the one action that *does* > set action error messages because they won't get copied down the stack. > > It seems like the framework is calling input on any downstream chained > action if action errors are placed on the value stack by an upstream > chained action. We even have some actions called via s:action (execute > results = true) in the JSP result and it's trying to call input even on > those actions. > > -B > > > > > > Martin Gainty > <[EMAIL PROTECTED] > com> To >Struts Users Mailing List > 09/17/2008 11:21 > AM cc > > Subject > Please respond to RE: [S2] Action chaining and >"Struts Users validation problem >Mailing List" > <[EMAIL PROTECTED] > he.org> > > > > > > > > > check your validators.xml to see if your short-circuit attribute is set to > true > The invokemethod grants the Interceptor the power to short-circuiting the > Action Invocation. > Instead of calling invoke, the Interceptor can > return a result String and > bypass any remaining Interceptors on the stack and the Action's execute > method. > e.g. > > > > > you'll want to set short-circuit="false" to allow interceptors and execute > to be invoked > > http://struts.apache.org/2.x/docs/understanding-interceptors.html > > Martin > __ > Disclaimer and confidentiality note > Everything in this e-mail and any attachments relates to the official > busine
Re: Struts 2 + AjaxTags + DisplayTag
I am using Struts 2.0.11.2 MyAshok wrote: > > hi, > > Are you using struts 2.1.2 Beta for your project? > With Regards, > Ashok > > > > > dynamicd wrote: >> >> After some long hours I got pagination and export working with ajaxtags >> and displaytag >> THis is how you do ajax pagination. >> >> AjaxTags 1.3 rc7 >> Struts2.0.12 >> DisplayTag 1.1.1 >> >> >> I had to make small change in the ajaxtags.js for it to work >> Comment out the line that calls the prefunction in the ajaxtags.js >> >> /** >> * Prefunction Invoke Ajax.Update TAG >> */ >> AjaxJspTag.PreFunctionUpdateInvoke = Class.create(); >> AjaxJspTag.PreFunctionUpdateInvoke.prototype = Object.extend(new >> AjaxJspTag.Base(), { >> >> initialize: function(ajaxupdateData) { >> /** >> this.preFunction = ajaxupdateData.preFunction; >> if (isFunction(this.preFunction)) >> { >> this.preFunction(); >> } >> */ >> if (this.cancelExecution) { >> alert("I am canceling the excution"); >> this.cancelExecution = false; >> return ; >> } >> /** >> * alert("Here I am in PreFunction Ajaxupdatedata"+ ajaxupdateData.id + >> " " + ajaxupdateData.href + " " + ajaxupdateData.postFunction + " >> prefunction" + this.preFunction); >> */ >> >> var thisCall = new >> Ajax.Updater(ajaxupdateData.id,ajaxupdateData.href,{onComplete: >> ajaxupdateData.postFunction}); >> } >> >> }); >> >> >> Add this to the head section of the page in this order >> >> >> >> >> >> In the jsp page for me which is seperate from the indexpage >> >> <%@ taglib prefix="s" uri="/struts-tags" %> >> <%@ taglib uri="http://displaytag.sf.net"; prefix="display" %> >> <%@ taglib uri="http://ajaxtags.org/tags/ajax"; prefix="ajax" %> >> >> >> >> >> >> >> >> > export="true" excludedParams="*" pagesize="15" >> requestURI="/Dashboard/ViewAllUsers.action"> >>> theme="simple" fieldValue="%{#attr.userlist.id}" >> > >> > > >> > > >> > escapeXml="true" > >> > escapeXml="true"> >> > escapeXml="true"> >> >> >> >> >> >> >> >> > id="deleteUser" cssClass="anchors" theme="ajax" targets="users" >> formId="userform">Delete >> >> >> >> One thing to note here is that do not use use instead. >> s:form create a Table and when the ajax call happens it will refresh a >> different div in the table and you will see 2 divs with same data >> >> When you look at the page source you will see the links ajaxified as one >> below >> a onclick="new AjaxJspTag.PreFunctionUpdateInvoke({id: "userList", href: >> "/ViewAllUsers.action?d-3610194-p=2&userList=true" }); return false;" >> href="javascript://nop/">Next >> Hey Márcio >> Where you ever successful in getting AjaxTags to work with Dispay Tag and >> Struts2 >> I am at the same junction as you were. Please let me know. >> Thanks >> >> >> >> >> Márcio Gurgel wrote: >>> >>> Hi Randy, >>> >>> I also tried to set requestURI. >>> I'm having lots of problems with components inside tabbedPanels... >>> >>> For example: >>> This example works outside a tabbed panel: >>> >>> 2. Attach to "onmouseover", and "onclick" event on Area below and >>> update >>> content of Div1, highlight targets with green color >>> >> targets="div1" events="onmouseover,onclick" highlightColor="green"/> >>> >>> Mouse Over or Click Here! >>> >>> >>> When its inside a div from tabbedpanel just doesn't work. >>> >>> Does anyone can help me? >>> >>> >>> 2008/4/15, Randy Burgess <[EMAIL PROTECTED]>: Well your requestURI is not set so the URL is set to the current JSP and not the action. I have never had any success leaving requestURI blank with DisplayTag on S1 or S2. I always set it to the name of an action. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Márcio Gurgel <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Tue, 15 Apr 2008 01:18:34 -0300 > To: Struts Users Mailing List > Subject: Re: Struts 2 + AjaxTags + DisplayTag > > Matt, tanks for your help. But I need to persist with displayTags /: > > I guess that there's some kind of validation inside struts 2 that doesnt > allow the correct work of ajaxtags.. > Just take a look at my generated url from displaytag pagination. > > http://localhost:8080/SGVDBA/view/usuario/UsuPesquisaResultados.jsp? > currentUsu.eMail=¤tUsu.chv=¤tUsu.dtGvr=&struts.enableJSONValidatio > n=true > &buttonPesquisar=Pesquisar&dojo.currentUsu.dtGvr=&d-49489-p=2 > > > Tanks all! > > 2008/4/14, matt.payne <[EMAIL PROTECTED]>: >> >> >> You could try struts2 + jquery + jgrid >> (http://trirand.com/jqgrid/jqgrid.html) >> If you need ajax, you need something that returns an json or xml response >> (insert you velocity, freemarker, json re