Hi there,
           I'm using magnolia community edition, 3.0.1. I have a simple
servlet that I call from a search page, that places information into the
session and then redirects to a display page to display that information
from session. The display page uses JSTL to display that information, using
the core tag library. All is working fine, except the display page. I do not
get any exceptions, so I am not sure what is the issue. Here's my display
page code:

<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"; 
xmlns:cms="urn:jsptld:cms-taglib" 
xmlns:cmsu="urn:jsptld:cms-util-taglib" 
xmlns:c="urn:jsptld:http://java.sun.com/jsp/jstl/core";> 

<jsp:output doctype-root-element="html" 
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" 

doctype-system="http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"; /> 
<jsp:directive.page contentType="text/html; charset=utf-8" /> 

<!-- Code, etc., goes here --> 
<c:forEach items="${hotels}" var="hotel">
        <p>
                Hotel Name: <c:out value="${hotel.hotelName}" default="Don't 
know hotel
name" />
                <br/>
                Hotel Star Rating: <c:out value="${hotel.hotelStarRating}" 
default="Don't
know hotel star rating"/>
        </p>                    
        </c:forEach>

        using new code...

</jsp:root>

As you can see, it's pretty basic stuff for now. Am thinking that magnolia
is not recognising the core jstl tags in the file. Note, the file extension
of the page is .jsp. Also note I'm using standard-1.1.2.jar, and
jst-1.1.2.jar. I do not have any reference to any taglibs in my web.xml, as
noted in:

http://www.magnolia.info/wiki/Wiki.jsp?page=JSTLChanges

I did use the java code in this example as a basis:

http://www.magnolia.info/wiki/Wiki.jsp?page=SearchServlet

However, did not have any jsp samples to go on, was just copying what's in
the existing magnolia 3.0.1 instance that's working locally for me as is.
Note, my backend is mysql, all working fine.
Can anyone point out where I'm going wrong?
Best,
Conor

-- 
View this message in context: 
http://www.nabble.com/Cannot-view-session-information-using-JSTL--tf3290921.html#a9153513
Sent from the Magnolia - User mailing list archive at Nabble.com.


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------

Reply via email to