tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Moore, Howard" <Howard.Mo...@Starbase.com>
Subject XTAGS/IO-TAG: URL's requiring authentication?
Date Mon, 26 Nov 2001 21:51:06 GMT
Greetings,

Anyone have any experience using XTAGS or IO-taglib with URL's that require
authentication?

Grok the following code;
----------------------------------------------------------------------------
--------------------
<%
	String strURL =
"http://user:password@locked-server.com?article=14&somevar=whatever";
%>

<io:request url="<%=strURL%>"/>

<xtags:style xml="<%=strURL%>" xsl="<%=strStyleSheet%>" />
----------------------------------------------------------------------------
--------------------

The URL was tested in Netscape and works correctly.  Meaning: It logs in and
retrieves the content.

However, using the taglibs the strURL fails.

Is this an encoding issue?


How can I solve this problem?

Exception messages at the end of this message.


Thanks for your time.

Howard Moore


Howard Moore 
Member, Technical Services
http://www.starbase.com
howardm@starbase.com 
Phone: 714-445-7033 



IO tag error;
===================================
Stack Trace of root cause is:
		javax.servlet.jsp.JspException:
http://someuser:somepass@127.1/wahoo?server=01b21dd1-e208-51ea-01b2-1dd1e208
51ea&project=geezer&view=gezzer&type=reallyold&item=1096192
	at
org.apache.taglibs.io.AbstractTag.handleException(AbstractTag.java:111)
	at org.apache.taglibs.io.URLTag.doEndTag(URLTag.java:188)
	at
dxml_0002dtransf_00025rmers._0002fdxml_0002dtransformers_0002fruntransform_0
002ejspruntransform_jsp_10._jspService(_0002fdxml_0002dtransformers_0002frun
transform_0002ejspruntransform_jsp_10.java:228)
	at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)
===================================

XTAGS error:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Stack Trace of root cause is:
		javax.servlet.jsp.JspException: Bad URL:
http://someuser:somepass@127.1/wahoo?server=01b21dd1-e208-51ea-01b2-1dd1e208
51ea&project=geezer&view=gezzer&type=reallyold&item=1096192
Exception:
http://someuser:somepass@127.1/wahoo?server=01b21dd1-e208-51ea-01b2-1dd1e208
51ea&project=geezer&view=gezzer&type=reallyold&item=1096192
	at
org.apache.taglibs.xtags.xslt.StyleTag.getSource(StyleTag.java:332)
	at
org.apache.taglibs.xtags.xslt.StyleTag.doEndTag(StyleTag.java:185)
	at
dxml_0002dtransf_00025rmers._0002fdxml_0002dtransformers_0002fruntransform_0
002ejspruntransform_jsp_10._jspService(_0002fdxml_0002dtransformers_0002frun
transform_0002ejspruntransform_jsp_10.java:195)
	at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message