You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lawrence Williams <la...@idil.co.uk> on 2003/11/18 18:08:17 UTC

Problem with
Hi,

I am using the following in a JSP (Welcome.jsp) - trying to output the User-Agent header value.


<%@ page language="java" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

...


     <logic:present header="User-Agent">
       <bean:header id="theheader" name="User-Agent"/>
       You are currently running <bean:write name="theheader"/>
     </logic:present>


However, Resin3 throws ...


javax.servlet.jsp.JspException: Exception forwarding for name welcome:
javax.servlet.ServletException: com.caucho.jsp.JspParseException: com.caucho.java.JavaCompileException:

	at org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173)
	at _index__jsp._jspService(/index.jsp:2)
	at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
	at com.caucho.jsp.Page.pageservice(Page.java:551)
	at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:184)
	at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:165)
	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
	at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253)
	at com.caucho.server.port.WorkerThread.run(WorkerThread.java:129)
	at java.lang.Thread.run(Thread.java:536)



Are there any known issues with this tag? The logic:present seems fine - its just the header reference that causes problems.

TIA
Lawrence 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.538 / Virus Database: 333 - Release Date: 10/11/2003
 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org