convert \n to in jsp print statement
Hi I have text which I submit to and retrieve from a database. When I submit to the database, it seems that the line breaks are preserved, but when I want to retrieve the text to my browser, everything becomes one long on-going stream of text. Presumably the \n line breaks exist in the database but they have to be converted to tags for the browser to display them as line breaks. I am using a jsp which has a vector called log_messages to obtain the messages from the database. After obtaining them, I then display these messages with the following code. <% for (i =0; i < log_message.size(); i ++) { %> Message: <%out.println(log_message.get(i).toString());%> <% } %> But I would like to convert the newline characters \n (which presumably are there in some of the message bodies) to statements so new paragraphs will be showing. Is there an easy way to do this? Any help will be greatly appreciated. Thanks Hugo -- Dr Hugo Bouckaert Systems and Programming Engineer GeoInformatics Exploration Australia P/L 57 Havelock St West Perth, WA 6005 PO Box 1675, West Perth 6872 Ph: 61 08 9420 7400 Fax: 61 08 9226 1299 www.geoinformex.com This email and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Need Some Document on Implementing SSL in Tomcat
Hi, Can any send me a doc on how to implement SSL in Tomcat. Pls dont give me the URL, since i dont have net connection to browse. thanks & regards vijayanand.R (),,,() ( (. .) .-''-. (o ) ) ('o' ) =(,,)=(,,)==(,,)==(,,)= ==To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Tomcat SSL
> -Original Message- > From: Fernando Barsoba (pradaUSA) [mailto:fbarsoba@;PRADAUSA.COM] > Sent: Sunday, October 27, 2002 9:50 PM > To: [EMAIL PROTECTED] > Subject: Tomcat SSL > > > I was able to set up SSL with Tomcat successfully. Now, the > problem is that the whole web site is now SSL enabled. What if > I only want certain Context to be SSL enabled. Is that possible > with Tomcat? In your web.xml you can specify which URLs require SSL as follows: Purchase /ssl/* registered-user CONFIDENTIAL The role-name is defined in $CATALINA_HOME/conf/tomcat-users.xml file. Hope that helps. > > Thank you, > > Fer- Vikram. > > == > To unsubscribe: mailto [EMAIL PROTECTED] with > body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set > JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > Disclaimer: This e-mail message along with any attachments is intended only for the addressee and may contain confidential and privileged information of GTL Limited. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Tomcat SSL
I was able to set up SSL with Tomcat successfully. Now, the problem is that the whole web site is now SSL enabled. What if I only want certain Context to be SSL enabled. Is that possible with Tomcat? Thank you, Fer- ==To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: web application design question...
Padhu, I can suggest our product TICL (however, it's only free for non-commercial use). Get it http://www.kobrix.com. It is component based, so you put UI components in your JSP and respond to events. Every JSP page that you write in TICL has in a way its own controller encapsulated in a top-level tag and you can compose more complex pages by including smaller ones without worrying much which does rendering, which creates beans etc. Look&feel in TICL is not specified in the JSPs at all. Every component has a high-level style used to render it. So you will define a consistent, common look&feel for all your pages in one place: a TICL style sheet. For example, the JSPs in our have almost no pure HTML (except in a few places where tables are used for layout). Best, Boris Borislav Iordanov Chief Architect TICL - a RAD toolkit for server-side Java http://www.kobrix.com > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:JSP-INTEREST@;JAVA.SUN.COM] On Behalf Of Padhu Vinirs > Sent: Sunday, October 27, 2002 7:48 PM > To: [EMAIL PROTECTED] > Subject: web application design question... > > I am planning on designing a web app. This web app basically has one > look and feel ( like an amazon.com ) but where the contents change ( > including images, amount of text/links etc ) depending on user choices. > I am aware of Struts framework and the Front controller design pattern. > I think Struts might be overkill because of the same look and feel > across the webapp. > > My question is: Should the look and feel be : > > 1. managed by one jsp page which calls different controller objects ( > which print portions of the UI ) > 2. one jsp page which calls different controller objects which update > javabeans, which in turn the main jsp page renders. So all rendering is > done by only one jsp page, which acts as the front controller also. > 3. one jsp page, which includes different jsp pages depending on the > requirements. The smaller jsp pages inturn call controller objects, read > from model/javabeans etc to render the UI. The main jsp page acts as the > front controller. > > I prefer (3), but making sure the different JSP pages maintain the same > look-and-feel standard is going to be tricky. > > > I would like to hear comments from anybody who has designed similar > projects. Also any good book recommendations is appreciated. > > > Thanks > > > -- padhu > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP- > INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
web application design question...
I am planning on designing a web app. This web app basically has one look and feel ( like an amazon.com ) but where the contents change ( including images, amount of text/links etc ) depending on user choices. I am aware of Struts framework and the Front controller design pattern. I think Struts might be overkill because of the same look and feel across the webapp. My question is: Should the look and feel be : 1. managed by one jsp page which calls different controller objects ( which print portions of the UI ) 2. one jsp page which calls different controller objects which update javabeans, which in turn the main jsp page renders. So all rendering is done by only one jsp page, which acts as the front controller also. 3. one jsp page, which includes different jsp pages depending on the requirements. The smaller jsp pages inturn call controller objects, read from model/javabeans etc to render the UI. The main jsp page acts as the front controller. I prefer (3), but making sure the different JSP pages maintain the same look-and-feel standard is going to be tricky. I would like to hear comments from anybody who has designed similar projects. Also any good book recommendations is appreciated. Thanks -- padhu === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com