Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sitemesh 2.4 and SpringMVC 2.5.6

 
Rendi Artha
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
Ive been trying to use sitemesh in my springmvc apps. And I did it.
Unfortunately i've got some problems in different decorator for main page.Since I have login page which should not decorated and main page which has different decorator as previous page.
The problem arise when I through login page it success undecorated but when it redirect to main page, the fear comes that show undecorated either .
Please give a suggest to solve this.

Here my decorator.xml



Thanks in advance
Rendi Artawijaya
 
Rendi Artha
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Already solve.

I change as below :
a. I chose decorated page only happens on forward case not both (request and forward)
b. I specify page for to be decorated not based on alias request (such as : login.html) but purely the page target.

Here the code


This is my 4th post who solved by myself. I understand the people voluntary answer questions depends on their free time.
Thanks giving place for me as newbie to learn by myself .
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!