Hi,

I want to do this in my main.jsp page:

<%
   if(request.getHeader("user-agent").startsWith("Mozilla")) {
%>

   display this

<%
} else {
%>

   display this

<%
}
%>

I don't know how to do the request bit ...
Eg is it:

HttpServletRequest request = new HttpServletRequest();
or is it just request.getHeader
or HttpRequest request = new HttpRequest();

Do i need libraries? If so, how does that work in magnolia?
Can I import stuff in magnolia jsp's like in a normal java project?

That's what I'm lost on!

Thanks

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

Reply via email to