RE: error in strutsel-exercise-taglib

2004-09-25 Thread David G. Friedman
John,

Another David here.  I'm learning how to use the Expression Language 'stuff'
in Tomcat 5.0.X (.28 actually) under Struts v1.2.4 and I'm NOT using
Struts-El.  I don't need it.  I'm not sure about HashMaps as I haven't used
them yet, but I can access my variables without Struts-el this way:

My actual for in struts-config.xml is named "uploadForm".  I'm sorry about
the stupid field called "name" but hey, I'm playing around with it! In my
upload.jsp page, I can access the members of the uploadForm either the old
way:

*** Keep in mind I still have a tag
***  so the
*** below html:text tag works properly
*** and pulls the form bean in that is
*** associated with the /upload action.



OR I can do it using the JSP 2.0 expression language syntax:


Again, I DO NOT use Struts-el, just the stock struts.  I do have one change
in my WEB-INF/web.xml file.  Instead of having:



I changed it to:

http://java.sun.com/xml/ns/j2ee"; version="2.4">

That change, after restarting my webapp, allowed me to use expression
language variables in any of my JSP files.

I hope this information helps you.

Regards,
David

-Original Message-
From: John C Cartwright [mailto:[EMAIL PROTECTED]
Sent: Friday, September 24, 2004 7:19 PM
To: Struts Users Mailing List
Subject: Re: error in strutsel-exercise-taglib


Thanks for your reply, David.  I'm not sure that I understand though.  I
am using tomcat 5.0.x and JSP2.0. However, when I change the taglib
directive to:

<%@ taglib prefix="html" uri="http://jakarta.apache.org/struts/tags-html"%>

and try something like:



(where images is a HashMap in request scope), I get an error.  Indeed,
the documentation for the html:img taglib specifies a RTExpr.

Can you clarify for me?

Thanks!

-- john


Karr, David wrote:
> You don't need to use Struts-EL with Tomcat 5, if you're using JSP 2.0.
> In fact, it won't work.  I don't know what this particular exception is,
> but you can avoid this situation entirely by just not doing it.

--
=
John Cartwright
Associate Scientist
Geospatial Data Services Group
CIRES, National Geophysical Data Center/NOAA
(303) 497-6284
[EMAIL PROTECTED]
=


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: error in strutsel-exercise-taglib (resend - list never forwarded it)

2004-09-25 Thread David G. Friedman
John,

Another David here.  I'm learning how to use the Expression Language 'stuff'
in Tomcat 5.0.X (.28 actually) under Struts v1.2.4 and I'm NOT using
Struts-El.  I don't need it.  I'm not sure about HashMaps as I haven't used
them yet, but I can access my variables without Struts-el this way:

My actual for in struts-config.xml is named "uploadForm".  I'm sorry about
the stupid field called "name" but hey, I'm playing around with it! In my
upload.jsp page, I can access the members of the uploadForm either the old
way:

*** Keep in mind I still have a tag
***  so the
*** below html:text tag works properly
*** and pulls the form bean in that is
*** associated with the /upload action.



OR I can do it using the JSP 2.0 expression language syntax:


Again, I DO NOT use Struts-el, just the stock struts.  I do have one change
in my WEB-INF/web.xml file.  Instead of having:



I changed it to:

http://java.sun.com/xml/ns/j2ee"; version="2.4">

That change, after restarting my webapp, allowed me to use expression
language variables in any of my JSP files.

I hope this information helps you.

Regards,
David

-Original Message-
From: John C Cartwright [mailto:[EMAIL PROTECTED]
Sent: Friday, September 24, 2004 7:19 PM
To: Struts Users Mailing List
Subject: Re: error in strutsel-exercise-taglib


Thanks for your reply, David.  I'm not sure that I understand though.  I
am using tomcat 5.0.x and JSP2.0. However, when I change the taglib
directive to:

<%@ taglib prefix="html" uri="http://jakarta.apache.org/struts/tags-html"%>

and try something like:



(where images is a HashMap in request scope), I get an error.  Indeed,
the documentation for the html:img taglib specifies a RTExpr.

Can you clarify for me?

Thanks!

-- john


Karr, David wrote:
> You don't need to use Struts-EL with Tomcat 5, if you're using JSP 2.0.
> In fact, it won't work.  I don't know what this particular exception is,
> but you can avoid this situation entirely by just not doing it.

--
=
John Cartwright
Associate Scientist
Geospatial Data Services Group
CIRES, National Geophysical Data Center/NOAA
(303) 497-6284
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: error in strutsel-exercise-taglib

2004-09-24 Thread John C Cartwright
Thanks for your reply, David.  I'm not sure that I understand though.  I 
am using tomcat 5.0.x and JSP2.0. However, when I change the taglib 
directive to:

<%@ taglib prefix="html" uri="http://jakarta.apache.org/struts/tags-html"%>
and try something like:

(where images is a HashMap in request scope), I get an error.  Indeed, 
the documentation for the html:img taglib specifies a RTExpr.

Can you clarify for me?
Thanks!
-- john
Karr, David wrote:
You don't need to use Struts-EL with Tomcat 5, if you're using JSP 2.0.
In fact, it won't work.  I don't know what this particular exception is,
but you can avoid this situation entirely by just not doing it.
--
=
John Cartwright
Associate Scientist
Geospatial Data Services Group
CIRES, National Geophysical Data Center/NOAA
(303) 497-6284
[EMAIL PROTECTED]
=
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: error in strutsel-exercise-taglib

2004-09-22 Thread Karr, David
You don't need to use Struts-EL with Tomcat 5, if you're using JSP 2.0.
In fact, it won't work.  I don't know what this particular exception is,
but you can avoid this situation entirely by just not doing it.

> -Original Message-
> From: John C Cartwright [mailto:[EMAIL PROTECTED] 
> 
> Hello All,
> 
> I tried deploying the example webapp that comes with the 
> contrib/struts-el taglibs and am getting the following exception 
> accessing the index.jsp:
> 
> java.lang.NullPointerException
>   org.apache.struts.taglib.TagUtils.pageURL(TagUtils.java:1114)
>   
> org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(T
> agUtils.java:466)
>   
> org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(T
> agUtils.java:329)
>   
> org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:475)
>   
> org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:334)
>   
> org.apache.strutsel.taglib.html.ELLinkTag.doStartTag(ELLinkTag
> .java:666)
>   
> org.apache.jsp.index_jsp._jspx_meth_html$1el_link_0(index_jsp.
> java:146)
>   org.apache.jsp.index_jsp._jspService(index_jsp.java:118)
>   
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>   
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:298)
>   
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:292)
>   
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 
> 
> Can anyone suggest what the problem might be?  Struts version 1.2.4, 
> Tomcat 5.0.25.
> 
> Thanks!
> 
> -- john
> 
> =
> John Cartwright
> Associate Scientist
> Geospatial Data Services Group
> CIRES, National Geophysical Data Center/NOAA
> (303) 497-6284
> [EMAIL PROTECTED] 
> =
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



error in strutsel-exercise-taglib

2004-09-22 Thread John C Cartwright
Hello All,
I tried deploying the example webapp that comes with the 
contrib/struts-el taglibs and am getting the following exception 
accessing the index.jsp:

java.lang.NullPointerException
org.apache.struts.taglib.TagUtils.pageURL(TagUtils.java:1114)
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:466)
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:329)
org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:475)
org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:334)
org.apache.strutsel.taglib.html.ELLinkTag.doStartTag(ELLinkTag.java:666)
org.apache.jsp.index_jsp._jspx_meth_html$1el_link_0(index_jsp.java:146)
org.apache.jsp.index_jsp._jspService(index_jsp.java:118)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
Can anyone suggest what the problem might be?  Struts version 1.2.4, 
Tomcat 5.0.25.

Thanks!
-- john
=
John Cartwright
Associate Scientist
Geospatial Data Services Group
CIRES, National Geophysical Data Center/NOAA
(303) 497-6284
[EMAIL PROTECTED]
=
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]