Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
struts2 ajax jsps

struts2 ajax jsps

2007-08-15       - By Struts2 Fan

 Back

It worked when I change the extention to "action". I am using Appfuse and it
comes with "html" extention default. So I wonder if there is a way to make
it work with "html" extention or I will post a message to Appfuse if it is
possible to change the default extention to something else than "html".

Thanks...  


Ian Roughley wrote:
>
> This line:
>
> There is no Action mapped for namespace /struts/dojo/src/widget/templates
> and action name TabContainer.
>
> Seems to suggest that you may have changed the extension from ".action"
> to ".html", so s2 is looking for an action called TabContainer.
>
> /Ian
> Struts2 Fan wrote:
>> I met the same error, too.
>>
>> I have just a simple jsp
>>
>> ---- start of simple.jsp ----
>> <%@ include file="/common/taglibs.jsp" %>
>> <head>
>>     <s:head theme="ajax"></s:head>
>> </head>
>> <s:tabbedPanel id="test2" theme="simple" cssStyle="width: 500px; height:
>> 300px;" doLayout="true">
>>     <s:div theme="ajax" id="left" label="left">
>>         <s:form>
>>             <s:textfield name="tt" label="Test Text"/>  <br/>
>>             <s:textfield name="tt2" label="Test Text2"/>
>>         </s:form>
>>     </s:div>
>>     <s:div theme="ajax" id="right" label="right">
>>         This is the right pane<br/>
>>     </s:div>
>> </s:tabbedPanel>
>> ---- end of simple.jsp ----
>>
>> Here it gives the following error
>>
>> ---- start of error ----
>>  ERROR [btpool0-2] Dispatcher.serviceAction(512) | Could not find action
>> or
>> result
>> There is no Action mapped for namespace /struts/dojo/src/widget/templates
>> and action name TabContainer. - [unknown location]
>>   at
>> com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java
:186)
>>   at
>> org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy
(StrutsActionProxyFactory.java:41)
>>   at
>> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
>>   at
>> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher
.java:419)
>>   at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1041)
>>   at
>> org.appfuse.webapp.filter.StaticFilter.doFilterInternal(StaticFilter.java
:106)
>>   at
>> org.springframework.web.filter.OncePerRequestFilter.doFilter
(OncePerRequestFilter.java:75)
>>   at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1041)
>>   at
>> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java
:39)
>>   at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1041)
>>   at
>> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter
(ActionContextCleanUp.java:99)
>>   at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1041)
>>   at
>> org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter
.java:350)
>>   at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1041)
>>   at
>> org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter
.java:125)
>>   at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1041)
>>   at
>> net.sf.ehcache.constructs.web.filter.GzipFilter.doFilter(GzipFilter.java:75)
>>   at net.sf.ehcache.constructs.web.filter.Filter.doFilter(Filter.java:92)
>>   at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1041)
>>   at
>> org.appfuse.webapp.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:64)
>>   at
>> org.springframework.web.filter.OncePerRequestFilter.doFilter
(OncePerRequestFilter.java:75)
>>   at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1041)
>>   at
>> com.opensymphony.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter
.java:42)
>>   at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1041)
>>   at
>> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
.doFilterInternal(OpenSessionInViewFilter.java:198)
>>   at
>> org.springframework.web.filter.OncePerRequestFilter.doFilter
(OncePerRequestFilter.java:75)
>>   at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1041)
>>   at
>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter
(FilterChainProxy.java:264)
>>   at
>> org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke
(FilterSecurityInterceptor.java:107)
>>   at
>> org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter
(FilterSecurityInterceptor.java:72)
>>   at
>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter
(FilterChainProxy.java:274)
>>   at
>> org.acegisecurity.ui.ExceptionTranslationFilter.doFilter
(ExceptionTranslationFilter.java:110)
>>   at
>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter
(FilterChainProxy.java:274)
>>   at
>> org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter
(AnonymousProcessingFilter.java:125)
>>   at
>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter
(FilterChainProxy.java:274)
>>   at
>> org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter
(RememberMeProcessingFilter.java:142)
>>   at
>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter
(FilterChainProxy.java:274)
>>   at
>> org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter
(SecurityContextHolderAwareRequestFilter.java:81)
>>   at
>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter
(FilterChainProxy.java:274)
>>   at
>> org.acegisecurity.ui.AbstractProcessingFilter.doFilter
(AbstractProcessingFilter.java:217)
>>   at
>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter
(FilterChainProxy.java:274)
>>   at
>> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter
(HttpSessionContextIntegrationFilter.java:229)
>>   at
>> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter
(FilterChainProxy.java:274)
>>   at
>> org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
>>   at
>> org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
>>   at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1041)
>>   at
>> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal
(CharacterEncodingFilter.java:96)
>>   at
>> org.springframework.web.filter.OncePerRequestFilter.doFilter
(OncePerRequestFilter.java:75)
>>   at
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1041)
>>   at
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354)
>>   at
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
>>   at
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:621)
>>   at
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle
(ContextHandlerCollection.java:149)
>>   at
>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java
:123)
>>   at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
>>   at org.mortbay.jetty.Server.handle(Server.java:269)
>>   at
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
>>   at
>> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:678)
>>   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:492)
>>   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
>>   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
>>   at
>> org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
>>   at
>> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java
:475)
>> ---- end of error ----
>>
>>
>> ---- start of how it is shown ----
>> http://www.nabble.com/file/p12139503/struts_error.jpg
>> ---- end of how it is shown ----
>>
>> What did I miss? I am using 2.0.9
>>  
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
View this message in context: http://www.nabble.com/struts2-ajax-jsps-tf4111244
.html#a12159978
Sent from the Struts - User mailing list archive at Nabble.com.


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.