Re: Convention plug-in, tiles, and no @Result annotation
Hello Problem with Tiles 2: When try to deploy application standart wrapper exception Servlet.service() Problem with tiles for configuring locale. Exception tell that no definition for locale in tiles with null pointer exception . How to resolve this? Thanks. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 2 Validation issues
Hello Struts 2 in action is good book to resolve yours questions. Greeting - Original Message - From: "Eileen Hurley" To: Sent: Thursday, October 22, 2009 10:07 AM Subject: Struts 2 Validation issues All, I have problems with xml validation and Struts 2 (2.0.14). The validation as I see it is not displaying the error messages (I extend ActionSupport). The defaultstack includes the validation interceptor. I believe the problem is related to my struts.xml configuration and the interceptor I use but I can't be sure. The only way I can get the fielderrors displayed on my jsp is to check the fielderors in the method generate but I thought (like Struts 1) it should never get to the generate method. Instead of success redirecting to a jsp if it's a success I want to go to the previous page which seems to work. In summary my questions are as follows: Q1: When do I need to use the execute method? Q2: I assume I don't need to specify fieldserror in my code (implementing the ValidationAware should be enough) Q3: If I need to persist the items for re-display on the input page - what do I need to do to achieve this? Q4: Do I need to use the Workflow interceptor? Any help would be appreciated. Eileen. StratifySiteVisits.java . . . . public String generate() throws Exception { Map fieldErrors = getFieldErrors(); if (fieldErrors != null || fieldErrors.size() > 0 ){ return INPUT; } .. return "navigationback" } Validation xml file: StratifySiteVisits-stratifySiteVisitsGenerate-validation.xml "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";> true Sample Size is required Action Struts.xml jsp/sitevisits/stratify/stratifySiteVisitsLoans.jsp previousScreen - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Please Help with struts2
ml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd"> 1.0 /struts-tags s head org.apache.struts2.views.jsp.ui.HeadTag JSP var required false theme required false tabbedPanel org.apache.struts2.views.jsp.ui.TabbedPanelTag JSP id required false theme required false div org.apache.struts2.views.jsp.ui.TabbedPanelTag JSP id required false theme required false label required false url org.apache.struts2.views.jsp.URLTag JSP id required false action required false value required false namespace required false includeParams required false encode required false method required false property org.apache.struts2.views.jsp.PropertyTag JSP value required false text org.apache.struts2.views.jsp.TextTag JSP name required false param org.apache.struts2.views.jsp.ParamTag JSP name required false a org.apache.struts2.views.jsp.ui.AnchorTag JSP href required false i18n org.apache.struts2.views.jsp.I18nTag form org.apache.struts2.views.jsp.ui.FormTag JSP action required false validate required false textfield org.apache.struts2.views.jsp.ui.TextFieldTag JSP key required false password org.apache.struts2.views.jsp.ui.PasswordTag JSP key required false include org.apache.struts2.views.jsp.IncludeTag JSP value required false action org.apache.struts2.views.jsp.ActionTag JSP id required false name required false name required false executeResult required false namespace required false iterator org.apache.struts2.views.jsp.IteratorTag JSP value required false status required false if org.apache.struts2.views.jsp.IfTag JSP test required false else org.apache.struts2.views.jsp.ElseTag JSP id required false date org.apache.struts2.views.jsp.DateTag JSP name required false submit org.apache.struts2.views.jsp.ui.SubmitTag Thanks - Original Message - From: "Martin Gainty" To: "Struts Users Mailing List" Sent: Sunday, September 27, 2009 2:47 AM Subject: [Norton AntiSpam] RE: Please Help with struts2 which container are you using? please display entire jsp please display web.xml please display any applicable tld's Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
Please Help with struts2
Hello When running samples struts 2 Here is exception relative to this taglib in NetBeans7.1: <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"; prefix="decorator" %> org.apache.jasper.JasperException: /WEB-INF/decorators/main.jsp(26,72) PWC6188: The absolute uri: http://www.opensymphony.com/sitemesh/page cannot be resolved in either web.xml or the jar files deployed with this application Do not now reason why this error appear because this is valid url ? Thanks.
Re: Hello Help please with Struts2
Hello Thanks very much to all responses this issue is resolved with this message. Kostya - Original Message - From: "Martin Gainty" To: "Struts Users Mailing List" Sent: Saturday, September 19, 2009 11:53 PM Subject: RE: Hello Help please with Struts2 the struts-tags URL <%@ taglib uri="/struts-tags" prefix="s" %> lookups the uri in *.tld (in this case /WEB-INF/classes/META-INF/struts-tags.tld) 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";> 2.2.3 1.2 s /struts-tags head org.apache.struts2.views.jsp.ui.HeadTag make sure the accompanying jar containing the classes such as HeadTag are located either on WEB-INF/classes or WEB-INF/lib .\WebappName\WEB-INF\lib\struts2-core-2.1.6.jar Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. From: harasev...@yandex.ru To: user@struts.apache.org Subject: Hello Help please with Struts2 Date: Sat, 19 Sep 2009 21:55:59 +0100 Hello When running samples struts 2 Here is exception relative to this taglib in NetBeans7.1: <%@ taglib uri="/struts-tags" prefix="s" %> org.apache.jasper.JasperException: /example/HelloWorld.jsp(2,41) PWC6117: File "/struts-tags" not found at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:73) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:359) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:153) Do not now reason why this error appear , beacause struts2-core-2.0.11.jar is on classpath ? Thanks. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Bing brings you health info from trusted sources. http://www.bing.com/search?q=pet+allergy&form=MHEINA&publ=WLHMTAG&crea=TXT_MHEINA_Health_Health_PetAllergy_1x1 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Hello Help please with Struts2
Hello When running samples struts 2 Here is exception relative to this taglib in NetBeans7.1: <%@ taglib uri="/struts-tags" prefix="s" %> org.apache.jasper.JasperException: /example/HelloWorld.jsp(2,41) PWC6117: File "/struts-tags" not found at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:73) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:359) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:153) Do not now reason why this error appear , beacause struts2-core-2.0.11.jar is on classpath ? Thanks. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org