jswdk problem
Hi Room, Another problem on jswdk-when i start the startserver.bat i get an error saying problem creating registry .If anyone has encountered this problem please tell me. Thanx in advance Meera === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: getting gnujsp to work with JServ module
hi!! i am having problem to get gnujsp 1.0 to work with JServ on NT box. the furtherest i get is the generation of the java file but it couldn't compile to a class that can be executed. i following the installation steps but to no avail.. any suggestion === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
The contentType attribute to the 'page' directive.
In looking at the character set handling for the Jakarta JSP compiler it seems to me there are really three character sets that need be known to the JSP compiler: 1. The character set of the *.jsp file. Usually this is ISO-8859-1 (ASCII) but might reasonably be EBCDIC on EBCDIC systems. This really should be chosen by a hint from the container. 2. The character set of the generated *.java file. I would suggest that UTF8 is the most reasonable choice here. 3. The character set of the response written by the compiled servlet. This should be up to the author of the JSP page, as reflected in the current contentType attribute. Opinions? -- Preston L. Bannister http://members.home.com/preston [EMAIL PROTECTED] === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: A Basic doubt !
Although Jason's concerns regarding platform neutrality and avoiding lock-in are valid, I believe JRun and IIS aren't a bad platform for development. I recently ported my entire app from JRUN/IIS to Orion in about 1 hour. The app had over 300 jsp's, 300+ classes, used beans and other techs, so it's probably not considered trivial. JRun does help you out in some ways which will hurt you when you port, but those problems are easy to identify and fix. In my opinion, I wouldn't worry about the web server piece as much as the app server piece (i.e. jrun vs. servlet exec, etc), that's probably where your incompatibilities will happen. Just make sure your app server supports the web server you want to deploy on. regards, Matthew -Original Message- From: Jason Lee [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 30, 1999 4:43 PM To: [EMAIL PROTECTED] Subject: Re: A Basic doubt ! Yes, you'll need something like Apache JServ. I would *highly* recommend ditching IIS & JRun as I've used them both and know how easy it is to get locked in to an NT platform and JRun had weird bugs sometimes. I don't know if it's improved, but I've had better luck with the Apache stuff. Jason Parshwanath wrote: > > Hi, > If I want to use apache [I have been using IIS & JRUN before] do I need some > jsp/servlet engine [like jrun] to run my jsps ? > Thankx for all the replies. > :-)Parshwanath > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > FAQs on JSP can be found at: > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Please help! Frames and jsp:forward question
Hi jsp-ers, I'm trying to do a jsp:forward from one frameset to another, but the effect is that the new frameset ends up in the main window of the first frameset. Since I can't specify target=_top in a jsp:forward call, how can I get the new frameset to replace the old? Thanks! Gerry
Re: A Basic doubt !
Yes, you'll need something like Apache JServ. I would *highly* recommend ditching IIS & JRun as I've used them both and know how easy it is to get locked in to an NT platform and JRun had weird bugs sometimes. I don't know if it's improved, but I've had better luck with the Apache stuff. Jason Parshwanath wrote: > > Hi, > If I want to use apache [I have been using IIS & JRUN before] do I need some > jsp/servlet engine [like jrun] to run my jsps ? > Thankx for all the replies. > :-)Parshwanath > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > FAQs on JSP can be found at: > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Redirect or ??
John McDonald wrote: > All,I have a question about what the best way to redirect a user may > be. I have an extensive web app that is presently based on servlets. > I'm "porting" this web app to JSP, and I'm going to use my servlet to > authenticate and "direct" the user. Once a user connects to the > servlet, authenticates, and I have their informaiton, what is the > best way to send the user to the JSP page. Should I use redirect, or > is there a better way? Any comments would be appreciated. John D. > McDonald Using a redirect would work, but that requires an extra round trip to the client's browser. For a one-time occurrence, this is no big deal, but would cause performance issues if you did it on every request. The RequestDispatcher.forward() call (added in the servlet API version 2.1) was designed for just this sort of purpose. In fact, I use it for all of my JSP-based apps like this: * JSP page has an input form to collect user data * The form is submitted to a servlet * The servlet performs whatever processing logic needed to satisfy the request, stores any results to be displayed in beans, and forwards control to a JSP page to show the results. This approach lets me use the MVC architecture approach (beans=Model, JSP pages=View, servlet=Controller) and separate my business logic from my presentation logic. Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Calling a JSP when not an an HTTP session
Ron Ben-Natan wrote: > Hi, > > Is it possible to use the JSP engine in a mode that is disconnected > from an HTTP session? The JSP mechanism seems a great way to separate > templates from code for formating purposes. For example, if I need to > create a letter to a customer it only makes sense to place the letter > in a JSP and pass it some objects to extract the customer name, address > etc. from. The question is whether I must call this thing using an HTTP > connection (which is very inconvenient and seems a performance problem) Inconvenient how? Using a URLConnection in your application to contact a web server that serves the JSP for you is pretty easy. How much is performance an issue? For your example case (filling out a form letter) I hardly think you'll be able to count the number of milliseconds required. > > or is there a way for me to create a fictitious request and response > and activate this as a Java program? (i.e. I have a Java program that > has all the objects - I want to call the JSP to prepare the output stream > and then extract the generated string from that call. > > Is this possible, and if so can someone forward me to some sample code that > does this? > It is certainly possible, but you essentially need to simulate a servlet engine (and the JSP page compiler) for this to work. If you are serious about not using JSP pages the way they were designed (in a servlet-enabled web server environment), then you probably want to look at other template-based solutions that deal directly with files but allow embedded processing to pick up the data items. (Or, for merge letters, there's always a word processor :-). > > Thanks, > -Ron > ([EMAIL PROTECTED]) > Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Simple custom tag example
I'm trying to run the "Simple custom tag example" with the latest version of Tomcat, and I keep getting the following: Unhandled error! java.lang.IllegalAccessError: try to access class com/sun/xml/tree/ParentNode from class org/apache/jasper/compiler/TagLibraryInfoImpl at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve ntListener.java, Compiled Code) Could it be that it can't find http://java.apache.org/tomcat/examples-taglib ? Thanks, -Rob Vermeulen === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Sorry I got my previous question wrong , Urgent Please
Raman Ravikumar wrote: > Hi all > >I'd like to know if it is possible for an applet to connect to a Servlet > different from the Webserver that generates html. > > Thanks in Advance > ravi > Unless you are using a signed applet that has been granted permissions, you can only contact the host from which the applet was loaded. However (depending on your needs) you might be able to contact a servlet on your web server that then used a URLConnection to contact a servlet on a different server for you, and returned the results -- this is basically what proxy servers do. Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Reading from a text file in JSP
Gong Anna wrote: > Hi, > Could some one tell me how to read from a text file in the same folder as my > .jsp pages? I tried using FileReader("file.txt"), but it's not finding the > .txt file (I think it's looking in the class path instead of the current > folder for the file). Some one please help! Thanks. > Anna > Using a file reader (as you described) is unlikely to work, because it looks in the servlet container's current working directory. To do this from within a JSP page, you will be best off using the getResource() or getResourceAsStream() methods of ServletContext, which already know how to access things from your applications document root. Assuming your JSP pages are at the top level directory (so you use a URL like "http://www.mycompany.com/mypage.jsp" to access them), you would be able to read your file like this: <% InputStream is = getServletContext().getResourceAsStream("/file.txt"); if (is == null) { ... report the problem ... } FileReader reader = new FileReader(is); ... %> Craig McClanahan === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Redirect or ??
All, I have a question about what the best way to redirect a user may be. I have an extensive web app that is presently based on servlets. I'm "porting" this web app to JSP, and I'm going to use my servlet to authenticate and "direct" the user. Once a user connects to the servlet, authenticates, and I have their informaiton, what is the best way to send the user to the JSP page. Should I use redirect, or is there a better way? Any comments would be appreciated. John D. McDonaldCipherStream Systemsemail: [EMAIL PROTECTED]web: www.cipherstream.com---Secure E-Business Is Our Business---
callPage JSP File Location
Hi, I cannot use the callPage method to invoke a JSP page from a servlet that isn't relative to the document root because all I get back are 404 page not found messages. I don't want my JSP pages relative to the document root because I only want users to go through my servlet. My directory structure on the server that doesn't work: /jsp/app/login.jsp The path I'm sending into the callPage method: "/jsp/app/login.jsp" I've also tried to put the jsp pages relative to the servlet thus: /servlet_root/my_servlet_in_this_dir/jsp/app/login.jsp callPage("jsp/app/login.jsp", request) Nothing seems to work, though I thought the 0.91 spec stated that the jsp files could be relative to the servlet that invokes them if you don't use a leading / character. The following does work, unfortunately, the pages would be exposed since they're in the doc_root. /wwwroot/jsp/app/login.jsp "/jsp/app/login.jsp" Any help would be greatly appreciated, Bruce Grant === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Sorry I got my previous question wrong , Urgent Please
Hi all I'd like to know if it is possible for an applet to connect to a Servlet different from the Webserver that generates html. Thanks in Advance ravi Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Thor HW Sent: Thursday, December 30, 1999 2:28 PM To: [EMAIL PROTECTED] Subject: Re: A Basic doubt ! Yes. You can download gnujsp or ojsp (from Oracle's technet) and use them today with JServ. Thor HW - Original Message - From: Arni Raghu <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 30, 1999 10:59 AM Subject: Re: A Basic doubt ! > Does Jserv suopport jsp..? > > Thx, > Arni > > - Original Message - > From: Osvaldo Pinali Doederlein <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, December 30, 1999 10:14 AM > Subject: Re: A Basic doubt ! > > > > Yes, you can get JServ from the Apache group. > > > > - Original Message - > > From: "Parshwanath" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, December 30, 1999 10:03 AM > > Subject: A Basic doubt ! > > > > > > > Hi, > > > If I want to use apache [I have been using IIS & JRUN before] do I need > > some > > > jsp/servlet engine [like jrun] to run my jsps ? > > > Thankx for all the replies. > > > :-)Parshwanath > > > > > > > > > === > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > JSP-INTEREST". > > > FAQs on JSP can be found at: > > > http://java.sun.com/products/jsp/faq.html > > > http://www.esperanto.org.nz/jsp/jspfaq.html > > > > > > > > === > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > > FAQs on JSP can be found at: > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.html > > > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > FAQs on JSP can be found at: > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
FW: Urgent Please
Hi all I'd like to know if it is possible for an to connect to a Servlet different from the Webserver that generates html. Thanks in Advance ravi Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Thor HW Sent: Thursday, December 30, 1999 2:28 PM To: [EMAIL PROTECTED] Subject: Re: A Basic doubt ! Yes. You can download gnujsp or ojsp (from Oracle's technet) and use them today with JServ. Thor HW - Original Message - From: Arni Raghu <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 30, 1999 10:59 AM Subject: Re: A Basic doubt ! > Does Jserv suopport jsp..? > > Thx, > Arni > > - Original Message - > From: Osvaldo Pinali Doederlein <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, December 30, 1999 10:14 AM > Subject: Re: A Basic doubt ! > > > > Yes, you can get JServ from the Apache group. > > > > - Original Message - > > From: "Parshwanath" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, December 30, 1999 10:03 AM > > Subject: A Basic doubt ! > > > > > > > Hi, > > > If I want to use apache [I have been using IIS & JRUN before] do I need > > some > > > jsp/servlet engine [like jrun] to run my jsps ? > > > Thankx for all the replies. > > > :-)Parshwanath > > > > > > > > > === > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > JSP-INTEREST". > > > FAQs on JSP can be found at: > > > http://java.sun.com/products/jsp/faq.html > > > http://www.esperanto.org.nz/jsp/jspfaq.html > > > > > > > > === > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > > FAQs on JSP can be found at: > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.html > > > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > FAQs on JSP can be found at: > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: A Basic doubt !
Yes. You can download gnujsp or ojsp (from Oracle's technet) and use them today with JServ. Thor HW - Original Message - From: Arni Raghu <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 30, 1999 10:59 AM Subject: Re: A Basic doubt ! > Does Jserv suopport jsp..? > > Thx, > Arni > > - Original Message - > From: Osvaldo Pinali Doederlein <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, December 30, 1999 10:14 AM > Subject: Re: A Basic doubt ! > > > > Yes, you can get JServ from the Apache group. > > > > - Original Message - > > From: "Parshwanath" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, December 30, 1999 10:03 AM > > Subject: A Basic doubt ! > > > > > > > Hi, > > > If I want to use apache [I have been using IIS & JRUN before] do I need > > some > > > jsp/servlet engine [like jrun] to run my jsps ? > > > Thankx for all the replies. > > > :-)Parshwanath > > > > > > > > > === > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > JSP-INTEREST". > > > FAQs on JSP can be found at: > > > http://java.sun.com/products/jsp/faq.html > > > http://www.esperanto.org.nz/jsp/jspfaq.html > > > > > > > > === > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > > FAQs on JSP can be found at: > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.html > > > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > FAQs on JSP can be found at: > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: A Basic doubt !
Does Jserv suopport jsp..? Thx, Arni - Original Message - From: Osvaldo Pinali Doederlein <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 30, 1999 10:14 AM Subject: Re: A Basic doubt ! > Yes, you can get JServ from the Apache group. > > - Original Message - > From: "Parshwanath" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, December 30, 1999 10:03 AM > Subject: A Basic doubt ! > > > > Hi, > > If I want to use apache [I have been using IIS & JRUN before] do I need > some > > jsp/servlet engine [like jrun] to run my jsps ? > > Thankx for all the replies. > > :-)Parshwanath > > > > > === > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > > FAQs on JSP can be found at: > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.html > > > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > FAQs on JSP can be found at: > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
JSP Bean in 1st .jsp not seen in 2nd .jsp
Hello, [The code is below] I have a bean (SomeBean) and a launch page (launch.jsp) The launch page defines a bean: The launch page includes another .jsp page called problem.jsp. The problem is that when I reference the bean specified in the first file (launch.jsp) from within the 2nd file (problem.jsp) I get the message: "nameBean is not defined as bean in problem.jsp". Note: If I add to problem.jsp ==> I have a problem in that the "nameBean" has already been defined? Any suggestions? --- The Bean - publc class SomeBean { private firstName; public String getFirstName() { return firstName; } public void setFirstName(String givenFirstName) { firstName = (givenFirstName != null) ? givenFirstName = ""; } } --- launch.jsp - <%@ page import="SomeBean" %> <%@ include file="problem.jsp" %> --- problem.jsp - Hello: === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Output to a XUL/XML file
Try out.println(""); -Original Message-From: Jens Andersen [mailto:[EMAIL PROTECTED]]Sent: Thursday, December 30, 1999 8:13 AMTo: [EMAIL PROTECTED]Subject: Output to a XUL/XML file Hi JSP'ers, I think my question is very trivial but I have to ask i anyway!! I would like the JSP page to get a resultset from a database and format the output so it look like a XUL file (Mozilla interface file)!! I have made the following code which you see below but I have a problem with the quote char. How do I make the following: out.println(""New"/>") And I can't use single quote because then the output will fail (Mozilla will fail) How do I it possible to output the "New"/> with double quotes??? Regrads,J. Andersen Server Configuration: JRun 2.3.3 build 155 Microsoft Internet Information 4 <%@ page import="java.sql.*,java.lang.*,com.sybase.jdbc.*,"%><%@ page contentType="text/xml; charset=ISO-8859-1" %><%String port ="2638";String servicename = "Eportal";String dburl = "jdbc:sybase:Tds:10.42.1.1:" + port + "?ServiceName=" + servicename; String username = "dba";String password = "sql";String jdbcdriver = "com.sybase.jdbc.SybDriver";Connection con;out.println ("");out.println ("");out.println ("JSP and XUL");out.println ("");out.println ("");out.println (""); String query = "execute web_mainmenu"; try{ Class.forName("" + jdbcdriver + ""); }catch(java.lang.ClassNotFoundException e){out.println (""); } try{ con = DriverManager.getConnection(dburl, username, password); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(query); while (rs.next()){String menu_id = rs.getString ("menu_id");String description = rs.getString ("description");String url = rs.getString ("url"); out.println (""); } stmt.close(); con.close(); } catch(SQLException ex){ out.println ("");} out.println ("");out.println ("");out.println ("");out.println ("");%>
Re: Tomcat and Apache
Hi! I just had the same problem ... But, after using the ApacheModuleJServ.dll from ApacheJServ-1_1b3.exe, the apache + tomcat works fine! ApacheJServ-1_1b3.exe can be downloaded from http://java.apache.org/jserv/dist/ApacheJServ-1.1b3.exe Good Luck! - Original Message - From: "Veronique Dupierris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 30, 1999 11:38 PM Subject: Re: Tomcat and Apache > Yes, maybe it could be usefull if you could send me your dll ! But I'm a > little bit surprised that you have to run both Apache and Tomcat. I though i'd > only have to start Apache > which will access to Tomcat for JSP - servlet stuff. How can we be sure we > access the Apache server and not the light tomcat server !! > However, I'm not even able to start Apache now since i add loadModule JServ in > the conf file, so I will try as soon as i'll receive your dll :-) > > Thanks. > Veronique > > > Jens Andersen a écrit : > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Extension of the basic doubt !
Hi, I have now realized I need a servlet engine to run jsp along with apache. I wanted to know what are the popular servlet engines[if available] that are available to be used in LINUX along with apache? Thanx for all your replies . :-)Parshwanath === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Output to a XUL/XML file
Ups forget about my mail - I just figured it out :-) -Original Message-From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Jens AndersenSent: 30. december 1999 16:13To: [EMAIL PROTECTED]Subject: Output to a XUL/XML file Hi JSP'ers, I think my question is very trivial but I have to ask i anyway!! I would like the JSP page to get a resultset from a database and format the output so it look like a XUL file (Mozilla interface file)!! I have made the following code which you see below but I have a problem with the quote char. How do I make the following: out.println(""New"/>") And I can't use single quote because then the output will fail (Mozilla will fail) How do I it possible to output the "New"/> with double quotes??? Regrads,J. Andersen Server Configuration: JRun 2.3.3 build 155 Microsoft Internet Information 4 <%@ page import="java.sql.*,java.lang.*,com.sybase.jdbc.*,"%><%@ page contentType="text/xml; charset=ISO-8859-1" %><%String port ="2638";String servicename = "Eportal";String dburl = "jdbc:sybase:Tds:10.42.1.1:" + port + "?ServiceName=" + servicename; String username = "dba";String password = "sql";String jdbcdriver = "com.sybase.jdbc.SybDriver";Connection con;out.println ("");out.println ("");out.println ("JSP and XUL");out.println ("");out.println ("");out.println (""); String query = "execute web_mainmenu"; try{ Class.forName("" + jdbcdriver + ""); }catch(java.lang.ClassNotFoundException e){out.println (""); } try{ con = DriverManager.getConnection(dburl, username, password); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(query); while (rs.next()){String menu_id = rs.getString ("menu_id");String description = rs.getString ("description");String url = rs.getString ("url"); out.println (""); } stmt.close(); con.close(); } catch(SQLException ex){ out.println ("");} out.println ("");out.println ("");out.println ("");out.println ("");%>
Re: Tomcat and Apache
Yes, maybe it could be usefull if you could send me your dll ! But I'm a little bit surprised that you have to run both Apache and Tomcat. I though i'd only have to start Apache which will access to Tomcat for JSP - servlet stuff. How can we be sure we access the Apache server and not the light tomcat server !! However, I'm not even able to start Apache now since i add loadModule JServ in the conf file, so I will try as soon as i'll receive your dll :-) Thanks. Veronique Jens Andersen a écrit : > Hi Veronique, > > This is how I made it possible to use Tomcat 3.0 with Apache on my NT box: > > I followed the steps which is documented at > http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/etc/Tomcat%2bA > pache-HOWTO?rev=1.1.2.1&content-type=text/x-cvsweb-markup > > Then I started my Apache server and then Tomcat (start.bat) - Then try to > open your browser and go to http://localhost/examples/jsp and it should > work!!! I don't have any problems with the JServ module - please let me know > if you would like at copy of my dll > > Regards, > > Jens Andersen > > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Veronique Dupierris > Sent: 30. december 1999 14:16 > To: [EMAIL PROTECTED] > Subject: Re: Tomcat and Apache > > Hi, > > I was just looking at this ! I've dowloaded apache 1.3.9 and tomcat 3.0 > from > apache site and also Apache-tomcat HOWTO file from the faqs. To make tomcat > work > with Apache you have to add a module (JServ module) and modify httpd.conf to > point > on tomcat configuration files (All is explained in the HOWTO file) : > > http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/etc/Tomcat%2bA > pache-HOWTO?rev=1.1.2.1&content-type=text/x-cvsweb-markup > > This should help but I had a problem with the ApacheModuleJserv.dll, > when > starting Apache server I have an error "ApacheModuleJserv is not a valid Win > NT > image" !? > Is there a probleme with this file or am I doing something wrong > > If you are under NT maybe you could tell me your result !!! Or If any body > has an > anwser. > > Veronique. > > Happy New 'false' Millenium to All > > Telmo Sá a écrit : > > > Hello! > > Question: Isn't Tomcat supposed to work as an extention to Apache Web > > Server. > > Something like jserv. > > If so, how can i glue it to Apache. ( A link telling me how is also > > usefull). > > Thank you! > > > > Telmo > > > > > === > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > > FAQs on JSP can be found at: > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.html > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > FAQs on JSP can be found at: > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Tomcat and Apache
Hi Veronique, This is how I made it possible to use Tomcat 3.0 with Apache on my NT box: I followed the steps which is documented at http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/etc/Tomcat%2bA pache-HOWTO?rev=1.1.2.1&content-type=text/x-cvsweb-markup Then I started my Apache server and then Tomcat (start.bat) - Then try to open your browser and go to http://localhost/examples/jsp and it should work!!! I don't have any problems with the JServ module - please let me know if you would like at copy of my dll Regards, Jens Andersen -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Veronique Dupierris Sent: 30. december 1999 14:16 To: [EMAIL PROTECTED] Subject: Re: Tomcat and Apache Hi, I was just looking at this ! I've dowloaded apache 1.3.9 and tomcat 3.0 from apache site and also Apache-tomcat HOWTO file from the faqs. To make tomcat work with Apache you have to add a module (JServ module) and modify httpd.conf to point on tomcat configuration files (All is explained in the HOWTO file) : http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/etc/Tomcat%2bA pache-HOWTO?rev=1.1.2.1&content-type=text/x-cvsweb-markup This should help but I had a problem with the ApacheModuleJserv.dll, when starting Apache server I have an error "ApacheModuleJserv is not a valid Win NT image" !? Is there a probleme with this file or am I doing something wrong If you are under NT maybe you could tell me your result !!! Or If any body has an anwser. Veronique. Happy New 'false' Millenium to All Telmo Sá a écrit : > Hello! > Question: Isn't Tomcat supposed to work as an extention to Apache Web > Server. > Something like jserv. > If so, how can i glue it to Apache. ( A link telling me how is also > usefull). > Thank you! > > Telmo > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > FAQs on JSP can be found at: > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Output to a XUL/XML file
Hi JSP'ers, I think my question is very trivial but I have to ask i anyway!! I would like the JSP page to get a resultset from a database and format the output so it look like a XUL file (Mozilla interface file)!! I have made the following code which you see below but I have a problem with the quote char. How do I make the following: out.println(""New"/>") And I can't use single quote because then the output will fail (Mozilla will fail) How do I it possible to output the "New"/> with double quotes??? Regrads,J. Andersen Server Configuration: JRun 2.3.3 build 155 Microsoft Internet Information 4 <%@ page import="java.sql.*,java.lang.*,com.sybase.jdbc.*,"%><%@ page contentType="text/xml; charset=ISO-8859-1" %><%String port ="2638";String servicename = "Eportal";String dburl = "jdbc:sybase:Tds:10.42.1.1:" + port + "?ServiceName=" + servicename; String username = "dba";String password = "sql";String jdbcdriver = "com.sybase.jdbc.SybDriver";Connection con;out.println ("");out.println ("");out.println ("JSP and XUL");out.println ("");out.println ("");out.println (""); String query = "execute web_mainmenu"; try{ Class.forName("" + jdbcdriver + ""); }catch(java.lang.ClassNotFoundException e){out.println (""); } try{ con = DriverManager.getConnection(dburl, username, password); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(query); while (rs.next()){String menu_id = rs.getString ("menu_id");String description = rs.getString ("description");String url = rs.getString ("url"); out.println (""); } stmt.close(); con.close(); } catch(SQLException ex){ out.println ("");} out.println ("");out.println ("");out.println ("");out.println ("");%>
Reading from a text file in JSP
Hi, Could some one tell me how to read from a text file in the same folder as my .jsp pages? I tried using FileReader("file.txt"), but it's not finding the .txt file (I think it's looking in the class path instead of the current folder for the file). Some one please help! Thanks. Anna === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Tomcat and Apache
Hi, I was just looking at this ! I've dowloaded apache 1.3.9 and tomcat 3.0 from apache site and also Apache-tomcat HOWTO file from the faqs. To make tomcat work with Apache you have to add a module (JServ module) and modify httpd.conf to point on tomcat configuration files (All is explained in the HOWTO file) : http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/etc/Tomcat%2bApache-HOWTO?rev=1.1.2.1&content-type=text/x-cvsweb-markup This should help but I had a problem with the ApacheModuleJserv.dll, when starting Apache server I have an error "ApacheModuleJserv is not a valid Win NT image" !? Is there a probleme with this file or am I doing something wrong If you are under NT maybe you could tell me your result !!! Or If any body has an anwser. Veronique. Happy New 'false' Millenium to All Telmo Sá a écrit : > Hello! > Question: Isn't Tomcat supposed to work as an extention to Apache Web > Server. > Something like jserv. > If so, how can i glue it to Apache. ( A link telling me how is also > usefull). > Thank you! > > Telmo > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > FAQs on JSP can be found at: > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: A Basic doubt !
Yes, you can get JServ from the Apache group. - Original Message - From: "Parshwanath" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 30, 1999 10:03 AM Subject: A Basic doubt ! > Hi, > If I want to use apache [I have been using IIS & JRUN before] do I need some > jsp/servlet engine [like jrun] to run my jsps ? > Thankx for all the replies. > :-)Parshwanath > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > FAQs on JSP can be found at: > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
A Basic doubt !
Hi, If I want to use apache [I have been using IIS & JRUN before] do I need some jsp/servlet engine [like jrun] to run my jsps ? Thankx for all the replies. :-)Parshwanath === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Calling a JSP when not an an HTTP session
Hi, Is it possible to use the JSP engine in a mode that is disconnected from an HTTP session? The JSP mechanism seems a great way to separate templates from code for formating purposes. For example, if I need to create a letter to a customer it only makes sense to place the letter in a JSP and pass it some objects to extract the customer name, address etc. from. The question is whether I must call this thing using an HTTP connection (which is very inconvenient and seems a performance problem) or is there a way for me to create a fictitious request and response and activate this as a Java program? (i.e. I have a Java program that has all the objects - I want to call the JSP to prepare the output stream and then extract the generated string from that call. Is this possible, and if so can someone forward me to some sample code that does this? Thanks, -Ron ([EMAIL PROTECTED]) === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Tomcat and Apache
Hello! Question: Isn't Tomcat supposed to work as an extention to Apache Web Server. Something like jserv. If so, how can i glue it to Apache. ( A link telling me how is also usefull). Thank you! Telmo === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
No Subject
Visit http://www.niit.com for eCommerce Solutions. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Off Topic : Jbuilder under linux
Does anybody in there use jBuilder with Linux. It seems very interesting, as long as it is to support jsp in the further version, not as a wysiwyg editor for the pages, but the only thing I'm asking is to debug the small scripts the presentation guys are writting without changing all the HTML code. For the developpers, it is also much clearer to debug with such an editor. The only problem I'm facing (but it's a huge one) is that it seems not to be able to save any file on my machine. It is not another evaluation version, Inprise claims it is free. It raises a ANSI_X3.4 error, and I can't understand why. Has anyone had the same problem before ? I'd like to know how to solve it. Thanks in advance, and may you have a Happy New Millenium __Sylvain RocheResponsable développementAdd-Onlinewww.add-online.fr 70bis rue Bossuet69006 LYONFrance tel : +33 472838583fax: +33 472838584
Incomplete string.
I know this is easy stuff for most of you guys but how do I send a value (with white-space in between) from a .jsp/.html file to a servlet? I have a textbox with the value 'Hello World' in the .jsp file. Before I submit the form,the value was assigned to a String variable. Upon submission to the servlet, the servlet only can recognise 'Hello' from the String variable. Thanks.