Re: Struts2 DisplayTag dynamic table
it references the ChartDATA in the displytag yes this can be done without the ajax portion ..just remove the ajax tags chartDATA is a 2 dimensional List . a list inside a list. tandrews wrote: This is exactly what I need, but I'm a little bit confused about how it works. You have chartDATA as your table's name (so I'm guessing it's a list of rows of some sort), and then you have ajax:displayTag id=chartDATA... then when you reference chartDATA later, which one are you referencing? Can this be done without the ajax portion (mostly so I can get it done in a simpler fashion first)? Is your list chartDATA some kind of 2 dimensional array, because I see that the s:property value item seems to be a 2 dimensional array to get the value... Any additional help on this would be great! Thanks --TJ dynamicd wrote: ajax:displayTag id=chartDATA ajaxFlag=chartDATA display:table name=chartDATA uid=chartRow id=chartRow pagesize=25 excludedParams=* export=true class=table requestURI=/Dashboard/ViewReportData.action s:iterator value=columnNames id=column status=stat2 display:column title=${column}s:property value=#attr.chartDATA[#attr.chartRow_rowNum -1][#stat2.count-1] / /display:column /s:iterator /display:table /ajax:displayTag /form /div Hopefully it will help someone.. -- View this message in context: http://www.nabble.com/Struts2-DisplayTag-dynamic-table-tp19681086p20194406.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: Strtus2 tags IE issue error loading page 200 ok
THe problem for me was a Tabbed Panel inside another TabbedPanel. I removed it and i now have just one Tabbed Panel and it works fine. dxa wrote: Hi!! I am running into the same error. I have a div inside another div. After a few clicks I run into this error. Have you found a work around? Any help or advise would be greatly appreciated. Thanks! dynamicd wrote: First I thought the problem was from ACEGI that I recently added to the project. So I took all of it out .However I encountered the same problem as above in IE. Then I thought the problem could be some leak in display tag . So i swithced back to normal table and the same thing again. So I realize that a Tabbed Panel inside a Tabbed Panel does not work if you click on the parent tab 5 to 6 times. Closing the IE window and opening it up works again for the next few clicks. It seems it has stored something in the session or something and is not cleaning it up. After I get the error below Error loading '/Dashboard/ViewOMTable.action?dojo.preventCache=1217258686015' (200 OK) none of the tabs are working and they all show the error above. It could be an IE issue cause its working fine in FireFox. Any work arounds or ideas will be greatly appreciated. Thanks. dynamicd wrote: Hi, I am new to Struts2 and I am having a problem displaying content with IE. It works fine in Firefox. I am using Struts2, Acegi for login, Hibernate for ORM and struts2 ajax tags for display I have a parent tabbed panel and a child tabbed panel. Once I login everything works fine however after a few clicks around I get the following error. Error loading '/Dashboard/ViewOMTable.action?dojo.preventCache=1217258686015' (200 OK) I am not sure why it is working when I log in and not after a few clicks. Again it works as expected in Firefox. Myjsp looks like this Parent tab has the following tab authz:authorize ifAnyGranted=ROLE_ADMINISTRATOR /** this is for the Acegi stuff */ s:url id=listOM value=/Dashboard/ViewManagedEntities.action / s:div id=OM label =Operations Manager theme=ajax href=%{listOM} autoStart=false refreshOnShow=true errorText=Unable to retrieve data! /s:div /authz:authorize This will get the child jsp which is below which is also tabbed panel s:head theme=ajax debug=true/ s:div id=OMpage s:tabbedPanel id=insideOMTab selectedTab=allOM s:url id=allOM action=ViewOMTable.action / s:div id=allOM label =LIST theme=ajax href=%{allOM} autoStart= false refreshOnShow=true /s:div s:url id=addOM action=showaddOMform / s:div id=addOM label =ADD theme=ajax href=%{addOM} autoStart= false refreshOnShow=true /s:div /s:tabbedPanel /s:div Any help is greatly appreciated -- View this message in context: http://www.nabble.com/Strtus2-tags-IE-issue-error-loading-page-200-ok-tp18691505p19729302.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]
Struts2 setting param in struts.xml JFreeChart
In my struts.xml file i need to pass a param dynamically for the height of JFreeChart I have param name=height ${height} /param which is set in my controller as an Integer. public void setHeight(Interger height) public Integer getheight which returns an Integer However the param gets set as a String. It works if i put param name=height 400 /param Any help is appreciated. -- View this message in context: http://www.nabble.com/Struts2-setting-param-in-struts.xml-JFreeChart-tp19717489p19717489.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]
Struts2 DisplayTag dynamic table
Heres how I got the dynamic tables working with Display Tag and Struts2 I pass in the list of columnNames and chartDATA from the controller and heres my jsp Struts 2.0.11.2 DisplayTag 1.1.1 ajaxtags 1.3 rc7 %@ taglib prefix=s uri=/struts-tags % %@ taglib uri=http://displaytag.sf.net; prefix=display % %@ taglib uri=http://ajaxtags.org/tags/ajax; prefix=ajax % div class=table form id=reportdataform method=POST ajax:displayTag id=chartDATA ajaxFlag=chartDATA display:table name=chartDATA uid=chartRow id=chartRow pagesize=25 excludedParams=* export=true class=table requestURI=/Dashboard/ViewReportData.action s:iterator value=columnNames id=column status=stat2 display:column title=${column}s:property value=#attr.chartDATA[#attr.chartRow_rowNum -1][#stat2.count-1] / /display:column /s:iterator /display:table /ajax:displayTag /form /div Hopefully it will help someone.. -- View this message in context: http://www.nabble.com/Struts2-DisplayTag-dynamic-table-tp19681086p19681086.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]
Struts2 s:password value problem
i have an edit form which gets populated when the user clicks on edit. My user wants me to have the password field in there populated with the pwd that shows * however the value attribute for the s:password does not seem to be taking the password value the text field works THis works s:textfield name=password label=Role value=%{#request.USER.password} / This doesnt s:password name=password label=Role value=%{#request.USER.password} / Any Ideas? -- View this message in context: http://www.nabble.com/Struts2-%3Cs%3Apassword%3E-value-problem-tp19559062p19559062.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: Struts2 s:password value problem
showPassword=true solved the problem dynamicd wrote: i have an edit form which gets populated when the user clicks on edit. My user wants me to have the password field in there populated with the pwd that shows * however the value attribute for the s:password does not seem to be taking the password value the text field works THis works s:textfield name=password label=Role value=%{#request.USER.password} / This doesnt s:password name=password label=Role value=%{#request.USER.password} / Any Ideas? -- View this message in context: http://www.nabble.com/Struts2-%3Cs%3Apassword%3E-value-problem-tp19559062p19560649.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
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 script type=text/javascript src=js/prototype.js/script script type=text/javascript src=js/scriptaculous.js/script script type=text/javascript src=js/ajaxtags.js/script 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 % s:div id=userpage form id=userform method=POST ajax:displayTag id=userList ajaxFlag=userList display:table name=userList uid=userlist class=table export=true excludedParams=* pagesize=15 requestURI=/Dashboard/ViewAllUsers.action display:column media=html s:checkbox name=selectedItems theme=simple fieldValue=%{#attr.userlist.id} /s:checkbox/display:column display:column property =username title=Username escapeXml=true /display:column display:column property =email title=Email escapeXml=true /display:column display:column property =domain title=SMTP Server Address escapeXml=true /display:column display:column property =role title=Role escapeXml=true/display:column display:column property =group.name title=Group escapeXml=true/display:column /display:table /ajax:displayTag /form s:url id=deleteuser value=/Dashboard/deleteUser.action / s:a indicator=indicator href=%{deleteuser} showLoadingText=false id=deleteUser cssClass=anchors theme=ajax targets=users formId=userformDelete/s:a /s:div One thing to note here is that do not use s:form use form 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=2userList=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 sx:bind id=ex2 href=%{#urlAbrirDadosGerais} sources=div2 targets=div1 events=onmouseover,onclick highlightColor=green/ div id=div2 style=width: 300px; height: 50px; border: 1px solid black Mouse Over or Click Here! /div 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 user@struts.apache.org Date: Tue, 15 Apr 2008 01:18:34 -0300 To: Struts Users Mailing List user@struts.apache.org 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=currentUsu.chv=currentUsu.dtGvr=struts.enableJSONValidatio n=true buttonPesquisar=Pesquisardojo.currentUsu.dtGvr=d-49489-p=2 Tanks all! 2008/4/14,
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 script type=text/javascript src=js/prototype.js/script script type=text/javascript src=js/scriptaculous.js/script script type=text/javascript src=js/ajaxtags.js/script 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 % s:div id=userpage form id=userform method=POST ajax:displayTag id=userList ajaxFlag=userList display:table name=userList uid=userlist class=table export=true excludedParams=* pagesize=15 requestURI=/Dashboard/ViewAllUsers.action display:column media=html s:checkbox name=selectedItems theme=simple fieldValue=%{#attr.userlist.id} /s:checkbox/display:column display:column property =username title=Username escapeXml=true /display:column display:column property =email title=Email escapeXml=true /display:column display:column property =domain title=SMTP Server Address escapeXml=true /display:column display:column property =role title=Role escapeXml=true/display:column display:column property =group.name title=Group escapeXml=true/display:column /display:table /ajax:displayTag /form s:url id=deleteuser value=/Dashboard/deleteUser.action / s:a indicator=indicator href=%{deleteuser} showLoadingText=false id=deleteUser cssClass=anchors theme=ajax targets=users formId=userformDelete/s:a /s:div One thing to note here is that do not use s:form use form 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=2userList=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 sx:bind id=ex2 href=%{#urlAbrirDadosGerais} sources=div2 targets=div1 events=onmouseover,onclick highlightColor=green/ div id=div2 style=width: 300px; height: 50px; border: 1px solid black Mouse Over or Click Here! /div 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 user@struts.apache.org Date: Tue, 15 Apr 2008 01:18:34 -0300 To: Struts Users Mailing List user@struts.apache.org 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
RE: Struts 2 + AjaxTags + DisplayTag
here is it .. %@ page language=java contentType=text/html;charset=UTF-8% %@ taglib prefix=s uri=/struts-tags % %@ taglib uri=http://displaytag.sf.net; prefix=display % %@ taglib uri=http://ajaxtags.org/tags/ajax; prefix=ajax % script type=text/javascript src=%=request.getContextPath()%/js/prototype.js/script script type=text/javascript src=%=request.getContextPath()%/js/ scriptaculous.js/script script type=text/javascript src=%=request.getContextPath()%/js/overlibmws.js/script script type=text/javascript src=%=request.getContextPath()%/js/ overlibmws_crossframe.js/script script type=text/javascript src=%=request.getContextPath()%/js/ overlibmws_iframe.js/script script type=text/javascript src=%=request.getContextPath()%/js/ overlibmws_hide.js/script script type=text/javascript src=%=request.getContextPath()%/js/ overlibmws_shadow.js/script script type=text/javascript src=%=request.getContextPath()%/js/ ajaxtags.js/script s:head theme=ajax debug=false/ s:div id=carpage div class=table s:form id=carform method=POST s:set name=carlist value=carList scope=request/ ajax:displayTag id=displayTagFrame ajaxFlag=displayAjax baseUrl=/Dashboard/ViewAllCars.action display:table name=carlist class=table pagesize=10 export=false excludedParams=ajax requestURI=/Dashboard/ViewAllCars.action display:column s:checkbox name=selectedItems theme=simple fieldValue=%{#attr.carlist.id} /s:checkbox/display:column display:column property =name title=Name escapeXml=true /display:column display:column property =model title=Model escapeXml=true defaultorder=descending/display:column display:column property =type title=Type escapeXml=true/display:column display:column property =user title=User escapeXml=true/display:column display:column property =Server.name title=Server escapeXml=true/display:column display:column title=Groups escapeXml=trues:property value=%{#attr.carlist.groups.{name}} //display:column /display:table /ajax:displayTag /s:form brbr s:url id=deletecar value=/Dashboard/deleteCar.action / s:a indicator=indicator href=%{deletecar} showLoadingText=false id=deleteCar cssClass=anchors theme=ajax targets=filers formId=filerform Delete/s:a /div /s:div brbrbr mgainty wrote: please display full contents of your jsp 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. Date: Mon, 15 Sep 2008 15:24:30 -0700 From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Re: Struts 2 + AjaxTags + DisplayTag I tried using ajaxtags with display tag in my app and havent been successful. My App has a Tabbed Panel and in one of the tabs I have a table that I am trying to use AjaxTags with. in the html I see the code generated below. However when i click on the Next button nothing happens. THere is no errors or anything. I do have the requestURI set to the action. javascript://nop/ Next any help is greatly appreciated? 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 sx:bind id=ex2 href=%{#urlAbrirDadosGerais} sources=div2 targets=div1 events=onmouseover,onclick highlightColor=green/ div id=div2 style=width: 300px; height: 50px; border: 1px solid black Mouse Over or Click Here! /div 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 user@struts.apache.org Date: Tue, 15 Apr 2008 01:18:34 -0300 To: Struts Users Mailing List user@struts.apache.org 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?
RE: Struts 2 + AjaxTags + DisplayTag
here is it ... %@ page language=java contentType=text/html;charset=UTF-8% %@ taglib prefix=s uri=/struts-tags % %@ taglib uri=http://displaytag.sf.net; prefix=display % %@ taglib uri=http://ajaxtags.org/tags/ajax; prefix=ajax % script type=text/javascript src=%=request.getContextPath()%/js/prototype.js/script script type=text/javascript src=%=request.getContextPath()%/js/ scriptaculous.js/script script type=text/javascript src=%=request.getContextPath()%/js/overlibmws.js/script script type=text/javascript src=%=request.getContextPath()%/js/ overlibmws_crossframe.js/script script type=text/javascript src=%=request.getContextPath()%/js/ overlibmws_iframe.js/script script type=text/javascript src=%=request.getContextPath()%/js/ overlibmws_hide.js/script script type=text/javascript src=%=request.getContextPath()%/js/ overlibmws_shadow.js/script script type=text/javascript src=%=request.getContextPath()%/js/ ajaxtags.js/script s:head theme=ajax debug=false/ s:div id=carpage div class=table s:form id=carform method=POST s:set name=carlist value=carList scope=request/ ajax:displayTag id=displayTagFrame ajaxFlag=displayAjax baseUrl=/Dashboard/ViewAllCars.action display:table name=carlist class=table pagesize=10 export=false excludedParams=ajax requestURI=/Dashboard/ViewAllCars.action display:column s:checkbox name=selectedItems theme=simple fieldValue=%{#attr.carlist.id} /s:checkbox/display:column display:column property =name title=Name escapeXml=true /display:column display:column property =model title=Model escapeXml=true defaultorder=descending/display:column display:column property =type title=Type escapeXml=true/display:column display:column property =user title=User escapeXml=true/display:column display:column property =Server.name title=Server escapeXml=true/display:column display:column title=Groups escapeXml=trues:property value=%{#attr.carlist.groups.{name}} //display:column /display:table /ajax:displayTag /s:form brbr s:url id=deletecar value=/Dashboard/deleteCar.action / s:a indicator=indicator href=%{deletecar} showLoadingText=false id=deleteCar cssClass=anchors theme=ajax targets=cars formId=carform Delete/s:a /div /s:div brbrbr mgainty wrote: please display full contents of your jsp 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. Date: Mon, 15 Sep 2008 15:24:30 -0700 From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Re: Struts 2 + AjaxTags + DisplayTag I tried using ajaxtags with display tag in my app and havent been successful. My App has a Tabbed Panel and in one of the tabs I have a table that I am trying to use AjaxTags with. in the html I see the code generated below. However when i click on the Next button nothing happens. THere is no errors or anything. I do have the requestURI set to the action. javascript://nop/ Next any help is greatly appreciated? 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 sx:bind id=ex2 href=%{#urlAbrirDadosGerais} sources=div2 targets=div1 events=onmouseover,onclick highlightColor=green/ div id=div2 style=width: 300px; height: 50px; border: 1px solid black Mouse Over or Click Here! /div 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 user@struts.apache.org Date: Tue, 15 Apr 2008 01:18:34 -0300 To: Struts Users Mailing List user@struts.apache.org 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?
Re: Struts 2 + AjaxTags + DisplayTag
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 sx:bind id=ex2 href=%{#urlAbrirDadosGerais} sources=div2 targets=div1 events=onmouseover,onclick highlightColor=green/ div id=div2 style=width: 300px; height: 50px; border: 1px solid black Mouse Over or Click Here! /div 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 user@struts.apache.org Date: Tue, 15 Apr 2008 01:18:34 -0300 To: Struts Users Mailing List user@struts.apache.org 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=currentUsu.chv=currentUsu.dtGvr=struts.enableJSONValidatio n=true buttonPesquisar=Pesquisardojo.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 sx:tabbedPanelsx:div 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-tp16670438p1668945 8.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] This email and any attachments (Message) may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege. This email and any attachments (Message) may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege. -- View this message in context: http://www.nabble.com/Struts-2-%2B-AjaxTags-%2B-DisplayTag-tp16670438p19460925.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: SecurityFilter and Struts 1.3.8
in one of the previous projects we have used SecurityFilter with Struts1 successfully mtStruts wrote: Can anyone verify that they are successfully using the open source SecurityFilter project with Struts 1.3.8? Thanks! -- View this message in context: http://www.nabble.com/SecurityFilter-and-Struts-1.3.8-tp19397254p19445893.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: on the chrome bandwagon
My App is working perfectly fine on chrome. Seems to be working the same as in firefox. Jukka Välimaa wrote: This is one bandwagon I've been riding since I read that comic. I've done a brief overview of our app with Chrome, and mostly dojo tags seem to be working perfectly. Div, button and tree, listen- and notifytopics work just the same as in Firefox. There's one view with tabbedpanel where content from tabs escapes to other tabs or outside the panel. On Wed, Sep 3, 2008 at 7:03 AM, Jeromy Evans [EMAIL PROTECTED] wrote: I don't often jump on bandwagon's and I'm not really an early-adopter, but I think many struts users would appreciate the chrome comic strip: http://www.google.com/googlebooks/chrome/ javascript hidden class transitions... mmm... i like that To put this on topic, has any one tested the struts 2 dojo tags in chrome yet? cheers, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/on-the-chrome-bandwagon-tp19282592p19295392.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: on the chrome bandwagon
Well i Just caught something. For some reason my listentopics or action from the form is not working It shows loading.. in the Chrome browser. but never loads. nothing in the logs Works on both firefox and IE s:div s:form id=selectreport theme=ajax action=ShowConfigureDZ s:select id=REPORTNAME name=REPORTNAME list=reportList.{prettyname} onchange=dojo.event.topic.publish('showConfigure_topic');return false; theme=ajax / /s:form /s:div s:url id=showconfigureDZ value=/ShowConfigureDZ.action / s:div id=configureDZ href=%{showconfigureDZ} formId=selectreport notifyTopics=showConfigure_topic theme=ajax/s:div Any Ideas Jeromy Evans - Blue Sky Minds wrote: I don't often jump on bandwagon's and I'm not really an early-adopter, but I think many struts users would appreciate the chrome comic strip: http://www.google.com/googlebooks/chrome/ javascript hidden class transitions... mmm... i like that To put this on topic, has any one tested the struts 2 dojo tags in chrome yet? cheers, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/on-the-chrome-bandwagon-tp19282592p19299893.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 Buttons
I am not sure if this is some thing you looking for s:form id=configureform name=configureform SOME table here or some fields /s:form s:url id=configure value=Configure.action / s:a href=%{configure} showLoadingText=false id=configure cssClass=anchors theme=ajax targets=div2 formId=configureformCancel/s:a I like using anchors.. you can use submit as well. important things here are the formId which shud be the same as in the form tag showloadingText =false by default its true and there is a problem in IE href should be the same as in the url tag. Hope this helps. Roger Varley wrote: Is it possible to define a button (s:input in such a way that, instead of of calling a method in the action defined in the s:form tag, it calls a completely different action.method. Is it possible to just add a button that calls an action on the jsp. Alternatively, I know I can style a link to look like a button with css, but I'd rather have a button if at all possible Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Struts-2-Buttons-tp19275424p19279838.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: Invalidating session
I invalidate my session in my action using request.getSession().invalidate(); Gundersen, Richard wrote: Hi all I came across this page for invalidating the session http://struts.apache.org/2.0.11.2/docs/how-do-we-get-invalidate-the-sess ion.html It mentions this way of invalidating the session: if (session instanceof org.apache.struts2.dispatcher.SessionMap) { ((org.apache.struts2.dispatcher.SessionMap) session).invalidate(); Just wondering if a) this is still the recommended way of doing things (I have no reason to think it's not btw) b) I'm writing a public facing site that needs to be secure, so just wondering if there would ever be a possibility that the session object might not be an instance of org.apache.struts2.dispatcher.SessionMap, in which case there could be potential for the session not to be invalidated when it's meant to be. Is this a possibility? I don't know enough about Struts 2 to answer this myself so would appreciate advice. Cheers Richard As a responsible corporate citizen, London Scottish Bank plc asks you to consider the environment before printing this email. *** Disclaimer *** This electronic communication is confidential and for the exclusive use of the addressee. It may contain private and confidential information. The information, attachments and opinions contained in this E-mail are those of its author only and do not necessarily represent those of London Scottish Bank PLC or any other members of the London Scottish Group. If you are not the intended addressee, you are prohibited from any disclosure, distribution or further copying or use of this communication or the information in it or taking any action in reliance on it. If you have received this communication in error please notify the Information Security Manager at [EMAIL PROTECTED] as soon as possible and delete the message from all places in your computer where it is stored. We utilise virus scanning software but we cannot guarantee the security of electronic communications and you are advised to check any attachments for viruses. We do not accept liability for any loss resulting from any corruption or alteration of data or importation of any virus as a result of receiving this electronic communication. Replies to this E-mail may be monitored for operational or business reasons. London Scottish Bank PLC is regulated by the Financial Services Authority. London Scottish Bank plc, Registered Office: 201 Deansgate, Manchester M3 3NW Registered Number 973008 England. Subsidiary Companies:- London Scottish Finance Limited, Registered Office: 201 Deansgate, Manchester M3 3NW Registered Number 233259 England. London Scottish Broking Limited, Registered Office: 201 Deansgate, Manchester M3 3NW Registered Number 230110 England. Robinson Way Company Limited, Registered Office: 201 Deansgate, Manchester M3 3NW Registered Number 885896 England. __ This email has been scanned by the MessageLabs Email Security System. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Invalidating-session-tp19178803p19183985.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]
Struts2 FireFox shows loading and then blank Page
I am having this weird problem. When I open Firefox and enter the URL. It opens up. I see my Tabbed Panel and the Loading Text and then the page goes blank. I have to refresh the page and then it works sometimes and sometimes it doesnt. Any ideas? -- View this message in context: http://www.nabble.com/Struts2-FireFox-shows-loading-and-then-blank-Page-tp19144705p19144705.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: help in build.xml
Heres my sample .. project name=SOMETHING basedir=./ default=build property name=projname value=SOMETHING/ property name=webrootsuffix value=WebContent/${projname}/ property name=webinfsuffix value=WebContent/${projname}/WEB-INF/ property name=srcdir value=${basedir}/src/ property name=libdir value=${basedir}/${webinfsuffix}/lib/ property name=builddir value=${basedir}/build/SOMETHING/ property name=classdir value=${builddir}/${webinfsuffix}/classes/ property name=distdir value=${basedir}/dist/ property name=binding-file value=${srcdir}/binding.xml/ property name=nsisdir value=${basedir}/package/tools/nsis / property name=winjre-file value=${basedir}/thirdparty/jre/jre-1_5_0_05-windows-i586.zip/ condition property=isWindows os family=windows/ /condition condition property=isSolaris os name=SunOS/ /condition condition property=isLinux os name=Linux/ /condition condition property=isUnix or os name=SunOS/ os name=Linux/ /or /condition !-- Check timestamp on files -- target name=prepare tstamp/ /target target name=clean description=Prepare for clean build delete dir=${basedir}/build/ delete dir=${distdir}/ mkdir dir=${basedir}/build/ mkdir dir=${distdir}/ /target target name=resources copy todir=${classdir} fileset dir=${srcdir} patternset include name=**/*.xml/ include name=**/*.conf/ include name=**/*.properties/ /patternset /fileset /copy /target target name=compile mkdir dir=${classdir}/ javac srcdir=${srcdir} destdir=${classdir} debug=true deprecation=on classpath pathelement location=${classdir}/ fileset dir=${basedir}/lib include name=**/*.jar/ /fileset fileset dir=${libdir} include name=**/*.jar/ /fileset /classpath /javac /target target name=dist description=Create binary distribution depends=bind,resources mkdir dir=${distdir}/ jar jarfile=${builddir}/${webinfsuffix}/lib/${projname}.jar basedir=${classdir} includes=**/*.class,**/*.hbm.xml excludes=*.properties,*.xml manifest=${srcdir}/META-INF/MANIFEST.MF/ !-- delete dir=${classdir}/com/ -- war warfile=${distdir}/${projname}.war webxml=${builddir}/${webinfsuffix}/web.xml manifest=${srcdir}/META-INF/MANIFEST.MF fileset dir=${builddir}/${webrootsuffix} includes=index.jsp / !-- zipfileset dir=${builddir}/${webrootsuffix}/images prefix=images/ zipfileset dir=${builddir}/${webrootsuffix}/js prefix=js/ zipfileset dir=${builddir}/${webrootsuffix}/stylesheets prefix=stylestyles/ -- zipfileset dir=${builddir}/WebContent/SOMETHING prefix=SOMETHING / zipfileset dir=${builddir}/${webinfsuffix} prefix=WEB-INF includes=*.tld,*.xml excludes=*.java/ classes dir=${classdir}/ lib dir=${builddir}/${webinfsuffix}/lib/ /war /target target name=build depends=build.windows, build.unix mkdir dir=${builddir}/log/ copy todir=${builddir}/WebContent fileset dir=${basedir}/WebContent/ /copy antcall target=dist/ /target /project You will have to write the build.windows and unix. I am still working on this. safewraju wrote: hi to all, i am developing a struts web application on eclipse. in order to run struts application build.xml is required. can any one help me how to develop build.xml on eclipse and how to run a struts application on eclipse. waiting for your reply. -- Regards, Narasimha Raju.Naidu Hyderabad. uni... -- View this message in context: http://www.nabble.com/help-in-build.xml-tp19142242p19145277.html Sent from the Struts - User mailing list archive at Nabble.com.
Re: Struts 2 And JFreeChart
No Milan Milanovic wrote: Hi, do I need to have this p (String type) parameter in my action class ? -- Thx, Milan dynamicd wrote: its some parameter name (the name does not matter) and RANDOM is set in the controller (Action) or to make it easy img src=/Dashboard/DisplayChart.action?p=%=request.hashCode()% / instead of passing DisplayChart.action each time. it is passed in as a different url everytime and so it will display the new image other wise if the url is the same then you will get displayed the cached image. Milan Milanovic wrote: I don't understand this solution, what is p parameter, and whait is RANDOM ? -- Regards, Milan dynamicd wrote: got it to work.. could not stop the caching so added a param to the src img src=/Dashboard/DisplayChart.action?p=%=request.getParameter(RANDOM)% / dynamicd wrote: I have tried % response.setHeader(Cache-Control, no-cache); //HTTP 1.1 response.setHeader(Pragma, no-cache); //HTTP 1.0 response.setDateHeader(Expires, 0); //prevents caching at the proxy server % as well.. newton.dave wrote: --- On Wed, 8/6/08, dynamicd [EMAIL PROTECTED] wrote: Also tried implementing the SessionAware. However the same thing. Why? Did you try setting the headers for not caching? Dave dynamicd wrote: This is cool.. I tried it out. However once the chart_display.jsp is called the first time through the image tag. it does not call the DisplayChart.action again to refresh the image with a new one when clicked on the DrawChart.action. (I added the println statement in the display method to find out that the div is not refreshing) I have to log out and log in (invalidate session) to get the new chart. I am missing something public String display() throws Exception { System.out.println(I AM IN THE DISPLAY NOW ); Map attributes = ActionContext.getContext().getSession(); this.chart = (JFreeChart) attributes.get(CHART); if(chart == null) { return Constants.FORWARD_INVALIDACTION; } return Constants.FORWARD_SUCCESS; } private void setChart(JFreeChart chart){ Map attributes = ActionContext.getContext().getSession(); attributes.put(CHART, null); this.chart = chart; attributes.put(CHART, this.chart); } public JFreeChart getChart() { return chart; } Leena Borle wrote: Hello, See if this helps you. I have a form with remote DIV which displays chart after user clicks on submit. Trick here is to generate chart object, store it in session and display it in separate JSP. Remove the form part if you want to display just the dynamic-DIV using Chart image. Form.jsp [ s:form s:url id=display_chart value=DrawChart_draw.action namespace=/user / s:submit value=Draw chart href=%{display_chart} theme=ajax targets=*chart_div* / br / /s:form h4Your Running Chart/h4 div id=*chart_div* /div!-- End display chart -- /div ] display_chart.jsp [ body /MyApp/user/DrawChart_display.action /body ] struts.xml[ package name=user extends =struts-default,jfreechart-default !-- Separate method to draw and display due to Remote DIV/Button tag contsraints. -- action name=DrawChart_input method=input class=.xxx.DrawChart result name=inputform.jsp /result /action action name=DrawChart_draw method=draw class=xxx..DrawChart result name=success/jsp/display_chart.jsp /result /action action name=DrawChart_display method=display class=xxx.DrawChart result name=success type=chart 400 300 /result /action /package ] DrawChart.java [ JFreeChart chart; public String draw() throws Exception { //chart creation logic. //generate chart object chart = session = session.put(CHART, chart); return success; } /** * returns chart obejct from the session. This methos is used by display_chart.jsp */ public String display() throws Exception { session = ...get session ... this.chart = (JFreeChart) session.get(CHART); if(chart == null) { addActionError(getText(error.nochart
Re: Struts 2 And JFreeChart
its some parameter name (the name does not matter) and RANDOM is set in the controller (Action) or to make it easy img src=/Dashboard/DisplayChart.action?p=%=request.hashCode()% / instead of passing DisplayChart.action each time. it is passed in as a different url everytime and so it will display the new image other wise if the url is the same then you will get displayed the cached image. Milan Milanovic wrote: I don't understand this solution, what is p parameter, and whait is RANDOM ? -- Regards, Milan dynamicd wrote: got it to work.. could not stop the caching so added a param to the src img src=/Dashboard/DisplayChart.action?p=%=request.getParameter(RANDOM)% / dynamicd wrote: I have tried % response.setHeader(Cache-Control, no-cache); //HTTP 1.1 response.setHeader(Pragma, no-cache); //HTTP 1.0 response.setDateHeader(Expires, 0); //prevents caching at the proxy server % as well.. newton.dave wrote: --- On Wed, 8/6/08, dynamicd [EMAIL PROTECTED] wrote: Also tried implementing the SessionAware. However the same thing. Why? Did you try setting the headers for not caching? Dave dynamicd wrote: This is cool.. I tried it out. However once the chart_display.jsp is called the first time through the image tag. it does not call the DisplayChart.action again to refresh the image with a new one when clicked on the DrawChart.action. (I added the println statement in the display method to find out that the div is not refreshing) I have to log out and log in (invalidate session) to get the new chart. I am missing something public String display() throws Exception { System.out.println(I AM IN THE DISPLAY NOW ); Map attributes = ActionContext.getContext().getSession(); this.chart = (JFreeChart) attributes.get(CHART); if(chart == null) { return Constants.FORWARD_INVALIDACTION; } return Constants.FORWARD_SUCCESS; } private void setChart(JFreeChart chart){ Map attributes = ActionContext.getContext().getSession(); attributes.put(CHART, null); this.chart = chart; attributes.put(CHART, this.chart); } public JFreeChart getChart() { return chart; } Leena Borle wrote: Hello, See if this helps you. I have a form with remote DIV which displays chart after user clicks on submit. Trick here is to generate chart object, store it in session and display it in separate JSP. Remove the form part if you want to display just the dynamic-DIV using Chart image. Form.jsp [ s:form s:url id=display_chart value=DrawChart_draw.action namespace=/user / s:submit value=Draw chart href=%{display_chart} theme=ajax targets=*chart_div* / br / /s:form h4Your Running Chart/h4 div id=*chart_div* /div!-- End display chart -- /div ] display_chart.jsp [ body /MyApp/user/DrawChart_display.action /body ] struts.xml[ package name=user extends =struts-default,jfreechart-default !-- Separate method to draw and display due to Remote DIV/Button tag contsraints. -- action name=DrawChart_input method=input class=.xxx.DrawChart result name=inputform.jsp /result /action action name=DrawChart_draw method=draw class=xxx..DrawChart result name=success/jsp/display_chart.jsp /result /action action name=DrawChart_display method=display class=xxx.DrawChart result name=success type=chart 400 300 /result /action /package ] DrawChart.java [ JFreeChart chart; public String draw() throws Exception { //chart creation logic. //generate chart object chart = session = session.put(CHART, chart); return success; } /** * returns chart obejct from the session. This methos is used by display_chart.jsp */ public String display() throws Exception { session = ...get session ... this.chart = (JFreeChart) session.get(CHART); if(chart == null) { addActionError(getText(error.nochart)); return ERROR; } return SUCCESS; } // this method will get called if we specify chart
Re: Multiple Images / InputStream
Might be a caching issue in the action pass something random as a param and see if it works like s:url id=imageUr1l value=/Something/displayExerciceImageAction.action?position=One for the next image s:url id=imageUrl2 value=/Something/displayExerciceImageAction.action?position=Two etc.. Pascal_ wrote: I'm using Struts 2.0.11 release. Within my JSP page, I'm displaying a list of elements which all have an image. Those images are displayed using an action with stream result. In Firefox, everything works fine, in IE 7.0, all images shown are the same, I didn't have a chance to take a look with IE 6.0. Was not able to find anything in the wiki or forums about this. In my JSP: s:url id=imageUrl action=displayExerciceImageAction s:param name=model.id s:property value=id/ /s:param /s:url s:property value= alt=s:text name=exercice.form.image.alt/ class=exerciceImg/ In my struts.xml action name=displayExerciceImageAction class=displayExerciceAction result name=success type=stream ${model.imageContentType} inline;filename=${model.name} ${model.image.length} /result /action In my action : /** * @return The image itself. */ public InputStream getInputStream() { return new ByteArrayInputStream(model.getImage()); } -- View this message in context: http://www.nabble.com/Multiple-Images---InputStream-tp18980322p18989312.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: Problem with Struts2 tag
have u tried sx:autocompleter list=practiceList name=emailList onclick =javascript:getData();/ rajanikanth786 wrote: Hi, In sx:autocompleter tag in struts2, i am unable to call any javascript event(functions). for example, sx:autocompleter list=practiceList name=emailList onclick =getData();/ and in the getData() function i am just checking with one alert message. I want to know whether any javascript function we can use for sx:autocompleter. Thanks Regards, RajaniKanth Teppala. [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-Struts2--tag-tp18983721p18989448.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 And JFreeChart
This is cool.. I tried it out. However once the chart_display.jsp is called the first time through the image tag. it does not call the DisplayChart.action again to refresh the image with a new one when clicked on the DrawChart.action. (I added the println statement in the display method to find out that the div is not refreshing) I have to log out and log in (invalidate session) to get the new chart. I am missing something public String display() throws Exception { System.out.println(I AM IN THE DISPLAY NOW ); Map attributes = ActionContext.getContext().getSession(); this.chart = (JFreeChart) attributes.get(CHART); if(chart == null) { return Constants.FORWARD_INVALIDACTION; } return Constants.FORWARD_SUCCESS; } private void setChart(JFreeChart chart){ Map attributes = ActionContext.getContext().getSession(); attributes.put(CHART, null); this.chart = chart; attributes.put(CHART, this.chart); } public JFreeChart getChart() { return chart; } Leena Borle wrote: Hello, See if this helps you. I have a form with remote DIV which displays chart after user clicks on submit. Trick here is to generate chart object, store it in session and display it in separate JSP. Remove the form part if you want to display just the dynamic-DIV using Chart image. Form.jsp [ s:form s:url id=display_chart value=DrawChart_draw.action namespace=/user / s:submit value=Draw chart href=%{display_chart} theme=ajax targets=*chart_div* / br / /s:form h4Your Running Chart/h4 div id=*chart_div* /div!-- End display chart -- /div ] display_chart.jsp [ body /MyApp/user/DrawChart_display.action /body ] struts.xml[ package name=user extends =struts-default,jfreechart-default !-- Separate method to draw and display due to Remote DIV/Button tag contsraints. -- action name=DrawChart_input method=input class=.xxx.DrawChart result name=inputform.jsp /result /action action name=DrawChart_draw method=draw class=xxx..DrawChart result name=success/jsp/display_chart.jsp /result /action action name=DrawChart_display method=display class=xxx.DrawChart result name=success type=chart 400 300 /result /action /package ] DrawChart.java [ JFreeChart chart; public String draw() throws Exception { //chart creation logic. //generate chart object chart = session = session.put(CHART, chart); return success; } /** * returns chart obejct from the session. This methos is used by display_chart.jsp */ public String display() throws Exception { session = ...get session ... this.chart = (JFreeChart) session.get(CHART); if(chart == null) { addActionError(getText(error.nochart)); return ERROR; } return SUCCESS; } // this method will get called if we specify chart public JFreeChart getChart() { return chart; } /** * p input action */ public String input() throws Exception { return INPUT; } ] Leena -- View this message in context: http://www.nabble.com/Struts-2-And-JFreeChart-tp18740589p18857105.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 And JFreeChart
Also tried implementing the SessionAware. However the same thing. dynamicd wrote: This is cool.. I tried it out. However once the chart_display.jsp is called the first time through the image tag. it does not call the DisplayChart.action again to refresh the image with a new one when clicked on the DrawChart.action. (I added the println statement in the display method to find out that the div is not refreshing) I have to log out and log in (invalidate session) to get the new chart. I am missing something public String display() throws Exception { System.out.println(I AM IN THE DISPLAY NOW ); Map attributes = ActionContext.getContext().getSession(); this.chart = (JFreeChart) attributes.get(CHART); if(chart == null) { return Constants.FORWARD_INVALIDACTION; } return Constants.FORWARD_SUCCESS; } private void setChart(JFreeChart chart){ Map attributes = ActionContext.getContext().getSession(); attributes.put(CHART, null); this.chart = chart; attributes.put(CHART, this.chart); } public JFreeChart getChart() { return chart; } Leena Borle wrote: Hello, See if this helps you. I have a form with remote DIV which displays chart after user clicks on submit. Trick here is to generate chart object, store it in session and display it in separate JSP. Remove the form part if you want to display just the dynamic-DIV using Chart image. Form.jsp [ s:form s:url id=display_chart value=DrawChart_draw.action namespace=/user / s:submit value=Draw chart href=%{display_chart} theme=ajax targets=*chart_div* / br / /s:form h4Your Running Chart/h4 div id=*chart_div* /div!-- End display chart -- /div ] display_chart.jsp [ body /MyApp/user/DrawChart_display.action /body ] struts.xml[ package name=user extends =struts-default,jfreechart-default !-- Separate method to draw and display due to Remote DIV/Button tag contsraints. -- action name=DrawChart_input method=input class=.xxx.DrawChart result name=inputform.jsp /result /action action name=DrawChart_draw method=draw class=xxx..DrawChart result name=success/jsp/display_chart.jsp /result /action action name=DrawChart_display method=display class=xxx.DrawChart result name=success type=chart 400 300 /result /action /package ] DrawChart.java [ JFreeChart chart; public String draw() throws Exception { //chart creation logic. //generate chart object chart = session = session.put(CHART, chart); return success; } /** * returns chart obejct from the session. This methos is used by display_chart.jsp */ public String display() throws Exception { session = ...get session ... this.chart = (JFreeChart) session.get(CHART); if(chart == null) { addActionError(getText(error.nochart)); return ERROR; } return SUCCESS; } // this method will get called if we specify chart public JFreeChart getChart() { return chart; } /** * p input action */ public String input() throws Exception { return INPUT; } ] Leena -- View this message in context: http://www.nabble.com/Struts-2-And-JFreeChart-tp18740589p18858354.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 And JFreeChart
I have tried % response.setHeader(Cache-Control, no-cache); //HTTP 1.1 response.setHeader(Pragma, no-cache); //HTTP 1.0 response.setDateHeader(Expires, 0); //prevents caching at the proxy server % as well.. newton.dave wrote: --- On Wed, 8/6/08, dynamicd [EMAIL PROTECTED] wrote: Also tried implementing the SessionAware. However the same thing. Why? Did you try setting the headers for not caching? Dave dynamicd wrote: This is cool.. I tried it out. However once the chart_display.jsp is called the first time through the image tag. it does not call the DisplayChart.action again to refresh the image with a new one when clicked on the DrawChart.action. (I added the println statement in the display method to find out that the div is not refreshing) I have to log out and log in (invalidate session) to get the new chart. I am missing something public String display() throws Exception { System.out.println(I AM IN THE DISPLAY NOW ); Map attributes = ActionContext.getContext().getSession(); this.chart = (JFreeChart) attributes.get(CHART); if(chart == null) { return Constants.FORWARD_INVALIDACTION; } return Constants.FORWARD_SUCCESS; } private void setChart(JFreeChart chart){ Map attributes = ActionContext.getContext().getSession(); attributes.put(CHART, null); this.chart = chart; attributes.put(CHART, this.chart); } public JFreeChart getChart() { return chart; } Leena Borle wrote: Hello, See if this helps you. I have a form with remote DIV which displays chart after user clicks on submit. Trick here is to generate chart object, store it in session and display it in separate JSP. Remove the form part if you want to display just the dynamic-DIV using Chart image. Form.jsp [ s:form s:url id=display_chart value=DrawChart_draw.action namespace=/user / s:submit value=Draw chart href=%{display_chart} theme=ajax targets=*chart_div* / br / /s:form h4Your Running Chart/h4 div id=*chart_div* /div!-- End display chart -- /div ] display_chart.jsp [ body /MyApp/user/DrawChart_display.action /body ] struts.xml[ package name=user extends =struts-default,jfreechart-default !-- Separate method to draw and display due to Remote DIV/Button tag contsraints. -- action name=DrawChart_input method=input class=.xxx.DrawChart result name=inputform.jsp /result /action action name=DrawChart_draw method=draw class=xxx..DrawChart result name=success/jsp/display_chart.jsp /result /action action name=DrawChart_display method=display class=xxx.DrawChart result name=success type=chart 400 300 /result /action /package ] DrawChart.java [ JFreeChart chart; public String draw() throws Exception { //chart creation logic. //generate chart object chart = session = session.put(CHART, chart); return success; } /** * returns chart obejct from the session. This methos is used by display_chart.jsp */ public String display() throws Exception { session = ...get session ... this.chart = (JFreeChart) session.get(CHART); if(chart == null) { addActionError(getText(error.nochart)); return ERROR; } return SUCCESS; } // this method will get called if we specify chart public JFreeChart getChart() { return chart; } /** * p input action */ public String input() throws Exception { return INPUT; } ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Struts-2-And-JFreeChart-tp18740589p18858943.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 And JFreeChart
I am creating a new chart using the ChartFactory chart = ChartFactory.createBarChart (reportname,xaxis, yaxis, dataset, PlotOrientation.VERTICAL, true,true, true); return chart; and I am storing it in the session. However the DisplayChart.action that is in the image src is not called the second time on. It seems like a caching issue. Leena Borle wrote: Hi, How are you creating new chart object ? For me every time user clicks on submit-DrawChart_draw,action will create New chart object (e.g. chart=ChartFactory.createBarChart) and store it in the session which afterwards is used by DIV(DrawChart_display.action). You need to refresh your chart object. Leena On Wed, Aug 6, 2008 at 11:36 AM, dynamicd [EMAIL PROTECTED] wrote: This is cool.. I tried it out. However once the chart_display.jsp is called the first time through the image tag. it does not call the DisplayChart.action again to refresh the image with a new one when clicked on the DrawChart.action. (I added the println statement in the display method to find out that the div is not refreshing) I have to log out and log in (invalidate session) to get the new chart. I am missing something public String display() throws Exception { System.out.println(I AM IN THE DISPLAY NOW ); Map attributes = ActionContext.getContext().getSession(); this.chart = (JFreeChart) attributes.get(CHART); if(chart == null) { return Constants.FORWARD_INVALIDACTION; } return Constants.FORWARD_SUCCESS; } private void setChart(JFreeChart chart){ Map attributes = ActionContext.getContext().getSession(); attributes.put(CHART, null); this.chart = chart; attributes.put(CHART, this.chart); } public JFreeChart getChart() { return chart; } Leena Borle wrote: Hello, See if this helps you. I have a form with remote DIV which displays chart after user clicks on submit. Trick here is to generate chart object, store it in session and display it in separate JSP. Remove the form part if you want to display just the dynamic-DIV using Chart image. Form.jsp [ s:form s:url id=display_chart value=DrawChart_draw.action namespace=/user / s:submit value=Draw chart href=%{display_chart} theme=ajax targets=*chart_div* / br / /s:form h4Your Running Chart/h4 div id=*chart_div* /div!-- End display chart -- /div ] display_chart.jsp [ body /MyApp/user/DrawChart_display.action /body ] struts.xml[ package name=user extends =struts-default,jfreechart-default !-- Separate method to draw and display due to Remote DIV/Button tag contsraints. -- action name=DrawChart_input method=input class=.xxx.DrawChart result name=inputform.jsp /result /action action name=DrawChart_draw method=draw class=xxx..DrawChart result name=success/jsp/display_chart.jsp /result /action action name=DrawChart_display method=display class=xxx.DrawChart result name=success type=chart 400 300 /result /action /package ] DrawChart.java [ JFreeChart chart; public String draw() throws Exception { //chart creation logic. //generate chart object chart = session = session.put(CHART, chart); return success; } /** * returns chart obejct from the session. This methos is used by display_chart.jsp */ public String display() throws Exception { session = ...get session ... this.chart = (JFreeChart) session.get(CHART); if(chart == null) { addActionError(getText(error.nochart)); return ERROR; } return SUCCESS; } // this method will get called if we specify chart public JFreeChart getChart() { return chart; } /** * p input action */ public String input() throws Exception { return INPUT; } ] Leena -- View this message in context: http://www.nabble.com/Struts-2-And-JFreeChart-tp18740589p18857105.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 And JFreeChart
Alrit got it to work Could not stop the browsers from caching. so added a param to the link /Dashboard/DisplayChart.action?p=%=request.getParameter( / Hello Everyone, Got a quick question regarding the streaming of a JFreeChart (or any image) and how to be able to handle it on a jsp. I have create a servlet that will stream out an image to the jsp using a syntax similar to (in my struts.xml): action name=testChart class=TestBarChart result name=success type=chart 350 300 /result /action So if I, in my html, created an img tag such that testChart.action -- View this message in context: http://www.nabble.com/Struts-2-And-JFreeChart-tp18740589p18861160.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 And JFreeChart
got it to work.. could not stop the caching so added a param to the src img src=/Dashboard/DisplayChart.action?p=%=request.getParameter(RANDOM)% / dynamicd wrote: I have tried % response.setHeader(Cache-Control, no-cache); //HTTP 1.1 response.setHeader(Pragma, no-cache); //HTTP 1.0 response.setDateHeader(Expires, 0); //prevents caching at the proxy server % as well.. newton.dave wrote: --- On Wed, 8/6/08, dynamicd [EMAIL PROTECTED] wrote: Also tried implementing the SessionAware. However the same thing. Why? Did you try setting the headers for not caching? Dave dynamicd wrote: This is cool.. I tried it out. However once the chart_display.jsp is called the first time through the image tag. it does not call the DisplayChart.action again to refresh the image with a new one when clicked on the DrawChart.action. (I added the println statement in the display method to find out that the div is not refreshing) I have to log out and log in (invalidate session) to get the new chart. I am missing something public String display() throws Exception { System.out.println(I AM IN THE DISPLAY NOW ); Map attributes = ActionContext.getContext().getSession(); this.chart = (JFreeChart) attributes.get(CHART); if(chart == null) { return Constants.FORWARD_INVALIDACTION; } return Constants.FORWARD_SUCCESS; } private void setChart(JFreeChart chart){ Map attributes = ActionContext.getContext().getSession(); attributes.put(CHART, null); this.chart = chart; attributes.put(CHART, this.chart); } public JFreeChart getChart() { return chart; } Leena Borle wrote: Hello, See if this helps you. I have a form with remote DIV which displays chart after user clicks on submit. Trick here is to generate chart object, store it in session and display it in separate JSP. Remove the form part if you want to display just the dynamic-DIV using Chart image. Form.jsp [ s:form s:url id=display_chart value=DrawChart_draw.action namespace=/user / s:submit value=Draw chart href=%{display_chart} theme=ajax targets=*chart_div* / br / /s:form h4Your Running Chart/h4 div id=*chart_div* /div!-- End display chart -- /div ] display_chart.jsp [ body /MyApp/user/DrawChart_display.action /body ] struts.xml[ package name=user extends =struts-default,jfreechart-default !-- Separate method to draw and display due to Remote DIV/Button tag contsraints. -- action name=DrawChart_input method=input class=.xxx.DrawChart result name=inputform.jsp /result /action action name=DrawChart_draw method=draw class=xxx..DrawChart result name=success/jsp/display_chart.jsp /result /action action name=DrawChart_display method=display class=xxx.DrawChart result name=success type=chart 400 300 /result /action /package ] DrawChart.java [ JFreeChart chart; public String draw() throws Exception { //chart creation logic. //generate chart object chart = session = session.put(CHART, chart); return success; } /** * returns chart obejct from the session. This methos is used by display_chart.jsp */ public String display() throws Exception { session = ...get session ... this.chart = (JFreeChart) session.get(CHART); if(chart == null) { addActionError(getText(error.nochart)); return ERROR; } return SUCCESS; } // this method will get called if we specify chart public JFreeChart getChart() { return chart; } /** * p input action */ public String input() throws Exception { return INPUT; } ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Struts-2-And-JFreeChart-tp18740589p18861176.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Struts2 tags radio button default select
Hey I am trying to create a radio button and I want one of the values selected by default, s:radio label=Chart Type name=chartType list={'Bar Chart','3D Bar Chart'} value=Bar Chart/ I thought I could use the value to select by default. However Its not working. Any help is appreciated. -- View this message in context: http://www.nabble.com/Struts2-tags-radio-button-default-select-tp18817609p18817609.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.1 AjaxAnywhere
Hey Shoib, I have tried Ajax Anywhere with Struts 2.0.12 and it didnt get me anywhere.. I did not see the ajax behavior. Did you get it to work. Canyou post some sample code. Shoaib Gauhar wrote: Hello, Has anyone tried AjaxAnywhere with Struts 2.1? My action class is never called. Actually, i am using ajax to achieve pagination in displaytag. I have used the example from the following link raibledesigns.com/rd/entry/the_future_of_the_displaytag. But the control doesnt reach my action class. The links addresses are updated correctly. After changing the page, following exception is shown in the log file. ognl.InappropriateExpressionException: Inappropriate OGNL expression: (d - 6210418) - p But after that nothing happens. The control comes back to the jsp without updating or refreshing my table. It would be very helpful if someone could guide me to achieve my desired task. Thanks in advance, sagauhar -- View this message in context: http://www.nabble.com/Struts-2.1---AjaxAnywhere-tp16296577p18779908.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 And JFreeChart
I am having a similar issue. I am using Ajax and I want to update the div with an image but it renders it in byte code.. since the div does not know that its an image. I am not sure how to handle this either. I am thinking one way is to use the ChartUtils and write an image on the filesystem and have an image tag that has the source to that image file. Let me know how you do it .. IT will help other as well Randy Burgess-4 wrote: I don't use the Ajax theme or any of the Dojo integration but I assumed that if theme=ajax on the submit button that it would be using Ajax. Regards, Randy Burgess Sr. Software Architect D5 Systems, LLC Regards, Randy Burgess Sr. Software Architect D5 Systems, LLC From: Laurie Harper [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org Date: Thu, 31 Jul 2008 02:28:41 -0400 To: user@struts.apache.org Subject: Re: Struts 2 And JFreeChart I don't see what Ajax has to do with this... It sounds more like an HTTP caching issue. Cree, if you do a page refresh, is the image updated correctly? I haven't used the JFreeChart result, but maybe it's not setting the right cache control headers. L. Randy Burgess wrote: Ajax is text only so you can't use it with an image type. Regards, Randy Burgess Sr. Software Architect D5 Systems, LLC From: cree [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org Date: Wed, 30 Jul 2008 12:14:02 -0700 (PDT) To: user@struts.apache.org Subject: Struts 2 And JFreeChart Hello Everyone, Got a quick question regarding the streaming of a JFreeChart (or any image) and how to be able to handle it on a jsp. I have create a servlet that will stream out an image to the jsp using a syntax similar to (in my struts.xml): action name=testChart class=TestBarChart result name=success type=chart 350 300 /result /action So if I, in my html, created an img tag such that src=testChart.action/ , it will correctly create the chart. My problem arises when I am using it under a dynamic context. For example, if initially I submit a form button (theme=ajax targets=divTarget) then it would render new data and an initial image. If I submit the form again with different user input the data would change but the image is still the same. I assume it is the same buffered image that it first loaded, but the action itself will never get reloaded. The action would not get executed at all. My question is whether there is a way I can manually force the img tag to invoke the action itself. Thanks for any input -- View this message in context: http://www.nabble.com/Struts-2-And-JFreeChart-tp18740589p18740589.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] - 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] -- View this message in context: http://www.nabble.com/Struts-2-And-JFreeChart-tp18740589p18757115.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: Strtus2 tags IE issue error loading page 200 ok
First I thought the problem was from ACEGI that I recently added to the project. So I took all of it out .However I encountered the same problem as above in IE. Then I thought the problem could be some leak in display tag . So i swithced back to normal table and the same thing again. So I realize that a Tabbed Panel inside a Tabbed Panel does not work if you click on the parent tab 5 to 6 times. Closing the IE window and opening it up works again for the next few clicks. It seems it has stored something in the session or something and is not cleaning it up. After I get the error below Error loading '/Dashboard/ViewOMTable.action?dojo.preventCache=1217258686015' (200 OK) none of the tabs are working and they all show the error above. It could be an IE issue cause its working fine in FireFox. Any work arounds or ideas will be greatly appreciated. Thanks. dynamicd wrote: Hi, I am new to Struts2 and I am having a problem displaying content with IE. It works fine in Firefox. I am using Struts2, Acegi for login, Hibernate for ORM and struts2 ajax tags for display I have a parent tabbed panel and a child tabbed panel. Once I login everything works fine however after a few clicks around I get the following error. Error loading '/Dashboard/ViewOMTable.action?dojo.preventCache=1217258686015' (200 OK) I am not sure why it is working when I log in and not after a few clicks. Again it works as expected in Firefox. Myjsp looks like this Parent tab has the following tab authz:authorize ifAnyGranted=ROLE_ADMINISTRATOR /** this is for the Acegi stuff */ s:url id=listOM value=/Dashboard/ViewManagedEntities.action / s:div id=OM label =Operations Manager theme=ajax href=%{listOM} autoStart=false refreshOnShow=true errorText=Unable to retrieve data! /s:div /authz:authorize This will get the child jsp which is below which is also tabbed panel s:head theme=ajax debug=true/ s:div id=OMpage s:tabbedPanel id=insideOMTab selectedTab=allOM s:url id=allOM action=ViewOMTable.action / s:div id=allOM label =LIST theme=ajax href=%{allOM} autoStart= false refreshOnShow=true /s:div s:url id=addOM action=showaddOMform / s:div id=addOM label =ADD theme=ajax href=%{addOM} autoStart= false refreshOnShow=true /s:div /s:tabbedPanel /s:div Any help is greatly appreciated -- View this message in context: http://www.nabble.com/Strtus2-tags-IE-issue-error-loading-page-200-ok-tp18691505p18742549.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]
Strtus2 tags IE issue error loading page 200 ok
Hi, I am new to Struts2 and I am having a problem displaying content with IE. It works fine in Firefox. I am using Struts2, Acegi for login, Hibernate for ORM and struts2 ajax tags for display I have a parent tabbed panel and a child tabbed panel. Once I login everything works fine however after a few clicks around I get the following error. Error loading '/Dashboard/ViewOMTable.action?dojo.preventCache=1217258686015' (200 OK) I am not sure why it is working when I log in and not after a few clicks. Again it works as expected in Firefox. Myjsp looks like this Parent tab has the following tab authz:authorize ifAnyGranted=ROLE_ADMINISTRATOR /** this is for the Acegi stuff */ s:url id=listOM value=/Dashboard/ViewManagedEntities.action / s:div id=OM label =Operations Manager theme=ajax href=%{listOM} autoStart=false refreshOnShow=true errorText=Unable to retrieve data! /s:div /authz:authorize This will get the child jsp which is below which is also tabbed panel s:head theme=ajax debug=true/ s:div id=OMpage s:tabbedPanel id=insideOMTab selectedTab=allOM s:url id=allOM action=ViewOMTable.action / s:div id=allOM label =LIST theme=ajax href=%{allOM} autoStart= false refreshOnShow=true /s:div s:url id=addOM action=showaddOMform / s:div id=addOM label =ADD theme=ajax href=%{addOM} autoStart= false refreshOnShow=true /s:div /s:tabbedPanel /s:div Any help is greatly appreciated -- View this message in context: http://www.nabble.com/Strtus2-tags-IE-issue-error-loading-page-200-ok-tp18691505p18691505.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: Strtus2 tags IE issue error loading page 200 ok
please help ! SOS dynamicd wrote: Hi, I am new to Struts2 and I am having a problem displaying content with IE. It works fine in Firefox. I am using Struts2, Acegi for login, Hibernate for ORM and struts2 ajax tags for display I have a parent tabbed panel and a child tabbed panel. Once I login everything works fine however after a few clicks around I get the following error. Error loading '/Dashboard/ViewOMTable.action?dojo.preventCache=1217258686015' (200 OK) I am not sure why it is working when I log in and not after a few clicks. Again it works as expected in Firefox. Myjsp looks like this Parent tab has the following tab authz:authorize ifAnyGranted=ROLE_ADMINISTRATOR /** this is for the Acegi stuff */ s:url id=listOM value=/Dashboard/ViewManagedEntities.action / s:div id=OM label =Operations Manager theme=ajax href=%{listOM} autoStart=false refreshOnShow=true errorText=Unable to retrieve data! /s:div /authz:authorize This will get the child jsp which is below which is also tabbed panel s:head theme=ajax debug=true/ s:div id=OMpage s:tabbedPanel id=insideOMTab selectedTab=allOM s:url id=allOM action=ViewOMTable.action / s:div id=allOM label =LIST theme=ajax href=%{allOM} autoStart= false refreshOnShow=true /s:div s:url id=addOM action=showaddOMform / s:div id=addOM label =ADD theme=ajax href=%{addOM} autoStart= false refreshOnShow=true /s:div /s:tabbedPanel /s:div Any help is greatly appreciated -- View this message in context: http://www.nabble.com/Strtus2-tags-IE-issue-error-loading-page-200-ok-tp18691505p18697289.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]