Re: WARNING: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location]
hi Ratheesh, were finally able to solve your problem? I'm just migrating form 2.0.14 to 2.1.6 and suddenly get the same error when trying to access the application default url /. thanks Ratheesh Kumar K wrote: > > hi, > > i have attached the configbrowser plugin and is not able to trace it.the > screen shots are as follows: > http://www.nabble.com/file/p22009471/configbrowser1.gif > http://www.nabble.com/file/p22009471/configbrowser2.gif > http://www.nabble.com/file/p22009471/configbrowser3.gif > > > > Musachy Barroso wrote: >> >> Add the config browser to your app and check what urls it is mapping: >> http://struts.apache.org/2.x/docs/config-browser-plugin.html >> >> musachy >> >> On Fri, Feb 13, 2009 at 11:31 AM, Ratheesh Kumar K >> wrote: >>> >>> Thanks for your reply. >>> I was not fortunate enough to get it run by your reply. can you give a >>> bit >>> more help to me. >>> >>> I hav changed the class name to start with capital letter. >>> Now the struts.xml looks like as follows: >>> >>> >>"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" >>>"http://struts.apache.org/dtds/struts-2.1.dtd";> >>> >>> >>>>> extends="struts-default"> >>> >>>index.jsp >>>success.jsp >>> >>> >>> >>> >>> web.xml >>> >>> >>> http://www.w3.org/2001/XMLSchema-instance"; >>> xmlns="http://java.sun.com/xml/ns/javaee"; >>> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; >>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee >>> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; id="WebApp_ID" >>> version="2.5"> >>> test1 >>> >>>index.jsp >>> >>> >>> struts2 >>> >>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter >>> >>> >>> >>> struts2 >>> /* >>> >>> >>> >>> directory structure looks like as follows: >>> http://www.nabble.com/file/p2131/directory13.gif >>> >>> >>> >>> newton.dave wrote: From my JavaRanch response: A couple of notes: * You're missing commons-io. * Java class names should start with a capital letter, i.e., TestAction. * You should use the ng filter in 2.1.6. * Namespaces should begin with a slash ("/"). Is there anything in the log regarding a filter startup failure? Dave Ratheesh Kumar K wrote: > hi , > thanks 4 ur reply. > But as u can see my reply to the mail (third post in this thread.), I > hav > attached all the jsps and configuration file. In the jsp I have given > the > action. > Can you be more clear on your statement, taking in consideration that > I > am a > newbie to struts. > Please help me. > > > > > suhas kokal wrote: >> Hi, >> This is Suhas. I have read your mail. >> Most probably you have not defined the action which drives the jsp. >> Bcos if no action is mentioned in the , defaults to the >> driving >> action. If not defined warning comes out. >> >> Thanks >> >> Suhas. >> >> >> >> --- On Thu, 12/2/09, Ratheesh Kumar K >> wrote: >> >>> From: Ratheesh Kumar K >>> Subject: Re: WARNING: Could not find action or result There is no >>> Action >>> mapped for namespace / and action name . - [unknown location] >>> To: user@struts.apache.org >>> Date: Thursday, 12 February, 2009, 9:41 AM >>> Sorry for the inconvenience. >>> Thanks for your instant response. >>> here is the directory structure >>> http://www.nabble.com/file/p21969639/directoryStructure.gif >>> >>> Following are the major configuration files: >>> >>> web.xml >>> >> encoding="UTF-8"?> >>> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >>> xmlns="http://java.sun.com/xml/ns/javaee"; >>> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; >>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee >>> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; >>> id="WebApp_ID" >>> version="2.5"> >>> test1 >>> >>> t1.jsp >>> >>> >>> struts2 >>> >>> org.apache.struts2.dispatcher.FilterDispatcher >>> >>> >>> struts2 >>> /* >>> >>> >>> >>> struts.xml >>> >>> >> encoding="UTF-8"?> >>> >> "-//Apache Software Foundation//DTD Struts >>> Configuration 2.1//EN" >>> >>> "http://struts.apache.org/dtds/struts-2.1.dtd";> >>> >>> >> value="true" /> >>>>> namespace="Amrita" >>> extends="struts-default"> >>> >> class="org.amrita.testAction"> >>>>> name="input">index.jsp >>>success.jsp >>> >>> >>> >>> >>> testAction.java >>> >>> package org.amrita; >
Re: WARNING: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location]
hi Ratheesh, were finally able to solve your problem? I'm just migrating form 2.0.14 to 2.1.6 and suddenly get the same error when trying to access the application default url /. thanks Ratheesh Kumar K wrote: > > hi, > > i have attached the configbrowser plugin and is not able to trace it.the > screen shots are as follows: > http://www.nabble.com/file/p22009471/configbrowser1.gif > http://www.nabble.com/file/p22009471/configbrowser2.gif > http://www.nabble.com/file/p22009471/configbrowser3.gif > > > > Musachy Barroso wrote: >> >> Add the config browser to your app and check what urls it is mapping: >> http://struts.apache.org/2.x/docs/config-browser-plugin.html >> >> musachy >> >> On Fri, Feb 13, 2009 at 11:31 AM, Ratheesh Kumar K >> wrote: >>> >>> Thanks for your reply. >>> I was not fortunate enough to get it run by your reply. can you give a >>> bit >>> more help to me. >>> >>> I hav changed the class name to start with capital letter. >>> Now the struts.xml looks like as follows: >>> >>> >>"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" >>>"http://struts.apache.org/dtds/struts-2.1.dtd";> >>> >>> >>>>> extends="struts-default"> >>> >>>index.jsp >>>success.jsp >>> >>> >>> >>> >>> web.xml >>> >>> >>> http://www.w3.org/2001/XMLSchema-instance"; >>> xmlns="http://java.sun.com/xml/ns/javaee"; >>> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; >>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee >>> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; id="WebApp_ID" >>> version="2.5"> >>> test1 >>> >>>index.jsp >>> >>> >>> struts2 >>> >>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter >>> >>> >>> >>> struts2 >>> /* >>> >>> >>> >>> directory structure looks like as follows: >>> http://www.nabble.com/file/p2131/directory13.gif >>> >>> >>> >>> newton.dave wrote: From my JavaRanch response: A couple of notes: * You're missing commons-io. * Java class names should start with a capital letter, i.e., TestAction. * You should use the ng filter in 2.1.6. * Namespaces should begin with a slash ("/"). Is there anything in the log regarding a filter startup failure? Dave Ratheesh Kumar K wrote: > hi , > thanks 4 ur reply. > But as u can see my reply to the mail (third post in this thread.), I > hav > attached all the jsps and configuration file. In the jsp I have given > the > action. > Can you be more clear on your statement, taking in consideration that > I > am a > newbie to struts. > Please help me. > > > > > suhas kokal wrote: >> Hi, >> This is Suhas. I have read your mail. >> Most probably you have not defined the action which drives the jsp. >> Bcos if no action is mentioned in the , defaults to the >> driving >> action. If not defined warning comes out. >> >> Thanks >> >> Suhas. >> >> >> >> --- On Thu, 12/2/09, Ratheesh Kumar K >> wrote: >> >>> From: Ratheesh Kumar K >>> Subject: Re: WARNING: Could not find action or result There is no >>> Action >>> mapped for namespace / and action name . - [unknown location] >>> To: user@struts.apache.org >>> Date: Thursday, 12 February, 2009, 9:41 AM >>> Sorry for the inconvenience. >>> Thanks for your instant response. >>> here is the directory structure >>> http://www.nabble.com/file/p21969639/directoryStructure.gif >>> >>> Following are the major configuration files: >>> >>> web.xml >>> >> encoding="UTF-8"?> >>> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >>> xmlns="http://java.sun.com/xml/ns/javaee"; >>> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; >>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee >>> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; >>> id="WebApp_ID" >>> version="2.5"> >>> test1 >>> >>> t1.jsp >>> >>> >>> struts2 >>> >>> org.apache.struts2.dispatcher.FilterDispatcher >>> >>> >>> struts2 >>> /* >>> >>> >>> >>> struts.xml >>> >>> >> encoding="UTF-8"?> >>> >> "-//Apache Software Foundation//DTD Struts >>> Configuration 2.1//EN" >>> >>> "http://struts.apache.org/dtds/struts-2.1.dtd";> >>> >>> >> value="true" /> >>>>> namespace="Amrita" >>> extends="struts-default"> >>> >> class="org.amrita.testAction"> >>>>> name="input">index.jsp >>>success.jsp >>> >>> >>> >>> >>> testAction.java >>> >>> package org.amrita; >
Re: Please Disregard: How to get 2.1.8 from Maven Snapshot Repository?
Oops! Pardon the duplicate posting. I had a misconfigured email filter that led me to believe my message had not gone out. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to get 2.1.8 for Maven build?
That makes sense, Wendy. Guess I should have thought about it being a "snapshot" build. Thanks. Wendy Smoak wrote: > On Thu, Sep 24, 2009 at 3:35 PM, David C. Hicks wrote: > >> I've added the snapshot repository to my pom.xml, but I'm still unable >> to get the 2.1.8 release. �I have found a message about 2.1.8 being >> available there dated 9/22/09, however. �Is there something else I >> should or should not be doing? >> >> Here's what I've added: >> > ... > >> � � � � � �http://people.apache.org/repo/m2-snapshot-repository >> > ... > >> � � � � � � � �2.1.8 >> > > A snapshot repository would not contain a released (non-SNAPSHOT) version. > > 2.1.8 is not yet in the central repository: > http://repo2.maven.org/maven2/org/apache/struts/struts2-core/ > > From what I see on the dev list, it's being voted on, but has not yet > been officially released. If you're interested in trying it out > pre-release, search the dev list archives for the vote thread and > you'll find the repository url. > >
How to get 2.1.8 from Maven Snapshot Repository?
I've added the snapshot repository to my pom.xml, but I'm still unable to get the 2.1.8 snapshot release. I have found a message about 2.1.8 being available there dated 9/22/09, however. Is there something else I should or should not be doing? There is a specific bug fix in 2.1.8 that I'd like to be able to take advantage of. Thanks, Dave Here's what I've added to my pom.xml: apache.snapshots ASF Maven 2 Snapshot http://people.apache.org/repo/m2-snapshot-repository daily daily and org.apache.struts struts2-core 2.1.8 org.apache.struts struts2-spring-plugin 2.1.8 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Help with Combobox
Help me whit this code: Struts.xml: /tags/iteratedemo.jsp /tags/iteratedemo.jsp The combobox is empty... why? Juan Pablo Pizarro wrote: > > Thanks!! > > It works fine! > > Regards. > > 2008/6/26 Lukasz Lenart : >> 2008/6/26 Juan Pablo Pizarro : >>> Sorry, I use: >>> >>> >>name="technology" readonly="true" >>>headerValue="--- Please Select ---" >>> headerKey="1" >>> list="lstTechnology.{shortDesc}"/> >> >> It should be like this >> >> list="lstTechnology" >> listKey="technologyId" - this will be the value of technology >> listValue="technologyLabel" - what will user see >> >> >> 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 >> >> > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Help-with-Combobox-tp18137053p25640995.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: Problem with available Strus2 Releases
2009/9/27 : > A few weeks ago I was downloading struts 2 and noticed that the icon on > the main page (http://struts.apache.org/2.x/) stated 2.1.7 as the latest > release. But in the following page it stated 2.1.6. 2.1.7 wasn't fully released and wasn't approved as a GA (but release process made a small mess with the front page) - you should use 2.1.6 instead. > Today I noticed that it says that latest is 2.1.8 and the latest available > is 2.1.6. At least, 2.1.8 was released and it's the latest GA version. Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Using html:select with string arrays -> multiple options selected
When I am iterating through string arrays in my JSP, I am seeing the resulting HTML having multiple options selected for one drop down box instead of rendering multiple drop down boxes. The JSP: The rendered HTML for the drop down box would look like this if the array for weight was {"1","2"}: One Two Three How can I make it so that it generates two select boxes with the first one having "One" selected and the second one having "Two" selected? Thanks in advance for your help!
Re: Struts 2 Converting specific List User property
Sounds like you want to apply a converter to the Users class rather than to the UsersAction itself. >From the docs >(http://struts.apache.org/2.1.6/docs/type-conversion.html#TypeConversion-ApplyingaTypeConvertertoabeanormodel) you could create a custom converter for the Users class called Users-conversion.properties with the line dateOfBirth=com.acme.DateOfBirthConverter. Peter. 2009/9/27 David Harland : > Hi, > > I have an UsersAction that has a List user; > > User has the property java.util.Date dateOfBirth > > I want to use a default Convertor for java.util.Date in > xwork-converion.properties which I know how to do, but I want to have a > different Convertor for dateOfBirth. Is this possible and if so how do I > specify it in UsersAction-conversion.properties > > Thanks > > Dave. > > > > > - > 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
Struts 2 Converting specific List User property
Hi, I have an UsersAction that has a List user; User has the property java.util.Date dateOfBirth I want to use a default Convertor for java.util.Date in xwork-converion.properties which I know how to do, but I want to have a different Convertor for dateOfBirth. Is this possible and if so how do I specify it in UsersAction-conversion.properties Thanks Dave. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Please Help with struts2
Hello This sample deployed in web conteiner of GlashFish server. Here is .jsp http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> <% response.setHeader("Pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache"); response.setDateHeader("Expires", 0); // Calculate the view sources url String sourceUrl = request.getContextPath()+"/viewSource.action"; com.opensymphony.xwork2.ActionInvocation inv = com.opensymphony.xwork2.ActionContext.getContext().getActionInvocation(); org.apache.struts2.dispatcher.mapper.ActionMapping mapping = org.apache.struts2.ServletActionContext.getActionMapping(); if (inv != null) { com.opensymphony.xwork2.util.location.Location loc = inv.getProxy().getConfig().getLocation(); sourceUrl += "?config="+(loc != null ? loc.getURI()+":"+loc.getLineNumber() : ""); sourceUrl += "&className="+inv.getProxy().getConfig().getClassName(); if (inv.getResult() != null && inv.getResult() instanceof org.apache.struts2.dispatcher.StrutsResultSupport) { sourceUrl += "&page="+mapping.getNamespace()+"/"+((org.apache.struts2.dispatcher.StrutsResultSupport)inv.getResult()).getLastFinalLocation(); } } else { sourceUrl += "?page="+request.getServletPath(); } %> <%...@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"; %> <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"; prefix="decorator" %> <%...@taglib prefix="s" uri="/struts-tags" %> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> window.onload=function(){ if(!NiftyCheck()) return; Rounded("blockquote","tr bl","#ECF1F9","#CDFFAA","smooth border #88D84F"); Rounded("div#outer-header", "all", "white", "#818EBD", "smooth border #434F7C"); Rounded("div#footer", "all", "white", "#818EBD", "smooth border #434F7C"); } Struts Showcase Navigation ">Home ">Ajax ">Ajax Chat ">Action Chaining ">Config Browser ">Conversion ">CRUD ">Execute & Wait ">File Download ">File Upload ">Freemarker ">Hangman ">JavaServer Faces ">Person Manager ">Tags ">Tiles ">Token ">Validation ">Help View Sources Copyright © 2003- The Apache Software Foundation. Here is web.xml http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> Struts Showcase Application struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp struts org.apache.struts2.dispatcher.FilterDispatcher actionPackages org.apache.struts2.showcase.person sitemesh com.opensymphony.module.sitemesh.filter.PageFilter struts-cleanup /* sitemesh /* struts /* org.springframework.web.context.ContextLoaderListener org.apache.myfaces.webapp.StartupServletContextListener org.apache.struts2.tiles.StrutsTilesListener org.apache.struts2.showcase.chat.ChatSessionListener dwr uk.ltd.getahead.dwr.DWRServlet debug true faces javax.faces.webapp.FacesServlet 1 JspSupportServlet org.apache.struts2.views.JspSupportServlet 1 faces *.action dwr /dwr/* index.jsp default.jsp index.html Here isstruts-tags.tld http://java.sun.com/xml/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
Problem with available Strus2 Releases
A few weeks ago I was downloading struts 2 and noticed that the icon on the main page (http://struts.apache.org/2.x/) stated 2.1.7 as the latest release. But in the following page it stated 2.1.6. Today I noticed that it says that latest is 2.1.8 and the latest available is 2.1.6. I even tried to go to the listing from the mirrors and there are no 2.1.7 or 2.1.8 there: http://www.apache.org/dist/struts/binaries/ Gustavo Felisberto - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org