Older Struts/Tiles was notorious (at least in my experience) for swallowing
exceptions whole. My first guess is that something is broken in one of your
JSPs used by the tile.

That's one good reason not to use such old technology for new development:
you lose the benefits of hundreds of thousands of man-hours of experience
generally used to create better, more robust platforms.

Dave

On Thu, Dec 16, 2010 at 3:27 PM, Anjib Mulepati <anji...@hotmail.com> wrote:

> There was space at the beginning. That is solved. I'm getting something but
> not whole page just logo and header.
> I though name should be body in tiles def file. so I change all to bosy as
> tiles.jsp has attribute="body"
>
> Still same problem.
>
>
> Anjib
>
> On 12/16/2010 2:15 PM, Dave Newton wrote:
>
>> A startup error. Check the logs.
>>
>> Dave
>>
>> On Thu, Dec 16, 2010 at 1:59 PM, Anjib Mulepati<anji...@hotmail.com>
>>  wrote:
>>
>>  This is the problem I am facing everytime I am creating new project in
>>> Netbeans and modify the default pages. Am I missing some sequence of
>>> action
>>> or parameters. To make it clear I am including most of the code which I
>>> think are related. Can any one suggets me why I am getting following
>>> error
>>> when I run my application.
>>>
>>> *type* Status report
>>>
>>> *message* _Servlet action is currently unavailable_
>>>
>>> *description* _The requested service (Servlet action is currently
>>> unavailable) is not currently available.
>>> _
>>>
>>> _
>>> _Code fragments_
>>> _
>>>
>>> 1. Tiles layout jsp page (tiles.jsp)
>>> -----------------------------------------
>>> <html>
>>> <head>
>>> <link rel="stylesheet" href="css/dynamic_css.css" media="screen,
>>> projection" type="text/css" />
>>> <title><tiles:getAsString name="title" ignore="true"/></title>
>>> <meta HTTP-EQUIV="Pragma" content="no-cache">
>>> <meta HTTP-EQUIV="Expires" content="-1">
>>> </head>
>>>
>>> <body>
>>> <div id="everyoneneedsawrapper">
>>> <img id="logo" src="images/myLogo.png" alt="logo">
>>> <div id="header"><tiles:insert attribute="header"/></div>
>>> <div id="content"><tiles:insert attribute="body"/></div>
>>> <div id="footer"><tiles:insert attribute="footer"/></div>
>>> </div>
>>> </body>
>>> </html>
>>>
>>> 2. I have struts tiles as
>>> ----------------------------
>>> <definition name=".mainLayout" path="/tiles/layout.jsp">
>>> <put name="title"  value=":: Agent Managing Application ::" />
>>> <put name="header" value="/pages/header.jsp" />
>>> <put name="footer" value="/pages/footer.jsp" />
>>> <put name="content"   value="/pages/login.jsp" />
>>> </definition>
>>>
>>> <definition name="groupingPage" extends=".mainLayout">
>>> <put name="title"  value=":: Group Manage Page ::" />
>>> <put name="content"   value="/pages/groupIn.jsp" />
>>> </definition>
>>>
>>> <definition name="loginPage" extends=".mainLayout">
>>> <put name="title"  value=":: Login Page ::" />
>>> <put name="content"   value="/pages/login.jsp" />
>>> </definition>
>>>
>>> 3. My struts-config files as
>>> ---------------------------------
>>> <action-mappings>
>>> <action path="/Login" forward="loginPage"/>
>>>
>>> <action input="loginPage" name="LoginForm" path="/loginsubmit"
>>>                scope="request"
>>> type="gov.ma.itd.grouping.actions.LoginAction">
>>> <forward name="success" path="groupingPage" />
>>> <forward name="failure" path="loginPage" />
>>> </action>
>>> </action-mappings>
>>>
>>> 4. My web.xml files as
>>> ---------------------------
>>> <servlet-mapping>
>>> <servlet-name>action</servlet-name>
>>> <url-pattern>*.do</url-pattern>
>>> </servlet-mapping>
>>> <session-config>
>>> <session-timeout>
>>>            30
>>> </session-timeout>
>>> </session-config>
>>> <welcome-file-list>
>>> <welcome-file>index.jsp</welcome-file>
>>> </welcome-file-list>
>>>
>>> 5. index.jsp
>>> ------------
>>> <jsp:forward page="Login.do"/>
>>>
>>> 6. And ofcourse I have login.jsp,  groupIn.jsp, header.jsp, and
>>> footer.jsp
>>> pages.
>>>
>>> Thanks
>>> Anjib
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to