Re: AJAX in Struts
Hi, I also faced the same problem for a simple AJAX Call. In case of Ajax request you should return null from your Action execute() code; Animesh On 9/11/07, aarthy <[EMAIL PROTECTED]> wrote: > > > HI, > I am newbie to AJAX.I tried to run a sample code from the below link > > http://struts.javabeat.net/articles/2007/06/ajax-support-in-struts-2-0/2 > http://struts.javabeat.net/articles/2007/06/ajax-support-in-struts-2-0/2 > > I'm getting this error message. > Stacktrace: > > org.apache.jasper.servlet.JspServletWrapper.handleJspException( > JspServletWrapper.java:467) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java > :371) > org.apache.jasper.servlet.JspServlet.serviceJspFile( > JspServlet.java:315) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > root cause > > javax.servlet.ServletException: Cannot retrieve definition for form bean > null on action ShowCharacters.do > > org.apache.jasper.runtime.PageContextImpl.doHandlePageException( > PageContextImpl.java:846) > > org.apache.jasper.runtime.PageContextImpl.handlePageException( > PageContextImpl.java:779) > org.apache.jsp.WEB_002dINF.jsp.tvshow_jsp._jspService > (tvshow_jsp.java:102) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java > :328) > org.apache.jasper.servlet.JspServlet.serviceJspFile( > JspServlet.java:315) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > root cause > > javax.servlet.jsp.JspException: Cannot retrieve definition for form bean > null on action ShowCharacters.do > org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:761) > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443) > > org.apache.jsp.WEB_002dINF.jsp.tvshow_jsp._jspx_meth_html_005fform_005f0 > (tvshow_jsp.java:118) > org.apache.jsp.WEB_002dINF.jsp.tvshow_jsp._jspService > (tvshow_jsp.java:95) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java > :328) > org.apache.jasper.servlet.JspServlet.serviceJspFile( > JspServlet.java:315) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > Please help. > > Thanks, > Aarthy > -- > View this message in context: > http://www.nabble.com/AJAX-in-Struts-tf4420598.html#a12608944 > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Animesh Saxena http://inlovewithlinux.blogspot.com http://ihateaspdotnet.blogspot.com
AJAX in Struts
HI, I am newbie to AJAX.I tried to run a smaple code from the below link http://struts.javabeat.net/articles/2007/06/ajax-support-in-struts-2-0/2 http://struts.javabeat.net/articles/2007/06/ajax-support-in-struts-2-0/2 I'm getting this error message. Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:467) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) root cause javax.servlet.ServletException: Cannot retrieve definition for form bean null on action ShowCharacters.do org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779) org.apache.jsp.WEB_002dINF.jsp.tvshow_jsp._jspService(tvshow_jsp.java:102) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) root cause javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null on action ShowCharacters.do org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:761) org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443) org.apache.jsp.WEB_002dINF.jsp.tvshow_jsp._jspx_meth_html_005fform_005f0(tvshow_jsp.java:118) org.apache.jsp.WEB_002dINF.jsp.tvshow_jsp._jspService(tvshow_jsp.java:95) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) Please help. Thanks, Aarthy -- View this message in context: http://www.nabble.com/AJAX-in-Struts-tf4420598.html#a12608944 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ObjectFactory.buildResult not correctly configuring Result instance properties
This is a bug and will definitely be fixed for 2.1, although I think we should do something for 2.0.11. Patches are always welcome... :) Don On 9/11/07, Aaron Brown <[EMAIL PROTECTED]> wrote: > Hi, I think I have stumbled across a bug in the ObjectFactory. Has > anyone else noticed the following behavior? > > ObjectFactory.buildResult() invokes OgnlUtil.setProperties() to populate > a Result instance with a parameter map. In addition, the call to > OgnlUtil.setProperties forces exceptions to be thrown when necessary. If > an exception is thrown, it is caught by the ObjectFactory and logged > with a level of DEBUG. Further, in the ObjectFactory.buildResult() > method the following comment appears: "ognl exceptions could be thrown > and be ok if, for example, the result uses parameters in ways other than > as properties for the result object." > > However, throwing exceptions is not ok. The Ognl.setProperties method > will stop execution if an exception is thrown. As such, it is possible > that not all properties specified in the ResultConfig parameter map will > be set on the Result instance. > > For example, I am trying to set a property on a JSONResult class. > However, the ResultConfig parameter map has a 'location' property in > addition to the property in my Result action annotation. This property > is the first thing that is set, yet an error is thrown. The rest of the > properties in the map are ignored and the Result class is incorrectly > configured. > > If all you want to do is log an erroneous attempt to set a property, why > are you throwing exceptions? The OgnlUtil.internalSetProperty class will > do that for you if it told not to throw exceptions. > > Thanks, > Aaron brown > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] using the AJAX theme
I've been trying out ajax with s2 and I like how the ajax theme and the s2 tags allow me to do more with less code. Usually the 2 column table layout works for most of my needs but there are some forms that I rather not have the additional code (like a form with one field and I want the submit button beside that field) so I either use the simple theme or just produce the html code. But some of my submit buttons use the ajax theme and produce some html code since, based on what i read, is based on the xhtml theme. Is there a simple ajax theme? where it produces the neccessary ajax code but not the html tags? I take it I either have to make the html tags for my ajax buttons or just use css to force my style. I'm just curious what others have done. I was hoping to get the best of both worlds with using the tags for less code and have an elegant way of arranging things. Thanks & regards! -- View this message in context: http://www.nabble.com/-S2--using-the-AJAX-theme-tf4420235.html#a12607918 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSONInterceptor doesn't support Long/Short/Double... type.
ok,i will try it. another suggestions:about the dateformat,now it was implemented by add json annotation to the write method of the property of date type.If no json annotation defined,it use JSONUtil.RFC3339_FORMAT. I thought it's great if the default format could be defined via configuration files. there are always some people who prefer configuration file. On 9/10/07, James Holmes <[EMAIL PROTECTED]> wrote: > > If you feel these should be supported, you can open a JIRA ticket for the > issue. > The ticket will be more likely to get attention if you supply a patch to > implement the desired behavior. > > https://issues.apache.org/struts/browse/WW > > James > > > On Mon Sep 10 6:00 , joey <[EMAIL PROTECTED]> sent: > > >if My entity class has a property of type in (Long/Short/Double...),I get > a > > > >Exception > > > >JSONExeption Incompatible types for property xxx. > > > >After read the code of JSONInterceptor ,I found it doesn't support these > > > >types which > > > >confused me. > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
ObjectFactory.buildResult not correctly configuring Result instance properties
Hi, I think I have stumbled across a bug in the ObjectFactory. Has anyone else noticed the following behavior? ObjectFactory.buildResult() invokes OgnlUtil.setProperties() to populate a Result instance with a parameter map. In addition, the call to OgnlUtil.setProperties forces exceptions to be thrown when necessary. If an exception is thrown, it is caught by the ObjectFactory and logged with a level of DEBUG. Further, in the ObjectFactory.buildResult() method the following comment appears: "ognl exceptions could be thrown and be ok if, for example, the result uses parameters in ways other than as properties for the result object." However, throwing exceptions is not ok. The Ognl.setProperties method will stop execution if an exception is thrown. As such, it is possible that not all properties specified in the ResultConfig parameter map will be set on the Result instance. For example, I am trying to set a property on a JSONResult class. However, the ResultConfig parameter map has a 'location' property in addition to the property in my Result action annotation. This property is the first thing that is set, yet an error is thrown. The rest of the properties in the map are ignored and the Result class is incorrectly configured. If all you want to do is log an erroneous attempt to set a property, why are you throwing exceptions? The OgnlUtil.internalSetProperty class will do that for you if it told not to throw exceptions. Thanks, Aaron brown - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to forward to a page out of .war file
Hi, The present application structure has multiple .war files in a .ear file. Now my login module is part of 1.war and on a successful validation i want to forward in struts-config.xml to a page in 2.war file. How do i achieve this? Thank you
Re: struts 2 and Windows Vista
Красафчег, нажми на тормоза! --- Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > Do you have like anti virus software installed that > might be blocking some > FUNKY behaviour that it sees. Just an idea. > > On 9/10/07, Leena Borle <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I have this strange problem. I have struts2 web > application running on > > my > > tomcat/linux very well. Recently I moved Tomcat > server on my Windows Vista > > laptop and when I try to execute any S2 action > using this tomcat, Firefox > > browser throws error saying, > > "Firefox has detected that the server is > redirecting the request for > > this > > address in a way that will never complete." On > Internet Explorer, > > application hangs up. > > Did anyone come across this situation before? I > have Validation.xmls and > > actions for my forms. I can see nput.action on the > browser URL bar, but > > looks like validation framework hangs up after > that. > > I will greatly appreciate any help. > > Thanks, > > Leena > > > > > > -- > Pavel Sapozhnikov > xFact, Inc > [EMAIL PROTECTED] > Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Attribute var invalid for tag bean according to TLD
There is no "var" attribute on 2.0.9 as it is a new in 2.1. Right now the online documentation has a mix of 2.1 and 2.0. Try "name" instead. (The documentation for 2.0.9 can be downloaded with the jars) musachy On 9/10/07, Emi Lu <[EMAIL PROTECTED]> wrote: > Hello, > > Musachy Barroso wrote: > > what version did you download? > > > > I downloaded "Example Applications- struts-2.0.9-apps.zip (22mb)". I > extracted the lib, and followed the online tutorial page about beans. > > I opened struts2-core-2.09.jar, and in "META-INF/struts-tags.tld" file: > > > bean > org.apache.struts2.views.jsp.BeanTag > JSP > > >id >false >true > > > >name >true >true > > > > > > I did not see "var" section? Shouldn't the attribute in > this file? > > If not, would you tell me which jar file I should import into my project? > > Thanks a lot! > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "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]
RE: Dojo refresh in firefox2.0 on Ubuntu
Hi, Kevin, Try adding a timestamp parameter to the URL. It might be a caching problem in the browser. - George George Dinwiddie, iDIA Computing, LLC http://iDIAcomputing.com/ http://blog.gdinwiddie.com/ -Original Message- From: Kevin Lawrence [mailto:[EMAIL PROTECTED] Sent: Thursday, September 06, 2007 1:26 PM To: user@struts.apache.org Subject: Dojo refresh in firefox2.0 on Ubuntu Hi, I have an ajax div that I use to poll for the status of some asynchronous jobs: This works for me in every OS/browser combination except firefox on linux. I can see from my access log that it is not even making the request. Help, anyone? If you want to try it: The page is http://www.junitfactory.com/demo/ When you click the 'Generate a Test' button, the sidebar is supposed to poll for your job status. It doesn't :-( Before switching to struts2, I had some hand-rolled javascript that worked OK. -- Kevin http://www.junitfactory.com You send us code. We send you tests. For free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts 2 and Windows Vista
Do you have like anti virus software installed that might be blocking some FUNKY behaviour that it sees. Just an idea. On 9/10/07, Leena Borle <[EMAIL PROTECTED]> wrote: > > Hi, > I have this strange problem. I have struts2 web application running on > my > tomcat/linux very well. Recently I moved Tomcat server on my Windows Vista > laptop and when I try to execute any S2 action using this tomcat, Firefox > browser throws error saying, > "Firefox has detected that the server is redirecting the request for > this > address in a way that will never complete." On Internet Explorer, > application hangs up. > Did anyone come across this situation before? I have Validation.xmls and > actions for my forms. I can see nput.action on the browser URL bar, but > looks like validation framework hangs up after that. > I will greatly appreciate any help. > Thanks, > Leena > -- Pavel Sapozhnikov xFact, Inc [EMAIL PROTECTED]
Re: DynaValidatorform -->
Possibly because there's no "input" attribute, so it's bombing since it doesn't know what the input forward for the form is? d. --- john lee <[EMAIL PROTECTED]> wrote: > i have an DynaValidatorForm as following: > > inside struts-config.xml > > > type"java.lang.String[] "/> > > >type="PartUpdateAction" >name="qtyform" >validate="true" >scope="session" > > path="/cart.jsp"> > > > > inside validation.xml > > > depends="required,integer"> > > > > > inside test.jsp > > > > > > But, the execution give me the following error > message after i leave the Qty field is blank. > > unhandled exception: > java.lang.illegralArgumentException: the path of > ForwardConfig can not be null: > > Any expert know what cause this? > > tks in advance > >john > > > > - > Looking for a deal? Find great prices on flights and > hotels with Yahoo! FareChase. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts 2 and Windows Vista
Hi, I have this strange problem. I have struts2 web application running on my tomcat/linux very well. Recently I moved Tomcat server on my Windows Vista laptop and when I try to execute any S2 action using this tomcat, Firefox browser throws error saying, "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." On Internet Explorer, application hangs up. Did anyone come across this situation before? I have Validation.xmls and actions for my forms. I can see nput.action on the browser URL bar, but looks like validation framework hangs up after that. I will greatly appreciate any help. Thanks, Leena
DynaValidatorform -->
i have an DynaValidatorForm as following: inside struts-config.xml inside validation.xml inside test.jsp But, the execution give me the following error message after i leave the Qty field is blank. unhandled exception: java.lang.illegralArgumentException: the path of ForwardConfig can not be null: Any expert know what cause this? tks in advance john - Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
Re: Attribute var invalid for tag bean according to TLD
Hello, Musachy Barroso wrote: what version did you download? I downloaded "Example Applications- struts-2.0.9-apps.zip (22mb)". I extracted the lib, and followed the online tutorial page about beans. I opened struts2-core-2.09.jar, and in "META-INF/struts-tags.tld" file: bean org.apache.struts2.views.jsp.BeanTag JSP id false true name true true I did not see "var" section? Shouldn't the attribute in this file? If not, would you tell me which jar file I should import into my project? Thanks a lot! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Attribute var invalid for tag bean according to TLD
what version did you download? musachy On 9/10/07, Emi Lu <[EMAIL PROTECTED]> wrote: > Hello, > > I downloaded and installed struts2. However, when I tried the bean tag > example: > > <-- in jsp form --> > var="counter"> > >The value of foot is : , when inside the > bean tag > > > I got the following exceptions, could someone enlighten me how to setup > the correct TLD please? > > > org.apache.jasper.JasperException: /test.jsp(29,0) Attribute var invalid > for tag bean according to TLD > > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) > org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) > org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236) > org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:986) > org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:706) > org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442) > org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164) > org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2214) > org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:726) > org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442) > org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164) > org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2214) > org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2220) > org.apache.jasper.compiler.Node$Root.accept(Node.java:457) > org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164) > org.apache.jasper.compiler.Validator.validate(Validator.java:1484) > org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:296) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:277) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:265) > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) > note The full stack trace of the root cause is available in the Apache > Tomcat/5.5.23 logs. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "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]
params.excludeParams vs. Parameter Filter Interceptor?
I found an undocumented com.opensymphony.xwork2.interceptor.ParametersInterceptor parameter (excludeParams) that appears to do the same as com.opensymphony.xwork2.interceptor.ParameterFilterInterceptor. The later actually works on full property names vs. the regular expressions that filter out unwanted properties. Is there a recommended usage of one vs. the other? Is the excludeParams undocumented because it's going away/experimental or just and oversight? Thanks, Jon
RE: How to get exception in action class for error page?
I am trying to get the exception in action class also. I have previous defined an error page that displays the error and have user type in more information and click a button to email to support. That works fine. But we also need to log exceptions. So I tried to change the handler from a jsp page to an action. I have not got the error action to work. It seems like the exception wrapper is no longer in the stack once the action is invoked. -Original Message- From: Matt Filion [mailto:[EMAIL PROTECTED] Sent: Monday, September 10, 2007 1:37 PM To: Struts Users Mailing List Cc: 'Struts Users Mailing List' Subject: Re: How to get exception in action class for error page? If your just going for exception information you can direct to a JSP page and use the Struts tags and look directly at the attributes defined o the Exception implementation. etc.. Matt Filion [EMAIL PROTECTED] This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. "Neil Aggarwal" <[EMAIL PROTECTED]> 09/10/2007 07:46 AM Please respond to "Struts Users Mailing List" To "'Struts Users Mailing List'" cc Subject How to get exception in action class for error page? Hello: I declared an application error page in my web.xml: java.lang.Throwable /error.action I have this declaration in my struts.xml: error In my page.Error class, I am trying to get the exception that was thrown: public class Error extends ActionSupport { public String execute() { PageContext pageContext = ServletActionContext.getPageContext(); if( pageContext != null ) { Exception exception = pageContext.getException(); if( exception != null ) { Logger.getLogger(getClass()).error(exception); } } else { Logger.getLogger(getClass()).debug("Page context is null"); } return SUCCESS; } } But, when the action executes, the pageContext is always null. What can I do to get the exception that was thrown? Thanks, Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. - 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]
Attribute var invalid for tag bean according to TLD
Hello, I downloaded and installed struts2. However, when I tried the bean tag example: <-- in jsp form --> var="counter"> The value of foot is : , when inside the bean tag I got the following exceptions, could someone enlighten me how to setup the correct TLD please? org.apache.jasper.JasperException: /test.jsp(29,0) Attribute var invalid for tag bean according to TLD org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236) org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:986) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:706) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2214) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:726) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2214) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2220) org.apache.jasper.compiler.Node$Root.accept(Node.java:457) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164) org.apache.jasper.compiler.Validator.validate(Validator.java:1484) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167) org.apache.jasper.compiler.Compiler.compile(Compiler.java:296) org.apache.jasper.compiler.Compiler.compile(Compiler.java:277) org.apache.jasper.compiler.Compiler.compile(Compiler.java:265) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
S2: ReferenceError: validateForm_
Hey, I'm trying to configure my framework S2 for validation but when I tried to validate I get this msg: ReferenceError: validateForm_[formId] is not defined My form is: Manuel Correa.
user@struts.apache.org
Is there a use case where a duplicate form submission would be allowed? If not, why is it necessary to "remember" to connect all the dots to prevent a duplicate form submit? I think I would have been able to get over connecting the plumbing myself if not for the newfound interceptor trouble. It seems you need to apply the tokenSession interceptor to individual action mappings or else you will get an error on those mappings with pages that did not contain a form/token. I *must* be missing something here! 12:57:26,617 WARN org.apache.struts2.util.TokenHelper.getTokenName:124 - Could not find token name in params. 12:57:26,627 WARN org.apache.struts2.util.TokenHelper.getTokenName:124 - Could not find token name in params. 12:57:26,637 WARN org.apache.struts2.util.TokenHelper.getToken:105 - Could not find token mapped to token name null 12:57:26,827 ERROR org.apache.struts2.dispatcher.Dispatcher.serviceAction:512 - Could not find action or result -- View this message in context: http://www.nabble.com/%3Cform%3E%3Ctoken%3E%3Cinterceptor%3E%3Cresult%3E-tf4417290.html#a12599439 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get exception in action class for error page?
If your just going for exception information you can direct to a JSP page and use the Struts tags and look directly at the attributes defined o the Exception implementation. etc.. Matt Filion [EMAIL PROTECTED] This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. "Neil Aggarwal" <[EMAIL PROTECTED]> 09/10/2007 07:46 AM Please respond to "Struts Users Mailing List" To "'Struts Users Mailing List'" cc Subject How to get exception in action class for error page? Hello: I declared an application error page in my web.xml: java.lang.Throwable /error.action I have this declaration in my struts.xml: error In my page.Error class, I am trying to get the exception that was thrown: public class Error extends ActionSupport { public String execute() { PageContext pageContext = ServletActionContext.getPageContext(); if( pageContext != null ) { Exception exception = pageContext.getException(); if( exception != null ) { Logger.getLogger(getClass()).error(exception); } } else { Logger.getLogger(getClass()).debug("Page context is null"); } return SUCCESS; } } But, when the action executes, the pageContext is always null. What can I do to get the exception that was thrown? Thanks, Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pls help: struts 1.x /dynaValidatorForm/String[] type
HI Paul, But, i put initial="20" inside struts-config.xml, when execute, system still give me the error message that is the following: Error creating form bean of class org.apache.struts.action.DynaValidatorForm java.lang.NullPointerException. tks ur help john Paul Benedict <[EMAIL PROTECTED]> wrote: struts-config. see the dtd On 9/10/07, john lee wrote: > > Hi Paul, > > after i add initial="20" into struts-config.xml, execution still > complain about NullPointerException. > > After i add initial="20" into validation.xml, > initial="20" . > when i bounce the server, it complains about: attribute "initial" > must be declared for element type "field". > > any input? > > tks > > john > > > > > You need to allocate array space. For example, add an initial="20" > attribute > to the property. > > On 9/9/07, john lee wrote: > > > > Any expert can give me your hands? > > > > i have an DynaValidatorFrom as following: > > > > inside struts-config.xml > > > > > org.apache.struts.action.DynaValidatorform> > > > > > > > > > > > > > > But, the execution give me the error message for null point exception. > > All the examples i could find is demonstrate how to use > > DynaValidatorform/String, for my case, i want to use > > DynaValidatorform/String[], how can i do it? > > > > tks in advance > > > > john > > > > > > > > > > > > > > - > > Boardwalk for $500? In 2007? Ha! > > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! > > Games. > > > > - > Choose the right car based on your needs. Check out Yahoo! Autos new Car > Finder tool. - Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
Re: pls help: struts 1.x /dynaValidatorForm/String[] type
struts-config. see the dtd On 9/10/07, john lee <[EMAIL PROTECTED]> wrote: > > Hi Paul, > > after i add initial="20" into struts-config.xml, execution still > complain about NullPointerException. > > After i add initial="20" into validation.xml, initial="20" . > when i bounce the server, it complains about: attribute "initial" > must be declared for element type "field". > > any input? > > tks > > john > > > > > You need to allocate array space. For example, add an initial="20" > attribute > to the property. > > On 9/9/07, john lee wrote: > > > > Any expert can give me your hands? > > > > i have an DynaValidatorFrom as following: > > > > inside struts-config.xml > > > > > org.apache.struts.action.DynaValidatorform> > > > > > > > > > > > > > > But, the execution give me the error message for null point exception. > > All the examples i could find is demonstrate how to use > > DynaValidatorform/String, for my case, i want to use > > DynaValidatorform/String[], how can i do it? > > > > tks in advance > > > > john > > > > > > > > > > > > > > - > > Boardwalk for $500? In 2007? Ha! > > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! > > Games. > > > > - > Choose the right car based on your needs. Check out Yahoo! Autos new Car > Finder tool.
Re: s:select static map
Gary, I think your syntax is right - just pasted from your email into my JSP and it works. Let me know if you are able to move the static map to a properties file and get it working from there ; i'm still trying to get the syntax right on that! -Joseph On 9/10/07, GaryD <[EMAIL PROTECTED]> wrote: > > > I am trying to set up a static map using the select tag. I set my the tag > as > explain in the documentation. > > > > But when it tries to render the page I get this error. > > Syntax error in expression. Encountered ":". Expected one of : "}", ".", > "[", ">", "gt", "<", "lt", ">=", "ge", "<=", "le", "==", "eq", "!=", "ne", > "&&", "and", "||", "or", "*", "+", "-", "?", "/", "div", "%", "mod", > > I can get this to work, but I need my keys to be different. >/> > > -- > View this message in context: > http://www.nabble.com/s%3Aselect-static-map-tf4415381.html#a12594727 > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Default tab in tabbedPanel loaded twice
Is that attribute available in any 2.0.x version? On 9/10/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > Use the "preload" attribute. > > musachy > > On 9/10/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote: > > Any help on this? > > > > In a page with 6 tabs, 6 requests are made, and browser get freezed. > > > > autoStart="false" doesn'w work. Is there another way to prevent tab > > preloading? > > > > https://issues.apache.org/struts/browse/WW-2166 > > > > Alvaro. > > > > On 8/19/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote: > > > Here is a screenshot of firebug: > > > > > > http://www.upload-images.net/imagen/7915ac25eb.gif > > > > > > On 8/19/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > I have the following tabbed panel: > > > > > > > > > > > > > > > > > > > > > > > theme="ajax" href="%{my}" cssStyle="margin: 10px 10px 10px 10px;" > > > > listenTopics="/refresh" executeScripts="true" refreshOnShow="true"/> > > > > > > > href="%{new}" cssStyle="margin: 10px 10px 10px 10px;" > > > > refreshOnShow="true"/> > > > > > > > > > > > > > > > theme="ajax" > > > > href="%{current}" cssStyle="margin: 10px 10px 10px 10px;" > > > > executeScripts="true"/> > > > > > > > theme="ajax" href="%{search}" cssStyle="margin: 10px 10px 10px 10px;" > > > > refreshOnShow="true"/> > > > > > > > > > > > autoStart="false" theme="ajax" href="%{admin}" cssStyle="margin: 10px > > > > 10px 10px 10px;"/> > > > > > > > > > > > > > > > > > > > > > > > > ( > > > > > > > When the page first load, all tabs are requested in background, and > > > > the default one (the first, "myTab" or "currentTab" in my case) is > > > > requested another time. > > > > > > > > I have tried with autoStart=false, but it doesn't work. > > > > > > > > What's wrong? > > > > > > > > Alvaro. > > > > > > > > -- > > > > Alvaro Sanchez-Mariscal Arnaiz > > > > Java EE Architect & Instructor > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > -- > > > Alvaro Sanchez-Mariscal Arnaiz > > > Java EE Architect & Instructor > > > [EMAIL PROTECTED] > > > > > > > > > -- > > Alvaro Sanchez-Mariscal Arnaiz > > Java EE Architect & Instructor > > [EMAIL PROTECTED] > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > "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] > > -- Alvaro Sanchez-Mariscal Arnaiz Java EE Architect & Instructor [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pls help: struts 1.x /dynaValidatorForm/String[] type
Hi Paul, after i add initial="20" into struts-config.xml, execution still complain about NullPointerException. After i add initial="20" into validation.xml, > Any expert can give me your hands? > > i have an DynaValidatorFrom as following: > > inside struts-config.xml > > > org.apache.struts.action.DynaValidatorform> > > > > > > > But, the execution give me the error message for null point exception. > All the examples i could find is demonstrate how to use > DynaValidatorform/String, for my case, i want to use > DynaValidatorform/String[], how can i do it? > > tks in advance > > john > > > > > > > - > Boardwalk for $500? In 2007? Ha! > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! > Games. - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
Retrieving names of dynamic comboboxes
How do we retrieve the names of dynamic comboboxes generated using iterate tag ? I need to capture the onchange event, but how will I capture the name of the combo box ? Thanks - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
Re: Default tab in tabbedPanel loaded twice
Use the "preload" attribute. musachy On 9/10/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote: > Any help on this? > > In a page with 6 tabs, 6 requests are made, and browser get freezed. > > autoStart="false" doesn'w work. Is there another way to prevent tab > preloading? > > https://issues.apache.org/struts/browse/WW-2166 > > Alvaro. > > On 8/19/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote: > > Here is a screenshot of firebug: > > > > http://www.upload-images.net/imagen/7915ac25eb.gif > > > > On 8/19/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > I have the following tabbed panel: > > > > > > > > > > > > > > > > > theme="ajax" href="%{my}" cssStyle="margin: 10px 10px 10px 10px;" > > > listenTopics="/refresh" executeScripts="true" refreshOnShow="true"/> > > > > > href="%{new}" cssStyle="margin: 10px 10px 10px 10px;" > > > refreshOnShow="true"/> > > > > > > > > > > > href="%{current}" cssStyle="margin: 10px 10px 10px 10px;" > > > executeScripts="true"/> > > > > > theme="ajax" href="%{search}" cssStyle="margin: 10px 10px 10px 10px;" > > > refreshOnShow="true"/> > > > > > > > > autoStart="false" theme="ajax" href="%{admin}" cssStyle="margin: 10px > > > 10px 10px 10px;"/> > > > > > > > > > > > > > > > > > > ( > > > > > When the page first load, all tabs are requested in background, and > > > the default one (the first, "myTab" or "currentTab" in my case) is > > > requested another time. > > > > > > I have tried with autoStart=false, but it doesn't work. > > > > > > What's wrong? > > > > > > Alvaro. > > > > > > -- > > > Alvaro Sanchez-Mariscal Arnaiz > > > Java EE Architect & Instructor > > > [EMAIL PROTECTED] > > > > > > > > > -- > > Alvaro Sanchez-Mariscal Arnaiz > > Java EE Architect & Instructor > > [EMAIL PROTECTED] > > > > > -- > Alvaro Sanchez-Mariscal Arnaiz > Java EE Architect & Instructor > [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "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]
looking at stack during action execution
I'm looking at the stack running behind my action and it's not clear what the code between the interceptors is doing: at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83) Between each interceptor there's the DefaultActionInvocation and the UtilTimerStack - is this a necessary part of the framework or am I looking at what seems like profiling tools running behind the scenes in xwork2? Thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: autocompleter problem
Use the "resultsLimit" attribute. musachy On 9/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi all, > I'm using the autocompleter tag and I'm little bit troubleshooted by it's > behaviour. > > I have a list the contains more than 100 items. When the page is loaded, > the select box displayed within the autocompleter tag show only 30 > elements. > Why does this restriction take place ? > Is it possible to make it load all items ? > > thank in advance. > Meissa > > > L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut > etre tenu responsable de son contenu. Toute utilisation ou diffusion non > autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci > de le detruire et d'avertir l'expediteur. > Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que > si necessaire > > The integrity of this message cannot be guaranteed on the Internet. Natixis > can not therefore be considered responsible for the contents. Any > unauthorized use or dissemination is prohibited. If you are not the intended > recipient of this message, then please delete it and notify the sender. > Let us mind the environment : let's print our mails only when necessary. > -- "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]
Re: Question about OGNL ValueStack
I'm first level support, Dave is platinum support :) musachy On 9/10/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Musachy Barroso wrote: > > On 9/10/07, Pavel Sapozhnikov wrote: > >> When I create a variable in Java Action class right > > >> before returning to a result I create a variable: > >> String blah = "blah string"; > >> Does that variable get put automatically on [the] > >> > > No it doesn't add local variables to the stack. > > You can add values to the stack by hand, but in > > this case all you need to do is set a field in > > your action with the value that you want, and > > add a getX() method. > > To continue this a bit: > > What's actually happening is that the *action itself* > is pushed onto the value stack and property references > are evaluated against the stack. > > So when you say: > > > > "getFoo()" is evaluated against the object on the top > of the stack, in your example the action. > > ModelDriven pushes the getModel() object onto the > stack so property references are evaluated against the > model object (as opposed to the action itself). > > d. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "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]
Re: Question about OGNL ValueStack
--- Musachy Barroso wrote: > On 9/10/07, Pavel Sapozhnikov wrote: >> When I create a variable in Java Action class right >> before returning to a result I create a variable: >> String blah = "blah string"; >> Does that variable get put automatically on [the] >> > No it doesn't add local variables to the stack. > You can add values to the stack by hand, but in > this case all you need to do is set a field in > your action with the value that you want, and > add a getX() method. To continue this a bit: What's actually happening is that the *action itself* is pushed onto the value stack and property references are evaluated against the stack. So when you say: "getFoo()" is evaluated against the object on the top of the stack, in your example the action. ModelDriven pushes the getModel() object onto the stack so property references are evaluated against the model object (as opposed to the action itself). d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] struts tags
I have visited so many pages about Struts 2 I can´t remember where I found that. Sorry. Adam Hardy escribió: By the way, Pablo, where did you find that out? Pablo Vázquez Blázquez on 10/09/07 11:52, wrote: Using JSTL: Adam Hardy escribió: Man oh man that is going to fry the algorithms in my poor JSP editor, even if it could cope with the stuff I force-feed it at the moment (which it doesn't). Isn't there a non-OGNL way? thanks Adam Zarar Siddiqi on 08/09/07 18:25, wrote: value="%{getText('category.edit.cancelButton')}"/> Zarar On 9/6/07, Adam Hardy <[EMAIL PROTECTED]> wrote: I am using struts tags for the first time in a JSP with S2 and I haven't found what I'm looking for so I guess it's not available, but could I just check for certain? I want to put a string into a button using an i18n bundle. I tried this: and I tried this: I know I could do this: but it's not nice. The docs allude to the mechanism but I haven't figured it out. I have the constant struts.custom.i18n.resources set in my struts.xml. Regards Adam PS for the record, I think it's just that I'm not finding the documentation intuitive. For instance I figured out how to prevent the struts form tags from outputting HTML table tags but I had to use a search engine. I tried setting the: struts.ui.theme="" but that was obviously not the solution. My problem was that I wanted to turn the 'themes' feature off. But you don't turn it 'off' - you just turn it down. It's: struts.ui.theme="simple" Maybe a line in the taglib docs would make it more obvious? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pls help: struts 1.x /dynaValidatorForm/String[] type
tks for your kind help, but add initial="20" inside struts-config.xml or validation.xml? what else i need to do ? tks in advance john Paul Benedict <[EMAIL PROTECTED]> wrote: You need to allocate array space. For example, add an initial="20" attribute to the property. On 9/9/07, john lee wrote: > > Any expert can give me your hands? > > i have an DynaValidatorFrom as following: > > inside struts-config.xml > > > org.apache.struts.action.DynaValidatorform> > > > > > > > But, the execution give me the error message for null point exception. > All the examples i could find is demonstrate how to use > DynaValidatorform/String, for my case, i want to use > DynaValidatorform/String[], how can i do it? > > tks in advance > > john > > > > > > > - > Boardwalk for $500? In 2007? Ha! > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! > Games. - Got a little couch potato? Check out fun summer activities for kids.
Re: Default tab in tabbedPanel loaded twice
Any help on this? In a page with 6 tabs, 6 requests are made, and browser get freezed. autoStart="false" doesn'w work. Is there another way to prevent tab preloading? https://issues.apache.org/struts/browse/WW-2166 Alvaro. On 8/19/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote: > Here is a screenshot of firebug: > > http://www.upload-images.net/imagen/7915ac25eb.gif > > On 8/19/07, Alvaro Sanchez-Mariscal <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have the following tabbed panel: > > > > > > > > > > > theme="ajax" href="%{my}" cssStyle="margin: 10px 10px 10px 10px;" > > listenTopics="/refresh" executeScripts="true" refreshOnShow="true"/> > > > href="%{new}" cssStyle="margin: 10px 10px 10px 10px;" > > refreshOnShow="true"/> > > > > > > > href="%{current}" cssStyle="margin: 10px 10px 10px 10px;" > > executeScripts="true"/> > > > theme="ajax" href="%{search}" cssStyle="margin: 10px 10px 10px 10px;" > > refreshOnShow="true"/> > > > > > autoStart="false" theme="ajax" href="%{admin}" cssStyle="margin: 10px > > 10px 10px 10px;"/> > > > > > > > > > > > > ( > > > When the page first load, all tabs are requested in background, and > > the default one (the first, "myTab" or "currentTab" in my case) is > > requested another time. > > > > I have tried with autoStart=false, but it doesn't work. > > > > What's wrong? > > > > Alvaro. > > > > -- > > Alvaro Sanchez-Mariscal Arnaiz > > Java EE Architect & Instructor > > [EMAIL PROTECTED] > > > > > -- > Alvaro Sanchez-Mariscal Arnaiz > Java EE Architect & Instructor > [EMAIL PROTECTED] > -- Alvaro Sanchez-Mariscal Arnaiz Java EE Architect & Instructor [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about OGNL ValueStack
No it doesn't add local variables to the stack. You can add values to the stack by hand, but in this case all you need to do is set a field in your action with the value that you want, and add a getX() method. musachy On 9/10/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > Hi so I have a question about this thing. When I create a variable in Java > Action class right before returning to a result I create a variable: String > blah = "blah string"; Does that variable get put automatically on > ValueStack. I tried assuming it does and I tried displaying the value of it > by using the and also %{blah} and seriously no > luck. I know I can say where variableName > is in my VO which is being used by ModelDriven and I know that works cuz I > have tried it. So does creating a variable in Java puts automatically on > ValueStack for later I can access if so how do I access it and if not how do > I put it in ValueStack. Any help would be greatly appreciated. > > Thanks. > > -- > Pavel Sapozhnikov > xFact, Inc > [EMAIL PROTECTED] > -- "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]
Question about OGNL ValueStack
Hi so I have a question about this thing. When I create a variable in Java Action class right before returning to a result I create a variable: String blah = "blah string"; Does that variable get put automatically on ValueStack. I tried assuming it does and I tried displaying the value of it by using the and also %{blah} and seriously no luck. I know I can say where variableName is in my VO which is being used by ModelDriven and I know that works cuz I have tried it. So does creating a variable in Java puts automatically on ValueStack for later I can access if so how do I access it and if not how do I put it in ValueStack. Any help would be greatly appreciated. Thanks. -- Pavel Sapozhnikov xFact, Inc [EMAIL PROTECTED]
Re: Issue with c:import or jsp:include
Can you see if 1.3.8 makes any difference? Just curious. On 9/10/07, Jennie Moeller <[EMAIL PROTECTED]> wrote: > > 1.2 > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Paul Benedict > Sent: 10 September 2007 13:59 > To: Struts Users Mailing List > Subject: Re: Issue with c:import or jsp:include > > What version of Struts? > > On 9/10/07, Jennie Moeller <[EMAIL PROTECTED]> wrote: > > > > Its definitely set on my action. > > > > If I just try to add any param it doesn't seem to work with > > jsp:include > > (jsp:param) or c:import (c:param) > > > > Thanks! > > > > -Original Message- > > From: Ehteshamul Haque [mailto:[EMAIL PROTECTED] > > Sent: 09 September 2007 10:43 > > To: Struts Users Mailing List > > Subject: Re: Issue with c:import or jsp:include > > > > > > plz check > > > path="/weather" > > name="XXX" > > scope="" > > type="XXX" > > parameter="dispatch" > > validate=X"> > > .. > > .. > > > > > > Jennie Moeller <[EMAIL PROTECTED]> wrote: I have to include a > > jsp page in my main jsp page. The include must first go to an action > > which uses a dispatch. > > > > example: > > > > /weather.do?dispatch=display > > > > I can only seem to use the bean:include tag for this which we don't > > want to use due to the behavior of the bean:include tag. > > > > I tried doing this: > > > > > > > > > > > > and also the same with jsp:include and jsp:param. In both cases I get > > the following errors: > > > > Request[/weather] does not contain handler parameter named dispatch > > > > In my struts config I definately have a parameter defined as dispatch > > (obviously since the bean:include does work for it). > > > > Its as if the c:param and jsp:param aren't actually putting the > > dispatch=display onto the URL. > > > > I also tried with putting the dispatch=display on the url > > (url="/weather.do?dispatch=display") and that didn't work either...I > > always get the same error about missing dispatch parameters. > > > > Any ideas? > > > > Jennie > > > > > > > > This e-mail (and any attachments) is confidential and may contain > > personal views which are not the views of the BBC unless specifically > > stated. > > If you have received it in error, please delete it from your system. > > Do not use, copy or disclose the information in any way nor act in > > reliance on it and notify the sender immediately. Please note that the > > > BBC monitors e-mails sent or received. > > Further communication will signify your consent to this. > > > > > > > > - > > Ready for the edge of your seat? Check out tonight's top picks on > Yahoo! > > TV. > > > > > > This e-mail (and any attachments) is confidential and may contain > > personal views which are not the views of the BBC unless specifically > > stated. > > If you have received it in error, please delete it from your system. > > Do not use, copy or disclose the information in any way nor act in > > reliance on it and notify the sender immediately. Please note that the > > > BBC monitors e-mails sent or received. > > Further communication will signify your consent to this. > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > This e-mail (and any attachments) is confidential and may contain > personal views which are not the views of the BBC unless specifically > stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. Please note that the > BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [FRIDAY... -ish] Re: [S2] struts tags
Dave Newton on 10/09/07 13:34, wrote: --- Adam Hardy wrote: The advantages of lean JSPs are manifold Ha ha, lean JSPs, I get it. d. My humour was not in action when I wrote that. What did you think? A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
s:select static map
I am trying to set up a static map using the select tag. I set my the tag as explain in the documentation. But when it tries to render the page I get this error. Syntax error in expression. Encountered ":". Expected one of : "}", ".", "[", ">", "gt", "<", "lt", ">=", "ge", "<=", "le", "==", "eq", "!=", "ne", "&&", "and", "||", "or", "*", "+", "-", "?", "/", "div", "%", "mod", I can get this to work, but I need my keys to be different. -- View this message in context: http://www.nabble.com/s%3Aselect-static-map-tf4415381.html#a12594727 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to get exception in action class for error page?
Hello: I declared an application error page in my web.xml: java.lang.Throwable /error.action I have this declaration in my struts.xml: error In my page.Error class, I am trying to get the exception that was thrown: public class Error extends ActionSupport { public String execute() { PageContext pageContext = ServletActionContext.getPageContext(); if( pageContext != null ) { Exception exception = pageContext.getException(); if( exception != null ) { Logger.getLogger(getClass()).error(exception); } } else { Logger.getLogger(getClass()).debug("Page context is null"); } return SUCCESS; } } But, when the action executes, the pageContext is always null. What can I do to get the exception that was thrown? Thanks, Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
autocompleter problem
Hi all, I'm using the autocompleter tag and I'm little bit troubleshooted by it's behaviour. I have a list the contains more than 100 items. When the page is loaded, the select box displayed within the autocompleter tag show only 30 elements. Why does this restriction take place ? Is it possible to make it load all items ? thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si necessaire The integrity of this message cannot be guaranteed on the Internet. Natixis can not therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Let us mind the environment : let's print our mails only when necessary.
RE: Issue with c:import or jsp:include
1.2 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Benedict Sent: 10 September 2007 13:59 To: Struts Users Mailing List Subject: Re: Issue with c:import or jsp:include What version of Struts? On 9/10/07, Jennie Moeller <[EMAIL PROTECTED]> wrote: > > Its definitely set on my action. > > If I just try to add any param it doesn't seem to work with > jsp:include > (jsp:param) or c:import (c:param) > > Thanks! > > -Original Message- > From: Ehteshamul Haque [mailto:[EMAIL PROTECTED] > Sent: 09 September 2007 10:43 > To: Struts Users Mailing List > Subject: Re: Issue with c:import or jsp:include > > > plz check > path="/weather" > name="XXX" > scope="" > type="XXX" > parameter="dispatch" > validate=X"> > .. > .. > > > Jennie Moeller <[EMAIL PROTECTED]> wrote: I have to include a > jsp page in my main jsp page. The include must first go to an action > which uses a dispatch. > > example: > > /weather.do?dispatch=display > > I can only seem to use the bean:include tag for this which we don't > want to use due to the behavior of the bean:include tag. > > I tried doing this: > > > > > > and also the same with jsp:include and jsp:param. In both cases I get > the following errors: > > Request[/weather] does not contain handler parameter named dispatch > > In my struts config I definately have a parameter defined as dispatch > (obviously since the bean:include does work for it). > > Its as if the c:param and jsp:param aren't actually putting the > dispatch=display onto the URL. > > I also tried with putting the dispatch=display on the url > (url="/weather.do?dispatch=display") and that didn't work either...I > always get the same error about missing dispatch parameters. > > Any ideas? > > Jennie > > > > This e-mail (and any attachments) is confidential and may contain > personal views which are not the views of the BBC unless specifically > stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. Please note that the > BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > > > - > Ready for the edge of your seat? Check out tonight's top picks on Yahoo! > TV. > > > This e-mail (and any attachments) is confidential and may contain > personal views which are not the views of the BBC unless specifically > stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. Please note that the > BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts2 and JBoss 5.0.0 Beta2 deployment problem
Has any successfully deployed a Struts2 application to JBoss 5.0.0 Beta 2? When I try to do this I get the following stack trace from JBoss: Exception starting filter struts2 Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/C:/jboss/jboss-5.0.0.Beta2/server/default/tmp/deploy/moss-home page6107-exp.war/WEB-INF/lib/struts2-core-2.0.6.jar!/struts-default.xml: 8:69 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.regist er(XmlConfigurationProvider.java:209) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(Struts XmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultC onfiguration.java:131) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Con figurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispa tcher.java:398) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.jav a:201) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi lterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicatio nFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilte rConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.jav a:3720) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4367 ) at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInt ernal(TomcatDeployment.java:300) at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(To mcatDeployment.java:138) at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeploymen t.java:367) at org.jboss.web.deployers.WebModule.startModule(WebModule.java:104) at org.jboss.web.deployers.WebModule.start(WebModule.java:80) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. java:157) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav a:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:18 4) at $Proxy0.start(Unknown Source) at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(S tartStopLifecycleAction.java:42) at org.jboss.system.microcontainer.ServiceControllerContextAction.install(S erviceControllerContextAction.java:46) at org.jboss.dependency.plugins.AbstractControllerContextActions.install(Ab stractControllerContextActions.java:51) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractC ontrollerContext.java:233) at org.jboss.system.microcontainer.ServiceControllerContext.install(Service ControllerContext.java:238) at org.jboss.dependency.plugins.AbstractController.install(AbstractControll er.java:724) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractC ontroller.java:445) at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstract Controller.java:555) at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstract Controller.java:489) at org.jboss.dependency.plugins.AbstractController.change(AbstractControlle r.java:335) at org.jboss.dependency.plugins.AbstractController.change(AbstractControlle r.java:205) at org.jboss.system.ServiceController.doChange(ServiceController.java:656) at org.jboss.system.ServiceController.start(ServiceController.java:431) at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:14 2) at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:1 03) at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:4 6) at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer .deploy(AbstractSimpleRealDeployer.java:56) at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy (AbstractSimpleDeployer.java:52) at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(Deploy erWrapper.java:170) at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(Mai nDeploy
Re: JSONInterceptor doesn't support Long/Short/Double... type.
If you feel these should be supported, you can open a JIRA ticket for the issue. The ticket will be more likely to get attention if you supply a patch to implement the desired behavior. https://issues.apache.org/struts/browse/WW James On Mon Sep 10 6:00 , joey <[EMAIL PROTECTED]> sent: >if My entity class has a property of type in (Long/Short/Double...),I get a > >Exception > >JSONExeption Incompatible types for property xxx. > >After read the code of JSONInterceptor ,I found it doesn't support these > >types which > >confused me. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing dynamic parameters to javascript function inside href link
you probably have to include the whole expression within your expression element, for instance: '>value should work, but a bit ugly ;-) maybe it looks nicer using jstl ! var Hope it helps Yannick On 9/10/07, Anna Simbirtsev <[EMAIL PROTECTED]> wrote: > Hello > > I am trying to pass the value of i to a javascript but I can't seem to get > it to pass the value. > > <% for (int i = 0;i < 5; i++) { %> > > > value > > > <%}%> > > What am I doing wrong? > > Thank you > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Performance Problem with Dojo
This will be turned on by default on 2.1: https://issues.apache.org/struts/browse/WW-2077 check this for details: http://dojo.jot.com/WidgetsFAQ musachy On 9/10/07, Marc Eckart <[EMAIL PROTECTED]> wrote: > How can I initialize dojo with the dojo tags ids? Dojo is integrated in > Struts2, how can I influence this without altering the package? > > Regards, > Marc > > 2007/9/10, Adam Hardy <[EMAIL PROTECTED]>: > > > > I'm not familiar with that tag you are using, but there are general ways > > of > > enhancing dojo, including initialising dojo with the dojo tag ids instead > > of > > letting it scan for them, or compiling just the scripts that you need from > > dojo > > instead of taking the default build. > > > > I found last year that a page would be unacceptably slow if it had more > > than 15 > > to 20 dojo tags, even after performance tuning. Things have probably > > improved > > since then, but probably not enough to provide for the usage you need. > > > > I ended up writing my own plain javascript to cut out the processing of > > all the > > generic code that dojo goes through when it initialises. Dojo does a great > > job > > of fitting in well in any browser and any page layout but it has made it > > snail-like on page load. > > > > Regards > > Adam > > > > > > > > Marc Eckart on 10/09/07 09:54, wrote: > > > I have a table which contains a column with struts tags with ajax theme: > > > > > > > > > > > > > > > > > >> > targets="customerdetailinfo" href="%{showCustomerDetails}" > > > onclick="showCustomerDetailInfo();">Kundendetailinfo > > > > > > > > > > > > If I have 100 entries in my table it needs about 6 secs to render the > > table, > > > without these tags I need about 1 sec or less. > > > > > > Is there a way to tune the performance apart from remove these tags? :-) > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- "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]
[S2] Application wide error page
Hello: I am trying to declare an application wide error page in my Struts 2 app. I tried putting this in my web.xml: java.lang.Exception /error.action And then created the error.action: http://cbsweb.jammconsulting.com/cbsweb/error.action But, when my app throws an error, the error page does not come up. Any ideas what went wrong? Thanks, Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Passing dynamic parameters to javascript function inside href link
Hello I am trying to pass the value of i to a javascript but I can't seem to get it to pass the value. <% for (int i = 0;i < 5; i++) { %> value <%}%> What am I doing wrong? Thank you
Re: Issue with c:import or jsp:include
What version of Struts? On 9/10/07, Jennie Moeller <[EMAIL PROTECTED]> wrote: > > Its definitely set on my action. > > If I just try to add any param it doesn't seem to work with jsp:include > (jsp:param) or c:import (c:param) > > Thanks! > > -Original Message- > From: Ehteshamul Haque [mailto:[EMAIL PROTECTED] > Sent: 09 September 2007 10:43 > To: Struts Users Mailing List > Subject: Re: Issue with c:import or jsp:include > > > plz check > path="/weather" > name="XXX" > scope="" > type="XXX" > parameter="dispatch" > validate=X"> > .. > .. > > > Jennie Moeller <[EMAIL PROTECTED]> wrote: I have to include a jsp > page in my main jsp page. The include must first go to an action which > uses a dispatch. > > example: > > /weather.do?dispatch=display > > I can only seem to use the bean:include tag for this which we don't want > to use due to the behavior of the bean:include tag. > > I tried doing this: > > > > > > and also the same with jsp:include and jsp:param. In both cases I get > the following errors: > > Request[/weather] does not contain handler parameter named dispatch > > In my struts config I definately have a parameter defined as dispatch > (obviously since the bean:include does work for it). > > Its as if the c:param and jsp:param aren't actually putting the > dispatch=display onto the URL. > > I also tried with putting the dispatch=display on the url > (url="/weather.do?dispatch=display") and that didn't work either...I > always get the same error about missing dispatch parameters. > > Any ideas? > > Jennie > > > > This e-mail (and any attachments) is confidential and may contain > personal views which are not the views of the BBC unless specifically > stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. Please note that the > BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > > > - > Ready for the edge of your seat? Check out tonight's top picks on Yahoo! > TV. > > > This e-mail (and any attachments) is confidential and may contain > personal views which are not the views of the BBC unless specifically > stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. Please note that the > BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [S2] struts tags
By the way, Pablo, where did you find that out? Pablo Vázquez Blázquez on 10/09/07 11:52, wrote: Using JSTL: Adam Hardy escribió: Man oh man that is going to fry the algorithms in my poor JSP editor, even if it could cope with the stuff I force-feed it at the moment (which it doesn't). Isn't there a non-OGNL way? thanks Adam Zarar Siddiqi on 08/09/07 18:25, wrote: value="%{getText('category.edit.cancelButton')}"/> Zarar On 9/6/07, Adam Hardy <[EMAIL PROTECTED]> wrote: I am using struts tags for the first time in a JSP with S2 and I haven't found what I'm looking for so I guess it's not available, but could I just check for certain? I want to put a string into a button using an i18n bundle. I tried this: and I tried this: I know I could do this: but it's not nice. The docs allude to the mechanism but I haven't figured it out. I have the constant struts.custom.i18n.resources set in my struts.xml. Regards Adam PS for the record, I think it's just that I'm not finding the documentation intuitive. For instance I figured out how to prevent the struts form tags from outputting HTML table tags but I had to use a search engine. I tried setting the: struts.ui.theme="" but that was obviously not the solution. My problem was that I wanted to turn the 'themes' feature off. But you don't turn it 'off' - you just turn it down. It's: struts.ui.theme="simple" Maybe a line in the taglib docs would make it more obvious? - 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]
[FRIDAY... -ish] Re: [S2] struts tags
--- Adam Hardy wrote: > The advantages of lean JSPs are manifold Ha ha, lean JSPs, I get it. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] struts tags
Thanks, Pablo. Does anyone know if there are any plans to create a new attribute on these taglibs in the future where one can just feed in the property key? The advantages of lean JSPs are manifold, the main advantage in this case being the most important, that it would seperate logic (internationalisation) from presentation (even more than it is already). Best regards Adam Pablo Vázquez Blázquez on 10/09/07 11:52, wrote: Using JSTL: Adam Hardy escribió: Man oh man that is going to fry the algorithms in my poor JSP editor, even if it could cope with the stuff I force-feed it at the moment (which it doesn't). Isn't there a non-OGNL way? thanks Adam Zarar Siddiqi on 08/09/07 18:25, wrote: value="%{getText('category.edit.cancelButton')}"/> Zarar On 9/6/07, Adam Hardy <[EMAIL PROTECTED]> wrote: I am using struts tags for the first time in a JSP with S2 and I haven't found what I'm looking for so I guess it's not available, but could I just check for certain? I want to put a string into a button using an i18n bundle. I tried this: and I tried this: I know I could do this: but it's not nice. The docs allude to the mechanism but I haven't figured it out. I have the constant struts.custom.i18n.resources set in my struts.xml. Regards Adam PS for the record, I think it's just that I'm not finding the documentation intuitive. For instance I figured out how to prevent the struts form tags from outputting HTML table tags but I had to use a search engine. I tried setting the: struts.ui.theme="" but that was obviously not the solution. My problem was that I wanted to turn the 'themes' feature off. But you don't turn it 'off' - you just turn it down. It's: struts.ui.theme="simple" Maybe a line in the taglib docs would make it more obvious? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: and number format
JSTL fmt tag library. On 9/10/07, Eugen Stoianovici <[EMAIL PROTECTED]> wrote: > > I want to display a number (double) into a jsp using a certain format (2 > decimals). What's the best way to do it? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Scott [EMAIL PROTECTED]
Re: Multiline key value in resource file
Inserting some even on the same line property doesn't work? You could disregard html code behind the browser and format it when rendering. 2007/9/10, Mirbek Nosinov <[EMAIL PROTECTED]>: > Hello > > I am trying to make multiline key value in my resource file > Reource file is like "myRes.properties" > and in this file i want to include text like: > > title > Text Text Text Text Text Text > Text Text Text Text Text Text Text > Text Text Text Text Text Text Text > > under key name : mykey > so content of my myRes.properties file is > mykey=title Text Text Text Text Text Text > Text Text Text Text Text Text Text > Text Text Text Text Text Text Text > > and my struts 2 application can recognize only first line: title > of my key value > > how to make available all of the lines of my key value? > -- Moesio Medeiros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] struts tags
Using JSTL: Adam Hardy escribió: Man oh man that is going to fry the algorithms in my poor JSP editor, even if it could cope with the stuff I force-feed it at the moment (which it doesn't). Isn't there a non-OGNL way? thanks Adam Zarar Siddiqi on 08/09/07 18:25, wrote: value="%{getText('category.edit.cancelButton')}"/> Zarar On 9/6/07, Adam Hardy <[EMAIL PROTECTED]> wrote: I am using struts tags for the first time in a JSP with S2 and I haven't found what I'm looking for so I guess it's not available, but could I just check for certain? I want to put a string into a button using an i18n bundle. I tried this: and I tried this: I know I could do this: but it's not nice. The docs allude to the mechanism but I haven't figured it out. I have the constant struts.custom.i18n.resources set in my struts.xml. Regards Adam PS for the record, I think it's just that I'm not finding the documentation intuitive. For instance I figured out how to prevent the struts form tags from outputting HTML table tags but I had to use a search engine. I tried setting the: struts.ui.theme="" but that was obviously not the solution. My problem was that I wanted to turn the 'themes' feature off. But you don't turn it 'off' - you just turn it down. It's: struts.ui.theme="simple" Maybe a line in the taglib docs would make it more obvious? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Issue with c:import or jsp:include
Its definitely set on my action. If I just try to add any param it doesn't seem to work with jsp:include (jsp:param) or c:import (c:param) Thanks! -Original Message- From: Ehteshamul Haque [mailto:[EMAIL PROTECTED] Sent: 09 September 2007 10:43 To: Struts Users Mailing List Subject: Re: Issue with c:import or jsp:include plz check .. .. Jennie Moeller <[EMAIL PROTECTED]> wrote: I have to include a jsp page in my main jsp page. The include must first go to an action which uses a dispatch. example: /weather.do?dispatch=display I can only seem to use the bean:include tag for this which we don't want to use due to the behavior of the bean:include tag. I tried doing this: and also the same with jsp:include and jsp:param. In both cases I get the following errors: Request[/weather] does not contain handler parameter named dispatch In my struts config I definately have a parameter defined as dispatch (obviously since the bean:include does work for it). Its as if the c:param and jsp:param aren't actually putting the dispatch=display onto the URL. I also tried with putting the dispatch=display on the url (url="/weather.do?dispatch=display") and that didn't work either...I always get the same error about missing dispatch parameters. Any ideas? Jennie This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. - Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
and number format
I want to display a number (double) into a jsp using a certain format (2 decimals). What's the best way to do it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] s:text somtimes doesn't render the key porperties
Hi Adrian, On 10/09/2007, Adrian Ost <[EMAIL PROTECTED]> wrote: > Hi everybody, > > i have a property file and by using the s:text tag i am rendering out > text from a property file. > Some text . > Works fine, but sometimes it doesn't render the value of the property, > but the key name itself (Results in: Some text my.existing.property.) > Cannot reproduce this. It happened to me a some times too, always when the app was deployed from a .war, and most often after a hot redeploy (under Tomcat 5.5). It never happened when using an exploded deployment on my local machine. This somehow disappeared some weeks/months ago, but I don't know if it's thanks to a change in the Tomcat conf, the Struts2 conf or when I upgraded from 2.0.6 to 2.0.9 Cheers, alexis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSONInterceptor doesn't support Long/Short/Double... type.
if My entity class has a property of type in (Long/Short/Double...),I get a Exception JSONExeption Incompatible types for property xxx. After read the code of JSONInterceptor ,I found it doesn't support these types which confused me.
Re: Performance Problem with Dojo
How can I initialize dojo with the dojo tags ids? Dojo is integrated in Struts2, how can I influence this without altering the package? Regards, Marc 2007/9/10, Adam Hardy <[EMAIL PROTECTED]>: > > I'm not familiar with that tag you are using, but there are general ways > of > enhancing dojo, including initialising dojo with the dojo tag ids instead > of > letting it scan for them, or compiling just the scripts that you need from > dojo > instead of taking the default build. > > I found last year that a page would be unacceptably slow if it had more > than 15 > to 20 dojo tags, even after performance tuning. Things have probably > improved > since then, but probably not enough to provide for the usage you need. > > I ended up writing my own plain javascript to cut out the processing of > all the > generic code that dojo goes through when it initialises. Dojo does a great > job > of fitting in well in any browser and any page layout but it has made it > snail-like on page load. > > Regards > Adam > > > > Marc Eckart on 10/09/07 09:54, wrote: > > I have a table which contains a column with struts tags with ajax theme: > > > > > > > > > > > >> targets="customerdetailinfo" href="%{showCustomerDetails}" > > onclick="showCustomerDetailInfo();">Kundendetailinfo > > > > > > > > If I have 100 entries in my table it needs about 6 secs to render the > table, > > without these tags I need about 1 sec or less. > > > > Is there a way to tune the performance apart from remove these tags? :-) > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
[s2] s:text somtimes doesn't render the key porperties
Hi everybody, i have a property file and by using the s:text tag i am rendering out text from a property file. Some text . Works fine, but sometimes it doesn't render the value of the property, but the key name itself (Results in: Some text my.existing.property.) Cannot reproduce this. Any ideas how to make SURE that the value of the property will always be shown? greets, adrian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Performance Problem with Dojo
I'm not familiar with that tag you are using, but there are general ways of enhancing dojo, including initialising dojo with the dojo tag ids instead of letting it scan for them, or compiling just the scripts that you need from dojo instead of taking the default build. I found last year that a page would be unacceptably slow if it had more than 15 to 20 dojo tags, even after performance tuning. Things have probably improved since then, but probably not enough to provide for the usage you need. I ended up writing my own plain javascript to cut out the processing of all the generic code that dojo goes through when it initialises. Dojo does a great job of fitting in well in any browser and any page layout but it has made it snail-like on page load. Regards Adam Marc Eckart on 10/09/07 09:54, wrote: I have a table which contains a column with struts tags with ajax theme: Kundendetailinfo If I have 100 entries in my table it needs about 6 secs to render the table, without these tags I need about 1 sec or less. Is there a way to tune the performance apart from remove these tags? :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Performance Problem with Dojo
Hi, I have a table which contains a column with struts tags with ajax theme: Kundendetailinfo If I have 100 entries in my table it needs about 6 secs to render the table, without these tags I need about 1 sec or less. Is there a way to tune the performance apart from remove these tags? :-) Thx, Marc
Re: Struts url problem
I already tried this possible solution but a have exactly with my parameters value in my url link, struts doesn't translate the property value in a struts url. I suspect it's a struts url bug. Thanks. newton.dave wrote: > > --- Ehteshamul Haque wrote: >> In that case we can use '' >> >> EXAMPLE: >> >> > > That's not valid XML; you can't nest S2 tags like > that. > > d. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Struts-url-problem-tf4391946.html#a12588832 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts url problem
I already tried this possible solution but a have exactly with my parameters value in my url link, struts doesn't translate the property value in a struts url. I suspect it's a struts url bug. Thanks. Ehteshamul Haque wrote: > > > In that case we can use '' > > EXAMPLE: > > > > ... (other params) > > > > TonyD <[EMAIL PROTECTED]> wrote: > I'm trying to use a property value into a struts url but doesn't work > because > I can not use the (" character) twice into a url value, could somebody > help > me? > Thanks in advance. > > "> > > ... (other params) > > -- > View this message in context: > http://www.nabble.com/Struts-url-problem-tf4391946.html#a12521933 > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > Ehteshamul Haque > > - > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user > panel and lay it on us. > -- View this message in context: http://www.nabble.com/Struts-url-problem-tf4391946.html#a12588825 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: i18n in struts2
Hi Using i18n is a very simple in struts. Lets make a sample application to say hello to the Rock. Steps to do i18n:- 1. Create a test application. 2. index.jsp would be like this:- <[EMAIL PROTECTED] language="java"%> <[EMAIL PROTECTED] uri="/WEB-INF/struts-html.tld" prefix="html"%> <[EMAIL PROTECTED] uri="/WEB-INF/struts-bean.tld" prefix="bean"%> Struts i18 test Rock!!! <%= "Current Locale: " + request.getLocale () %> 3. Rename the ApplicationResources.properties to the locale you required. Suppose your current locale is en_US. So, rename it to ApplicationResources_en_US.properties. 4. Copy this file and paste it in the same folder and rename it to another locale you want the support for your application. Suppose french. So, it would be ApplicationResources_fr_FR.properties. 5. Now you have two properties files in your application. A) ApplicationResources_en_US.properties. B) ApplicationResources_fr_FR.properties. 6. Now add a message to ApplicationResources_en_US.properties file. welcome.message=Hello 7. Now add a message to ApplicationResources_fr_FR.properties file. welcome.message=Bonjour That's it. Now create a WAR file and deploy it on the server. Check it, if everything is right then it would print "Hello Rock!!!". Now to test the french locale, go to settings of IE and choose option language. Add a language "fr-FR" and move it up in the list. Refresh the page and new message would be "Bonjour Rock!!!". It's done dude:jumping: Mirbek Nosinov wrote: > > Hello > > How can i implements internationalization features in struts 2 > application. > i am using struts 2.0.9 and my user interface based on tiles 2. > > How can i switch from one language to another with different locale? > > Thanks in advanced. > > http://www.nabble.com/file/p12588059/i18n_test.war i18n_test.war http://www.nabble.com/file/p12588059/i18n_test.war i18n_test.war -- View this message in context: http://www.nabble.com/i18n-in-struts2-tf4412314.html#a12588059 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]