On Wed, 18 Jun 2003, Clauson, Kelly wrote:
> Date: Wed, 18 Jun 2003 19:18:45 -0000 > From: "Clauson, Kelly" <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > Subject: RE: hidden fields and extension tag errors with weblogic > > Thanks for the response Rich. This did not work, but it did get me started > on the right path. > This code in the jsp: > <html:select property="week" value="<%= request.getParameter('Week') %>"> > > results in this error: > > myaddedit.java:213: unclosed character literal > probably occurred due to an error in /list/myAddEdit.jsp line 21: > <html:select property="week" value="<%= request.getParameter('Week') %>"> > The problem is that Java and JSP have different interpretations of quoting literal characters (single and double quotes): * In JSP, you can use either kind of quotes for an attribute value, as long as they match. * In Java, single quotes are used for character literals, and double quotes are used for strings. So, the following would do what you want: <html:select property="week" value='<%= request.getParameter("Week") %>'> Note the use of single quotes around the attribute value for "value", so that you can use double quotes inside the Java expression. Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]