RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-18 Thread Robert Taylor
I bet your missing the JSTL taglib directive in your page. Try adding %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % and then your c:x .../ actions will work. -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 9:45 PM

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-18 Thread Robert Taylor
Hi, thank you for your attention to my problem. First all, I think that I am missing someting. In order to use the c:set and c:out ... tags, I think that I have to import a taglib into my JSP and assign it with a prefix c. Which taglib should I import? Right now, I have these:

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-18 Thread Caroline Jen
Thank you for your time and support. It is the JSTL taglib directive I missed in my page. Now, everything works as expected. --- Robert Taylor [EMAIL PROTECTED] wrote: I bet your missing the JSTL taglib directive in your page. Try adding %@ taglib uri=http://java.sun.com/jsp/jstl/core;

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Caroline Jen
Hi, my JSP#1 and JSP#2 use different forms. However, property name in JSP#1 is the same as that in JSP#2. I tried to pass this Sring and write it out in a text field in JSP#2 and just could not get it right. I got this error message: [ServletException in:/article/content/postForm.jsp] Cannot

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread David Friedman
Caroline, How do you save the form cr in session scope? Does your action use 'scope=session' or are you doing a 'request.getSession().setAttribute(cr,cr);' in the first action? Regards, David -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17,

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Caroline Jen
cr is not a form and there is no action involved. There are two JSPs; view.jsp and postForm.jsp and each is with its own form (different forms). In my view.jsp, I am able to write out String creator this way: bean:write name=articleForm property=creator/ and I put the String creator in a session

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Robert Taylor
What exactly are you trying to accomplish? What's the high level view? If you can explain your intent, maybe we can suggest an easier way to accomplish your goal. Is articleForm associated with action mapping /list/Message? If so, then you could do something like: html:form action=/list/Message

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Robert Taylor
Are you sure that c:set var=cr value=${articleForm.creator} scope=session/ is placing the value in the intended scope? Try doing this: html:form action=/list/Message c:set var=cr value=${articleForm.creator}scope=session/ c:out value=${cr}/ html:submitView/Send Messages/html:submit /html:form

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Caroline Jen
Thanks for your advice. I did this in my view.jsp: html:form action=/list/Message c:set var=cr value=${articleForm.creator} scope=session/ c:out value=${cr}/ html:submitView/Send Messages/html:submit /html:form bean:write name=articleForm property=creator/ I was able to see the View/Send

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Caroline Jen
Hi, thank you for your attention to my problem. First all, I think that I am missing someting. In order to use the c:set and c:out ... tags, I think that I have to import a taglib into my JSP and assign it with a prefix c. Which taglib should I import? Right now, I have these: %@ taglib