outputting html as html
How can I output a string of html as html? If I have a property called myBean.html set to, table border='1'trtdHi there. This is an html bean writing test./td/tr/table how can I output it in the jsp page as html? (i.e., as a table with a border of 1, not a string with angle bracket syntax.) Thanks, Brian Barnett
RE: outputting html as html
If you're using the c:out tag, set the escapeXml attribute to false. Example: c:out value=${myBean.html} escapeXml=false / -Original Message- From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 12:35 PM To: '[EMAIL PROTECTED]' Subject: outputting html as html How can I output a string of html as html? If I have a property called myBean.html set to, table border='1'trtdHi there. This is an html bean writing test./td/tr/table how can I output it in the jsp page as html? (i.e., as a table with a border of 1, not a string with angle bracket syntax.) Thanks, Brian Barnett This message and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please delete the email and any files transmitted with it entirely from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: outputting html as html
Thanks, that worked. -Original Message- From: Morrow, Steve D. [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 11:42 AM To: 'Tag Libraries Users List' Subject: RE: outputting html as html If you're using the c:out tag, set the escapeXml attribute to false. Example: c:out value=${myBean.html} escapeXml=false / -Original Message- From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 12:35 PM To: '[EMAIL PROTECTED]' Subject: outputting html as html How can I output a string of html as html? If I have a property called myBean.html set to, table border='1'trtdHi there. This is an html bean writing test./td/tr/table how can I output it in the jsp page as html? (i.e., as a table with a border of 1, not a string with angle bracket syntax.) Thanks, Brian Barnett This message and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please delete the email and any files transmitted with it entirely from your computer. - 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]
sending two different mails
Hi, Can we send two different mails using the mt:mail tag of Mailer tag library, at a given time. If yes can any body please how to achieve this. Here is what I am trying to do-- (As u can see I am using there are two mt:mail, but only first one is executed). body mt:mail req:existsParameter name=server c:out value=Server Parameter exists./ mt:serverreq:parameter name=server//mt:server /req:existsParameter req:existsParameter name=to c:out value=To Parameter exists./ mt:setrecipient type=toreq:parameter name=to//mt:setrecipient /req:existsParameter req:existsParameter name=from c:out value=From Parameter exists./ mt:fromreq:parameter name=from//mt:from /req:existsParameter req:existsParameter name=cc mt:setrecipient type=ccreq:parameter name=cc//mt:setrecipient /req:existsParameter req:existsParameter name=subject c:out value=Subject Parameter exists./ mt:subjectreq:parameter name=subject//mt:subject /req:existsParameter req:existsParameter name=message c:out value=Message Parameter exists./ mt:messagereq:parameter name=message//mt:message /req:existsParameter req:existsParameter name=file c:out value=File Parameter exists./ mt:attach file=req:parameter name=file//mt:attach /req:existsParameter mt:send pThe following errors occuredbr/br/ mt:error id=err jsp:getProperty name=err property=error/br/ /mt:error br/Please back up a page, fix the error and resubmit./p /mt:send /mt:mail mt:mail req:existsParameter name=server c:out value=Server Parameter exists./ mt:serverreq:parameter name=server//mt:server /req:existsParameter req:existsParameter name=webLogicRecieverEmail c:out value=webLogicRecieverEmail Parameter exists./ mt:setrecipient type=toreq:parameter name=webLogicRecieverEmail//mt:setrecipient /req:existsParameter req:existsParameter name=webLogicSenderEmail c:out value=webLogicSenderEmail Parameter exists./ mt:fromreq:parameter name=webLogicSenderEmail//mt:from /req:existsParameter req:existsParameter name=cc mt:setrecipient type=ccreq:parameter name=cc//mt:setrecipient /req:existsParameter req:existsParameter name=subject c:out value=Subject Parameter exists./ mt:subjectreq:parameter name=subject//mt:subject /req:existsParameter req:existsParameter name=message c:out value=Message Parameter exists./ mt:messagereq:parameter name=message//mt:message /req:existsParameter req:existsParameter name=file c:out value=File Parameter exists./ mt:attach file=req:parameter name=file//mt:attach /req:existsParameter mt:send pThe following errors occuredbr/br/ mt:error id=err jsp:getProperty name=err property=error/br/ /mt:error br/Please back up a page, fix the error and resubmit./p /mt:send /mt:mail /body /html Avinash Arora -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, May 16, 2004 6:42 PM To: [EMAIL PROTECTED] Subject: taglibs-user Digest 17 May 2004 01:42:13 - Issue 642 taglibs-user Digest 17 May 2004 01:42:13 - Issue 642 Topics (messages 8333 through 8333): Re: passing JSTL to custom tag attribute 8333 by: Martin van Dijken Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] String Taglib 1.1.0 has been released
The Jakarta Taglibs Team is proud to announce the release of version 1.1.0 of its String taglib. This a new minor release, where new tags were added and some bugs fixed. Downloads: Binary: http://jakarta.apache.org/site/binindex.cgi Source: http://jakarta.apache.org/site/sourceindex.cgi Project's pages: Overall: http://jakarta.apache.org/taglibs/ String Taglib: http://jakarta.apache.org/taglibs/doc/string-doc/intro.html Cheers, Felipe Leme (on behalf of The Jakarta Taglibs Team) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[JSTL] How do I enter a null value with sql:param?
How do I enter a null value into a table column with sql:param? The JSTL 1.1 specification states for sql:param that, If value is null, the parameter is set to the SQL value NULL. However, no matter what value I pass to sql:param, I'm unable to set a null column: Case 1: Set value to undefined variable sql:update INSERT INTO tblTest(a) VALUES (?) sql:param value=${nullValue}/ /sql:update Output: javax.servlet.ServletException: javax.servlet.jsp.JspException: INSERT INTO tblTest(a) VALUES (?) : [Microsoft][SQLServer 2000 Driver for JDBC]The specified SQL type is not supported by this driver. Case 2: Set value to null c:set var=nullValue value=null/ sql:update INSERT INTO tblTest(a) VALUES (?) sql:param value=${nullValue}/ /sql:update Output: javax.servlet.ServletException: javax.servlet.jsp.JspException: INSERT INTO tblTest(a) VALUES (?) : [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Syntax error converting the nvarchar value 'null' to a column of data type int. Cast 3: Set value to empty string c:set var=nullValue value=/ sql:update INSERT INTO tblTest(a) VALUES (?) sql:param value=${nullValue}/ /sql:update Output: Microsoft SQL Server inserts a new row with column a set to 0. Any suggestions? Derek NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. AVIS: Le présent courriel contient des renseignements de nature privilégiée et confidentielle et nest destiné qu'à la personne à qui il est adressé. Si vous nêtes pas le destinataire prévu, vous êtes par les présentes avisés que toute diffusion, distribution ou reproduction de cette communication est strictement interdite. Si vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement lexpéditeur et le supprimer de votre système. Notez que la transmission de courriel ne peut en aucun cas être considéré comme inviolable ou exempt derreur puisque les informations quil contient pourraient être interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes ou contenir un virus. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [JSTL] How do I enter a null value with sql:param?
sql:param value=${null}/ Derek Mahar wrote: How do I enter a null value into a table column with sql:param? The JSTL 1.1 specification states for sql:param that, If value is null, the parameter is set to the SQL value NULL. However, no matter what value I pass to sql:param, I'm unable to set a null column: Case 1: Set value to undefined variable sql:update INSERT INTO tblTest(a) VALUES (?) sql:param value=${nullValue}/ /sql:update Output: javax.servlet.ServletException: javax.servlet.jsp.JspException: INSERT INTO tblTest(a) VALUES (?) : [Microsoft][SQLServer 2000 Driver for JDBC]The specified SQL type is not supported by this driver. Case 2: Set value to null c:set var=nullValue value=null/ sql:update INSERT INTO tblTest(a) VALUES (?) sql:param value=${nullValue}/ /sql:update Output: javax.servlet.ServletException: javax.servlet.jsp.JspException: INSERT INTO tblTest(a) VALUES (?) : [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Syntax error converting the nvarchar value 'null' to a column of data type int. Cast 3: Set value to empty string c:set var=nullValue value=/ sql:update INSERT INTO tblTest(a) VALUES (?) sql:param value=${nullValue}/ /sql:update Output: Microsoft SQL Server inserts a new row with column a set to 0. Any suggestions? Derek -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]