Re: s:include not working
Are you adjusting the relative URL value in your include statement based on the folder depth of the containing page or are you just copying pasting the same include statement in every single page? -Chase On Sun, Jul 20, 2008 at 1:20 AM, aum strut [EMAIL PROTECTED] wrote: Hi Chase, Is there any relation with the depth because when i put index.jsp page and HElloWorld.jsp page in the same folder, it starts to include the other jsp page which i unable to include when the pages were in different folders. any suggestion in this regards will be much helpful. yes all the pages have same tag lib directive -Aum On 7/19/08, Chase [EMAIL PROTECTED] wrote: Why does your tag have a body? s:include value=IncludedMenu/menu.jsp/ Do the other pages contain the same taglib directives? If you view the source in your web browser and see the tag code that means you are missing a taglib directive. Your include is using a relative page, are all the pages at the same depth? -Chase On Sat, Jul 19, 2008 at 4:22 AM, aum strut [EMAIL PROTECTED] wrote: Hi all, i am trying to include a jsp page using struts2 s:include tag but itdosen't seems to be working in my way. i have a menu.jsp page where i have written a code for the menu for my application. i have included this menu.jsp page in my index.jsp page were it is working fine.When i click on any menu option it redirect me to another page using the action.i tried to use the same s:include tage in other pages but it is not working where as it is working fine in the index.jsp page. where as if i include the code in the other pages instead of including the jap page the menuy starts appearing fine. s:include value=IncludedMenu/menu.jsp/s:include i have included the menu.jsp page in index page using this tag and working fine here but when tried to use the same tage in others pageses i failed.Can any one suggest me where i am doing wrong.?? Thanks in advance -aum - 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: s:include not working
Why does your tag have a body? s:include value=IncludedMenu/menu.jsp/ Do the other pages contain the same taglib directives? If you view the source in your web browser and see the tag code that means you are missing a taglib directive. Your include is using a relative page, are all the pages at the same depth? -Chase On Sat, Jul 19, 2008 at 4:22 AM, aum strut [EMAIL PROTECTED] wrote: Hi all, i am trying to include a jsp page using struts2 s:include tag but itdosen't seems to be working in my way. i have a menu.jsp page where i have written a code for the menu for my application. i have included this menu.jsp page in my index.jsp page were it is working fine.When i click on any menu option it redirect me to another page using the action.i tried to use the same s:include tage in other pages but it is not working where as it is working fine in the index.jsp page. where as if i include the code in the other pages instead of including the jap page the menuy starts appearing fine. s:include value=IncludedMenu/menu.jsp/s:include i have included the menu.jsp page in index page using this tag and working fine here but when tried to use the same tage in others pageses i failed.Can any one suggest me where i am doing wrong.?? Thanks in advance -aum - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ExecAndWait (navigating back to the progress page)
In my case it is a very long running action but even in the case of short running actions I would think users would want to be able to navigate away from the progress page and return. I thought maybe I just didn't know how to configure the actions correctly EDIT: So while writing the above reply a solution occurred to me. With a little trickery it's possible to do everything I was talking about with no AJAX. Documenting this pattern below in case anyone else ever comes across this problem. Have a single Action that directs the users to the form view and also handles the form submission. This solution will make it impossible for a user to view the form again until their task is complete. The key is to always use a delay for the execAndWait interceptor. interceptor-ref name=execAndWait param name=delay500/param /interceptor-ref The Action class looks something like: public class LongAction extends ActionSupport { private String formField; public String getFormField() { return formField; } public void setFormField(String ff) { formField = ff; } public String execute() { if(formField == null || formField.length == 0) { return INPUT; //the form } else { //long task here return SUCCESS; //result page } } } The delay on the interceptor is important because we need a chance to return INPUT before being redirected to the wait page. If anyone has a more elegant solutions please let me know. Thanks, -Chase On Thu, Jul 17, 2008 at 11:41 AM, Karr, David [EMAIL PROTECTED] wrote: I'm guessing the operation you're waiting for can take quite a while to complete. Otherwise modifying the architecture of this probably wouldn't be worth it. You might consider the flow of the original action to simply report a simple submitted and processing result, and then implement an Ajax-based timeout to quickly check the status of the long-running process. -Original Message- From: Chase [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 4:23 PM To: user@struts.apache.org Subject: ExecAndWait (navigating back to the progress page) I want my users to be able to leave the wait page and return. Can this be done, what is the best way? I've got two actions. ActionA displays a form and the form submits to ActionB. ActionB is using the ExecAndWait interceptor. Right now users have to resubmit the form to get back to their status page (possibly resubmitting the form if ActionB has finished). How can I have ActionA display the wait page of ActionB instead of the form? Also, is there anyway to make the ExecAndWait interceptor function per context instead per session? This is a low volume internal app. Thanks, Chase - 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]
Re: ExecAndWait (navigating back to the progress page)
On Thu, Jul 17, 2008 at 7:58 PM, Jishnu Viswanath [EMAIL PROTECTED] wrote: Hey in your case for the input field not null any such silly thing you can actually write validation xml. That will actually take care of returning back to the page with input error. Actually I can't. In my real code I need to execute the action in order to populate it with some data so that the form page can use s:iterator to build some input elements from data on the stack. And I don't want any action/field errors when this field is missing. Regarding the long time to take thingy, I don't know how the return SUCCESS is going to help the client, the client browser will wait for the server to respond, if its too long it will actually get timed out. The best solution is ajax. No, the execAndWait interceptor is made just for this. It takes a really long time to get the return of SUCCESS. The user actually gets back the wait result even though it's not in the code. The wait result includes a meta-refresh to keep hitting the action. The action (stored in the session automatically) will continue to return wait until the first refresh after the return of SUCCESS. See http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html The trick to my example is that usually the execAndWait interceptor automatically forwards someone to wait. By adding the delay param I'm giving the action half a second to return a result (input) before sending them to the wait page. I just think that maybe no one has bother to document how to apply this interceptor when you want the form replaced with the progress page. That way you don't have to resubmit the form to get back to the progress page if you navigate away. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ExecAndWait (navigating back to the progress page)
I want my users to be able to leave the wait page and return. Can this be done, what is the best way? I've got two actions. ActionA displays a form and the form submits to ActionB. ActionB is using the ExecAndWait interceptor. Right now users have to resubmit the form to get back to their status page (possibly resubmitting the form if ActionB has finished). How can I have ActionA display the wait page of ActionB instead of the form? Also, is there anyway to make the ExecAndWait interceptor function per context instead per session? This is a low volume internal app. Thanks, Chase - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why my emails are rejected as spam!!
Looking at your messages that are making it through you seem to be sending HTML messages and that is contributing to part of your SPAM score. Make sure your message format is plain text. Struts Two wrote: For any email that sent and is approximately 10 lines, my email is rejected as spam. I can see people posing messages much much longer that the ones I send. I get a line in the failure notice Remote host said: 552 spam score (5.0) exceeded threshold [BODY] __ Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
devMode + Windows + Eclipse + Tomcat = not reloading struts.xml
Anyone had issues with devMode not working fully on Windows? I've got constant name=struts.devMode value=true / set and in my Tomcat console log I'm seeing: INFO: Overriding property struts.configuration.xml.reload - old value: false new value: true Windows XP Sun JDK 1.6u6 Eclipse 3.3.2 Tomcat 6.0.16 Tomcat is being controlled and deployed to by Eclipse. Thanks, -Chase - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: devMode + Windows + Eclipse + Tomcat = not reloading struts.xml
Adam Hardy wrote: Chase on 28/04/08 22:14, wrote: Anyone had issues with devMode not working fully on Windows? I've got constant name=struts.devMode value=true / set and in my Tomcat console log I'm seeing: INFO: Overriding property struts.configuration.xml.reload - old value: false new value: true Windows XP Sun JDK 1.6u6 Eclipse 3.3.2 Tomcat 6.0.16 Tomcat is being controlled and deployed to by Eclipse. Not fully working? Is it showing any devMode signs? ResourceBundle? struts.xml? Extra logging? Yes, for instance I'm getting the Struts Problem Report page instead of the basic 404 pages. I haven't check ResourceBundles yet. Same project and versions of Struts/Tomcat/Eclipse on a Linux box work with no problem. I'm just not seeing struts.xml reloading on Windows systems. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 2.x versions and documentation
I'm confused by some of the documentation and hope someone can clarify things for me. I'm using what I think is the latest version of Strut 2. struts-2.0.11.1-all.zip (released Mar 04, 2008) I'm looking at the docs for the version of Struts I'm using. http://struts.apache.org/2.0.11.1/docs/action.html (last edited on Jul 03, 2007) But there seem to be some things that aren't right. For instance the documentation for the action tag lists the following 2 attributes: id, Description Deprecated. Use 'var' instead var, Description Name used to reference the value pushed into the Value Stack But my struts-tags.tld only has the id attribute and not the ?newer? var. Are the docs referring to a future version of Struts? or are they referencing an older version and the addition of var was rolled back? Should I or someone else be filling a bug report for the online docs? Thanks, -Chase - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2.x versions and documentation
Do you know if the documentation for Struts 2 is shared across all 2.x versions? Should var be removed from the 2.0 docs or does it just need a version note added? I'd like to see about getting this fixed. Given that the doc in question was last edited July 2007 to include 2.1 information has 2.1 been released already and I'm just not looking in the right place? Thanks, -Chase Dave Newton wrote: --- Chase [EMAIL PROTECTED] wrote: But my struts-tags.tld only has the id attribute and not the ?newer? var. Are the docs referring to a future version of Struts? or are they referencing an older version and the addition of var was rolled back? id is for S2.0, var for S2.1. Not all of the docs are complete with regards to version info. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]