Re: Advice needed: Offline Struts App
I suggest you use other framework such as Stripes, Spring MVC instead of Struts1/2.x. Struts development progress is too slow, after three years of Spring MVC jsr 330 support, struts 2 begin to support it, and Struts 2 still does not support jsr 303 officially, and REST support is also not good as Spring MVC etc. Of course, personally I like component/event based framework such as JSF/Wicket. Regards Hantsy On 3/15/2012 23:37, Frans Thamura wrote: an interesting in manage engine, try it, installer with encrypted mysql, struts2 app F On Thu, Mar 15, 2012 at 10:35 PM, Christian Grobmeier grobme...@gmail.com wrote: thanks - i will evaluate that On Thu, Mar 15, 2012 at 4:33 PM, Frans Thamurafr...@meruvian.org wrote: you can use izpack F On Thu, Mar 15, 2012 at 10:31 PM, Christian Grobmeier grobme...@gmail.com wrote: the customers for my apps are mostly non-techies... I am afraid they will fail without having an exe file/jar file/app file. have you managed that? On Thu, Mar 15, 2012 at 4:29 PM, Frans Thamurafr...@meruvian.org wrote: put the tomcat or jetty as services to make it standalone apps, execute using localhost that is the way i use it here F On Thu, Mar 15, 2012 at 10:25 PM, Christian Grobmeier grobme...@gmail.com wrote: Hi, yes I know Struts 2 is a web framework. But recently somebody told me he would love to see a desktop version of my app instead of a cloud based version. I think this would be great for me too. Now I am considering different ways... not sure, probably somebody here already did the same in the past. I mean, many of the interceptors are probably not necessary in a desktop app. My Action are there - I could use them straightaway without interceptors (or some other great features of Struts). Basically I would just need to replace my HTML/JS frontend with something else, probably JavaFX. Anybody around who had a similar job with S2 in the past? Cheers Christian -- http://www.grobmeier.de https://www.timeandbill.de - 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 -- http://www.grobmeier.de https://www.timeandbill.de - 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 -- http://www.grobmeier.de https://www.timeandbill.de - 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 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 IDE, eclipse plugins to manage struts2 xml file, areyou interested?
于 2010/12/17 10:17, Frans Thamura 写道: Right Is the source available also? /m/ -Original Message- From: Johannes Geppert jo...@web.de Date: Thu, 16 Dec 2010 11:35:50 To: user@struts.apache.org Reply-To: Struts Users Mailing List user@struts.apache.org Subject: Re: Struts2 IDE, eclipse plugins to manage struts2 xml file, are you interested? Hi Angelo, this looks great. When do you think is this available? Is there a Beta version available for tests? Best Regards Johannes Geppert azerr wrote: Hi Struts2 Team, I introduce to me. I'm Angelo ZERR and I'm developping a generic XML search engine Eclipse plugins that I would like contribute to WTP Eclipse (please read bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=330576). This plugins give you the capability to : * search XML nodes with XPath from your workspace files. * develop your plugins to manage compeltion, validation, hyperlink for custom XML files. I have started to create plugins for Jetty and I have started to develop Struts2 IDE based on XML Search engine to manage struts2.xml (I have developped Struts2 IDE in 2 hours). On other words you benefit : * Java completion, validation, hyperlink for @class attribute in your struts.xml * XML completion, validation, hyperlink (ex : having completion for interceptor, interceptor-stack for interceptor-ref) You can see screenshot in (ODT) documentation that I have attached. If you can not read ODT, I have commited a RTF version at https://tk-ui.svn.sourceforge.net/svnroot/tk-ui/cnaf.sidoc.ide/docs I have stared Struts2 IDE to validate my XML Search engine, but I have another thing to manage (like Java method). If you are interested with Struts2 IDE, tell me and I will continue to improve it. Regards Angelo - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - --- web: http://www.jgeppert.com twitter: http://twitter.com/jogep Great news for Struts2 developers. As far as I know, there is no good open source Struts2 plugin for Eclipse. MyEclipse provides such one, but it is an commercial product, you need a subscription. NetBeans has a good plugin for Struts2 development, http://nbstruts2support.dev.java.net. Kind regards Hantsy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Reduce Java Script Depecency in Struts 2
There is a project which integrated JQuery into Struts2... http://code.google.com/p/struts2-jquery/ The dojo plugin shipped with Struts 2 is too old... Hantsy 于 2010/10/6 11:28, Jose A. Corbacho 写道: I changed to jQuery not long time ago and I have to say the system has improved its performance (I was using before the dojo plugin) as well as the code being cleaner. You'll still need to do some javascripting but using jQuery API that is, as said, cleaner. On Wed, Oct 6, 2010 at 10:05 AM, Yanto Bongyantob...@gmail.com wrote: Hi All, We've use Struts 2+Spring+Hibernate as our framework and use JSP as the UI. After we review the application, our application having quite a lot Java Script that cause certain form not working propertly in one of the browser. Any suggesstion how we can reduce Java Script in the JSP ? is the JQuery is a good option ? Best Regards Yanto - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 annotations
于 2010/9/6 16:31, Daniel Rindt 写道: Am Montag, den 06.09.2010, 13:55 +0800 schrieb Hantsy Bai: Use convention plugin[1] please, it is shipped with struts2 dist package. [1]https://cwiki.apache.org/confluence/display/WW/Convention%20Plugin Thanks for the reactions, but after using the convention plugin, i am not able to use the @Result as its described in the Documentation[1]. The value attribute is not included. http://struts.apache.org/2.0.14/docs/result-annotation.html The struts 2.0.14 is not compatible with the latest Struts 2.2.1...The old codebehind plugin(in struts 2.0.x) is replaced by the redesigned convention plugin(2.1.x and 2.2.x). If u are using the convention plugin, please the read the link I provided above. Regards. Hantsy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 annotations
于 2010/9/6 1:13, Daniel Rindt 写道: Hello, i am using struts2-core 2.2.1 via maven2 in my project. My problem is, that i can't find the annotations. The installation of the package struts2-annotations 1.0.5 doesn't help. Where can i use the annotations again? Thanks for reading, understanding, answering ;-) Daniel Use convention plugin[1] please, it is shipped with struts2 dist package. [1]https://cwiki.apache.org/confluence/display/WW/Convention%20Plugin Regards Hantsy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Issue with hibernate 3 + jboss-5.1.0.GA +mySql with Struts 2
? 2010/7/20 14:28, sandeep kotha ??: [org.xml.sax.SAXParseException: The element type local-tx-datasourcee must be terminated by the matching end-tag /local-tx-datasourcee.] Your config file is problematic, the start tag is *local-tx-datasource**e* but end with *local-tx-datasource* I think the correct one is . * local-tx-datasource*
Re: Struts 2 and Spring 3??
于 2010/5/22 0:29, Burton Rhodes 写道: I think I saw a message a while back that commented about using Spring 3 (and Spring Security 3) with Struts 2.1.8 framework. Is this possible? If so, how? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org Try appfuse 2.1(currently not release) please, you can use it create such a project quickly. http://www.appfuse.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2+Spring2+Interceptor+Invalid action class configuration that references an unknown class named
于 2010/5/22 1:05, rocks 写道: Dear, Apologize the posting same subject, but I did not find any solution so far. I am developing a web application based on struts 2.1.8.1+ spring 2+ hibernate 3 + tomcat 5.5. There is requisite library like struts2-convention-plugin-2.1.8.1.jar in my classpath. For authentication I am using struts interceptor. Below are my configuration files. struts.xml := ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts constant name=struts.objectFactory value=spring / constant name=struts.devMode value=false / constant name=struts.action.extension value=do/ constant name=struts.objectFactory.spring.autoWire value=AUTOWIRE_BY_NAME/ !-- Add packages here -- package name=dafault extends=struts-default result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult / /result-types interceptors interceptor name=loginInterceptor class=com.ncr.framework.interceptor.LoginInterceptor/ interceptor-stack name=capabilityStack interceptor-ref name=defaultStack/ interceptor-ref name=loginInterceptor/ /interceptor-stack /interceptors default-interceptor-ref name=capabilityStack/ action name=logon class=loginAction method=execute result name=success type=tilespage.Login/result /action /package /struts applicationContext.xml :- ?xml version=1.0 encoding=UTF-8? !DOCTYPE beans SYSTEM WEB-INF/spring-beans-2.0.dtd beans bean id=loginAction scope=prototype class=com.ncr.user.actions.LoginAction constructor-arg ref=adminService / /bean /beans LoginInterceptor.java public class LoginInterceptor extends AbstractInterceptor { public String intercept(ActionInvocation invocation) throws Exception { ActionContext context = invocation.getInvocationContext(); MapString, Object contextMap = context.getContextMap(); HttpServletRequestWrapper request = (HttpServletRequestWrapper) contextMap .get(HTTP_REQUEST); synchronized (request) { ThreadContext.setRequest(request); UserInfo userInfo = UserContext.getCurrentUserInfo(); if (userInfo == null !authenticate.equals(contextMap.get(ACTION_NAME))) { return logon; } return invocation.invoke(); } }} When I hit url http://localhost:8080/mytest/logon.do it throws an error. java.lang.RuntimeException: Invalid action class configuration that references an unknown class named [loginAction] org.apache.struts2.convention.ConventionsServiceImpl.determineResultPath(ConventionsServiceImpl.java:100) org.apache.struts2.convention.ConventionUnknownHandler.determinePath(ConventionUnknownHandler.java:385) org.apache.struts2.convention.ConventionUnknownHandler.handleUnknownResult(ConventionUnknownHandler.java:274) com.opensymphony.xwork2.DefaultUnknownHandlerManager.handleUnknownResult(DefaultUnknownHandlerManager.java:76) com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:215) com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:356) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266) com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165) As per my investigation, I found that ClassLoaderUtils's below method could not return class name for 'loginAction'. There should be some way for to map 'loginAction' to the class com.ncr.user.actions.LoginAction. public static Class loadClass(String className, Class callingClass) throws ClassNotFoundException { try { return Thread.currentThread().getContextClassLoader().loadClass( className); } catch (ClassNotFoundException e) { try { return Class.forName(className); } catch (ClassNotFoundException ex) { try { return ClassLoaderUtils.class.getClassLoader().loadClass( className); } catch (ClassNotFoundException exc) { return