Newbie-HELP!
Hi I am a Windows programmer who suddenly needs to write some JSP. Pls tell me how to get started. I have a NT Server with IIS 4.0. What r the installations and configuration I shud do. I am trying to see at the sun site, but is finding it confusing. thanks liza __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: JSP on Linux
Hi When I 'Reply to' mails that I get from this list, the address of the individual is filled in the 'From'. Any way to change this setting? rgds liza - Original Message - From: "M. Simms" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 20, 2000 5:00 PM Subject: Re: JSP on Linux > Thanks much for the run-down.we've been patiently awaiting IBM's update > for Java 1.2 and waiting and waiting and waiting. > I see why they "gave it away"..hmmm > > John - check out the resource requirements vs the iplanet product !! > > Unless IBM is ready with Websphere 3.0 for Linux NOW, I see no reason to > keep waiting for them..no excuse.they are supposed to be "leading" > the way in the Linux world when in fact they are behind everyone else. > > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Monday, March 20, 2000 3:44 PM > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Subject: RE: JSP on Linux > > > > > > Be warned that the IBM product does NOT support JAVA 1.2. It > > only supports > > JDK 1.6(alphaworks) and Blackdown JDK 1.7. I also believe that > > they use an older version of the Servlet Runner. i.e. no > > "Request.dispatcher" calls. Also be warned that the the current > > version of > > W.S. requires around ~256MB of RAM. > > > > You might want to look at Iplanet at www.iplanet.com I believe that they > > have a version that may work a little easier than apache and tomcat. I > > haven't had to edit a file yet! I doubt that this will end up > > being a free > > version though :-( It also requires around 128MB of RAM. > > > > > > > > -Original Message- > > From: M. Simms [mailto:[EMAIL PROTECTED]] > > Sent: Friday, March 17, 2000 10:52 AM > > To: [EMAIL PROTECTED] > > Subject: Re: JSP on Linux > > > > > > IBM has a Linux version 2.03 of Websphere for FREE at their website.. > > it worksand is more robust than Jrun. > > > > > -Original Message- > > > From: A mailing list about Java Server Pages specification and reference > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Henry Ye > > > Sent: Wednesday, March 15, 2000 9:24 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: JSP on Linux > > > > > > > > > first, download Tomcat from apache.org, or from java.sun.com > > > (they got a link to apache). > > > just unzip the tomcat.zip on linux using unzip. > > > then just move the unzipped tomcat directory to somewhere you > > > want. > > > make sure you read the README notes that tells you what you need > > > to do with your CLASSPATH, PATH and etc. > > > make sure you have jdk installed on your linux box,too. I use > > > 1.2.2 > > > > > > >can someone tell me the easiest way to get JSP working on a > > > linux box? > > > >JRun? where to get it? how to install it? --stav > > > > > > > >= > > > == > > > >To unsubscribe: mailto [EMAIL PROTECTED] with body: > > > "signoff JSP-INTEREST". > > > >Some relevant FAQs on JSP/Servlets can be found at: > > > > > > > > http://java.sun.com/products/jsp/faq.html > > > > http://www.esperanto.org.nz/jsp/jspfaq.html > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > > > > > > > > > == > > > = > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > > JSP-INTEREST". > > > Some relevant FAQs on JSP/Servlets can be found at: > > > > > > http://java.sun.com/products/jsp/faq.html > > > http://www.esperanto.org.nz/jsp/jspfaq.html > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > > > > > > == > > = > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > JSP-INTEREST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.html > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets
Re: How can I get working Servlets and JSP in my IIS?
I installed JRun and JSP works with IIS now. I have not done the configuration mentioned below and it's working fine. Infact I checked the configuration of the default web site as well as the global configurations, but cud not find this jsp mapping. Wonder where it is? Is my IIS doing something that I dont know abt? liza - Original Message - From: "Bradley McLain" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 22, 2000 9:18 AM Subject: Re: How can I get working Servlets and JSP in my IIS? > you must map the *.jsp extension in iis to use the jrun.dll when it > encounters this extension. > > under 'home directory' in properties go to 'configuration' and use the 'app > mappings' tab to specify what to do with the *.jsp extension.. > > bradley mclain > > >From: Humberto Martínez Silva <[EMAIL PROTECTED]> > >Reply-To: Humberto Martínez Silva <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: How can I get working Servlets and JSP in my IIS? > >Date: Sat, 18 Mar 2000 08:37:52 -0500 > > > >Hi: > > > >I have Microsoft Internet Information Server in a Windows NT 4.0. > > > >I am interested in making servlets and pages jsp. > > > >I have JRun 2.2, I installed it, and every servlet that I made is working > >fine. However, for invoke each of them, I needed write a simple file .jrun > >with: > > > > > > > >and to invoke from the browser this file. > > > >I had worked with Microsoft ASP, I had worked with Perl's CGI, I had worked > >with PHP, and always, I invoked that pages like: http://myserver/directory > >of scripts/script.php, for example. > > > >Now, I have to do, http://myserver/directoryof .jrun/script.jrun, and > >then, > >it redirect to the real servlet. > > > >How can I configure my system, for invoke my servlets in the way > >http://myserver/directory of servlets/servlet, and invoke my pages jsp in > >the way: http://myserver/directory of jsp's/page.jsp? > > > >Thanks. > > > >Greetings. > > > >Lic. Humberto Martínez Silva. > >Informatic Services, Santiago de Cuba. > >[EMAIL PROTECTED] > > > >=== > >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > >JSP-INTEREST". > >Some relevant FAQs on JSP/Servlets can be found at: > > > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.html > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > __ > Get Your Private, Free Email at http://www.hotmail.com > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Request.getParameter() question
U get an array of strings. Loop through the array. I think this is the way to do it. Pls correct me if I am wrong. String[] theArray = Request.getParameter("comboname"); for (int i = 0; i < theArray.length; i++) { what u need. } liza - Original Message - From: "Portal Team" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 03, 2000 10:09 AM Subject: Request.getParameter() question > Hi > > I need to refer to *all* the values of a combobox in one page across the > session. > > i can get the selected value by Request.getParameter("comboname"); > > how can i refer to all the values? > > Eg. I have > > > 1 2 > > > more values are added to the form dynamically > > in get.jsp i want to be able to read *all* the values of myform.mycombo > > i am unable to have jsp code within javascript code > > function put() > { > <% write values of combo into vector which is put in session %> > } > > > neither can i have a stand alone function in JSP ; both of which i > understand are not possible in JSP. How do i get around this problem? > > I would really appreciate your suggestions > > thank you in advance > Vineet > > __ > Get Your Private, Free Email at http://www.hotmail.com > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
<%@ include file ="filename" %> problem
Hi I have a jsp file(file1.jsp) which has a <%@ include file ="file2.jsp" %> in it. I am getting compilation errors saying that the beans that I included in file1 cannot be seen in file2. So I put in file 2. Then I get the error 'Cannot forward as OutputStream or Writer has already been obtained'. What am I doing wrong? thanks in advance liza __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Unable to set up Visual Age with Tomcat.
I am trying to run Visual Age and Tomcat. Tomcat runs by itself properly. But when I try to make tomcat run from within Visual Age, it is not working. I followed the steps given at http://www7.software.ibm.com/vad.nsf/data/document2389?OpenDocument. Things did not happen the way explained in the article, but I seem to have more or less done it. I run StartTomcat and the execution seems to hang saying 'Loaded configuration from: file:d:/ibmvjava2/ide/project_resources/Tomcat Version 3/conf/server.xml'. What cud be wrong? When I click on startup.bat it's working. thanks in advance liza === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Functions in JSP
Hi Can I write a function in a JSP file directly? eg: <% void func() { out.println("Hello") ; } func() ; %> If not, what is the reason? I see that I can do the following: <% class myclass { void func() { out.println("Hello") ; } } myclass x = new myclass() ; x.func() ; %> thanks in advance liza __ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Functions in JSP - Thanks
for the answers. liza --- squeijo <[EMAIL PROTECTED]> wrote: > You can do this: > > 1º define de function into tht tags <%! ... %> at the begining of > your jsp > page, like this: > ><%! > String func() { > return "Hello"; > } >%> > > 2º And use the function in your scriptled code: > ><% > out.println (func()); >%> > > Note: > > if you want to do a function like this: > > ><%! > func() { > out.println ("Hello"); > } >%> > > you must change the function definition to this: > ><%! > func(JspWriter out) { > out.println ("Hello"); > } >%> > > or something simillar, becouse the implicit object out, is > implicit only > into the tags <% ... %>. > > Sergio Queijo Diaz. > Soluziona - ISF. > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Add string to string array.
How can I create an array of strings and assign a new string to the array in a loop? String[] sArray ; for (int i = 0; i < 10;i++) { sArray[i] = "apple" ; } The code fragment above does not work. But this is what I need to do. Add strings to a string array at runtime. thanks in advance liza __ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Problem with variables.
I have declared a variable in my JSP page as <%! int var = 0 ; %> and somewhere else, I do <% var ++ ; %> and also <%! var++; %> The problem is that when each time I come to the page in the browser, the previous values are held in the integer var. It does not get reset to 0. What is happening here? thanks in advance liza __ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Problem with variables.
Thanks for the reply. I got rid of the problem by putting <%! int var; %> and doing <% var = 0 ; var++ %> thanks again liza --- Jim Bailey <[EMAIL PROTECTED]> wrote: > Yes, that is how it is supposed to work. > > The syntax <%!...%> creates a class variable for the servlet > created from > the JSP. It is the same as if you typed the following: > > public class MyCustomServlet > { > int var = 0; > > public void _jspService(HttpServletRequest request, > HttpServletResponse > response) > throws IOException, ServletException > { > var++; > > out.println( var ); > } > } > > Keep in mind that the class is instantiated at the whim of the > application > server. You can't assume that each invocation will create a new > instance of > the class. For efficiency the application server will keep the > original > instance around in memory and simply re-invoke the _jspService > method as it > needs to. > > You also can't assume that the application server won't destroy the > instance > of the class and subsequently create a new instance as it is > needed. The > server may also keep multiple instances of the servlet class around > in > memory at the same time. > > The best advice is to only declare constants using the <%! %> > syntax. Avoid > creating mutable class variables using this technique. It is very > difficult > to get right. > > As a postscript, the syntax <%! var++ %> is incorrect and as far as > I know > won't compile. The <%! %> scriplet tag is for creating class > declarations > and the syntax of the following is incorrect: > > public class MyCustomServlet > { > int var = 0; > var++; > > public void _jspService(... > } > > I hope this helps. > > -Original Message- > From: Liza J Alenchery [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 31, 2000 1:33 PM > To: [EMAIL PROTECTED] > Subject: Problem with variables. > > > I have declared a variable in my JSP page as > <%! int var = 0 ; > %> > and somewhere else, I do > > <% var ++ ; %> > and also > <%! var++; %> > > The problem is that when each time I come to the page in the > browser, > the previous values are held in the integer var. It does not get > reset to 0. What is happening here? > > thanks in advance > liza > > > __ > Do You Yahoo!? > Send instant messages & get email alerts with Yahoo! Messenger. > http://im.yahoo.com/ > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Extending script timeout.
Do I need to extend the timeout property if my JSP does a lot of processing? How do I do that? (equivalent to server.scripttimeout). Also how can I prevent the browser from timing out? thanks in advance. liza __ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
StackOverflowError
Hello people I am using recusrion to fill up a combobox with strings in my JSP program. It works fine when the number of strings is less, but throws a StackOverflowError when the number of strings is 600 or more. I found in the documentation that StackOverflowError means that "an application recurses too deeply." Does that mean I am going into a infinite loop? If not, what can be done in the situation? Is a re-design the only way out? Thanks in advance liza __ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets