JSP beginner's question

I have a standalong application using Swing. Im converting it to a web / JSP/Servlets application.
Can my JSP acess my database using the same classes it used to or should I configure in my Tomcat a data source and call my database using the jndi name ?
thx in advance,
Giselle

You can use the same classes but from my standpoint there is a good gain by using the Tomcat JNDI DB stuff. I'd really consider porting your stuff over.
One thing- your existing classes were probably written for the Swing app to allow one user at a time per instance of your code. The Jakarta DB stuff allows connection pooling, which will be important since JSP takes you to a multi-user scenerio.

Similar Messages

  • 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.

  • Beginner font questions

    These are some beginner font questions if someone has the time/patience.
    I've never paid much attention to fonts over the years, never installed
    any other than those that might have come with applications. Early on,
    15 years ago or so, I settled on Palatino and I've stayed with it for
    most docs (Word 5.1a and now Word vX) and often for other apps (Safari,
    Now).
    I just upgraded to Tiger (10.4.4) and I use Word vX.
    Questions:
    1. I gather from looking at Font Book that when I'm using Palatino in
    Tiger that OS X is getting it from my OS 9 System folder for Classic.
    It does not look like Palatino is in any other locations including MS
    Office vX. Does that make sense?
    2. I always thought that Palatino was a very basic, always available
    font. Not so?
    3. If I decide to stop using Classic, and I'm close to that time, can I
    transfer those fonts to OS X? If so, to which location is best.
    4. And are the same fonts used for printing and screen? In other words
    back in pre OS X days I thought some fonts came in screen versions and
    print versions but my memory is hazy on that. Not only that.
    Thank you for any education or links for info.
    Powerbook G4 Ti   Mac OS X (10.4.4)  

    1. I gather from looking at Font Book that when I'm
    using Palatino in
    Tiger that OS X is getting it from my OS 9 System
    folder for Classic.
    It does not look like Palatino is in any other
    locations including MS
    Office vX. Does that make sense?
    That's correct.
    2. I always thought that Palatino was a very basic,
    always available
    font. Not so?
    It seems to be out of favor.
    3. If I decide to stop using Classic, and I'm close
    to that time, can I
    transfer those fonts to OS X? If so, to which
    location is best.
    Yes, you can just put it in Users/username/Library/Fonts (or Library/Fonts for all users).

  • Beginner's question: how to call JSP

    Hi,
    Is the following a right way to call a JSP?
    GET /app/im/iClient.jsp?user=[email protected]&pass=welcome HTTP/1.1
    Host: st5.abc.com
    I am trying to manually send a HTTP request. I am sure the directory is right, but no response. Should I use "POST" instead of "GET"?
    Thank you!

    I dont believe that... If you're trying to get a response InputStream, or the response formatted as some object, for a request to an HTTP server, and you are just now writing Socket connection stuff, then you can just replace that with URLConnection and let it do the work given a URL.
    Otherwise, you should already have a class which uses Sockets internally to get what you want, and you shouldn't be asking us this question because it should take a URL and make the connection and give you what you want...
    I don't see any other possible "stage" at which you could be at that you need to a) use Sockets over URLConnections, b) need to know the details of HTTP, and c) can't change one or the other.

  • Beginner SSL questions

    I am still very much a beginner and this is my first time trying to set SSL up. I am experiencing some issues and I am not really sure what to do. I hope this is the right forum to post this.
    When I go to https://xxxx.xxxxx.net/myContext my login index.jsp page displays however
    1.) In IE it's not showing the page as secured(no lock).
    2.) When I log in using valid credentials the url becomes http://xxxx.xxxxx.net:443/myContext/myServlet
    and the page I expect to display doesnt. It only displays this:
    3.) None of my stylesheets are being used.
    When I go to http://xxxx.xxxxx.net/myContext my login index.jsp page displays perfectly and I am able to log in and do see the expected page.
    Apparently I missed a step somewhere or just the obvious but how do I get my index.jsp to use SSL. Any help would really be appreciated. Thanks in advance
    Crystal
    SERVER.XML
    <Connector port="80"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="443" acceptCount="100"
    debug="0" connectionTimeout="20000"
    disableUploadTimeout="true" />
    <Connector port="443"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="true" disableUploadTimeout="true"
    acceptCount="100" debug="0" scheme="https" secure="true"
    clientAuth="false" sslProtocol="TLS"
    keystoreFile=".IRRS_keystore" keystorePass="thepassword"/>
    STDOUT.LOG
    May 4, 2007 11:20:38 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-80
    May 4, 2007 11:20:39 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-443
    May 4, 2007 11:20:39 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1031 ms
    May 4, 2007 11:20:39 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    May 4, 2007 11:20:39 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.0
    May 4, 2007 11:20:39 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    May 4, 2007 11:20:40 AM org.apache.catalina.core.ApplicationContext log
    May 4, 2007 11:20:40 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-80
    May 4, 2007 11:20:40 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-443
    May 4, 2007 11:20:40 AM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    May 4, 2007 11:20:40 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/15  config=D:\Tomcat5\conf\jk2.properties
    May 4, 2007 11:20:40 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1313 ms

    Are you intentionally leaving a connector for port 80 open? If you don't need anything to be non-ssl enabled then you should comment out the port 80 connector and just have a connector for port 443. You should then be able to access any of your stuff via https://whatever/whathaveyou...
    [edit]
    this is an obvious question but you didn't mention it so just in case - you did create a self signed server certificate and import that into the keystore right? (or use a commercial certificate and import that and the CA chain into your trust store)
    Message was edited by:
    cjmose

  • Submitting a PDF form via HTTP Post: Beginner's Questions

    Hi,
    I am completely new to PDF forms, so I have been finding the documentation and options overwhelming.
    I am hoping to get pointed to the documentation/tutorials/examples I really need.
    I would like to build a "proof of concept" for my boss.  I would like to include a screen in our Java ( JSP & Spring ) webapp where either a PDF form is embedded or is accessed via a link.
    I have
    Adobe Acrobat Distiller X standard license
    Adobe Acrobat X Standard
    Microsoft Office 2010
    I made a small, 3 field Microsoft Word form.  I then converted it via DIstiller into a PDF form.
    I then found this document about how to submit a PDF form to a server side component:
    http://acrobatusers.com/tutorials/form-submit-e-mail-demystified
    My big problem with this document it doesn't have an example nor an example showing what is going on in a full HTML page.   As I result I have some questions:
    Can I see such an example somewhere?
    Does the call to the javascript function doc.SubmitForm(urlToMyServerSideComponent) go in a script tag on the HTML page like other javascripts?
    Can I execute that submit function from an HTML button or do I need to put a "submit" button on the PDF form?
    Do I need Adobe LiveCycle in order to create a PDF form with a "submit" button?  Free versions?
    Can I send via HTTP POST ?
    Do I need Adobe LiveCycle to crate a PDF form with a digital signature?
    Is there a document/tutorial that fits where I am starting off from? ( Please no books, I am tyring to show my boss that this is something that can be done, in a reasonable amount of time, not time to get and go through a book ).
    Thanks in advance for any tips that get me pointed in the right direction
    Steve

    To answer some of your specific questions:
    2, 3. The submit form button needs to be on the PDF. You can either configure a Submit Form action or use the submitForm JavaScript method.
    4, 6: No to both questions. You can create the form in Acrobat. Such forms are knows as Acroforms, as opposed to XFA forms that are created with LiveCycle Designer. Acroforms have wider support.
    5: Yes, that's the method that's used when submitting to a web server. You have your choice of formats. The "HTML Form" option causes the form data to be submitted in the same format as an HTML form, so the same type of server-side code can be used to process the data. As Dave's tutorial shows, the server should return an FDF as the response, however, as opposed to HTML content.
    It's a mistake to try to embed the PDF in a web page. So much depends on the user's browser, PDF viewer, and how both are configured. PDF forms can be submitted directly from Adobe Reader/Acrobat, so it's not necessary for them to be viewed in a browser. Note that Adobe Reader for iOS/Android don't yet support submitting to a web server (apart from FormsCentral), but that's is supposedly being worked on.
    Since you mentioned digital signatures, be aware that for Reader users to be able to sign, the document has to be Reader-enabled, either with Acrobat Pro or LiveCycle Reader Extensions (which is not the same as LiveCycle Designer). Digital signatures in PDF forms are not yet supported on mobile devices. Also, you will want to submit the entire PDF, as opposed to just the form data, when submitting a digitally signed form.

  • JSP Weblogic server question.

              Hi,
              I'm new with Weblogic, and I have running the server already. I'm able to run servlets
              through the browser, however I want to start working with JSP. I created a sample
              jsp file and when trying to launch it through the browser I get a 404 message error.
              So my question is how can I make weblogic to act as a jsp server as well?
              Thank you for any help.
              A.R.
              

    Copy your JSP file into the
              config/mydomain/applications/
              DefaultWebApp directory
              In a web browser, request the JSP file using the following URL:
              http://localhost:7001/sampleJsp.jsp
              "A.R." wrote:
              > Hi,
              > I'm new with Weblogic, and I have running the server already. I'm able to run servlets
              > through the browser, however I want to start working with JSP. I created a sample
              > jsp file and when trying to launch it through the browser I get a 404 message error.
              > So my question is how can I make weblogic to act as a jsp server as well?
              >
              > Thank you for any help.
              > A.R.
              

  • Jsp,servlet,bean question,please help

    The Tomcat Web server set up like this.......
    The directory structure is
    e:/sampleapp/WEB-INF/classes
    /lib
    And the web.xml is in the WEB-INF for the use of ay potential servlet.
    The basic understanding is that all the .java files go into the WEB-INF directory and the .class files go into the classes directory.
    All the .jsp files go into the sampleapp directory.Till here is correct I feel.
    Now for my qustion......
    I plan to use jsp,servlet and beans for a potential web application...,where do all these files go?,just the same as above or is there a difference.
    Hope that I have given a reasonable explaination to my question.
    Thanks for any replies
    AS

    All of your compiled servlet and java bean (java
    classes in general) will be placed into the following
    directory (under a directory structure matching the
    java package they are in):
    e:/sampleapp/WEB-INF/classesAll of your .jar files that are used as libraries (not
    your .jar files for applets):
    e:/sampleapp/WEB-INF/libAll of the rest of your JSP files, javascript files,
    HTML files, JAR files, images files, etc. will go into
    the following directory:
    e:/sampleappYou must make sure you put your sampleapp directory
    where tomcat can load it. Or use the admin tool to
    load it. If you make a .WAR file with a corresponding
    web.xml file in it, it will simplify loading it into
    tomcat. It also will help you do your servlet
    mappings, etc. I hope this helps.Thanks for your timely response.To add to it,let me tell you.
    The <b>bean</b> files are put into a package right,so they should be put into the WEB-INF/classes/<package name>
    What about The <b> servlet </b> files...... they are just put into the WEB-INF/classes/ directory????
    Kindly let me know.
    Thanks
    AS

  • Retrieving lists from other layer into a JSP page - Design Question

    Hi all,
    What should be a good design technique in order to allow a JSP page to present some list obtained from other layer of my application. I intend to leave only presentation logic in the JSP layer, while all data access will be in other layer.
    For example, I have a JSP page that will show the results of a SQL query originated from an entry form in other JSP page. Let's name them 'search.jsp' and 'result.jsp'
    I want that all JDBC access be done in some other layer.
    Question 1:
    What would be better for this task? A servlet or a bean? (A bean, I suppose?)
    Then this bean (?) would have to find some way to pass all the result set into this 'result.jsp'. I think it would be very poor design if I used some Data Object, because it would have to store all rows and pass them at once.
    I don't want, either, that the presentation (JSP) layer access directly the data access layer (JDBC, files...). This way, I don't want any JSP page accessing the Resultset object directly.
    Question 2:
    What do you think could be a good design technique?
    I thought of some intermediate layer that provided data objects and data access interfaces. I mean, as my data will come from different sources, like some database (JDBC), some Electronic Document Manager, I thought of having a common access interface, that would provide methods for accessing the resultsets. This could be even a java.util.Enumeration that has a hasMoreElements() method that could be implemented as the next() method from JDBC result sets and the nextElement() method that would actually bring the next row of data.
    This way the JSP layer would see only hasMoreElements() and nextElement() methods from the middle layer. On the other hand, the data layer would provide as many different implementations to this access interface (Enumeration?) as there were data sources (JDBC, Files, ...)
    Question 3:
    What do you think of this design?
    Question 4:
    Is there any flaw in my approach? Which?
    Question 5:
    Could you suggest other designs?
    I really thank you all, for any kind of answer. I actually use this design for development, however I've never seriously discussed it with someone... this is going to be of great value for me.
    Regards,
    Filipe Fedalto

    Well I saw you question and I'll tell you what I do.
    I have JSP's which post form data to servlets.
    The servlet then calls a factory to produce a ResultContainer (analagous to your lists) which is generated
    via JDBC, and/or request parameters etc...
    this provides a single point of reference and a "group" of containers (functions really) that can be produced and reused (same container different amount of data)
    I also have other static classes which can manipulate the data in the containers
    (such as add additional info to the items in the containers) before I forward the container (request attribute)
    to the JSP page
    Additionally I use Type safe constants for all my HTML form tag names (easier to change and ensure the same name is used everywhere when reading parameters) and again for item statuses
    and any other info I need to send along with the page (using Javascript to update the
    status to another type safe constant).
    I've found that using factories for ResultContainers is very worthwhile and allows you to implement additional servlets extremely quickly (mostly reusing containers that exist) and since the
    container is the same for all my JSPs (this may not be the case with you) I can implement JSP's
    very quickly as well (just change the view)
    btw I refrain from calling my ResultContainer a bean because it is not serializable
    I don't know if this will help but at least it gives me a forum to test my ideas
    Thanks

  • 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.

  • Beginner's Questions

    As a really new beginner for BEx, I would like to ask you guys some basic questions.
    1) I have a problem with designing a query to serve our requirement.
    Fiscal Year       Accounting Num.        Amount          AVG(Amount)         
    2006                10001                         100                250
    2006                10002                         200                250
    2006                10003                         300                250
    2006                10004                         400                250
                           Total(AVG)                  250
    2006                10005                         300                350
    2006                10006                         400                350
                           Total(AVG)                  350
    What I want is the forth column, which is equal to the average value of amount in the third column. For example, in group 1 (Accounting Number 10001 - 10004), the average of 100 - 400 is 250. In the forth column, I want to get 250.How can I do this?
    2) How can I load a hierarchy from a text file in BI 7.0. I just see the option to maintain the hierarchy in BI, but I can't find the way to load the hierarchy from a text file.

    Hi,
    1.Create a formula or CKF which is equal to Amount. name it  AVG(Amount).
      right click AVG(Amount) in the query definition.select properties.select calculate  single value as 'Average of all values<>0'.
    i thnk this shld work!
    Regards
    Dhanya.

  • Basic jsp and servlet question (JSP Model 2)

    Hi
    I want to make an website where i use JSP Model 2 architecture. However I got a basic question
    1. I need to separate business logic from presentation with the use of jsp and servlets. Meaning I want no html code in the servlet. Can you give a simple example of how this can be done? If I map my implementation of httpServlet to a jsp page in web.xml and override doPost() and doGet(). The calls to the jsp page comes to the servlet as it should. I want to process some methods (calling sessionbeans or similar which in turn calls entitybeans) and then show the jsp page.
    How do I show the jsp page without mixing html in the servlet as I've done below:
    doGet(HttpServletRequest req, HttpServletResponse res)
    PrintWriter p = response.getWriter();
    p.print("<html><body>Hello world</body></html>"); //I dont want to do //this, I want to display the JSP site
    doPost(HttpServletRequest req, HttpServletResponse res)
    //doSomething
    }Message was edited by:
    CbbLe

    You should treat your servlet class much like a controller, where you can then use JSP as the view. The way you achieve this is to use the forward() method in RequestDispatcher.
    Say you've got a servlet class org.yoursite.controller.YourController:
    public void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws ServletException, IOException {
      //Set some value for use in the JSP file associated wth me
      req.setAttribute("greeting", "Hello world!");
      //Done with our business logic, off we go to the JSP file
      ServletContext app = getServletContext();
        RequestDispatcher disp;
        disp = app.getRequestDispatcher("/some/jsp/file.jsp);
        disp.forward(req, resp);
    }Now in your JSP file:
    <h1>Example</h1>
    <div>
      I just want to say <%= request.getAttribute("greeting") %>
    </div>Going to that servlet now executes business logic and then points to the JSP file for the view. You can forward from servlet to servlet too if needs be. The string you pass to forward() is whatever would be in the URI of the request so any <servlet-mapping> configurations in web.xml are used ;)
    There is some pretty in-depth documentation on the J2EE blueprints website, namely service-to-worker and front-controller patterns. I dare say if you're looking for this sort of code you'll want to look at the composite view pattern too (also on blueprints).

  • Jsp beginner

    Sorry for the trifle question..........
    I am new to JSP and would like to begin coding........ What do I need to install so that I can compile the code and view the results locally on my IE browser........
    In what folder do I have to store my program files. What extension should my program files have. (ie: .html, .jsp)
    My operating system is Windows ME. I have a 1Gig pentium3 processor and 128 megs of ram.
    What is the best method of install........
    Thanks for the help........

    u need to put javawebserver2.0. Download it from java.sun.com.
    Or any other server like tomcat or jrun.
    Then the storing of program is different in all this. In javawebserver u need to put ur jsp in
    \example\jsp\samples\urjsp.jsp
    and run it from ur browser
    do this and write if u come across any problem
    bye,
    Samir

  • JSF vs. JSP and IDE Question

    I'd like to get an opinion from the forum, I'm looking to build a web application that provides a front-end to a back-end, batch Java app. The back-end app has pre-existing common classes and methods with all of the essential business logic.
    My first question is, what platform should I be looking at, Javaserver Faces or JSP? JSF is so new and all of the bugs surely haven't been worked out, but it is the heir apparent new direction of J2EE. JSP is a little more proven, but a little more difficult to work in. This "more difficult" might not be so bad for us, because we've developed most of our back-end app without an IDE or drag-and-drop tools.
    My second question regards IDE's. I'm relatively new to OO programming, and I've never used an IDE. So, of the many free IDE's out there (Eclipse, Netbeans, etc.), are there any that you would recommend for your answer to the first question? How large of a process improvement would you judge from a move to an IDE with drag-and-drog functionality?
    So, in short, I would appreciate any of your opinions on moving to a new JSF standard as well as your thoughts on IDE's.
    Thanks.

    If you don't want to sepnd much time and want to do something in the middle between JSF and JSP, you can use JSTL. Lots of cool JSTL components are available for free. Using struts (which is timetested) is also a good idea.
    If you have never used any Java IDE, I would suggest you to use netbeans ide. Netbeans is really cool ide and has some good features like refactoring, jsp debugging etc. You will have to use Tomact as your server if you want to use JSP debugging effectively.
    Eclipse with right plugin (My Eclipse) would be the best choice but you will have to understand some eclipse concepts before jumping on eclipse. It took me little time to figure out view, perpectives, plugins jargon.
    Also My Eclipse is not free but it's very inexpensive - $30 per year.
    All these are my experiances. I hope it helps you.
    Vaibhav Puranik

  • JSP beginner needs help

    Hello. I am trying to learn J2EE, so please forgive me if I sound incredibly dense asking these questions. I have two JSP files, GetName.jsp and NextPage.jsp, which I am trying to run under Tomcat. Here are the listings.
    GetName.jsp:
    <HTML>
    <BODY>
    <FORM METHOD=POST ACTION="NextPage.jsp">
    What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20>
    <P><INPUT TYPE=SUBMIT>
    </FORM>
    </BODY>
    </HTML>
    NextPage.jsp:
    <%
    String name = request.getParameter("username");
    session.setAttribute("theName", "username");
    %>
    <HTML>
    <BODY>
    Hello, <% session.getAttribute("theName"); %>
    </BODY>
    </HTML>
    Two questions:
    1. I tried to save GetName as just an HTML, but I got a message saying, "The requested resource() is not available." I had to save it as a JSP to get it to work. Is it possible to save GetName.jsp as an HTML and still get it to work? If so, how?
    2. When I click on the button in GetName.jsp, NextPage.jsp does come up, but the string I entered in the field doesn't show up. All I get is "Hello,". What am I doing wrong here?

    FHSerkland wrote:
    1. I tried to save GetName as just an HTML, but I got a message saying, "The requested resource() is not available." I had to save it as a JSP to get it to work. Is it possible to save GetName.jsp as an HTML and still get it to work? If so, how?It sounds like you've placed the HTML page in the wrong location or not hitting its URL correctly. Your HTML is also extremely dirty, not well-fromed and not quoting attributes.
    2. When I click on the button in GetName.jsp, NextPage.jsp does come up, but the string I entered in the field doesn't show up. All I get is "Hello,". What am I doing wrong here?
    <%
    String name = request.getParameter("username");
    session.setAttribute("theName", "username");
    %>You know you are assigning "username" literal, not the parameter value, right?
    <% session.getAttribute("theName"); %>You need to print to the output stream when inside of the scriptlet like this:
    <% out.print(session.getAttribute("theName")); %>or like this:
    <%= session.getAttribute("theName") %>

Maybe you are looking for

  • I am getting ORA-01403: no data found error while calling a stored procedur

    Hi, I have a stored procedure. When I execute it from Toad it is successfull. But when I call that from my java function it gives me ORA-01403: no data found error - My code is like this - SELECT COUNT(*) INTO L_N_CNT FROM TLSI_SI_MAST WHERE UPPER(CU

  • My laptop shuts down immediately when i unplug the charger

    Okay so I got my macbook air laptop about six months ago, so it's relatively new. About a month ago the harddrive inside failed and i took it to the aple store and they replaced the harddrive free of charge since i was still under the year warranty.

  • Error: Could not read Header Mapping in Receiver Agreement

    Dear SAP experts, Newly installed SAP G7A PI 7.1(Acceptance box) was already released to customer. We are doing an initial test (BAT phase), wherein, our end-to-end scenario is, from a EP Portal application  --->  G7A PI 7.1   -->  Trading Partner vi

  • Suggestion for new buy

    I am planning to buy a new Nokia set. Can anybody suggest me which set I should go for - my price range is around Rs 8,000 to 9,000.00. Can anybody through some light on E50 or 6233. Thanks

  • Document numbering setup problem

    Hi, I am trying to setup my document numberings on my new database  but when I go to that screen it doe snot show me any primary default numbering setup it just shows me the table names and a blank field. I tried to add the primary number it comes up