Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Struts
Struts2 CannotRenderException
vardhan reddy
Ranch Hand
Posts: 42
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All,
I am learning struts2, while using tiles in
jsp
getting below error
javax.servlet.ServletException: org.apache.tiles.impl.CannotRenderException: ServletException including path '/BaseLayout.jsp'.
Here is my tiles.xml file
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN" "http://tiles.apache.org/dtds/tiles-config_2_0.dtd"> <tiles-definitions> <definition name="baseLayout" template="/BaseLayout.jsp"> <put-attribute name="title" value="" /> <put-attribute name="header" value="/Header.jsp" /> <put-attribute name="menu" value="/Menu.jsp" /> <put-attribute name="body" value="" /> <put-attribute name="footer" value="/Footer.jsp" /> </definition> <definition name="/welcome.tiles" extends="baseLayout"> <put-attribute name="title" value="Welcome" /> <put-attribute name="body" value="/Welcome.jsp" /> </definition> <definition name="/customer.tiles" extends="baseLayout"> <put-attribute name="title" value="Customer Form" /> <put-attribute name="body" value="/Customer.jsp" /> </definition> <definition name="/customer.success.tiles" extends="baseLayout"> <put-attribute name="title" value="Customer Added" /> <put-attribute name="body" value="/SuccessCustomer.jsp" /> </definition> </tiles-definitions>
and struts.xml
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <constant name="struts.enable.DynamicMethodInvocation" value="false" /> <constant name="struts.devMode" value="false" /> <constant name="struts.custom.i18n.resources" value="ApplicationResources" /> <package name="default" extends="struts-default" namespace="/"> <result-types> <result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult" /> </result-types> <action name="login" class="com.struts2.example.LoginAction"> <result name="success" type="tiles">/welcome.tiles</result> <result name="error">Login.jsp</result> </action> <action name="customer" class="com.struts2.example.CustomerAction" method="addCustomer"> <result name="success" type="tiles">/customer.success.tiles</result> <result name="input" type="tiles">/customer.tiles</result> </action> <action name="customer-form"> <result name="success" type="tiles">/customer.tiles</result> </action> </package> </struts>
any one check this code and let me know what i am doing wrong.
vardhan reddy
Ranch Hand
Posts: 42
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
problem is resolved. problem is mismatch jar versions. I have updated my tiles jar files
thanks all.
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
There is no Action mapped for namespace / and action name welcomeLink. - [unknown location]
submitting correct username and password, it again come in login.jsp
Facing an issue trying to use Struts 2.0.14 with Tiles 2.0.
Struts2 :Tiles request page without action class
HTTP Status 404
More...