This is my contextpath tag :
public class ContextPathTag extends TagSupport
{
public ContextPathTag()
{
super();
}
public int doEndTag()
{
try {
HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
pageContext.getOut().print( request.getContextPath() );
}
catch (IOException ignored) {
// System.err.println( "ContextPathTag.doEndTag()
excpt:"+ignored.getMessage() );
// ignored.printStackTrace( System.err );
}
return EVAL_PAGE;
}
}
--
Peter Pilgrim
G.O.A.T
"the Greatest Of All Time"
---------------------------------------- Message History
----------------------------------------
From: Peter Pilgrim/DMGIT/DMG UK/DeuBa@DMG [EMAIL PROTECTED]> on 20/02/2001 17:42
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
DELEGATED - Sent by: A mailing list about Java Server Pages specification and
[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: Has anybody got an example of REQUEST_TIME_VALUE?
I developed a new custom action tag for ExpressoFramework
I got a request time attribute but it does not seem to work.
Has any body got example of the code that uses this feature
in `TagExtraInfo' subclass.
<dbexpresso:useController id="profileController" scope="session"
className="com.db.gdd3.emis.controller.UserProfileController"
state="promptNewProfile" />
~~~~~~~~~~~~ My Request Time Expression Fails Here ~~~~~~~~~~~~~
<dbexpresso:setCtrlParam name="profileController"
property="nextPage"
value="<app:contextPath/>/emis/user-profile-success.jsp" />
~~~~~~~~~~~~ My Request Time Expression Fails Here ~~~~~~~~~~~~~
where ``<app:contextPath>'' is equal to ``out.print( request.getContextPath() )''
My TagExtraInfo type class looks like this below.
What do I do to get the request time expression evaluated ?
public class UseControllerExtraInfo extends TagExtraInfo {
/**
* Return information on the scripting variables defined by
* the <code>UseControllerTag</code>
*/
public VariableInfo[] getVariableInfo( TagData data) {
return new VariableInfo[]
{
new VariableInfo(
data.getAttributeString("id"),
data.getAttributeString("className"),
true,
VariableInfo.AT_BEGIN)
};
}
}
--
Peter Pilgrim
G.O.A.T
"the Greatest Of All Time"
--
This e-mail may contain confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorised copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
--
This e-mail may contain confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorised copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets