Re: set not working
I use c:set in exactly the way originally described But have some strange container or JSTL distribution or something. On 20 Sep 2004, at 22:38, Anna Kerekes wrote: No, I'm getting the same HTTP Status 500 error as before... I've also tried all the different scopes in the set tag, but no luck Does the var have to be in a specific format? Is there anything else I can try? From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Mon 20/09/2004 4:35 PM To: Struts Users Mailing List Subject: Re: set not working Interesting.. what about ? On 20 Sep 2004, at 21:01, Anna Kerekes wrote: The first way works..thankyou However, the second way does not :( I get the following error: exception: javax.servlet.ServletException: javax/servlet/jsp/el/VariableResolver root cause: java.lang.NoClassDefFoundError: javax/servlet/jsp/el/VariableResolver Any ideas? From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Mon 20/09/2004 2:56 PM To: Struts Users Mailing List Subject: Re: set not working <% java.lang.String a = "init"; request.setAttribute("a",a); %> or Mark On 20 Sep 2004, at 20:16, Anna Kerekes wrote: Hello, I am having some problems running the program below (it does not run the way it should). *The output I get is*** before a a is null after a *The desired output is before a init after a I'm not sure why "${a}" is evaluating to null instead of "init". any help appreciated, Anna Program: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page import="java.lang.String" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> <% String a = "init"; %> - 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] - 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] - 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: set not working
No, I'm getting the same HTTP Status 500 error as before... I've also tried all the different scopes in the set tag, but no luck Does the var have to be in a specific format? Is there anything else I can try? From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Mon 20/09/2004 4:35 PM To: Struts Users Mailing List Subject: Re: set not working Interesting.. what about ? On 20 Sep 2004, at 21:01, Anna Kerekes wrote: > The first way works..thankyou > > However, the second way does not :( I get the following error: > > exception: > javax.servlet.ServletException: javax/servlet/jsp/el/VariableResolver > root cause: > java.lang.NoClassDefFoundError: javax/servlet/jsp/el/VariableResolver > > Any ideas? > > > > From: Mark Lowe [mailto:[EMAIL PROTECTED] > Sent: Mon 20/09/2004 2:56 PM > To: Struts Users Mailing List > Subject: Re: set not working > > > > <% > java.lang.String a = "init"; > request.setAttribute("a",a); > %> > > > > or > > > > > > Mark > > > On 20 Sep 2004, at 20:16, Anna Kerekes wrote: > >> Hello, >> >> I am having some problems running the program below (it does not run >> the way it should). >> >> *The output I get is*** >> >> >> before a a is null after a >> >> *The desired output is >> >> >> before a init after a >> >> I'm not sure why "${a}" is evaluating to null instead of "init". >> >> any help appreciated, >> >> Anna >> >> Program: >> >> <%@ page contentType="text/html;charset=UTF-8" language="java" %> >> >> <%@ page import="java.lang.String" %> >> >> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> >> >> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> >> >> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> >> >> >> >> <% >> >> String a = "init"; >> >> %> >> >> >> >> >> >> >> >> >> >> >> >> >> - >> 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] > > > > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: set not working
Interesting.. what about ? On 20 Sep 2004, at 21:01, Anna Kerekes wrote: The first way works..thankyou However, the second way does not :( I get the following error: exception: javax.servlet.ServletException: javax/servlet/jsp/el/VariableResolver root cause: java.lang.NoClassDefFoundError: javax/servlet/jsp/el/VariableResolver Any ideas? From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Mon 20/09/2004 2:56 PM To: Struts Users Mailing List Subject: Re: set not working <% java.lang.String a = "init"; request.setAttribute("a",a); %> or Mark On 20 Sep 2004, at 20:16, Anna Kerekes wrote: Hello, I am having some problems running the program below (it does not run the way it should). *The output I get is*** before a a is null after a *The desired output is before a init after a I'm not sure why "${a}" is evaluating to null instead of "init". any help appreciated, Anna Program: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page import="java.lang.String" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> <% String a = "init"; %> - 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] - 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: set not working
The first way works..thankyou However, the second way does not :( I get the following error: exception: javax.servlet.ServletException: javax/servlet/jsp/el/VariableResolver root cause: java.lang.NoClassDefFoundError: javax/servlet/jsp/el/VariableResolver Any ideas? From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Mon 20/09/2004 2:56 PM To: Struts Users Mailing List Subject: Re: set not working <% java.lang.String a = "init"; request.setAttribute("a",a); %> or Mark On 20 Sep 2004, at 20:16, Anna Kerekes wrote: > Hello, > > I am having some problems running the program below (it does not run > the way it should). > > *The output I get is*** > > > before a a is null after a > > *The desired output is > > > before a init after a > > I'm not sure why "${a}" is evaluating to null instead of "init". > > any help appreciated, > > Anna > > Program: > > <%@ page contentType="text/html;charset=UTF-8" language="java" %> > > <%@ page import="java.lang.String" %> > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> > > > > <% > > String a = "init"; > > %> > > > > > > > > > > > > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: set not working
<% java.lang.String a = "init"; request.setAttribute("a",a); %> or Mark On 20 Sep 2004, at 20:16, Anna Kerekes wrote: Hello, I am having some problems running the program below (it does not run the way it should). *The output I get is*** before a a is null after a *The desired output is before a init after a I'm not sure why "${a}" is evaluating to null instead of "init". any help appreciated, Anna Program: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page import="java.lang.String" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> <% String a = "init"; %> - 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]
set not working
Hello, I am having some problems running the program below (it does not run the way it should). *The output I get is*** before a a is null after a *The desired output is before a init after a I'm not sure why "${a}" is evaluating to null instead of "init". any help appreciated, Anna Program: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page import="java.lang.String" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> <% String a = "init"; %> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]