Debug problem, one http request is send twice.

2011-04-08 Thread DanY Liu
Hi all, I want to try the model driven and prepare interceptors in struts 2, so I wrote a example. Then I was going to debug the program, every time , one http request make two "request" in the struts, in other words, when the "return SUCCESS" called(the html is populated in the browser successful

Re: Wildcard pattern not calling interceptor?

2011-04-08 Thread Dave Shevett
You completely missed the point of my posting, and what was going on. Had you bothered looking at the results below, you would have seen, in fact, the WEB-INF is storing my jsps... /WEB-INF/jsp/public/{1}.jsp I am not, in fact, accessing them directly. I'm trying, in fact, to make sure an in

overriding struts.xml settings from web.xml

2011-04-08 Thread Sami Dalouche
Hi, http://struts.apache.org/2.x/webxml.html explains how to set struts2 params from web.xml. I have several questions regarding this : 1/ If the same setting is declared both in web.xml and in struts.xml, which one wins ? 2/ the example sets the setting on StrutsPrepareAndExecuteFilter. What

Re: Tiles problem : Error executing tag: Attribute 'title' not found.

2011-04-08 Thread abhishek jain
hi yes, the first three lines of my file seo.jsp reads <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles" %> though my IDE myeclipse show

Re: Tiles problem : Error executing tag: Attribute 'title' not found.

2011-04-08 Thread Chris Pratt
Did you remember to import the tiles taglib? (*Chris*) On Fri, Apr 8, 2011 at 7:48 AM, abhishek jain wrote: > hi, > Someone help please > works in the document where > layoutstore.jsp but not in seo.jsp which is a file called in > layoutstore.jsp. > > thanks > abhishek > > On Tue, Apr 5, 2011

Re: Tiles problem : Error executing tag: Attribute 'title' not found.

2011-04-08 Thread abhishek jain
hi, Someone help please works in the document where layoutstore.jsp but not in seo.jsp which is a file called in layoutstore.jsp. thanks abhishek On Tue, Apr 5, 2011 at 2:50 PM, abhishek jain wrote: > hi, > It didnt solved my problem, i am still confused. > > works in the document where > layo

Re: Wildcard pattern not calling interceptor?

2011-04-08 Thread stanlick
You should never allow JSP pages to be accessed directly. Place them behind WEB-INF and your problem goes away. On Thu, Apr 7, 2011 at 8:46 PM, Dave Shevett wrote: > I have an app that uses a generic interceptor on all action calls to verify > if the session is active, and if it isn't, it retur

Action Mapping

2011-04-08 Thread karthick.gunasekaran
In struts 2 some times we map actionname_* some times we use actionname_methodname some times we use actionname!methodname some times we use *actionname I want to know what is the different all of them we use method={1} in action mapping what is the meaning ? Please do not print this email unless