I have been playing with the shale-blank app and I have a problem.

How do you deal with putting your jsp pages under WEB-INF ie in WEB-INF/pages?
(presumably this is a more secure place to put your jsp pages)

Everything works fine if I move the welcome.jsp into pages/welcome.jsp at the web app level
and define the managed bean as:
<managed-bean>
   <managed-bean-name>pages$welcome</managed-bean-name>
<managed-bean-class>org.apache.shale.blank.WelcomeBean</managed-bean-class>
   <managed-bean-scope>request</managed-bean-scope>
 </managed-bean>

When I move welcome.jsp to WEB-INF/pages and define the managed bean as
 <managed-bean>
   <managed-bean-name>WEB-INF$pages$welcome</managed-bean-name>
<managed-bean-class>org.apache.shale.blank.WelcomeBean</managed-bean-class>
   <managed-bean-scope>request</managed-bean-scope>
 </managed-bean>

and change the index.jsp to
<jsp:forward page="/WEB-INF/pages/welcome.faces"/>

and outputing in welcome.jsp with
<h:outputText value="#{WEB-INF$pages$welcome.timestamp}" >...

I get The current date and time is: Dec 31, 1969 7:00:00 PM EST

if I look at the attributes in requestScope I see
WEB-INF$pages$welcomeWed Mar 22 14:52:01 EST 2006
Which is what it should be.

What am I missing?  Why isn't the page picking up the correct timestamp from
the welcome bean?

--
Mark Shifman

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to