JSP Newbie setup question

I installed Tomcat 4.0.3 and I had IIS running on my Win2k system. I thought I could make JSP work using IIS but I read somewhere that you have to make some modifications to get it to work. Then I realized that I had Apache 1.3 installed on my system. I know that Apache is running ok because I can successfully get to the default home page. However, after installing TomCat, the instructions tell you to browse http://localhost:8080 to get to the TomCat default page but I get a page not found error. Any ideas?

After looking at it further, your right, the Tomcat server didn't start. I thought it was running but it is not. I run the startup.bat file and it launches a window but it closes too quick to show me the error msg. I tried launching the shutdown command anyway and got this for an error:
C:\Jakarta\jakarta-tomcat-4.0.3\bin>shutdown
Using CATALINA_BASE: C:\Jakarta\jakarta-tomcat-4.0.3\
Using CATALINA_HOME: C:\Jakarta\jakarta-tomcat-4.0.3\
Using CATALINA_TMPDIR: C:\Jakarta\jakarta-tomcat-4.0.3\\temp
Using JAVA_HOME: C:\j2sdk1.4.0_01\
Exception during startup processing
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardC
sLoader.java:1127)
at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardC
sLoader.java:992)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218)

Similar Messages

  • Newb setup question re: 500 cannot compile error

    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    This is on the default index.jsp page that installs with Apache Tomcat/4.1.18... at http://localhost:8080/index.jsp which maps to C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT\index.jsp
    by now I have way too many java sdks installed...
    C:\Program Files\Java\j2re1.4.1_01
    C:\Program Files\Java\j2re1.4.0_03
    C:\j2sdk1.4.0_03
    C:\j2sdkee1.4
    The first one I tried got me the same error I am getting now.. and since I have tried different versions changing JAVA_HOME
    Right now..
    JAVA_HOME = C:\j2sdkee1.4
    CATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1
    I have no idea what's going on here not having much experience in settting up web servers or java SDKs. But in order to learn the stuff I have planned to I need teh following to get up and running on Win2K.. any help is greatly appreciated.
    Java JDK 1.4.
    Tomcat servlet\JSP engine 4.0.1.
    MySQL database 3.23.46
    If I stick a standard html page in the tomcat root it will show just fine.. so I suspect the whole Java thing is buggin for some reason.
    Here's the full text of the returned error followed by the text of the index.jsp file
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
         at java.lang.Thread.run(Unknown Source)
    Apache Tomcat/4.1.18
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en" "http://www.w3.org/TR/REC-html40/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title><%= application.getServerInfo() %></title>
    <style type="text/css">
    <!--
    body {
    color: #000000;
    background-color: #FFFFFF;
    font-family: Arial, "Times New Roman", Times;
    font-size: 16px;
    A:link {
    color: blue
    A:visited {
    color: blue
    td {
    color: #000000;
    font-family: Arial, "Times New Roman", Times;
    font-size: 16px;
    .code {
    color: #000000;
    font-family: "Courier New", Courier;
    font-size: 16px;
    -->
    </style>
    </head>
    <body>
    <!-- Header -->
    <table width="100%">
    <tr>
    <td align="left" width="130"><img src="tomcat.gif" height="92" width="130" border="0" alt="The Mighty Tomcat - MEOW!"></td>
    <td align="left" valign="top">
    <table>
    <tr><td align="left" valign="top"><b><%= application.getServerInfo() %></b></td></tr>
    </table>
    </td>
    <td align="right"><img src="jakarta-banner.gif" height="48" width="505" border="0" alt="The Jakarta Project"></td>
    </tr>
    </table>
    <br>
    <table>
    <tr>
    <!-- Table of Contents -->
    <td valign="top">
    <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
    <tr>
    <td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
    <font face="Verdana" size="+1"><i>Administration</i>      </font>
    </td>
    </tr>
    <tr>
    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
    Tomcat Administration<br>
    Tomcat Manager<br>
    </td>
    </tr>
    </table>
    <br>
    <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
    <tr>
    <td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
    <font face="Verdana" size="+1"><i>Documentation</i>      </font>
    </td>
    </tr>
    <tr>
    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
    Tomcat Documentation<br>
    </td>
    </tr>
    </table>
    <br>
    <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
    <tr>
    <td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
    <font face="Verdana" size="+1"><i>Tomcat Online</i>      </font>
    </td>
    </tr>
    <tr>
    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
    Home Page<br>
    Bug Database<br>
    Users Mailing List<br>
    Developers Mailing List<br>
    IRC<br>
    </td>
    </tr>
    </table>
    <br>
    <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
    <tr>
    <td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
    <font face="Verdana" size="+1"><i>Examples</i>      </font>
    </td>
    </tr>
    <tr>
    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
    JSP Examples<br>
    Servlet Examples<br>
    WebDAV capabilities<br>
    </td>
    </tr>
    </table>
    <br>
    <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
    <tr>
    <td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
    <font face="Verdana" size="+1"><i>Miscellaneous</i>      </font>
    </td>
    </tr>
    <tr>
    <td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
    Sun's Java Server Pages Site<br>
    Sun's Servlet Site<br>
    </td>
    </tr>
    </table>
    </td>
    <td>     </td>
    <!-- Body -->
    <td align="left" valign="top">
    <p><center><b>If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!</b></center></p>
    <p>As you may have guessed by now, this is the default Tomcat home page. It can be found on the local filesystem at:
    <blockquote>
    <p class="code">$CATALINA_HOME/webapps/ROOT/index.html</p>
    </blockquote>
    </p>
    <p>where "$CATALINA_HOME" is the root of the Tomcat installation directory. If you're seeing this page, and you don't think you should be, then either you're either a user who has arrived at new installation of Tomcat, or you're an administrator who hasn't got his/her setup quite right. Providing the latter is the case, please refer to the Tomcat Documentation for more detailed setup and administration information than is found in the INSTALL file.</p>
    <p><b>NOTE: For security reasons, using the administration webapp
    is restricted to users with role "admin". The manager webapp
    is restricted to users with role "manager".</b>
    Users are defined in <code>$CATALINA_HOME/conf/tomcat-users.xml</code>.</p>
    <p>Included with this release are a host of sample Servlets and JSPs (with associated source code), extensive documentation (including the Servlet 2.3 and JSP 1.2 API JavaDoc), and an introductory guide to developing web applications.</p>
    <p>Tomcat mailing lists are available at the Jakarta project web site:</p>
    <ul>
    <li><b>[email protected]</b> for general questions related to configuring and using Tomcat</li>
    <li><b>[email protected]</b> for developers working on Tomcat</li>
    </ul>
    <p>Thanks for using Tomcat!</p>
    <p align="right"><font size=-1><img src="tomcat-power.gif" width="77" height="80"></font><br>
    <font size=-1>Copyright &copy; 1999-2002 Apache Software Foundation</font><br>
    <font size=-1>All Rights Reserved</font> <br>
     </p>
    <p align="right"> </p>
    </td>
    </tr>
    </table>
    </body>
    </html>

    I ended up uninstalling every java this and that.. and tomcat.
    Then installing only the j2sdk1.4.0_03 SDK.
    Then set up JAVA_HOME for all users and modified the path with full path to the bin (c:\j2sdk1.4.0_03\bin)
    Lastly I reinstalled tomcat and, voila, everything was working.
    It can be quite maddening when you THINK you did everything by the boook and something doesn't work. When you replied and confirmed that I was on the right track.. uninstalling and trying yet again became les frustrating an option.
    Thanks.
    BTW- I needed this env to do the projects in what sems to be a very interesting book.. "macromedia Flash MC application design and development" by Jessica Speigel .. published by New Riders.
    Her flash help website is at www.were-here.com.. the projects in the book are for flash-based multiplayer games and multi-user formums and such.

  • Basic jsp UNIX setup question

    Hi folks,
    We have just installed 9iAS 1.0.2.1 on HPUX 11.0
    Everything works fine except for the JSP demos like hello user, lottery, etc.
    They all fail with the same general error. I suspect it is an environmental issue but cannot be sure as I have found nothing i the docs. Any insight is appreciated. It is important that I fix this as we are planning on installing the JPDK.
    Here is the error log we receive in the browser when we run the "hello user" sample:
    JSP Error:
    Request URI:/demo/basic/hellouser/hellouser.jsp
    Exception:
    java.lang.NoClassDefFoundError: sun/tools/javac/Main
    Here is the error log we receive in the browser when we run the "lottery" sample:
    JSP Error:
    Request URI:/demo/basic/lottery/lotto.jsp
    Exception:
    java.lang.NoClassDefFoundError: sun/tools/javac/Main
    Thanks,
    Fred

    Add your java tools.jar file to the classpath for JServ (assumiing you are using JServ in 9iAS). The file is usually in your jdk home directory under lib.
    John H.

  • Newbie setup question

    I cannot see how to set up the software to 'grab' the result from a single sweep (single seq) event. I can do it fine on the scope (2024B), but not through the software interface from my laptop.
    Scenario:
    Photodetector (impedance matched) on Channel 1. Vert scale 20mV/div, Hor Scale set at 10uS/div. Trigger level at about 40mV. Click on "Single Seq" button, and system is 'Ready'. Fire a flash into the detector, the scope triggers and records the light pulse. No problem from the scope, but how do I do this from the software running on my tethered laptop, and how can I save the waveform (The USB Drive is way too slow!). I can see the Scope device ok, just cannot discern how to set things up.
    Thanks in advance,
    Roy Dunn.

    I was afraid you were going to say something like that.  My expertise is with NI and IVI equipment.  Your problem is Tektronix specific.  I will see who I can ping to give you a decent reply.  In the meantime, you can try this:
     Set up your scope with "sample" acquisition mode, "normal" trigger, and whatever trigger conditions are necessary for your particular signal (you should be able to do this from the step in SignalExpress).  This will trigger at every event.  However, from your previous posts, it appears you only have one event at very large intervals.  If your scope has  a local/remote control button, make sure it is set to remote control.
    Add a save step from the File I/O menu to save the data from the scope step or log the output of the scope step.  This will save your data to disk after a successful acquisition.
    Run.  At this point, nothing should happen until you trigger your experiment.  Then you should see a single acquisition which is saved to disk by SignalExpress.
    Stop.  You may have to Abort.
    The Tek folks monitor these boards, so you should get a better answer from them.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Newbie setup questions before I accidently wreck something, please!

    Hi, I have a brandnew Macbook white. My IP is MSN and I'd like to know how to access the email in MSN Explorer?
    Is there a way to transfer my favorites in MSN to bookmarks in Mac?
    If I set up a MAC email, is there a charge for that? Do I tell everyone a new email address?
    Does the internet screen ever cover the whole desktop? Mine is rather small but I don't want to change the resolution to enlarge it.
    Thanks for any help; I'm afraid to change any parameters in case I wreck something, never having been a Macgirl before!

    LadyCork wrote:
    Hi, I have a brandnew Macbook white. My IP is MSN and I'd like to know how to access the email in MSN Explorer?
    See this for help on Mail set up for the MacBook. http://www.apple.com/support/tiger/mail/
    Is there a way to transfer my favorites in MSN to bookmarks in Mac?
    Go into explorer and under File choose *Import and Export*. Pick *next in the window that pops up. From the choices choose *Export Favorites* then Next. Hit Next in the next window. Choose where you want to put the file. Then push Next and then Finish.
    Now move the file so you can get to it from your MacBook. Open Safari and under File choose *Import Bookmarks* click on the file and they should import to Safari.
    If I set up a MAC email, is there a charge for that? Do I tell everyone a new email address?
    See this for more info on .MAC http://www.apple.com/dotmac/
    Does the internet screen ever cover the whole desktop? Mine is rather small but I don't want to change the resolution to enlarge it.
    Drag the following Java script to your Safari bookmarks toolbar and name it what you want. Then when you click it it will be full screen. This also work on SeaMonkey, OmniWeb and FireFox.
    javascript:self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);

  • Jsp newbie having trouble using JSP's with Jdev 10.1.3

    Hi,
    Have been bashing my head for about two hours with this, if anyone can help will substantially improve my life.
    First off apologies if question is stupid or obvious I am a jsp newbie.
    Have been experimenting with using the Jsp Taglibrary for tabbed panes in a browser.
    http://www.ditchnet.org/tabs/
    I have followed all the installation instructions but in JDeveloper when I build I get the message
    Error(18,2): method setJspContext(javax.servlet.jsp.PageContext) not found in class org.ditchnet.jsp.taglib.tabs.handler.TabConfigTag
    Any idea what jar file I'm missing.
    I'm a bit lost, thanks

    Arrrrrrrrgh,
    Sorted my problem.
    Rebuilt project, works fine now, no idea what was going on (just generally!).
    Thanks for input Shay
    Mark

  • JSP to Excel question

    Hi,
    I have a jsp page that renders data from a result set (queried from database).
    A button on this pages calls a 2nd page that I want to re-query and open excel with the data.
    This all works except that there are a number of blank likes at the top of the excel page, prior to my data. These relate to declatations at the top of my page. i.e
    <%@ page import="java.io.*" %>
    and
    <jsp:useBean id="AccountDetailsBean" class="com.xxx.yyy.zzz.AccountDetailsBean" scope="session" />
    This will give 2 blank lines. I assume that this is because they are essentially being treated as HTML comment lines.
    How can I avoid this? Can I declare these within the main JSP servlet?
    Thanks for any assistance.

    However, remember that the parameters in GET requests are logged in the
    server log so whatever information you send to the server via a GET, remains
    logged and available to whoever has access to your logs. Shouldn't be many,
    but should that information get to the people who run a log analyzer to get
    statistics on the server usage?
    POST is better because the parameters are sent in the body of the request
    and the body is not logged.
    SSL needs to be used in both cases.
    "Dror Avinun" <[email protected]> wrote in message
    news:3affe4b3$[email protected]..
    >
    All the SSL encryption is done in the socket layer and all of the HTTPcommunication
    is encrypted. This means that both the request (yout "GET" command) andresponse
    are secured.
    cheers,
    Dror
    "Asher Bitton" <[email protected]> wrote:
    Hi,
    I'm using https to call from an excel application to a weblogic jsp page,
    my question is whether the url that excel sends (for example:
    "https://mypc:7002/mydir/myfile.jsp?myvar1=val1&myvar2=val2")
    gets also encrypted\secured, what I'm interested to know is whether the
    parameters sent using the http "get" method are secure?
    Where can I find some information regarding the https implementation
    thanks.

  • General place for newbie datamodeler questions?

    With the production release of SQL Developer Data Modeler I'd assume that this forum will draw a bunch of new users. Is there a better place to ask some pretty simple, newbie like questions that won't bother the more seasoned members?
    For instance, I am working in a Rails environment, which has some stringent naming conventions, one of which is that all of the primary key columns are numeric and called "id", with the foreign key linked columns called <table_name>_id.  When engineering a logical model to a relational model, the added foreign key columns are all "id#".  Is there a way I can define a naming rule to keep me from having to redo the relation column names?
    Also, we have a standard set of columns (mostly Rails related) which appear in every table. Can I define a generation rule which automatically includes these tables?
    Thanks

    Thank you. I will try changing that setting.
    IS there a setting which tells the relational model to automatically create pk and fk indexes? I haven't seen one, and manually setting them up is a tedious task. --sw                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Newbie script question... consecutive numbers with update.

    complete newbie type question... this is also my first post.  ( I am using CS3)
    does anyone have a script which can make it so I can add numbers into the text consecutively.
    for example, if this is my text "the big fat dog sat on the very wide mat, but was then displaced by a unfriendly cat."
    and I wanted to place a number 1, number 2, 3, etc at points in the text so it read, "the big fat dog1 sat on the very wide mat2, but was then displaced by a unfriendly cat3." but later wanted to add another number and have later numbers update themselves, so the text then said, "the big fat dog1 sat on the very wide mat2, but was then displaced3 by a unfriendly cat.4".
    by inserting the three, the previous three became four.
    Has anyone got something which might be useful in this regard.
    Many thanks
    Steve

    i wanted to avoid footnotes as they leave a bar at the bottom of each page.
    i wanted a script to do something similar to footnotes but not much further.
    does anyone have just a simple script that can do what I asked?
    Steve

  • LoginModule with JAAS, setup question for Frank Nimphius

    Hi Frank,
    i am trying to use a custom LoginModule in conjuction with the setup procedure in your "J2EE Security in Oracle ADF Web Applications" white paper. Have you done this before? can you provide roadmap for additional/alternate setup steps needed to use a LoginModule?
    this is my original post from early this week:
    JAAS Setup question
    thanks,
    brenden

    Brenden,
    please refer to the OC4J security documentation which si a part of the Oracle Application Server documentation that can be looked up online here on OTN. Custom LoginModule configurations require OC4J 9.0.4. In addition, this feature also only works with the jazn-data.xml provider and not with OID.
    From the perspective of this whitepaper, the LoginModule will be used by the OC4J container to authenticate users and thus should not require any change in teh paper.
    I haven't yet had the time created an example and document that showcases how to do this. Hopefully christmas will give me some rest to look into this.
    Frank

  • Newbie XSan question - authenticating a computer from XSan Admin

    Hello - I have a very newbie XSan question!
    I have 2 computers that connect to an XSan. 1 I am having no problems with. The other I am unable to connect with.
    When I look in XSan Admin the 2nd computer (the one that is not working) is not authenticated.
    So I click on it and choose Authenticate. I enter what I know is an Admin username and password for the computer I am attempting to connect. The dot next to the computers IP turns green with 3 dots in it and then it turns gray again. It just does not connect.
    What is the problem?
    Is it licensing?
    Thanks
    Taj

    You need a different license ID for each machine, plus the admin machine. Do you have that?

  • Newbie JSP/Servlet general question

    Hi,
    I am currently studying the life cycle of a JSP page from the Java EE 5 Tutorial (http://java.sun.com/javaee/5/docs/tutorial/doc/bnahe.html). This document says that: "+If an instance of the JSP page’s servlet does not exist, the container loads the JSP page’s servlet class, instantiates an instance of the servlet class, initializes the servlet instance by calling the jspInit method+".
    My two questions are:
    i) Does this JSP servlet implement the HttpJspPage interface defined in javax.servlet.jsp?
    ii) Does Struts and Spring MVC provide such JSP servlet Java classes implementations or are these part of other packages? If not, which packages offer such implementations?
    Thanks,
    J.

    Jrm wrote:
    Hi,
    I am currently studying the life cycle of a JSP page from the Java EE 5 Tutorial (http://java.sun.com/javaee/5/docs/tutorial/doc/bnahe.html). This document says that: "+If an instance of the JSP page&#146;s servlet does not exist, the container loads the JSP page&#146;s servlet class, instantiates an instance of the servlet class, initializes the servlet instance by calling the jspInit method+".
    My two questions are:
    i) Does this JSP servlet implement the HttpJspPage interface defined in javax.servlet.jsp?Yes.
    >
    ii) Does Struts and Spring MVC provide such JSP servlet Java classes implementations or are these part of other packages? If not, which packages offer such implementations?No, the implementation for the JSP servlet is usually provided by the Servlet Container, not a framework, since the Servlet Container is responsible for creating and compiling the JSP.
    >
    Thanks,
    J.

  • Simple question from jsp newbie

    Hi friends,
    I am learning jsp now. Reading documents and implementing simple applications. But i want to ask a question that is opposite to my logic.
    Now, i am a textfield control on jsp as textField1. I have created this control from Palette. in java code i am writing "textbox1." but there is no action, no intellisense while pressing ctrl + space.
    How the control is accessing from java code? Maybe my logic with visual studio .net. but i want to learn jsp logic.
    Thanks.

    technologyMan wrote:
    I am learning jsp now. You´re actually at the JSF forum here.
    Now, i am a textfield control on jsp as textField1. You are? Really?
    I have created this control from Palette. in java code i am writing "textbox1." but there is no action, no intellisense while pressing ctrl + space.
    How the control is accessing from java code? Maybe my logic with visual studio .net. but i want to learn jsp logic.Uh, just write code accordingly? You can use h:commandButton/h:commandLink for that.
    Anyway, if you want to start with JSF, I can recommend you the following sources:
    Java EE tutorial part II, JSF starts at chapter 10: [http://java.sun.com/javaee/5/docs/tutorial/doc/]
    Good kickoff tutorial: [http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html]
    The JSF taglib documentation: [http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/]
    The JSF API documentation: [http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/overview-summary.html]

  • JSP newbie - exception handling question

    I have created a method in the declarations sections of my jsp. When a particular exception is found (caught inside my method), i want to be able to redirect the output to either another jsp page, or simply print a message on the page in which the exception occurred. I am having some trouble figuring this out. Any advice?

    There are many ways to do so.
    One way is to define error pages. The details about this is given in the article below
    http://java.sun.com/developer/EJTechTips/2003/tt0114.html
    Other way is to do something like this :
    if ( haveError ) {
    out.println( errors.toString());
    pageContext.include( "GetName.jsp" );
    } else
    pageContext.forward( "NextPage.jsp" );
    But, I have a suggestion, if possible, do not put method declaration in JSP pages. Its not a good practice. Put all the code in beans. JSP should only contain display stuff.
    Vaibhav

  • JSP newbie question

    Hello,
    I am trying to interface a service using JSP and servlets. I am getting a couple of difficulties, i would appreciate any help.
    I am using Tomcat 4.1 and Java 1.4.2. I initially have a jsp that has a form, the action is my servlet and the method is post. Among the things i submit in form I have an
    <input type=file name="thename">
    which i later try to retrieve in the servlet as:
    Object o=request.getAttribute("thename")
    This doesnt seem to work (always null) and don't know what to use instead.
    At some point i want to show status information back to the user at a certain refresh rate. How can this be done. If i output from the servlet html code with <meta http-equiv="refresh" content="10"> i get an error at the first refresh attempt.
    Thank you for any help,
    Gabri

    Yes sorry, it is parameter.

Maybe you are looking for

  • Streaming music from a pc to a laptop?

    hey can i really stream music from one computer to another ?

  • Headphones Not Working

    I get no sound from my headphone jack. I checked the sound settings in "system preferences" and it recognizes when my headphones or external speakers are plugged in but there is no sound. My internal speakers work though. Someone please help, it grea

  • Remove name of the item on display!!!

    Hello I have created a text item and when I show it the name is display above the content of the item. I don't want the name of the item to be display. How can I remove that??. There is also a line that is display between the name of the item and its

  • How do you stop AddThis mouse over drop down menu or block AddThis?

    Apparently, someone has created a thing called AddThis that can be put into any webpage design. Supposedly, it is to help the reader share the great webpage they've found (or something??). Really, it seems to just be a way for a web designer to attra

  • Exporting photos for email question

    In Mac OS 9 my Quicktime Pictureviewer would quickly open my large JPG files and then I could simply click file export (while viewing each photo) and Pictureviewer would automatically resize (to around 800x600) and compress the photos as I exported t