Re: struts2-rest-plugin-2.1.5 problem
2009/1/5 Ercan Kayaonu ekaya...@gmail.com: Thank you for your quick reply. I tried using maven, but it couldn't find 2.1.5 one. Summary of mvn messages: Try to use that http://people.apache.org/builds/struts/2.1.5/ it works for me Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Turning freemarker logging off
Hi, I'm using Struts 2.1.2. I've configured log4j logging with the following line log4j.logger.com.opensymphony.xwork2.ognl=ERROR in order to turn off what seemed to be xwork logging. However, I'm still getting hundreds of line like these: Could not find template in cache, creating new one; id=[template/css_xhtml/form.ftl[en_US,UTF-8,parsed] ] DEBUG [945512...@qtp0-2] cache.debug:81 | Compiling FreeMarker template template/css_xhtml/form.ftl[en_US,UTF-8,parsed] from jar:file:/Users/nodje/Documents/project/allence/alpha2/target/alpha2/WEB-INF/lib/struts2-core-2.1.2.jar!/template/css_xhtml/form.ftl DEBUG [945512...@qtp0-2] cache.debug:81 | Could not find template in cache, creating new one; id=[template/css_xhtml/form-validate.ftl[en_US,UTF-8,parsed] ] What I don't understand is from which class this logging comes from: cache.debug:81 should indicate a class and the calling method. But in cache.debug:81 'cache' is not a class. There must be some centralized system used to perfom logging. Anyone knows where this logging comes from? cheers -nodje -- View this message in context: http://www.nabble.com/Turning-freemarker-logging-off-tp21287074p21287074.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts 2.1.5 listed on http://struts.apache.org/2.x/
Wendy Smoak-3 wrote: From http://struts.apache.org, that page is linked under 'Development' as 'Struts 2.x Draft Docs' Oh wow, I didn't realize that page was a development page. That actually explains a bit. :-) Wendy Smoak-3 wrote: I'm curious, how did you get to that page? I've had the link for quite a while, and assumed it was the main Struts 2 page. I just did a Google search for struts 2, without the quotes, and the first link Google pulls up is http://struts.apache.org/2.x/ -- View this message in context: http://www.nabble.com/struts-2.1.5-listed-on-http%3A--struts.apache.org-2.x--tp21293172p21295111.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts 2.1.5 listed on http://struts.apache.org/2.x/
On Mon, Jan 5, 2009 at 8:30 AM, Brad A Cupit b...@lsu.edu wrote: http://struts.apache.org/2.x/ lists 2.1.5 as the version to download (in the big, blue Download Now 'button'). However, I could find no announcement or vote on any of the struts mailing lists mentioning that 2.1.5 is GA. Is this a bug in the http://struts.apache.org/2.x/ page? Or did Struts 2.1.5 quietly go GA? From http://struts.apache.org, that page is linked under 'Development' as 'Struts 2.x Draft Docs'. So no, Struts 2.1.5 is not an official release. (There is some discussion on the dev list, but no vote yet, and it is not on the download page.) I'm curious, how did you get to that page? -- Wendy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
list inside nested iterate, but in the same level as list1
Hello i have an anction form , where i declared two liste list1 and list2 to loop through liste1 , i used nested:iterate inside this iterate, i wanna have an access to list2 which is not inside list1, but in the same level as list 1 any one has an idea how can i do this? if i use nested, it would assume that it is inside list1 the schema is like this actionForm-- list1 |--list2 Regards Elyes.
struts 2.1.5 listed on http://struts.apache.org/2.x/
http://struts.apache.org/2.x/ lists 2.1.5 as the version to download (in the big, blue Download Now 'button'). However, I could find no announcement or vote on any of the struts mailing lists mentioning that 2.1.5 is GA. Is this a bug in the http://struts.apache.org/2.x/ page? Or did Struts 2.1.5 quietly go GA? Brad Cupit LSU - University Information Systems - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to use struts2 tag to a open a new window?
Gordian Yuan wrote: and i can't found html tag A target attribute on s:a now i write the code like this a href='s:property value=editJob /' target=_blank modify/a It struts2 has a good way to be able to use s:a to open a new window ? The s:a... tag is really more for the Ajax theme--using the HTML a... tag is probably the best way to do this. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
S2: Advice on debugging jsp/action interactions..
This is an off-shoot of an unanswered question I posted about 10 days ago (during the holidays, I know...) The orginal email is repeated below, but I'm asking a more general question now. I've been getting very frustrated with trying to figure out why some of my jsp's are not retrieving properties from the backing action. I have devMode=true and logging set to DEBUG; but there's nothing in the logs thats helping me. Break points inside the getters are not hit. I've tried both OGNL-based function calls and EL-based bean/property approaches. 95% of the time everything is good, but I've been stuck on this jsp for about two weeks and can't figure out why it doesn't work and I can't seem to find any diagnostic aide to figure out where the problem is. (The following code shows the original attempt, I've already tried an approach that follows bean conventions, and returns a complete map rather that is indexed inside the JSP rather than this on-demand lookup version.) Can anyone offer any helpful hints for diagnosing why my function isn't getting called? Thank you. Eric -- Original Email I'm working on something a little bit like a data grid. However, while the current display is tabular, the data backing it isn't. As a result I can't use straight map notation to access the values to display. For now I have a inefficient helper lookup attached to the action, but I can't seem to get it invoked. The relevant portion of the jsp looks like s:iterator value=competition.feeCategories id=fee trths:property value=name //th/tr s:iterator value=competition.sessions id=session tr tds:property value=name //td s:iterator value=competition.deadlines id=deadline tds:property value=#session.getDisplayPrice(#deadline,#fee) //td !-- 1 -- tds:textfield name=sessionMap[%{#session.id}][%{#deadline.id}][%{#fee.id}] value=%{getSessionMarkup(#session,#fee,#deadline).costDeltaInCents} //td !-- 2-- tdStudio Markup (%)/td /s:iterator /tr /s:iterator /s:iterator The action looks like: public class ConfigurePrices extends ExcursionBase { public String execute() { return SUCCESS; } public StudioSessionPrice getSessionMarkup(Session session, CompetitionDeadline deadline, FeeCategory fee) { for (StudioSessionPrice ssp: excursion.getSessionPrices()) { if (ssp.getUnderlyingCompetitionSession().getSession().equals(session) ssp.getUnderlyingCompetitionSession().getDeadline().equals(deadline) ssp.getUnderlyingCompetitionSession().getFeeCategory().equals(fee)) return ssp; } StudioSessionPrice ssp = new StudioSessionPrice(); ssp.setExcursion(excursion); ssp.setUnderlyingCompetitionSession(session.getCSPfor(deadline,fee)); ssp.setCostDeltaInCents(0L); ssp.setDeltaInPercent(0.0F); excursion.addSessionPrice(ssp); excursionRepository.save(excursion); return ssp; } } ExcursionBase implements ActionSupport; the jsp shown before is hooked up to the INPUT result of the action. The line preceding the !-- 1 -- works properly, so I thought I knew how to call functions with parameters in OGNL. The line around !-- 2-- does not work. The breakpoint just inside the function is not hit. However there are no errors in the log. None of the iterator related objects respond to the getSessionMarkup message and thus shouldn't be masking it from bubbling down to the action. What am I missing? Thank you. Eric - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts 2.1.5 listed on http://struts.apache.org/2.x/
That is the official page, in fact 2.1.5 isn't actually on the page that button is linked to. My guess would be something in the CI Script updates the blue button automatically and it was unintentionally triggered. (*Chris*) On Mon, Jan 5, 2009 at 9:14 AM, bradcupit b...@lsu.edu wrote: Wendy Smoak-3 wrote: From http://struts.apache.org, that page is linked under 'Development' as 'Struts 2.x Draft Docs' Oh wow, I didn't realize that page was a development page. That actually explains a bit. :-) Wendy Smoak-3 wrote: I'm curious, how did you get to that page? I've had the link for quite a while, and assumed it was the main Struts 2 page. I just did a Google search for struts 2, without the quotes, and the first link Google pulls up is http://struts.apache.org/2.x/ -- View this message in context: http://www.nabble.com/struts-2.1.5-listed-on-http%3A--struts.apache.org-2.x--tp21293172p21295111.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: maven2 and new struts 2 project
With m2eclipse I've noticed that if I remove the compiler plugin from a project then the build settings in Eclipse gets changed to the Maven defaults of JDK 1.3 and 1.1 compliance. If I create a project from a Maven archetype, like Struts 2.0.14 starter, then the compiler plugin is in the pom and the Eclipse project build settings apparently get created based on that. I'm using m2eclipse with RAD 7.5 and the customized version (with all Maven features enabled) that comes with MyEclipse 7.0. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin Randy Burgess On Sat, Jan 3, 2009 at 11:27 PM, Michael Finney fin...@acm.org wrote: Hello, I was about to add to a small open source project of mine a maven dependency to (Display tag library 1.2) http://displaytag.sourceforge.net/1.2/ When I tried to add this maven dependency, the eclipse/m2eclipse plug-in decided to change my facet JDK settings down to JDK1.4 (facet=jst.java version=6.0 changed to 1.4) I looked at the facets and decided it's worth it to start over with a new maven2 project. I figured it may be easier since it is open source. I read at http://www.mail-archive.com/user@struts.apache.org/msg71548.html how to create a struts2-archetype-starter. I want the equivalent of struts2-blank. I tried adding the remote catalog of http://people.apache.org/builds/struts/2.0.14/m2-staging-repository . When I try to verify the catalog, it says the catalog is empty. What do I use for a struts2 2.0.x maven2 project? Shall I just create a new maven project, skip archetype selection, and ask it to create a war project for me? What do you recommend at this point? Thanks, Mike -- Michael Finney - Always Striving To Serve You Better Every Day fin...@acm.org http://www.SmilingSoftwareSolutions.com - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Regards, Randy Burgess
Convention plugin mapAllMatches
Hi guys, I'm using convention plugin. There's no rest and codebehind plugins in lib folder. I want to call all the methods in my class from the url. As far as i understand from the documentation i need to set struts.convention.action.mapAllMatches to true in struts.xml. But it didn't work. I can't add method names to the url and config-browser doesn't show them in actions list. I can only see the methods if i use @Action annotation. However, in this case there's nothing under Results http://localhost:8080/convention/config-browser/showConfig?namespace=actionName=hello-worlddetailView=resultsException Mappingshttp://localhost:8080/convention/config-browser/showConfig?namespace=actionName=hello-worlddetailView=exceptions Interceptorshttp://localhost:8080/convention/config-browser/showConfig?namespace=actionName=hello-worlddetailView=interceptors Propertieshttp://localhost:8080/convention/config-browser/showConfig?namespace=actionName=hello-worlddetailView=properties Validatorshttp://localhost:8080/convention/config-browser/showConfig?namespace=actionName=hello-worlddetailView=validators tabs. Do i have to use @Result for all my actions, and why mapAllMatches didn't work. Thank you in advance. Regards.
Datetamepicker: problems with dojo
Hello, I have page with datetimepicker and debug mode in head tag causes some error lines with this content: [SyntaxError: syntax error, file: http://localhost:8080/tomis/struts/dojo/dojo.js, line: 115] Do you have any idea what should be wrong in dojo.js? My configuration: Struts 2.0.14 all libs as in Struts showcase Tomcat 6.0, browser Firefox 3.0 The Struts-showcase example with same libs works fine. Source code of page: %@ page contentType=text/html; charset=UTF-8 % %@ taglib prefix=s uri=/struts-tags % html head titleTest/title s:head theme=ajax debug=true / /head body s:datetimepicker/s:datetimepicker /body /html Thanks for your help. Tom - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: list inside nested iterate, but in the same level as list1
Hi Elyes, try property=../ just like in directory structure. Best greetings, Paweł Wielgus. 2009/1/5 elyes sallem elyes.sal...@gmail.com: Hello i have an anction form , where i declared two liste list1 and list2 to loop through liste1 , i used nested:iterate inside this iterate, i wanna have an access to list2 which is not inside list1, but in the same level as list 1 any one has an idea how can i do this? if i use nested, it would assume that it is inside list1 the schema is like this actionForm-- list1 |--list2 Regards Elyes.
reading resource bundle from JSP to variable
Hello, please, I can't find any solution how to read message from resource bundle to variable in JSP page. First I call the action and then display results in JSP, tags s:text / and form tags reads resource bundle perfectly, but I don't know how to do something like this (in Struts1) now in Struts2: bean:define id=messages name=%= org.apache.struts.Globals.MESSAGES_KEY % type=org.apache.struts.util.MessageResources/ % String message = messages.getMessage(...); % How can I access message resources in JSP without using struts tags? Thanks for your help. Tom - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [s2] Making textfield input optional
Does anyone has solution for making textfield optional ? When I define method such as show below then I don't get ERROR in log when user don't enter any value, but in this case my custom converter for this field is overriden and value in textfield is not formatted at all. -- Thanks, Milan Gabriel Belingueres-2 wrote: You don't need to modify your model, just delegate to it: public void setValue(String s) { if (!StringUtils.isBlank(s)) { try { model.setValue(new BigDecimal(s)); catch(NumberFormatException e) { model.setValue(null); } } } 2008/7/24 Milan Milanovic milanmilanov...@yahoo.com: Dear Gabriel, thank you. I tried without my Converter class for BigDecimal and it is the same, when user doesn't enter value I got that error in a log. I'm using S2 2.0.11.1. This solution is good, but my value that is set comes from model where I have class and attribute (BigDecimal) with its get/set methods, by putting this set(String) instead of set(BigDecimal) I'm violating class semantics ? The other solution is O.K., but I've already used it with Dates and datetimepicker. Can I change in some way this BigDecimal converter to avoid this error: http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html -- Regards, Milan. Gabriel Belingueres-2 wrote: I'm using S2.1.2 (are you using the same version?), and it will throw a NumberFormatException when setting an empty string, but this workaround will make ParameterInterceptor to think it is setting a String parameter: public void setValue(String s) { if (!StringUtils.isBlank(s)) { try { this.value= new BigDecimal(s); catch(NumberFormatException e) { this.value = null; } } } of course you still need a validator so that the string doesn't violate the BigDecimal grammar. Other option (may be more clean) is the action having both the string instance and the real BigDecimal instance, then the form will only set the string instance. 2008/7/24 Milan Milanovic milanmilanov...@yahoo.com: Dear Newton, Yes, I'm using BigDecimal type converter given here: http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html http://www.nabble.com/-s2--Formatting-input-textfields-tt18593985.html . -- Thx, Milan newton.dave wrote: Are you using a BigDecimal type converter (one of which was just posted)? AFAIK it won't work w/o the converter, but I could be remembering incorrectly. Dave --- On Thu, 7/24/08, Milan Milanovic milanmilanov...@yahoo.com wrote: From: Milan Milanovic milanmilanov...@yahoo.com Subject: Re: [s2] Making textfield input optional To: user@struts.apache.org Date: Thursday, July 24, 2008, 11:36 AM Dear Gabriel, no, my actual question is related to the issue when user doesn't enter anything to the textfield which is connected to BigDecimal in my action class. -- Thx, Milan Gabriel Belingueres-2 wrote: Please make sure that the input string is according the BigDecimal format: http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigDecimal.html#BigDecimal(java.lang.String) 2008/7/24 Milan Milanovic milanmilanov...@yahoo.com: Hi Gabriel, no I cannot do this because my field is of type BigDecimal and I must have get/set methods for it. -- Thx, Milan Gabriel Belingueres-2 wrote: instead of: public vlid setInValue(BigDecimal x) { this.x = x; } test with this: public vlid setInValue(String s) { this.x = new BigDecimal(s); } 2008/7/24 Milan Milanovic milanmilanov...@yahoo.com: Hi Jim, no, I have that method. -- Thx, Milan Jim Kiley wrote: Doesn't that exception usually get thrown when, in this case, ViewAction doesn't have a setInValue() method? jk On Thu, Jul 24, 2008 at 10:31 AM, Gabriel Belingueres belingue...@gmail.com wrote: Which is the data type of inValue? 2008/7/24 Milan Milanovic milanmilanov...@yahoo.com: Hi, I have one form with multiple textfields, and I want to one of that textfield be optional for user, i.e., he doesn't need to enter information in that particular field. Now, when user don't enter I get this in my log: ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'inValue' on 'class com.myProject.action.ViewAction: Error setting expression 'inValue' with value '[Ljava.lang.String;@1d3ac6e' How can I enable this but without getting this error ? -- Thx, Milan -- View this message in context:
Re: list inside nested iterate, but in the same level as list1
I think you can use the top keyword to jump out to the 1st level. List 1 --List 2 List 3 s:property value=top.list3/ I don't remember if you need a # in front like this #top. laes1 wrote: Hello i have an anction form , where i declared two liste list1 and list2 to loop through liste1 , i used nested:iterate inside this iterate, i wanna have an access to list2 which is not inside list1, but in the same level as list 1 any one has an idea how can i do this? if i use nested, it would assume that it is inside list1 the schema is like this actionForm-- list1 |--list2 Regards Elyes. -- View this message in context: http://www.nabble.com/list-inside-nested-iterate%2C-but-in-the-same-level-as-list1-tp21293280p21304844.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Pls covert this code to struts 2.1
Hi, My application was developed on struts 1.2 and i was struck up with a problem when i try to convert that code into struts 2.1 version. So, pls convert the code given below which was developed using struts 1.2 api into struts 2.1. The code is: bean:define id=documentTypesCollection name=ReferenceDocumentForm property=documentTypes/ html:select name=ReferenceDocumentForm property=referenceDocument.documentType size=1 html:option value=-1Select/html:option html:options collection=documentTypesCollection property=code labelProperty=desc/ /html:select Where- documentTypes is a list in the form named ReferenceDocumentForm. I tried converting the above code using struts 2.1 tags as given below: s:bean id=documentTypesCollection name=documentTypes/ s:select label=%{getText('referenceDoc.type')} name=referenceDocument.documentType required=true list=documentTypes headerValue=select headerKey=-1 size=1 listKey=code listValue=desc/ Where-documentTypes is a list with getters and setters in my action class When i run the application, I'm facing the problen shown below: 11:48:30,120 ERROR [Bean ] Could not instantiate bean java.lang.ClassNotFoundException: documentTypes at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:147) at org.apache.struts2.components.Bean.start(Bean.java:121) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.nfpa.add_005fedit_005freferencedocument_jsp._jspx_meth_s_005fbean_005f0(add_005fedit_005freferencedocument_jsp.java:156) at org.apache.jsp.nfpa.add_005fedit_005freferencedocument_jsp._jspService(add_005fedit_005freferencedocument_jsp.java:112) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292) at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:139) at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253) at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:206) 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 com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221) 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 com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150) at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) at
Re: Pls covert this code to struts 2.1
You assign the value 'documentTypes' to the property 'name' of the bean tag. From the documentation : http://struts.apache.org/2.0.14/docs/bean.html name = The class name of the bean to be instantiated (must respect JavaBean specification) So that is the reason for the ClassNotFoundException ... Friendly greetings, Bert VdB On Tue, Jan 6, 2009 at 7:44 AM, taj uddin tajuddi...@yahoo.com wrote: Hi, My application was developed on struts 1.2 and i was struck up with a problem when i try to convert that code into struts 2.1 version. So, pls convert the code given below which was developed using struts 1.2 api into struts 2.1. The code is: bean:define id=documentTypesCollection name=ReferenceDocumentForm property=documentTypes/ html:select name=ReferenceDocumentForm property=referenceDocument.documentType size=1 html:option value=-1Select/html:option html:options collection=documentTypesCollection property=code labelProperty=desc/ /html:select Where- documentTypes is a list in the form named ReferenceDocumentForm. I tried converting the above code using struts 2.1 tags as given below: s:bean id=documentTypesCollection name=documentTypes/ s:select label=%{getText('referenceDoc.type')} name=referenceDocument.documentType required=true list=documentTypes headerValue=select headerKey=-1 size=1 listKey=code listValue=desc/ Where-documentTypes is a list with getters and setters in my action class When i run the application, I'm facing the problen shown below: 11:48:30,120 ERROR [Bean] Could not instantiate bean java.lang.ClassNotFoundException: documentTypes at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:147) at org.apache.struts2.components.Bean.start(Bean.java:121) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54) at org.apache.jsp.nfpa.add_005fedit_005freferencedocument_jsp._jspx_meth_s_005fbean_005f0(add_005fedit_005freferencedocument_jsp.java:156) at org.apache.jsp.nfpa.add_005fedit_005freferencedocument_jsp._jspService(add_005fedit_005freferencedocument_jsp.java:112) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292) at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:139) at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253) at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:206) 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 com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221) 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
Re: Datetamepicker: problems with dojo
Hi, If Struts 2.0.14 still uses dojo 0.4 than the problem (and the fix) is described here: http://dojotoolkit.org/forum/dojo-0-4-x-legacy/dojo-0-4-x-support/firefox-3-and-struts-2-theme-ajax-render-issues#comment-17067 BR, Andras Tom Pop wrote: Hello, I have page with datetimepicker and debug mode in head tag causes some error lines with this content: [SyntaxError: syntax error, file: http://localhost:8080/tomis/struts/dojo/dojo.js, line: 115] Do you have any idea what should be wrong in dojo.js? My configuration: Struts 2.0.14 all libs as in Struts showcase Tomcat 6.0, browser Firefox 3.0 The Struts-showcase example with same libs works fine. Source code of page: %@ page contentType=text/html; charset=UTF-8 % %@ taglib prefix=s uri=/struts-tags % html head titleTest/title s:head theme=ajax debug=true / /head body s:datetimepicker/s:datetimepicker /body /html Thanks for your help. Tom - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org