RE: S:If test with percent car
Or try .equals also Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2008 9:44 PM To: Struts Users Mailing List Subject: Re: S:If test with percent car http://struts.apache.org/2.x/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html --- On Wed, 12/3/08, Craftyman <[EMAIL PROTECTED]> wrote: > From: Craftyman <[EMAIL PROTECTED]> > Subject: S:If test with percent car > To: "Struts Users Mailing List" > Date: Wednesday, December 3, 2008, 10:59 AM > Hi, > > I would like to check if my unit equal to percent cahr (%) > to replace it by > %25 in my url in order to allow to get this value during > the auto decoding > url by my browser. > In use the folling code : > >
RE: Advanced Struts 2 Validation Question...
You can write java validation Try like this in xml FirstName Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Burton Rhodes [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 9:06 PM To: Struts Users Mailing List Subject: Advanced Struts 2 Validation Question... How do I use validation in an [Action]-validation.xml file to validate several fields? I need to implement the following logic for 3 fields on a form: Company, FirstName, LastName. Psedo Code: If Company empty, then FirstName and LastName must be filled If FirstName and LastName empty, then Company Must be filled. I am having trouble seeing how this can be accomplished with the "expression" validator type. Or should I just write some simple javascript to make this happen?! Thanks!! Burton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [S2]Multiple Form Submission
HI, Did any one worked with mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 3:36 AM To: Struts Users Mailing List Subject: RE: [S2]Multiple Form Submission Hey Henan, In some case I am getting Map session = ActionContext.getContext().getSession(); And the session contains a key called org.apache.struts2.util.InvocationSessionStore.invocationMap and the value is Another SessionMap, whose key value is correct struts.token and value is the SESSION. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Jishnu Viswanath [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 1:15 AM To: Struts Users Mailing List Subject: RE: [S2]Multiple Form Submission Hi, :) Thanks Henan, At least something came up, It was my mistake I was doing it in all interceptor, now I have to extend that interceptor to ignore the values if the session does not exist. It ok :) And they call getters every time also, that also I have to worry, any way thanks very much. I really appreciate it :) Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: hernan gonzalez [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 12:24 AM To: Struts Users Mailing List Subject: Re: [S2]Multiple Form Submission The should be in the jsp that creates the form that is submitted to the action (not in the result jsp!), so that the action can check for its existence. And the stack with the token interceptor should be applied only to that action/method. Hernán J. González http://hjg.com.ar/ On Wed, Oct 29, 2008 at 4:38 PM, Jishnu Viswanath <[EMAIL PROTECTED]> wrote: > Hi Wes, >I was not using > But after your mail I just added that, and tried > I have an empty jsp > > <%@ taglib prefix="s" uri="/struts-tags" %> > <%@ taglib prefix="t" uri="/test" %> > > >Index > > > > > > > > > This jsp is mapped in index.action > > In struts.xml I have the action mapped which refers to the following > interceptor stack > > > > > > > > > > > > And action map is like this > class="com.neolivz.sandbox.action.IndexAction"> > >/jsp/index.jsp > > > And ;) it does work without the token-session interceptor :D > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Original Message- > From: Wes Wannemacher [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2008 11:47 PM > To: Struts Users Mailing List > Subject: Re: [S2]Multiple Form Submission > > Can you copy/paste some of your action/jsp/configuration code. > > Are you using the tag in your form? > > -Wes > > On Wed, Oct 29, 2008 at 2:09 PM, Jishnu Viswanath > <[EMAIL PROTECTED]> wrote: >> Hi, >>I read that part, >>First thing I used token session interceptor, it says "it will block >> subsequent requests until the first request is complete, and then instead of >> returning the invalid.token code" >>Second there was no double post, none of my pages are loading when I >> added this interceptor. >> >> Regards, >> >> Jishnu Viswanath >> >> Software Engineer >> >> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll >> >> Tavant Technologies Inc., >> >> www.tavant.com >> >> PEOPLE :: PASSION :: EXCELLENCE >> >> >> -Original Message- >> From: hernan gonzalez [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 29, 2008 11:26 PM >> To: Struts Users Mailing List >> Subject: Re: [S2]Multiple Form Submission >> >> Take a look at the documentation. The message is quite clear: >> >> "No result defined for action com.neolivz.sandbox.action.IndexAction >> and result invalid.token" >> >> The Tokeninterceptor throw a special result "inv
RE: Struts 2.0.12 - XML Validation with Websphere 6.1
Does this help? https://issues.apache.org/struts/browse/WW-2653 Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Struts Developer [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 5:22 AM To: user@struts.apache.org Subject: Struts 2.0.12 - XML Validation with Websphere 6.1 There was a know issue with struts 2.0.11.2 that the integrated XWork 2.0.5 jar may cause problems when used in a combination of WebSphere 6.1 runtime environments with validation configuration via XML file. Is this fixed with struts 2.0.12?. I do not see any information on the apache website. Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [S2]Multiple Form Submission
OOPS!!! I made a little mistake in last explanation, I just found out When ever Struts execute a valid token they actually call InvocationSessionStore.storeInvocation(key, token, invocation); Which intern crates a map and adds the map to session with the key org.apache.struts2.util.InvocationSessionStore.invocationMap. Now problem is still there, it does not have struts.token when I double post, I still don't understand where did it disappear to? Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Jishnu Viswanath [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 3:36 AM To: Struts Users Mailing List Subject: RE: [S2]Multiple Form Submission Hey Henan, In some case I am getting Map session = ActionContext.getContext().getSession(); And the session contains a key called org.apache.struts2.util.InvocationSessionStore.invocationMap and the value is Another SessionMap, whose key value is correct struts.token and value is the SESSION. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Jishnu Viswanath [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 1:15 AM To: Struts Users Mailing List Subject: RE: [S2]Multiple Form Submission Hi, :) Thanks Henan, At least something came up, It was my mistake I was doing it in all interceptor, now I have to extend that interceptor to ignore the values if the session does not exist. It ok :) And they call getters every time also, that also I have to worry, any way thanks very much. I really appreciate it :) Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: hernan gonzalez [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 12:24 AM To: Struts Users Mailing List Subject: Re: [S2]Multiple Form Submission The should be in the jsp that creates the form that is submitted to the action (not in the result jsp!), so that the action can check for its existence. And the stack with the token interceptor should be applied only to that action/method. Hernán J. González http://hjg.com.ar/ On Wed, Oct 29, 2008 at 4:38 PM, Jishnu Viswanath <[EMAIL PROTECTED]> wrote: > Hi Wes, >I was not using > But after your mail I just added that, and tried > I have an empty jsp > > <%@ taglib prefix="s" uri="/struts-tags" %> > <%@ taglib prefix="t" uri="/test" %> > > >Index > > > > > > > > > This jsp is mapped in index.action > > In struts.xml I have the action mapped which refers to the following > interceptor stack > > > > > > > > > > > > And action map is like this > class="com.neolivz.sandbox.action.IndexAction"> > >/jsp/index.jsp > > > And ;) it does work without the token-session interceptor :D > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Original Message- > From: Wes Wannemacher [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2008 11:47 PM > To: Struts Users Mailing List > Subject: Re: [S2]Multiple Form Submission > > Can you copy/paste some of your action/jsp/configuration code. > > Are you using the tag in your form? > > -Wes > > On Wed, Oct 29, 2008 at 2:09 PM, Jishnu Viswanath > <[EMAIL PROTECTED]> wrote: >> Hi, >>I read that part, >>First thing I used token session interceptor, it says "it will block >> subsequent requests until the first request is complete, and then instead of >> returning the invalid.token code" >>Second there was no double post, none of my pages are loading when I >> added this interceptor. >> >> Regards, >> >> Jishnu Viswanath >> >> Software Engineer >> >> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll >> >&
RE: [S2]Multiple Form Submission
Hey Henan, In some case I am getting Map session = ActionContext.getContext().getSession(); And the session contains a key called org.apache.struts2.util.InvocationSessionStore.invocationMap and the value is Another SessionMap, whose key value is correct struts.token and value is the SESSION. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Jishnu Viswanath [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 1:15 AM To: Struts Users Mailing List Subject: RE: [S2]Multiple Form Submission Hi, :) Thanks Henan, At least something came up, It was my mistake I was doing it in all interceptor, now I have to extend that interceptor to ignore the values if the session does not exist. It ok :) And they call getters every time also, that also I have to worry, any way thanks very much. I really appreciate it :) Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: hernan gonzalez [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 12:24 AM To: Struts Users Mailing List Subject: Re: [S2]Multiple Form Submission The should be in the jsp that creates the form that is submitted to the action (not in the result jsp!), so that the action can check for its existence. And the stack with the token interceptor should be applied only to that action/method. Hernán J. González http://hjg.com.ar/ On Wed, Oct 29, 2008 at 4:38 PM, Jishnu Viswanath <[EMAIL PROTECTED]> wrote: > Hi Wes, >I was not using > But after your mail I just added that, and tried > I have an empty jsp > > <%@ taglib prefix="s" uri="/struts-tags" %> > <%@ taglib prefix="t" uri="/test" %> > > >Index > > > > > > > > > This jsp is mapped in index.action > > In struts.xml I have the action mapped which refers to the following > interceptor stack > > > > > > > > > > > > And action map is like this > class="com.neolivz.sandbox.action.IndexAction"> > >/jsp/index.jsp > > > And ;) it does work without the token-session interceptor :D > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Original Message- > From: Wes Wannemacher [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2008 11:47 PM > To: Struts Users Mailing List > Subject: Re: [S2]Multiple Form Submission > > Can you copy/paste some of your action/jsp/configuration code. > > Are you using the tag in your form? > > -Wes > > On Wed, Oct 29, 2008 at 2:09 PM, Jishnu Viswanath > <[EMAIL PROTECTED]> wrote: >> Hi, >>I read that part, >>First thing I used token session interceptor, it says "it will block >> subsequent requests until the first request is complete, and then instead of >> returning the invalid.token code" >>Second there was no double post, none of my pages are loading when I >> added this interceptor. >> >> Regards, >> >> Jishnu Viswanath >> >> Software Engineer >> >> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll >> >> Tavant Technologies Inc., >> >> www.tavant.com >> >> PEOPLE :: PASSION :: EXCELLENCE >> >> >> -Original Message- >> From: hernan gonzalez [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 29, 2008 11:26 PM >> To: Struts Users Mailing List >> Subject: Re: [S2]Multiple Form Submission >> >> Take a look at the documentation. The message is quite clear: >> >> "No result defined for action com.neolivz.sandbox.action.IndexAction >> and result invalid.token" >> >> The Tokeninterceptor throw a special result "invalid.token" when the >> token is invalid (what usually >> means a double submit). Hence, you should configure specify a jsp for >> that result in your acti
RE: [S2]Multiple Form Submission
Hi, :) Thanks Henan, At least something came up, It was my mistake I was doing it in all interceptor, now I have to extend that interceptor to ignore the values if the session does not exist. It ok :) And they call getters every time also, that also I have to worry, any way thanks very much. I really appreciate it :) Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: hernan gonzalez [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 12:24 AM To: Struts Users Mailing List Subject: Re: [S2]Multiple Form Submission The should be in the jsp that creates the form that is submitted to the action (not in the result jsp!), so that the action can check for its existence. And the stack with the token interceptor should be applied only to that action/method. Hernán J. González http://hjg.com.ar/ On Wed, Oct 29, 2008 at 4:38 PM, Jishnu Viswanath <[EMAIL PROTECTED]> wrote: > Hi Wes, >I was not using > But after your mail I just added that, and tried > I have an empty jsp > > <%@ taglib prefix="s" uri="/struts-tags" %> > <%@ taglib prefix="t" uri="/test" %> > > >Index > > > > > > > > > This jsp is mapped in index.action > > In struts.xml I have the action mapped which refers to the following > interceptor stack > > > > > > > > > > > > And action map is like this > class="com.neolivz.sandbox.action.IndexAction"> > >/jsp/index.jsp > > > And ;) it does work without the token-session interceptor :D > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Original Message- > From: Wes Wannemacher [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2008 11:47 PM > To: Struts Users Mailing List > Subject: Re: [S2]Multiple Form Submission > > Can you copy/paste some of your action/jsp/configuration code. > > Are you using the tag in your form? > > -Wes > > On Wed, Oct 29, 2008 at 2:09 PM, Jishnu Viswanath > <[EMAIL PROTECTED]> wrote: >> Hi, >>I read that part, >>First thing I used token session interceptor, it says "it will block >> subsequent requests until the first request is complete, and then instead of >> returning the invalid.token code" >>Second there was no double post, none of my pages are loading when I >> added this interceptor. >> >> Regards, >> >> Jishnu Viswanath >> >> Software Engineer >> >> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll >> >> Tavant Technologies Inc., >> >> www.tavant.com >> >> PEOPLE :: PASSION :: EXCELLENCE >> >> >> -Original Message- >> From: hernan gonzalez [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 29, 2008 11:26 PM >> To: Struts Users Mailing List >> Subject: Re: [S2]Multiple Form Submission >> >> Take a look at the documentation. The message is quite clear: >> >> "No result defined for action com.neolivz.sandbox.action.IndexAction >> and result invalid.token" >> >> The Tokeninterceptor throw a special result "invalid.token" when the >> token is invalid (what usually >> means a double submit). Hence, you should configure specify a jsp for >> that result in your action mapping >> (for that action, and/or globally). >> >> Take a look also to the token-session-interceptor.html which has a >> (perhaps) more interesting behaviuor. >> You might also buy the "struts2 in action" book. >> >> Regards >> >> Hernán J. González >> http://hjg.com.ar/ >> >> >> >> On Wed, Oct 29, 2008 at 2:54 PM, Jishnu Viswanath >> <[EMAIL PROTECTED]> wrote: >>> >>> Hi, >>>Thanks for the reply but I tried it out but got this error. >>> In my stack I added >>> >>> I have a list of
RE: [S2]Multiple Form Submission
Hi Wes, I was not using But after your mail I just added that, and tried I have an empty jsp <%@ taglib prefix="s" uri="/struts-tags" %> <%@ taglib prefix="t" uri="/test" %> Index This jsp is mapped in index.action In struts.xml I have the action mapped which refers to the following interceptor stack And action map is like this /jsp/index.jsp And ;) it does work without the token-session interceptor :D Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Wes Wannemacher [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2008 11:47 PM To: Struts Users Mailing List Subject: Re: [S2]Multiple Form Submission Can you copy/paste some of your action/jsp/configuration code. Are you using the tag in your form? -Wes On Wed, Oct 29, 2008 at 2:09 PM, Jishnu Viswanath <[EMAIL PROTECTED]> wrote: > Hi, >I read that part, >First thing I used token session interceptor, it says "it will block > subsequent requests until the first request is complete, and then instead of > returning the invalid.token code" >Second there was no double post, none of my pages are loading when I > added this interceptor. > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Original Message- > From: hernan gonzalez [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2008 11:26 PM > To: Struts Users Mailing List > Subject: Re: [S2]Multiple Form Submission > > Take a look at the documentation. The message is quite clear: > > "No result defined for action com.neolivz.sandbox.action.IndexAction > and result invalid.token" > > The Tokeninterceptor throw a special result "invalid.token" when the > token is invalid (what usually > means a double submit). Hence, you should configure specify a jsp for > that result in your action mapping > (for that action, and/or globally). > > Take a look also to the token-session-interceptor.html which has a > (perhaps) more interesting behaviuor. > You might also buy the "struts2 in action" book. > > Regards > > Hernán J. González > http://hjg.com.ar/ > > > > On Wed, Oct 29, 2008 at 2:54 PM, Jishnu Viswanath > <[EMAIL PROTECTED]> wrote: >> >> Hi, >>Thanks for the reply but I tried it out but got this error. >> In my stack I added >> >> I have a list of interceptors stacks, I added to them >> >> >> HTTP ERROR: 404 >> >> No result defined for action com.neolivz.sandbox.action.IndexAction and >> result invalid.token >> >> RequestURI=/WebSandbox/index.action >> Caused by: >> >> No result defined for action com.neolivz.sandbox.action.IndexAction and >> result invalid.token - action - >> file:/D:/Work/TWMS/WebSandbox/target/classes/struts.xml:12:71 >>at >> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:345) >>at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248) >>at >> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50) >>at >> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:507) >>at >> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421) >>at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) >>at >> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) >>at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) >>at >> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) >>at >> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerReques
RE: [S2]Multiple Form Submission
Hi, I read that part, First thing I used token session interceptor, it says "it will block subsequent requests until the first request is complete, and then instead of returning the invalid.token code" Second there was no double post, none of my pages are loading when I added this interceptor. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: hernan gonzalez [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2008 11:26 PM To: Struts Users Mailing List Subject: Re: [S2]Multiple Form Submission Take a look at the documentation. The message is quite clear: "No result defined for action com.neolivz.sandbox.action.IndexAction and result invalid.token" The Tokeninterceptor throw a special result "invalid.token" when the token is invalid (what usually means a double submit). Hence, you should configure specify a jsp for that result in your action mapping (for that action, and/or globally). Take a look also to the token-session-interceptor.html which has a (perhaps) more interesting behaviuor. You might also buy the "struts2 in action" book. Regards Hernán J. González http://hjg.com.ar/ On Wed, Oct 29, 2008 at 2:54 PM, Jishnu Viswanath <[EMAIL PROTECTED]> wrote: > > Hi, >Thanks for the reply but I tried it out but got this error. > In my stack I added > > I have a list of interceptors stacks, I added to them > > > HTTP ERROR: 404 > > No result defined for action com.neolivz.sandbox.action.IndexAction and > result invalid.token > > RequestURI=/WebSandbox/index.action > Caused by: > > No result defined for action com.neolivz.sandbox.action.IndexAction and > result invalid.token - action - > file:/D:/Work/TWMS/WebSandbox/target/classes/struts.xml:12:71 >at > com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:345) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248) >at > org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50) >at > org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:507) >at > org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421) >at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) >at > org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) >at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) >at > org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) >at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) >at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) >at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) >at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) >at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) >at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) >at > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) >at > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146) >at > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) >at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) >at org.mortbay.jetty.Server.handle(Server.java:285) >at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) >at > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) >at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) >at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) >at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) >at > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) >at > org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) > > Powered by Jetty:// > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Or
RE: [S2]Multiple Form Submission
Hi, Thanks for the reply but I tried it out but got this error. In my stack I added I have a list of interceptors stacks, I added to them HTTP ERROR: 404 No result defined for action com.neolivz.sandbox.action.IndexAction and result invalid.token RequestURI=/WebSandbox/index.action Caused by: No result defined for action com.neolivz.sandbox.action.IndexAction and result invalid.token - action - file:/D:/Work/TWMS/WebSandbox/target/classes/struts.xml:12:71 at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:345) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248) at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:507) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Powered by Jetty:// Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: hernan gonzalez [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2008 7:04 PM To: Struts Users Mailing List Subject: Re: [S2]Multiple Form Submission http://struts.apache.org/2.0.11.2/docs/token-interceptor.html http://struts.apache.org/2.0.11.2/docs/token-session-interceptor.html http://www.planetstruts.org/struts2-showcase/token/index.jsp Hernán J. González http://hjg.com.ar/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2]Multiple Form Submission
Hi, Does any have any idea how to disable multiple form submission? I can not use disabling each button, just because of sheer number; I am looking for something like an interceptor. Does any one have any idea? I am using struts 2, I found some similar articles on struts 1 on base of tokens or something like that. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven2 archetype:generate, Struts 2
Hi, I don't know weather this thing should come in here or not, any way I was experimenting with maven2, When I gave mvn archetype:generate, I got a list, I took the best suited me, Struts 2, Hibernate and Spring :) 3: internal -> appfuse-basic-struts (AppFuse archetype for creating a web application with Hibernate, Spring and Struts 2) It created without any problem, Well when you start the server, I used the inbuild jetty server, mvn jetty:run It gave me exception saying xfire-servlet.xml is not found, ok when I checked the WEB-INF, 2 xmls where not generated security.xml & xfire-servlet.xml, Ok I created empty bean xml's No bean named 'springSecurityFilterChain' is defined, Well when I checked in web xml there is a filter defined with class org.springframework.web.filter.DelegatingFilterProxy which takes springSecurityFilterChain, I tried to do add that but I am getting Invocation Target Exception. http://forum.springframework.org/showthread.php?p=207143#post207143 Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: change border of field when error comes(Custom CSS)
That's the way you should not do it, I still don't understand what are you doing there, though There is an attribute called cssClass and cssStyle . className { border:1px solid #cc; } Try it, it should work, I never tried with fieldError cos I never used it. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Hardik Shah [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 4:03 PM To: user@struts.apache.org Subject: Re: change border of field when error comes(Custom CSS) thanks i dont know how to create custom theme for that but i have done manually <s:iterator value="fieldErrors"> #<s:property value="key"/>, </s:iterator> { border-color: #FFE6F7; } Torsten Krah wrote: > > Am Donnerstag, 16. Oktober 2008 09:14:19 schrieb Hardik Shah: >> can anybody gives idea > > Make a custom theme for your tag you want to get a custom border and add > your > css definition there. > Another solution would be, to use s:if and look in the fielderror List for > a > failure for your field and if one exists, use a custom css definition. > > -- > Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge. > Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html > > Really, I'm not out to destroy Microsoft. That will just be a > completely unintentional side effect." > -- Linus Torvalds > > > -- View this message in context: http://www.nabble.com/change-border-of-field-when-error-comes%28Custom-CSS%29-tp20008381p20010973.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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using POSIX Regular Expressions for Internationalized Validation
Hi, Any way you want to unescape, something you escaped, I don't know but what ever you put in the text field is got from the getter public String getFieldName(){ //TODO: Decode/Unescape here return this.fieldName; } Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: egetchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2008 1:48 AM To: user@struts.apache.org Subject: Re: Using POSIX Regular Expressions for Internationalized Validation That's an interesting approach you guys are proposing. I did a quick proof of concept where I coded an Interceptor that uses the Apache Commons StringEscapeUtils.escapeHtml function to update all incoming parameter values. This seems to implement what you guys suggested. What is your approach for then displaying this data? For example, in my proof of concept, when I escape Japanese Shift-JIS input, the escaped values are persisted to the database, and rendered to the browser in the escaped format. Do you unescape the prior to persisting it data (as it did pass validation), or do you have special logic in the actions that will unescape all properties prior to the JSP page rendering the data? Eric Laurie Harper wrote: > > The validation strategy you cite is well and good when the you *have* 'a > set of tightly constrained known good values.' It's not useful in the > general case. > > Your concerns with respect to XSS should only present a problem if you > need to render untrusted HTML (such as is often the case with web-base > email applications, for example). Unless you need to preserve > user-submitted HTML, though, the correct answer is, as Greg said, to > HTML-escape all user supplied data (or at least, all user supplied data > you haven't previously sanitized via strategies such as you referenced). > > If you do that, the browser will never see anything harmful in a context > it will treat as anything other than text (i.e. it will never try to > interpret such data as markup) and therefore you wont be vulnerable. > > L. > > -- View this message in context: http://www.nabble.com/Using-POSIX-Regular-Expressions-for-Internationali zed-Validation-tp19844314p19866354.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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: howto cache the textfield
Hi xianwinwin, Pawel is correct, when you have a text field with name="Something" next time you come to page that contains text field with same name then you can double click it and get it. I still did not get what you want to do, add the feature for not getting text fields, or remove feature for already getting text fields? Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Paweł Wielgus [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 12:06 PM To: Struts Users Mailing List Subject: Re: howto cache the textfield Hi xianwinwin, it's a firefox feature - remember entered form values or something like this, so yes it has nothing to do with struts. But You can achieve the same by adding ajax to this field and remembering all posted data in Your app. Best greetings, Paweł Wielgus. 2008/10/6 xianwinwin <[EMAIL PROTECTED]>: > > I have a textfield where a user input information. > > > label="Destination" > required="false"size="15" /> > > My question is this: how can I give the user previous input that he provided > once he clicks the textfield; in other word, when he clicks (or double > click) the textfield he can see (in a drop down box) what he entered before. > > for some reason, this works for some textfields and for some it doesn't (I > guess it's not a struts issue). > but still I wonder how to do that. > > thank you! > -- > View this message in context: > http://www.nabble.com/howto-cache-the-textfield-tp19844989p19844989.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] > > Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using POSIX Regular Expressions for Internationalized Validation
Hey egetchell, Don't know weather that's your name but any way. I don't know this is the solution you are looking for Now you need to map the validator, Put a validators.xml in resources folder, same folder as struts.xml exist ClassName should extend RegexFieldValidator Override validate method, do what ever you want there. This should work. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: egetchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 8:02 PM To: user@struts.apache.org Subject: Re: Using POSIX Regular Expressions for Internationalized Validation Greg, Thanks for the reply. The common approach for mitigating XSS is to provide a blacklist of XSS enabling characters, enables would include "<", ">", "%3f", etc. However, these filters are easily bypassed by clever encoding constructs, so the blacklist concept quickly fails and the site is open for attack. By inverting the solution and supplying only the allowed set of characters, the site remains secure no matter what clever encoding scheme someone dreams up. The OWASP group provides some pretty extensive documentation around this. Here is a direct link to some common validation strategies: http://www.owasp.org/index.php/Data_Validation#Data_Validation_Strategie s Their document, as a whole, is a very intereseting read. Greg Lindholm wrote: > > Sorry, I've never heard of whitelisting of allowable characters as being a > "normal" approach. > -- View this message in context: http://www.nabble.com/Using-POSIX-Regular-Expressions-for-Internationali zed-Validation-tp19844314p19859522.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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Accessing "id" bean-property (not tag attribute) in freemarker template
Hi, I think all the things that is there in parameters like id and name can not be accessed from ftl, Work around? No idea, I had a custom widget had the problem, so had to change the name. If I am correct, you can not access getName() etc... Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Sven Grünewald [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2008 1:24 PM To: user@struts.apache.org Subject: Accessing "id" bean-property (not tag attribute) in freemarker template Hi, can anybody help my? I can't acces a bean property id in a modified freemarker template. I can access all other properties with simple OGNL expression but not if they are called "id" or "ids" If I add a getter: getMyId(){ return getId(); } I can get it via ${myId} but not via ${id}. I want to modify the form-tag to add the id of my entity in the URL to make my actions bookmarkable etc. But I don't want to use GET. Only the entity id should be shown in the URL e.g. ../shop/showItem.action?id=42. Therefor I want to change the (rendered) form tag to
RE: tooltipIconPath attribute not working?
My Bad!!! Ok I got it, any way thanks, then it should work in 2.1.x. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 7:54 AM To: Struts Users Mailing List Subject: RE: tooltipIconPath attribute not working? --- On Sat, 9/27/08, Jishnu Viswanath wrote: > I have 2.1.2, any way could you grep it in webwork.tld? I > don't have a single result in 2.1.2 You're doing it wrong; it's in 2.1.2 as well: ../struts-2.1.2/lib/tmp $ grep -n tooltipIconPath META-INF/struts-tags.tld 295: tooltipIconPath 542: tooltipIconPath 801: tooltipIconPath 1098: tooltipIconPath 1363: tooltipIconPath 1670: tooltipIconPath 1954: tooltipIconPath 2207: tooltipIconPath 2682: tooltipIconPath 2949: tooltipIconPath 3208: tooltipIconPath 3515: tooltipIconPath 3774: tooltipIconPath 4021: tooltipIconPath 4268: tooltipIconPath 4656: tooltipIconPath 4946: tooltipIconPath 5627: tooltipIconPath 5935: tooltipIconPath 6238: tooltipIconPath 6503: tooltipIconPath 6804: tooltipIconPath 7112: tooltipIconPath 7408: tooltipIconPath 7685: tooltipIconPath 7932: tooltipIconPath 8366: tooltipIconPath With -C5: 8361- false 8362- false 8363- 8364- 8365- 8366: tooltipIconPath 8367- false 8368- false 8369- 8370- 8371- Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tooltipIconPath attribute not working?
I have 2.1.2, any way could you grep it in webwork.tld? I don't have a single result in 2.1.2 Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 7:43 AM To: Struts Users Mailing List Subject: RE: tooltipIconPath attribute not working? --- On Sat, 9/27/08, Jishnu Viswanath wrote: > Ok I misunderstood toolTipIcon for toolTipIconPath, any way > I can not find tooltipIconPath in tlds (both 2.0.x and 2.1.x), > so that means you can not set it. We must have different versions then; grepping for "tooltipIconPath" in S2.1.3, at least, returns 27 hits. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tooltipIconPath attribute not working?
Oops, Nope it will not work, it has not yet implemented I think. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Jishnu Viswanath [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 7:08 AM To: Struts Users Mailing List Subject: RE: tooltipIconPath attribute not working? Martin, I have not tried with form, but the textarea did not gave me any error, but I did not find any code to use the tooltip in the ftl, so I think they completely ignore the attribute, If you want you have to override the ftl in another theme, I think. PS: No idea on 2.1.x cos I have not yet used it. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 6:39 AM To: Struts Users Mailing List Subject: RE: tooltipIconPath attribute not working? Hello Jishnu- what happens when you configure the tooltipIconPath attribute in the form beforehand ? //tooltipIconPath should be inherited from form ? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: RE: tooltipIconPath attribute not working? > Date: Sun, 28 Sep 2008 06:06:44 +0530 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > > http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/c > omponents/UIBean.html > > Check examples > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > -Original Message- > From: Unmesh Kulkarni [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 28, 2008 1:35 AM > To: user@struts.apache.org > Subject: tooltipIconPath attribute not working? > > Hi, > I need help on setting the tooltip images. > > tooltipIconPath attribute is defined in the tag documentation, so I used > it > as under: > > cols="80"/> > > But it's usage gives the following error: > > Attribute tooltipIconPath invalid for tag textarea according to TLD > org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:5 > 15) > org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher > .java:419) > > > I am using struts-2.0.11.1. with Tomcat 5.0.28. > > Is this a bug, or a problem with the way I'm using it? If it's a bug, > are > there any workarounds to set tooltip icons? > > TiA, > -Unmesh > Any comments or statements made in this email are not necessarily those of Tavant Technologies. > The information transmitted is intended only for the person or entity to which it is addressed and may > contain confidential and/or privileged material. If you have received this in error, please contact the > sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies > may be subject to our monitoring procedures. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _ See how Windows Mobile brings your life together-at home, work, or on the go. http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/ Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential
RE: tooltipIconPath attribute not working?
Ok I misunderstood toolTipIcon for toolTipIconPath, any way I can not find tooltipIconPath in tlds (both 2.0.x and 2.1.x), so that means you can not set it. So the toolTipIconPath would never work, And when looked in 2.1.x code I found this in UIBean 830 //TODO: this is to keep backward compatibility, remove once when tooltipConfig is dropped 831 String tooltipIcon = (String) getParameters().get("tooltipIcon"); 832 if (tooltipIcon != null) 833 this.addParameter("tooltipIconPath", tooltipIcon); 834 if (this.tooltipIconPath != null) 835 this.addParameter("tooltipIconPath", findString(this.tooltipIconPath)); Ya you were rite, they were added in 2.1.x but not yet completely added. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 7:13 AM To: Struts Users Mailing List Subject: RE: tooltipIconPath attribute not working? --- On Sat, 9/27/08, Jishnu Viswanath wrote: > By the way, in struts 2.0.x, the attribute toolTipConfig > exists that what the documentation says, the link I gave > was the doc of UIBean, I checked the code of UIBean, in > which they split with = and add all parameter to the ftl. Nobody's talking about "toolTipConfig". We're talking about "tooltipIconPath". Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tooltipIconPath attribute not working?
Martin, I have not tried with form, but the textarea did not gave me any error, but I did not find any code to use the tooltip in the ftl, so I think they completely ignore the attribute, If you want you have to override the ftl in another theme, I think. PS: No idea on 2.1.x cos I have not yet used it. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 6:39 AM To: Struts Users Mailing List Subject: RE: tooltipIconPath attribute not working? Hello Jishnu- what happens when you configure the tooltipIconPath attribute in the form beforehand ? //tooltipIconPath should be inherited from form ? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: RE: tooltipIconPath attribute not working? > Date: Sun, 28 Sep 2008 06:06:44 +0530 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > > http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/c > omponents/UIBean.html > > Check examples > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > -Original Message- > From: Unmesh Kulkarni [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 28, 2008 1:35 AM > To: user@struts.apache.org > Subject: tooltipIconPath attribute not working? > > Hi, > I need help on setting the tooltip images. > > tooltipIconPath attribute is defined in the tag documentation, so I used > it > as under: > > cols="80"/> > > But it's usage gives the following error: > > Attribute tooltipIconPath invalid for tag textarea according to TLD > org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:5 > 15) > org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher > .java:419) > > > I am using struts-2.0.11.1. with Tomcat 5.0.28. > > Is this a bug, or a problem with the way I'm using it? If it's a bug, > are > there any workarounds to set tooltip icons? > > TiA, > -Unmesh > Any comments or statements made in this email are not necessarily those of Tavant Technologies. > The information transmitted is intended only for the person or entity to which it is addressed and may > contain confidential and/or privileged material. If you have received this in error, please contact the > sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies > may be subject to our monitoring procedures. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _ See how Windows Mobile brings your life together-at home, work, or on the go. http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/ Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tooltipIconPath attribute not working?
Hi, That quite unusual, cos I have just tried it, it did not gave me any error, by the way it wont work as the ftl was never given any indication on what to do with it. I can't test it now either, cos I have migrated whole code to dojo 1.0, so we chucked things that we don't want one such was tooltip. By the way, in struts 2.0.x, the attribute toolTipConfig exists that what the documentation says, the link I gave was the doc of UIBean, I checked the code of UIBean, in which they split with = and add all parameter to the ftl. But I think none of the ftl is written to use it. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 6:47 AM To: Struts Users Mailing List Subject: RE: tooltipIconPath attribute not working? --- On Sat, 9/27/08, Jishnu Viswanath wrote: > I don't think its included it in 2.1 but it was there > in 2.0.6 toolTipIcon does not come directly under but > an attribute to toolTipConfig. > > Check UIBean, and tld you can find toolTipConfig. Not sure what you're talking about. "tooltipIconPath", which is what the original poster asked about, is in S2.1 but not in S2.0 as of 2.0.11, anyway, which is the latest I have locally--I didn't check the repository. Dave > I wrote: > --- On Sat, 9/27/08, Unmesh Kulkarni wrote: > > I need help on setting the tooltip images. > > > > tooltipIconPath attribute is defined in the tag > > documentation, so I used it as under: > > > > > tooltip="my tooltip..." > > tooltipIconPath="images/tooltip_question.gif" > > rows="10" cols="80"/> > > > > But it's usage gives the following error: > > > > Attribute tooltipIconPath invalid for tag textarea > > according to TLD > > I'm not sure which version of S2 introduced the > "tooltipIconPath". [...] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tooltipIconPath attribute not working?
Dave, I don't think its included it in 2.1 but it was there in 2.0.6 toolTipIcon does not come directly under but an attribute to toolTipConfig. Check UIBean, and tld you can find toolTipConfig. http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/c omponents/UIBean.html Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 6:31 AM To: Struts Users Mailing List Subject: Re: tooltipIconPath attribute not working? --- On Sat, 9/27/08, Unmesh Kulkarni wrote: > I need help on setting the tooltip images. > > tooltipIconPath attribute is defined in the tag > documentation, so I used it as under: > > label="Comments" tooltip="my tooltip blah > blah" > tooltipIconPath="images/tooltip_question.gif" > rows="10" > cols="80"/> > > But it's usage gives the following error: > > Attribute tooltipIconPath invalid for tag textarea > according to TLD I'm not sure which version of S2 introduced the "tooltipIconPath". The wiki isn't "versioned" the same way the releases are; we have only a single wiki covering all versions. One issue with that is that many pages include documentation generated from the code itself, but of the most recent version, not necessarily the most recently *released* version. It's possible that "tooltipIconPath" is actually a S2.1 tag attribute and isn't annotated as such in the source code. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tooltipIconPath attribute not working?
http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/c omponents/UIBean.html Check examples Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Unmesh Kulkarni [mailto:[EMAIL PROTECTED] Sent: Sunday, September 28, 2008 1:35 AM To: user@struts.apache.org Subject: tooltipIconPath attribute not working? Hi, I need help on setting the tooltip images. tooltipIconPath attribute is defined in the tag documentation, so I used it as under: But it's usage gives the following error: Attribute tooltipIconPath invalid for tag textarea according to TLD org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:5 15) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher .java:419) I am using struts-2.0.11.1. with Tomcat 5.0.28. Is this a bug, or a problem with the way I'm using it? If it's a bug, are there any workarounds to set tooltip icons? TiA, -Unmesh Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Accessing UIBean property value in action class
Put it as a hidden variable in the template??? Wont it work. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: ManiKanta G [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 12:23 PM To: Struts-User Subject: Accessing UIBean property value in action class Hi, I've written a class that extends UIBean (for my custom tag) and defined few custom properties (which represents the attribute values of the custom tag). I want to access those attribute values in the requested action class. Can some one help me with this? Regards, ManiKanta Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I am trying to ignore any white space entered by the user in the autocompleter combobox.
That you can do it in server side also, I mean you intercept, remove the white space and proceed. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: rza [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2008 10:38 PM To: user@struts.apache.org Subject: RE: I am trying to ignore any white space entered by the user in the autocompleter combobox. I want to do it on the client side, basically I want the autocompleter to work and find the proper string even if there is a difference between the string from the list and the string typed by the user.. Jishnu Viswanath wrote: > > You want a client side removal or server side? If server side, why don't > you write interceptor for it? And if client side you have to write js. > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Original Message- > From: rza [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 24, 2008 9:39 PM > To: user@struts.apache.org > Subject: I am trying to ignore any white space entered by the user in > the autocompleter combobox. > > > I am trying to ignore any white space entered by the user in the > autocompleter combobox. I appreciate any help/hint > -- > View this message in context: > http://www.nabble.com/I-am-trying-to-ignore-any-white-space-entered-by-t > he-user-in-the-autocompleter-combobox.-tp19652266p19652266.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] > > Any comments or statements made in this email are not necessarily those of > Tavant Technologies. > The information transmitted is intended only for the person or entity to > which it is addressed and may > contain confidential and/or privileged material. If you have received this > in error, please contact the > sender and delete the material from any computer. All e-mails sent from or > to Tavant Technologies > may be subject to our monitoring procedures. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/I-am-trying-to-ignore-any-white-space-entered-by-t he-user-in-the-autocompleter-combobox.-tp19652266p19653542.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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I am trying to ignore any white space entered by the user in the autocompleter combobox.
You want a client side removal or server side? If server side, why don't you write interceptor for it? And if client side you have to write js. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: rza [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2008 9:39 PM To: user@struts.apache.org Subject: I am trying to ignore any white space entered by the user in the autocompleter combobox. I am trying to ignore any white space entered by the user in the autocompleter combobox. I appreciate any help/hint -- View this message in context: http://www.nabble.com/I-am-trying-to-ignore-any-white-space-entered-by-t he-user-in-the-autocompleter-combobox.-tp19652266p19652266.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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Extending Struts Tags
Cant you put if condition in the ftl? Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Narayana S [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2008 5:22 PM To: Struts Users Mailing List Subject: Extending Struts Tags Hi i missed my previous email about the same topic, one guy helped me to implement struts UI tag customization. i could extend the Bean and Tag classes to implement the required behavior. now based on some value from the database i want to stop rendering of the control itself. means for example i have a field visible , if it is false i should not display the control at all.. how can i stop tag rendering can any one help me to do this... Thanks in advance. Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java Mail errors
LOL Well from the last reply you need to learn java, but if you know or some of your friends know Java refer to http://java.sun.com/products/javamail/javadocs/javax/mail/package-summar y.html for mailing things. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Nils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 5:15 PM To: Struts Users Mailing List Subject: Re: Java Mail errors Here's a starting point for you: http://java.sun.com/new2java/ Nils-H On Tue, Sep 23, 2008 at 1:36 PM, Narasimha Raju Naidu <[EMAIL PROTECTED]> wrote: > thanks for your reply, > >is it public static void main() what you are saying. is it > required for every class? > > On Tue, Sep 23, 2008 at 4:55 PM, Lukasz Lenart <[EMAIL PROTECTED] >> wrote: > >> Hi, >> >> I think you should first read some Java tutorial how to write Java >> classes (you are missing class declaration), >> next try to find some Java Mail Tutorial with Google >> and the least and the most important is that this group is to support >> Struts users, not to solve any kind of Java problem you can have. >> >> >> Kind regards >> -- >> Lukasz >> http://www.lenart.org.pl/ >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Regards, > Narasimha Raju.Naidu > > > > uni... > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Issue using struts2 autocompleter.
Oops I mean Late version needs plugin Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Jishnu Viswanath [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 5:15 PM To: Struts Users Mailing List Subject: RE: Issue using struts2 autocompleter. Which version of struts are you using? Later versions of sturts 2.1.x check http://struts.apache.org/2.0.11.2/docs/ajax-tags.html Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Rag [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 5:12 PM To: user@struts.apache.org Subject: RE: Issue using struts2 autocompleter. Hi, Thanks for your replay Viswanath. 1. I tried without theme attribute, eventhen its behaving like a combo box. 2. When I put theme = "ajax" in autocompleter tag, its behaving like a textbox, not at all displaying the list from action class. Kindly help me... Thanks in advance Jishnu Viswanath wrote: > > > > 1. You need to have theme=ajax otherwise autocompleter won't work. > 2. Did you try to remove simple theme from s:autocompleter ? or put ajax > there instead of simple. > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > -Original Message- > From: Rag [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 23, 2008 2:19 PM > To: user@struts.apache.org > Subject: Issue using struts2 autocompleter. > > > Hi, > > I am facing an issue in struts2 autocompleter. > > Issue: > > In jsp page where I have used autocompleter, IE is showing an alert > message > with "stack overflow at line: 8259" and in the same jsp page, I have an > error as "djConfig.baseScriptUri.length' is null or not an object" > and autocompleter is behaving like a combo box. > > Jsp code for autocompleter is: > > inside head tag > > inside body tag > In Action class: private List mailNameList; > > when I remove tag, both errors are not coming, > but > instead of autocompleter, combo box is displaying in the jsp page. > > Kindly help me.. > > Thanks in advance > -- > View this message in context: > http://www.nabble.com/Issue-using-struts2-autocompleter.-tp19623666p1962 > 3666.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] > > Any comments or statements made in this email are not necessarily those of > Tavant Technologies. > The information transmitted is intended only for the person or entity to > which it is addressed and may > contain confidential and/or privileged material. If you have received this > in error, please contact the > sender and delete the material from any computer. All e-mails sent from or > to Tavant Technologies > may be subject to our monitoring procedures. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Issue-using-struts2-autocompleter.-tp19623666p1962 5899.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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have receiv
RE: Issue using struts2 autocompleter.
Which version of struts are you using? Later versions of sturts 2.1.x check http://struts.apache.org/2.0.11.2/docs/ajax-tags.html Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Rag [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 5:12 PM To: user@struts.apache.org Subject: RE: Issue using struts2 autocompleter. Hi, Thanks for your replay Viswanath. 1. I tried without theme attribute, eventhen its behaving like a combo box. 2. When I put theme = "ajax" in autocompleter tag, its behaving like a textbox, not at all displaying the list from action class. Kindly help me... Thanks in advance Jishnu Viswanath wrote: > > > > 1. You need to have theme=ajax otherwise autocompleter won't work. > 2. Did you try to remove simple theme from s:autocompleter ? or put ajax > there instead of simple. > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > -Original Message- > From: Rag [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 23, 2008 2:19 PM > To: user@struts.apache.org > Subject: Issue using struts2 autocompleter. > > > Hi, > > I am facing an issue in struts2 autocompleter. > > Issue: > > In jsp page where I have used autocompleter, IE is showing an alert > message > with "stack overflow at line: 8259" and in the same jsp page, I have an > error as "djConfig.baseScriptUri.length' is null or not an object" > and autocompleter is behaving like a combo box. > > Jsp code for autocompleter is: > > inside head tag > > inside body tag > In Action class: private List mailNameList; > > when I remove tag, both errors are not coming, > but > instead of autocompleter, combo box is displaying in the jsp page. > > Kindly help me.. > > Thanks in advance > -- > View this message in context: > http://www.nabble.com/Issue-using-struts2-autocompleter.-tp19623666p1962 > 3666.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] > > Any comments or statements made in this email are not necessarily those of > Tavant Technologies. > The information transmitted is intended only for the person or entity to > which it is addressed and may > contain confidential and/or privileged material. If you have received this > in error, please contact the > sender and delete the material from any computer. All e-mails sent from or > to Tavant Technologies > may be subject to our monitoring procedures. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Issue-using-struts2-autocompleter.-tp19623666p1962 5899.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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Issue using struts2 autocompleter.
1. You need to have theme=ajax otherwise autocompleter won't work. 2. Did you try to remove simple theme from s:autocompleter ? or put ajax there instead of simple. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Rag [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 2:19 PM To: user@struts.apache.org Subject: Issue using struts2 autocompleter. Hi, I am facing an issue in struts2 autocompleter. Issue: In jsp page where I have used autocompleter, IE is showing an alert message with "stack overflow at line: 8259" and in the same jsp page, I have an error as "djConfig.baseScriptUri.length' is null or not an object" and autocompleter is behaving like a combo box. Jsp code for autocompleter is: inside head tag inside body tag In Action class: private List mailNameList; when I remove tag, both errors are not coming, but instead of autocompleter, combo box is displaying in the jsp page. Kindly help me.. Thanks in advance -- View this message in context: http://www.nabble.com/Issue-using-struts2-autocompleter.-tp19623666p1962 3666.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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Query
>I actually think some people here have reported that they're doing so successfully, >although I haven't done it myself. Well that would be one amazing work cos both dojo object is entirely different, ya u can use it in 2 iframes, but in same iframe both dojo .4 and 1.x, well until I see it I wont believe it :D Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 12:36 AM To: Struts Users Mailing List Subject: RE: Query --- On Mon, 9/22/08, Jishnu Viswanath wrote: > Hmmm, I think these are the valid 2.0.11.2 strut-tags > http://struts.apache.org/2.0.11.2/docs/ajax-tags.html They're supported under S2.0 as well, but not as a plugin, and cotnain somewhat less functionality. > well if they don't we will have problem if u use .4 > and 1.x together. In simple it can't work. I actually think some people here have reported that they're doing so successfully, although I haven't done it myself. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Query
1. Dojo and struts-tags and sitemesh and tiles are already supported in struts Hmmm, I think these are the valid 2.0.11.2 strut-tags http://struts.apache.org/2.0.11.2/docs/ajax-tags.html Well there is no where specified that struts moved to dojo 1.0, well if they don't we will have problem if u use .4 and 1.x together. In simple it can't work. 2. Well I did not get what you meant, But these libraries are designed to work like that, If you say that jQuery is simple not much features, a full fledged app will be equally complex when you use jQuery or dojo. Well this chart will bring some light in what we are looking at http://javascriptant.com/articles/24/javascript-libraries-by-comparison for perf http://jst.pbwiki.com/ I don't think you can find any performance comparison of extjs as its in GPL or Commercial License. I can not, cos I am more or less dojo developer, not jQuery :D But I have to accept Grid is ++jQuery;--dojo/dijit. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2008 11:41 PM To: Struts Users Mailing List Subject: RE: Query dojo and struts-tags and sitemesh and tiles are already supported in struts http://struts.apache.org/2.0.11.2/docs/dojo-head.html BTW: you're loading one heck of alot of functionality into JS with these external JS libraries http://struts.apache.org/2.0.11.2/docs/ajax.html (i'm not picking on JQuery per se but why not GWT or Scriptaculous which have equal amount of functionality?) are you enlisting yourself to write a JQuery plugin for struts http://cwiki.apache.org/WW/plugins.html ? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: RE: Query > Date: Mon, 22 Sep 2008 23:22:22 +0530 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > > > That's really weird, I can not find any thing so php specific with grid, its > plain simple grid. > > Bye the way, dojo 1.1 has grid, or was it 1.0 Well I personally did not > like the grid implementation, mainly one reason, sluggish, heavy. > > I do remember some other contributed and they migrated it to dojo, I read it > some where but I am not sure about it. > > Well who cares about it. > > I would recommend still to use jQuery, personally I am a big fan of dojo(Only > second to extjs) but Grid is something really heavy and jQuery is simple CSS > based rules work much faster on grid. > > PS: jQuery, dojo, ext every thing is js no relation with PHP/ASP/JSP correct > me if I am wrong. > > PS2: If you are using dojo grid with original ajax frame work with struts2 > which uses .4 and the grid is 1.1(1.2) where the API's are entirely > diffrenet? Well rewrite every ajax widget you want, as we did, or put grid in > a different frame if you still use dojo. > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Original Message- > From: Martin Gainty [mailto:[EMAIL PROTECTED] > Sent: Monday, September 22, 2008 10:35 PM > To: Struts Users Mailing List > Subject: RE: Query > > > great if we were programming php on Apache! > > I recommend the Dojo Grid control > http://dojotoolkit.org/book/dijit-functional-spec/other-widgets/table > > anyone else? > Martin > __ > Disclaimer and confidentiality note > Everything in this e-mail and any attachments relates to the official > business of Sender. This transmission is of a confidential nature and Sender > does not endorse distribution to any party other than intended recipient. > Sender does not necessarily endorse content contained within this > transmission. > > > > Subject: RE: Query > > Date: Mon, 22 Sep 2008 21:29:17 +0530 > > From: [EMAIL PROTECTED] > > To: user@struts.apache.org > > > > If you are using jQuery try this also > > http://www.webplicity.net/flexigrid/ > > I felt its better polished and finished. > > > > Regards, > > > > Jishnu Viswanath > > > > Software Engineer > > > > *(+9180)41190300 - 222
RE: Query
That's really weird, I can not find any thing so php specific with grid, its plain simple grid. Bye the way, dojo 1.1 has grid, or was it 1.0 Well I personally did not like the grid implementation, mainly one reason, sluggish, heavy. I do remember some other contributed and they migrated it to dojo, I read it some where but I am not sure about it. Well who cares about it. I would recommend still to use jQuery, personally I am a big fan of dojo(Only second to extjs) but Grid is something really heavy and jQuery is simple CSS based rules work much faster on grid. PS: jQuery, dojo, ext every thing is js no relation with PHP/ASP/JSP correct me if I am wrong. PS2: If you are using dojo grid with original ajax frame work with struts2 which uses .4 and the grid is 1.1(1.2) where the API's are entirely diffrenet? Well rewrite every ajax widget you want, as we did, or put grid in a different frame if you still use dojo. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2008 10:35 PM To: Struts Users Mailing List Subject: RE: Query great if we were programming php on Apache! I recommend the Dojo Grid control http://dojotoolkit.org/book/dijit-functional-spec/other-widgets/table anyone else? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: RE: Query > Date: Mon, 22 Sep 2008 21:29:17 +0530 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > > If you are using jQuery try this also > http://www.webplicity.net/flexigrid/ > I felt its better polished and finished. > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Original Message- > From: Miguel [mailto:[EMAIL PROTECTED] > Sent: Monday, September 22, 2008 9:06 PM > To: Struts Users Mailing List > Subject: Re: Query > > You could use jQgrid, it has lots of options. > http://www.trirand.com/jqgrid/jqgrid.html > To use jqgrid you need to pass it the data via xml or json, so I > recomend use the xslt or the json result of struts. You should not > build the xml or the json using a jsp. > It's not somewhat easy, but you will need to do your homework. > > > Si quieres ser más positivo, pierde un electrón > Miguel Ruiz Velasco S. > > > > On Sun, Sep 21, 2008 at 20:32, Jim Kiley <[EMAIL PROTECTED]> wrote: > > You're going to need to provide a lot more detail if you want a useful > > answer of any kind. > > > > On Sun, Sep 21, 2008 at 1:27 AM, greatshalu.6 <[EMAIL PROTECTED]>wrote: > > > >> > >> how we use grids in struts > >> -- > >> View this message in context: > >> http://www.nabble.com/Query-tp19591765p19591765.html > >> Sent from the Struts - User mailing list archive at Nabble.com. > >> > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > > Jim Kiley > > Technical Consultant | Summa > > [p] 412.258.3346 [m] 412.445.1729 > > http://www.summa-tech.com > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Any comments or statements made in this email are not necessarily those of > Tavant Technologies. > The information transmitted is intended only for the person or entity to > which it is addressed and may > contain confidential and/or privileged material. If you have received this in > error, please contact the > sender and delete the material from any computer. All e-mails sent from or to > Tavant Technologies > may be subject to our monitoring procedures. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
RE: Query
If you are using jQuery try this also http://www.webplicity.net/flexigrid/ I felt its better polished and finished. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Miguel [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2008 9:06 PM To: Struts Users Mailing List Subject: Re: Query You could use jQgrid, it has lots of options. http://www.trirand.com/jqgrid/jqgrid.html To use jqgrid you need to pass it the data via xml or json, so I recomend use the xslt or the json result of struts. You should not build the xml or the json using a jsp. It's not somewhat easy, but you will need to do your homework. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco S. On Sun, Sep 21, 2008 at 20:32, Jim Kiley <[EMAIL PROTECTED]> wrote: > You're going to need to provide a lot more detail if you want a useful > answer of any kind. > > On Sun, Sep 21, 2008 at 1:27 AM, greatshalu.6 <[EMAIL PROTECTED]>wrote: > >> >> how we use grids in struts >> -- >> View this message in context: >> http://www.nabble.com/Query-tp19591765p19591765.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Jim Kiley > Technical Consultant | Summa > [p] 412.258.3346 [m] 412.445.1729 > http://www.summa-tech.com > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Nothing helps
1.If var does not exist u are using struts 2.0.x not 2.1.x 2. Try doing something like this so this Document Title: Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: holod [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2008 2:06 PM To: user@struts.apache.org Subject: Nothing helps attribute "var" doesn't exist in my struts-tags.tld. I'm using the last one struts2 pack. lawDraft.docs returns List with 5 elements. Simple printing shows 5 elements I've tried to invoke method "getTitle()" of class Document which instances are in ArrayList: 1. Nothing, empty string 2. Nothing, empty string Previous actions prints to log fields of objects kept in Lawdraft.getDocs() I know, that title is not null or empty. Can you suggest me something else? -- View this message in context: http://www.nabble.com/Problem-accessing-iterated-object-%28%3Cs%3Aiterat or%29-tp18614028p18647504.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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [s2] Making textfield input optional
Ignore my last mail on this thread. I did not see the replies. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Gabriel Belingueres [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2008 10:08 PM To: Struts Users Mailing List Subject: Re: [s2] Making textfield input optional Yes, you need to write this setter in your action class. 2008/7/24 Milan Milanovic <[EMAIL PROTECTED]>: > > Dear Gabriel, > > You mean in my action class ? > > -- > Milan > > > Gabriel Belingueres-2 wrote: >> >> You don't need to modify your model, just delegate to it: >>public void setValue(String s) { >>if (!StringUtils.isBlank(s)) { >>try { >>model.setValue(new BigDecimal(s)); >>catch(NumberFormatException e) { >>model.setValue(null); >>} >>} >>} >> >> 2008/7/24 Milan Milanovic <[EMAIL PROTECTED]>: >>> >>> Dear Gabriel, >>> >>> thank you. I tried without my Converter class for BigDecimal and it is >>> the >>> same, when user doesn't enter value I got that error in a log. >>> >>> I'm using S2 2.0.11.1. This solution is good, but my value that is set >>> comes >>> from model where I have class and attribute (BigDecimal) with its get/set >>> methods, by putting this set(String) instead of set(BigDecimal) I'm >>> violating class semantics ? >>> >>> The other solution is O.K., but I've already used it with Dates and >>> datetimepicker. Can I change in some way this BigDecimal converter to >>> avoid >>> this error: >>> http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html >>> http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html >>> >>> -- >>> Regards, Milan. >>> >>> >>> >>> >>> Gabriel Belingueres-2 wrote: >>>> >>>> I'm using S2.1.2 (are you using the same version?), and it will throw >>>> a NumberFormatException when setting an empty string, but this >>>> workaround will make ParameterInterceptor to think it is setting a >>>> String parameter: >>>> >>>> public void setValue(String s) { >>>> if (!StringUtils.isBlank(s)) { >>>> try { >>>> this.value= new BigDecimal(s); >>>> catch(NumberFormatException e) { >>>> this.value = null; >>>> } >>>> } >>>> } >>>> >>>> of course you still need a validator so that the string doesn't >>>> violate the BigDecimal grammar. >>>> >>>> Other option (may be more clean) is the action having both the string >>>> instance and the real BigDecimal instance, then the form will only set >>>> the string instance. >>>> >>>> 2008/7/24 Milan Milanovic <[EMAIL PROTECTED]>: >>>>> >>>>> Dear Newton, >>>>> >>>>> Yes, I'm using BigDecimal type converter given here: >>>>> http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html >>>>> http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html >>>>> . >>>>> >>>>> -- >>>>> Thx, Milan >>>>> >>>>> >>>>> newton.dave wrote: >>>>>> >>>>>> Are you using a BigDecimal type converter (one of which was just >>>>>> posted)? >>>>>> >>>>>> AFAIK it won't work w/o the converter, but I could be remembering >>>>>> incorrectly. >>>>>> >>>>>> Dave >>>>>> >>>>>> --- On Thu, 7/24/08, Milan Milanovic <[EMAIL PROTECTED]> >>>>>> wrote: >>>>>> >>>>>>> From: Milan Milanovic <[EMAIL PROTECTED]> >>>>>>> Subject: Re: [s2] Making textfield input optional >>>>>>> To: user@struts.apache.org >>>>>>> Date: Thursday, July 24, 2008, 11:36 AM >>>>>>> Dear Gabriel, >>
RE: [s2] Making textfield input optional
Hey if you are using int, float, or double instead of them use Wrapper Classes id Integer, Float, Double former does not allow null value while later does allow. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Milan Milanovic [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2008 7:47 PM To: user@struts.apache.org Subject: [s2] Making textfield input optional Hi, I have one form with multiple textfields, and I want to one of that textfield be optional for user, i.e., he doesn't need to enter information in that particular field. Now, when user don't enter I get this in my log: ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'inValue' on 'class com.myProject.action.ViewAction: Error setting expression 'inValue' with value '[Ljava.lang.String;@1d3ac6e' How can I enable this but without getting this error ? -- Thx, Milan -- View this message in context: http://www.nabble.com/-s2--Making-textfield-input-optional-tp18632806p18 632806.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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What is the best way to handle cancel, Update, Back Buttons in Struts2
Did you try mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2008 3:54 AM To: user@struts.apache.org Subject: What is the best way to handle cancel, Update, Back Buttons in Struts2 Hello Everyone I know this might be very easy for you guys but it is being difficult for me.:working: I am developing an updateUser.jsp page and it has three buttons those are: Update, Cancel, Back Now if I press update it should invoke the updateUser action mapping also I need to do the validation first before I do something else. If Cancel is pressed the previous values which was already there in the field should be displayed and when I press Back button it should not do anything just go to my userList page. So I am not able to understand how should I handle the struts.xml and the jsp code. I know I can use built in validator framework and by defining the validation.xml file for those fields but whenever I cancel or go Back the error message appears in the page so I don't know how should I handle this thing. Please tell me the best way from your experience how should I handle this kind of situation. Thanks for the help in advance! -- View this message in context: http://www.nabble.com/What-is-the-best-way-to-handle-cancel%2C-Update%2C -Back-Buttons-in-Struts2-tp18621308p18621308.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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem accessing iterated object (
I don't think the var will work always, ie I am using struts 2.0.6 The webworl.tld does not contain the var. I expect lawDraft.docs contains a title then Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Jim Kiley [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 9:26 PM To: Struts Users Mailing List Subject: Re: Problem accessing iterated object ( wrote: > > Plsease, see my code: > > > > > value="downloadLawDraftDocument.action" > namespace="/admin" > > > value="#document.title" /> > > value="#document.title"/> > > >delete document " onclick=""/> > > > > > > previous action has method getLawdraft(); > LawDraft has method getDocs(); > getDocs() returns a List > List consists of Document objects, the have methods getLawDraft().getId() > and others. > Iterator repeat 5 times (correct), but output doesn't have values (they > are! > previous action prints them using logger) > > Please, see the output: > > > > > > >delete document src="/CLIAccess/images/admin/delete.gif" onclick=""/> > > > > *Sorry for -- > View this message in context: > http://www.nabble.com/Problem-accessing-iterated-object-%28%3Cs%3Aiterat or%29-tp18614028p18614028.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jim Kiley Technical Consultant | Summa [p] 412.258.3346 [m] 412.445.1729 http://www.summa-tech.com Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [s2] Formatting input textfields
I don't know about that, I don't know about any input field that can change based on locale, it just pure text field, it does not know that it has to takes an internationalized number. If this thing looks complicated, I don't know, may be you can try writing your own custom tag. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Milan Milanovic [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 7:14 PM To: user@struts.apache.org Subject: RE: [s2] Formatting input textfields Thank you Jishnu. This looks like complicated solution to me, could I just change locale for that jsp or textfield ? -- Thx, Milan Jishnu Viswanath wrote: > > AJAX validation is done through js, before that we can have our own > client side validation. > Since your's is an easy client side validation we can do something like > this. > > If its not something you wanted mail back. > > cssStyle="width:100%;"/> > > > function roundOf(/*id Of the widget*/someId) { > var inputValue = document.getElementById(someId).value; > //TODO: I am putting basic validation only the rest is > upto you > var result = Math.round((inputValue.replace(',', ".")) * > 100) / 100; > document.getElementById(someId).value= > (result+"").replace('.', ","); > > > } > > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Original Message- > From: Milan Milanovic [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2008 3:34 PM > To: user@struts.apache.org > Subject: RE: [s2] Formatting input textfields > > > Hi Jishnu, > > well, I'm not sure what to do with ajax validation on jsp page, because > my > BigDecimal field in my action class wouldn't accept it ? > > I need one another thing, that my number be rounded on exactly two > decimals, > like: 198,19833 to 198,20 ? > > > -- > Thx, Milan > > > Jishnu Viswanath wrote: >> >> http://cwiki.apache.org/WW/ajax-validation.html >> On the validate part, do put Regular expression to make to accept the >> pattern you want. >> >> Regards, >> >> Jishnu Viswanath >> >> Software Engineer >> >> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll >> >> Tavant Technologies Inc., >> >> www.tavant.com >> >> PEOPLE :: PASSION :: EXCELLENCE >> >> >> -Original Message- >> From: Milan Milanovic [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, July 22, 2008 10:32 PM >> To: user@struts.apache.org >> Subject: [s2] Formatting input textfields >> >> >> Hi, >> >> I need to format input in textfields that user can enter value like >> this: >> 204,05, but now it is like this 204.05. >> I have defined this formatting for output already. How can I change > this >> ? >> >> -- >> Thx, Milan >> -- >> View this message in context: >> > http://www.nabble.com/-s2--Formatting-input-textfields-tp18593985p185939 >> 85.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] >> >> Any comments or statements made in this email are not necessarily > those of >> Tavant Technologies. >> The information transmitted is intended only for the person or entity > to >> which it is addressed and may >> contain confidential and/or privileged material. If you have received > this >> in error, please contact the >> sender and delete the material from any computer. All e-mails sent > from or >> to Tavant Technologies >> may be subject to our monitoring procedures. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/-s2--Formatting-input-textfields-tp18593985p186074 > 97.html > Se
RE: [s2] Formatting input textfields
AJAX validation is done through js, before that we can have our own client side validation. Since your's is an easy client side validation we can do something like this. If its not something you wanted mail back. function roundOf(/*id Of the widget*/someId) { var inputValue = document.getElementById(someId).value; //TODO: I am putting basic validation only the rest is upto you var result = Math.round((inputValue.replace(',', ".")) * 100) / 100; document.getElementById(someId).value= (result+"").replace('.', ","); } Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Milan Milanovic [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 3:34 PM To: user@struts.apache.org Subject: RE: [s2] Formatting input textfields Hi Jishnu, well, I'm not sure what to do with ajax validation on jsp page, because my BigDecimal field in my action class wouldn't accept it ? I need one another thing, that my number be rounded on exactly two decimals, like: 198,19833 to 198,20 ? -- Thx, Milan Jishnu Viswanath wrote: > > http://cwiki.apache.org/WW/ajax-validation.html > On the validate part, do put Regular expression to make to accept the > pattern you want. > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Original Message- > From: Milan Milanovic [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 22, 2008 10:32 PM > To: user@struts.apache.org > Subject: [s2] Formatting input textfields > > > Hi, > > I need to format input in textfields that user can enter value like > this: > 204,05, but now it is like this 204.05. > I have defined this formatting for output already. How can I change this > ? > > -- > Thx, Milan > -- > View this message in context: > http://www.nabble.com/-s2--Formatting-input-textfields-tp18593985p185939 > 85.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] > > Any comments or statements made in this email are not necessarily those of > Tavant Technologies. > The information transmitted is intended only for the person or entity to > which it is addressed and may > contain confidential and/or privileged material. If you have received this > in error, please contact the > sender and delete the material from any computer. All e-mails sent from or > to Tavant Technologies > may be subject to our monitoring procedures. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-s2--Formatting-input-textfields-tp18593985p186074 97.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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [S2] Using ajax to fill selectboxes
Why don't use mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 1:36 PM To: Struts Users Mailing List Subject: [S2] Using ajax to fill selectboxes Hi, are there any hints or examples how I can fill a selectbox with content over ajax-technology? I have some problems to find out, how I can start this. What I have is a page like: -- Project: Select1 Milestone: Select2 -- Select1 is filled by the action. What I want is to fill the Select2 with entries of the selected project in Select1. A solution for adding select options I've found at http://www.texotela.co.uk/code/jquery/select/. The JSONResult comes out of a struts2 action with a JSONResult. But can I use this with a -tag and how I do that? Regards, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dojo javascript errors with ajax theme. please help
http://download.dojotoolkit.org/release-0.4.0/ Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Pranav [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 4:28 AM To: Struts Users Mailing List Subject: Re: Dojo javascript errors with ajax theme. please help Hi Jerome, I tried this but unfortunately their dojo's svn does not have the release 0.4.0 anymore. I could only get the source code for release 0.4.3 from their download section. Do you think that will work? If not, can you tell me the exact svn location from where I can get the release 0.4.0 of dojo? Thanks Pranav - Original Message From: Pranav <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Tuesday, July 22, 2008 8:57:15 AM Subject: Re: Dojo javascript errors with ajax theme. please help Hi Jerome, You're a lifesaver. Thanks for your tips. I will try them out today. I fixed my issue temporarily yesterday by extracting the jar file, and manually creating copies of gregorian.js and gregorianExtras.js etc to appropriate locations and the problem did go away but I will surely put in this permanent fix to improve performance. Thanks - Original Message From: Jeromy Evans <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Tuesday, July 22, 2008 5:38:55 AM Subject: Re: Dojo javascript errors with ajax theme. please help Pranav wrote: > Hi, > > I am using in my jsp files. I have included everything as per struts2 docs. But when I launch the page in FireFox, they show me 404 errors for several javascript files. > Example are: > ../struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js > ../struts/dojo/src/i18n/calendar/nls/en/gregorianExtras.js > ../struts/dojo/src/i18n/calendar/nls/en-us/gregorianExtras.js > ../struts/dojo/src/widget/nls/en/TimePicker.js > ../struts/dojo/src/widget/nls/en-us/TimePicker.js > ../mcpages/struts/dojo/src/widget/nls/en/DropdownTimePicker.js > ../struts/dojo/src/widget/nls/en-us/DropdownTimePicker.js > > When I opened the struts2-core-2.0.11.jar file that my project is using, I did not find these files at all. I am not using any of these components like date-time picker or calendar objects but for some reason dojo plugin tries to GET these files. This gives a lot of problem in our pre-prod system where firewalls and proxies are installed. Can someone please help me get rid of these errors? What will I have to do? I will really appreciate help from experts. > > Thanks > Pranav > > > In Struts 2.0.x, the files are bundled in the jar under org/apache/struts/static or somewhere nearby. The are served by the struts filter only if the filter path enables it (eg. /*) and if the property struts.serve.static=true (default true). In a production system, it's a very good idea to extract the files and serve them directly from Apache or your container as there'll be a significant performance improvement (very significant if apache serves them). I'm not sure why it would be loading the timepicker and date picker if you're not using them - check the html to see why there's a Requires statement. In a production system, a good idea to create a custom dojo profile (in this case, for example, to remove locale files). It makes a massive performance improvement by reducing the large number of GETs. http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts -20x.html Hope that helps. Jeromy Evans - 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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [s2] Formatting input textfields
http://cwiki.apache.org/WW/ajax-validation.html On the validate part, do put Regular expression to make to accept the pattern you want. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Milan Milanovic [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 10:32 PM To: user@struts.apache.org Subject: [s2] Formatting input textfields Hi, I need to format input in textfields that user can enter value like this: 204,05, but now it is like this 204.05. I have defined this formatting for output already. How can I change this ? -- Thx, Milan -- View this message in context: http://www.nabble.com/-s2--Formatting-input-textfields-tp18593985p185939 85.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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: disabling textfield....problem
If you still want to send the data, make it read only Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: ManiKanta G [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 2:42 PM To: Struts Users Mailing List Subject: Re: disabling textfieldproblem According to html, browser will not send the disabled fields to the server along with the request headers. So you've to send that value in the form of a hidden value. Regards, ManiKanta Narayana S wrote: > Hi, > > i have a text field, with disabled property set to TRUE, and when i > coming back to the same page with some error messages for the other fields, > it is missing the textfield value, it is not retaining like the non-disabled > fields > > where i am missing? > > plz help me.. > > ** DISCLAIMER ** Information contained and transmitted by this E-MAIL is proprietary to Sify Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ExecAndWait (navigating back to the progress page)
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. 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. Even ajax won't work fine if your //long task takes more than request time out. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Chase [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2008 6:01 AM To: Struts Users Mailing List Subject: 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. 500 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] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts2: display int in JSP
Its not because of struts, int can not contain null, so nearest possible brother is 0 so they put 0. Ok, if you still want to use int, then put getter setter as String and parse the input and output to integer and string. int age = -1; public String getAge(){ if(age<0) return null; else return ""+age; } public String setAge(String age){ if(age == null) this.age = 0 else this.age = Integer.parseInt(age); } I think this solves your change of data type solves, By the way one lesson I learned from experience was never use int, float, boolean etc instead use Integer Float and Boolean etc. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Phan, Hienthuc T [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2008 4:28 AM To: Struts Users Mailing List Subject: RE: Struts2: display int in JSP That works. Thanks. I'm migrating from Struts 1 & was hoping not have to change the data type. -Original Message- From: Jishnu Viswanath [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2008 2:24 PM To: Struts Users Mailing List Subject: RE: Struts2: display int in JSP Use Integer instead of int Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Phan, Hienthuc T [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2008 2:35 AM To: Struts Users Mailing List Subject: Struts2: display int in JSP Hi, In my action, I have several variables of type int. When the variable is not initialized, it's displayed as 0 in the JSP. I would like un-initialized variable of type int to be display as blank/empty. What is the best way to accomplish this? Thanks. Public class XXAction extends ActionSupport { private int age; private String name = new String("xyz"); private String email; //getters & setters } JSP page would display: Name: xyz Email: Age:0 Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant
RE: Struts2: display int in JSP
Use Integer instead of int Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Phan, Hienthuc T [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2008 2:35 AM To: Struts Users Mailing List Subject: Struts2: display int in JSP Hi, In my action, I have several variables of type int. When the variable is not initialized, it's displayed as 0 in the JSP. I would like un-initialized variable of type int to be display as blank/empty. What is the best way to accomplish this? Thanks. Public class XXAction extends ActionSupport { private int age; private String name = new String("xyz"); private String email; //getters & setters } JSP page would display: Name: xyz Email: Age:0 Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] good logging
That was funny, any way I checked the code. catch (Exception e) { String gripe = ""; if (proxy == null) { gripe = "Whoa! No ActionProxy instance found in current ActionInvocation. This is bad ... very bad"; } else if (proxy.getConfig() == null) { gripe = "Sheesh. Where'd that ActionProxy get to? I can't find it in the current ActionInvocation!?"; } else if (proxy.getConfig().getClassName() == null) { gripe = "No Action defined for '" + proxy.getActionName() + "' in namespace '" + proxy.getNamespace() + "'"; } else { gripe = "Unable to instantiate Action, " + proxy.getConfig().getClassName() + ", defined for '" + proxy.getActionName() + "' in namespace '" + proxy.getNamespace() + "'"; } gripe += (((" -- " + e.getMessage()) != null) ? e.getMessage() : " [no message in exception]"); throw new XWorkException(gripe, e, proxy.getConfig()); } Take the case proxy is null, then this will bomb rite? What is the point of the comparison? throw new XWorkException(gripe, e, proxy.getConfig()); Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 8:43 PM To: Struts Users Mailing List Subject: [OT] good logging Every time I see this code in S2, it makes me laugh so I will share it here (DefaultActionInvocation.java): .. if (proxy == null) { gripe = "Whoa! No ActionProxy instance found in current ActionInvocation. This is bad ... very bad"; } else if (proxy.getConfig() == null) { gripe = "Sheesh. Where'd that ActionProxy get to? I can't find it in the current ActionInvocation!?"; } .. musachy -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re[5]: autocompleter bug in forefox3 but not in ie6
I noticed that but I don't think id is a mandatory field... id is give for users to do manipulation on the widget, other wise it would be mandatory field. Any way did you check what is the value sending to server? I mean the HTTP header? Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Piotr Dzeviarylin [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 7:25 PM To: Struts Users Mailing List Subject: Re[5]: autocompleter bug in forefox3 but not in ie6 I Think I find the bug. See here: We don't have param here, only . And FF I think use getElementBuId() func, which return null if missed id param. IE in such cases use param instead of . But I still don't know how to fix problem. Don't anyone face this challenge? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re[2]: autocompleter bug in forefox3 but not in ie6
Opera does not work with dojo, by the way try in safari can u see what is the generated code, I am using dojo 1, so had re written almost all the ftl's. Dojo uses a hidden field where we store the data. Check if it has given the proper name in generated code. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Piotr Dzeviarylin [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 6:15 PM To: Struts Users Mailing List Subject: Re[2]: autocompleter bug in forefox3 but not in ie6 Yes, dojo in firefox3 works with bugs. Only loading dojo libs requires manually change some firefox defalt parameters and this a big problem for deploying web project with dojo running on ff3. I have firebug installed but it doesn't show any error. autocompleter simply doesn't pass it's values in request after form submitting and those params in action are null, but on the other hand fulfill its functionality perfectly (autocomplete operations). I also test autocompleter in opera 9.5 and the tag doesn't work either. The only browser that understand autocompleter is ie6. > I am not sure... Struts in turn uses dojo for its Ajax (it was .4) there > are lot of issues with dojo and ff3. I am not sure because of this it's > failing. > Can you tell me what exactly it's the error, if you have firebug > installed, tell is there any request in red? > Regards, > Jishnu Viswanath > Software Engineer > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > Tavant Technologies Inc., > www.tavant.com > PEOPLE :: PASSION :: EXCELLENCE > -Original Message- > From: Piotr Dzeviarylin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 16, 2008 5:19 PM > To: Struts Users Mailing List > Subject: autocompleter bug in forefox3 but not in ie6 > In the html form I have this tag: > name="name" keyName="nameKey" /> > It works fine but doesn't pass values to action and > properties. I test it in ie6 and everything is alright. > Does anybody knows the problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: autocompleter bug in forefox3 but not in ie6
I am not sure... Struts in turn uses dojo for its Ajax (it was .4) there are lot of issues with dojo and ff3. I am not sure because of this it's failing. Can you tell me what exactly it's the error, if you have firebug installed, tell is there any request in red? Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Piotr Dzeviarylin [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 5:19 PM To: Struts Users Mailing List Subject: autocompleter bug in forefox3 but not in ie6 In the html form I have this tag: It works fine but doesn't pass values to action and properties. I test it in ie6 and everything is alright. Does anybody knows the problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts menu problem
Can you put the code some where, if you are using IE 6, it has a known problem with z-index attribute. Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 1:58 PM To: Struts Users Mailing List Subject: Re: struts menu problem 2008/7/14 nauke. <[EMAIL PROTECTED]>: > Hi! > > I'm using struts version 2.0.11. > I am using struts menu, which works provided it is not on top of a table ... > Please see screenshot of issue here: > http://mytmpdir.googlepages.com/menu.jpg > > No idea how I can fix this! > Does anyone? Probably you have to ask the Struts menu maintainers: http://struts-menu.sourceforge.net/mail-lists.html Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
messages_(locale).properties
Hi all, Can any one tell me where do I specify that I want to use messages_en.properties or messages_de.properties? By the way I am using struts 2. And one more thing, does browser any intention that it's DE or EN? Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 2 Indexed Properties
Re you using struts 2 itself? If yes it would look something like this The code you send looks like struts 1 Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: YAQ [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2008 4:05 PM To: user@struts.apache.org Subject: Struts 2 Indexed Properties Hi, I'm having problem with Struts2 and indexed properties. The list in my action is not being updated. My JSP is something like: ].key" name="questionnaireInputVO.coverTypesList[].key" value="" /> ].agreementType.key" name="questionnaireInputVO.coverTypesList[].agreementType.key" value="" /> I've discovered I need an entry in the x-work conversion properties: Element_questionnaireInputVO.coverTypesList=com.mypath.CoverTypeVO CreateIfNull_questionnaireInputVO.coverTypesList=true But I am getting the following error: [2008-07-14 12:13:07,860] [.Transports : 2] DEBUG [com.opensymphony.xwork2.util.InstantiatingNullHandler ] : Entering nullPropertyValue [EMAIL PROTECTED], property=coverTypesList] [2008-07-14 12:13:07,860] [.Transports : 2] ERROR [com.opensymphony.xwork2.util.InstantiatingNullHandler ] : Could not create and/or set value back on to object org.springframework.beans.factory.BeanCreationException: Error creating bean with name '[Lcom.mypath.CoverTypeVO;': Could not resolve matching constructor at org.springframework.beans.factory.support.ConstructorResolver.autowireCo nstructor(ConstructorResolver.java:178) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac tory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:799) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac tory.autowire(AbstractAutowireCapableBeanFactory.java:255) at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjec tFactory.java:145) at com.opensymphony.xwork2.util.InstantiatingNullHandler.createObject(Insta ntiatingNullHandler.java:123) at com.opensymphony.xwork2.util.InstantiatingNullHandler.nullPropertyValue( InstantiatingNullHandler.java:104) at ognl.ASTProperty.getValueBody(ASTProperty.java:94) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.ASTChain.setValueBody(ASTChain.java:168) at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177) at ognl.SimpleNode.setValue(SimpleNode.java:246) at ognl.Ognl.setValue(Ognl.java:476) at com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186) at com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java :158) at com.opensymphony.xwork2.util.OgnlValueStack.setValue(OgnlValueStack.java :146) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters( ParametersInterceptor.java:193) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Pa rametersInterceptor.java:159) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Me thodFilterInterceptor.java:86) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct ionInvocation.java:224) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct ionInvocation.java:223) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS tack.java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo cation.java:221) at com.ing.itrf.starlite.common.interceptor.StarliteSecurityInterceptor.int ercept(StarliteSecurityInterceptor.java:54) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct ionInvocation.java:224) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct ionInvocation.java:223) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS tack.java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo cation.java:221) at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(Servle tConfigInterceptor.java:170) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct ionInvocation.java:224) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultAct ionInvocation.java:223) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerS tack.java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo cation.java:221) at
RE: Customizing CSS
I don't have much idea, but you can give it a try on Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Narayana S [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2008 1:47 PM To: Struts Users Mailing List Subject: Re: Customizing CSS Hi Jishnu, Thanks for your reply, it applies background color to the text field, but i want it to be applied to that entire row(that have label employee id and text field), not to the text field component alone. On Mon, Jul 14, 2008 at 12:19 PM, Jishnu Viswanath < [EMAIL PROTECTED]> wrote: > > > > > .class1{ >background-color:red; > } > .class2{ >background-color:blue; > } > > Sorry I have not seen your earlier mail, what ever you want to do using > class > > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > -Original Message- > From: Narayana S [mailto:[EMAIL PROTECTED] > Sent: Monday, July 14, 2008 11:40 AM > To: Struts Users Mailing List > Subject: Re: Customizing CSS > > Hi, > > Thanks for your reply, but i am talking about UI screen, not a > table display. in the screen itself for every control i want to apply an > alternate back ground color. for example > > > > > these two should come with two different background colors. > > On Thu, Jul 10, 2008 at 3:18 PM, Narayana S <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > > as per my requirement, i have to apply two different colors to > > alternate rows.can any one guide me how to extend theme to implement > this? > > > Any comments or statements made in this email are not necessarily those of > Tavant Technologies. > The information transmitted is intended only for the person or entity to > which it is addressed and may > contain confidential and/or privileged material. If you have received this > in error, please contact the > sender and delete the material from any computer. All e-mails sent from or > to Tavant Technologies > may be subject to our monitoring procedures. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Customizing CSS
.class1{ background-color:red; } .class2{ background-color:blue; } Sorry I have not seen your earlier mail, what ever you want to do using class Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Narayana S [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2008 11:40 AM To: Struts Users Mailing List Subject: Re: Customizing CSS Hi, Thanks for your reply, but i am talking about UI screen, not a table display. in the screen itself for every control i want to apply an alternate back ground color. for example these two should come with two different background colors. On Thu, Jul 10, 2008 at 3:18 PM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > > as per my requirement, i have to apply two different colors to > alternate rows.can any one guide me how to extend theme to implement this? > Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: question about submitting checkboxes
Eric, If you are using struts 2, Eric have u tried s:checkboxList ?? Syntax: If its just a Boolean object ignore the key value :D Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Sunday, July 13, 2008 1:38 PM To: Struts Users Mailing List Subject: Re: question about submitting checkboxes Eric Hamacher wrote: > Hello: > > > > I have a form on which there can, in theory, be an infinite number of > checkboxes (Users are selecting files from a tree and there is no > telling how many will be selected). The name of each checkbox is > determined at runtime (= to the path of the file). That being the case, > how can I set up an action to read these parameters? Or do it need to > go back to the servlet API? > > If you're using Struts 2, don't name your checkboxes like that. Create an array or list property in your action and include the index in each checkbox name: List filenames = new LinkedList(); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts Text & Property together(s:text and s:property
Hi all, I would like to achieve something like this /> I know this code is not going to work; in short the name that should come is inside a property, Eg:- someProperty = "my.text.label" gives me my.text.label give me the value I wanted. But how can I get both at same time? Any one has any idea? PS: I am using struts 2 :) Regards, Jishnu Viswanath Any comments or statements made in this email are not necessarily those of Tavant Technologies. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]