Newbie to JSP

Hi ,
I ran into a problem running JSPs. I am working with Tomcat 6.0 and JDK 1.5. I ran a very simple jsp file and it worked. Then I configured and got servlets working and now JSPs are no longer working. Looking at the code I have already included el-api.jar in my classpath but yet still get the same error. can anybody please help me?...
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/el/ELResolver
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NoClassDefFoundError: javax/el/ELResolver
     java.lang.ClassLoader.defineClass1(Native Method)
     java.lang.ClassLoader.defineClass(Unknown Source)
     java.security.SecureClassLoader.defineClass(Unknown Source)
     java.net.URLClassLoader.defineClass(Unknown Source)
     java.net.URLClassLoader.access$100(Unknown Source)
     java.net.URLClassLoader$1.run(Unknown Source)
     java.security.AccessController.doPrivileged(Native Method)
     java.net.URLClassLoader.findClass(Unknown Source)
     java.lang.ClassLoader.loadClass(Unknown Source)
     sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
     java.lang.ClassLoader.loadClass(Unknown Source)
     java.lang.ClassLoader.loadClass(Unknown Source)
     java.lang.ClassLoader.loadClassInternal(Unknown Source)
     org.apache.jasper.runtime.JspFactoryImpl.getJspApplicationContext(JspFactoryImpl.java:200)
     org.apache.jsp.index_jsp._jspInit(index_jsp.java:22)
     org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
     org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.

There are multiple class loaders involved here and each of them uses its own classpath. The environment classpath will be used by java.exe that starts up your Tomcat unless it is overriden by -classpath parameter. The class loader that loads your web application a standard set of directories in its class path too - all jar files under WEB-INF/lib, all classes under WEB-INF/classes.
Generally, it's a good idea to add a jar file to the class path of the most relevant class loader (web app class loader in this case). That makes your application self-contained and totally transparent to environment changes outside the web app. So put this jar under WEB-INF/lib and make it work. Once you get more comfortable with Java technology, you can read more about class loaders, delegation used by class loaders and class loading hierarchy. You will then be able to appreciate why the approach mentioned by us is the best way to do things. Hope this helps!

Similar Messages

  • Total newbie for jsp..plz help

    frendz...me a total newbie to jsp.havin some problem in it.i have already installed jdk,jwsdp2.0 wif its tomcat container.Already set the path for both ..such as JAVA_HOME=E:\Program Files\Java\jdk1.5.0_06
    TOMCAT_HOME=E:\tomcat50-jwsdp
    and could execute the sample jsp's perfectly.But having problem wif my jsp tutorials. such as when i wrote this counter codes in notepad..
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <html>
    <head>
    <tittle>Jsp Declaration</tittle>
    </head>
    <body>
    <h1>Declarations</h1>
    <%! int j=0;%>
    <h2>Counter</h2>
    <p>This page has been hit <span> <% ++j %> </span> times since it was first loaded.</p>
    </body>
    </html>
    and i paste it in webapps in tomcat folder.
    What should i do to view the jsp file?isaved as counter.jsp.if i right click and view it in IE/firefox it only shows the source code.is there any mistake in the codes?or i did i do anything wrong?how shall i compile these files?help me aout wif my basics please.thanks bro's..

    "I pasted it in webapps in tomcat folder".
    Webapplications need to go in their own subdirectory inside the webapps directory. Say you want a webapp 'test', then you would store your JSP as
    TOMCAT_DIR\webapps\test\counter.jsp
    Now you can open this JSP in your browser. Assuming Tomcat is running on the localhost and the default port 8080, the url would be:
    http://localhost:8080/test/counter.jsp
    If that doesn't work something is horribly misconfigured.

  • Newbie to JSP/Struts: Where to get started

    I would like to begin experimenting with JSP and the struts framework. I'm a java newbie but a relatively quick learner.
    First, what products do I need to use struts/JSP ?
    I have 9iAS standard edition release 1.0.2.1 and an oracle database std edition without the JVM installed. Do I need the JVM in the database ? Can JSP use a JVM outside the database ? Do I need enterprise edition ?
    Do I need Jdevelopper 9i or can I learn to use JSP with simple tools (HTML editor) first ?
    Does struts need JSP 2.0 spec or the JSP 1.1 that comes with iAS 1.0.2.1 is OK ? Is JSP 2.0 = JSP 1.2 (Like J2EE = JDK1.2 and up) There is a lot of version/naming confusion going on in java, you got any site that can help me untangle this mess ?
    Thanks a lot
    You can reply to [email protected]

    Thanks for your response.
    We actually use oracle 8.1.7 and 9iAS (PL/SQL gateway and http server). We would like to jump on the Java Bandwagon before we are left in the dust. We first need to be able to understand a lot of technology/concepts/buzzwords.
    We started basic Java programming (Applications) but would prefer to get an idea of "The big picture".
    By that, I mean, we need to be able to understand/design/architect sound applications and be able to talk to the community and understand what they are saying. Right now, reading the media or forums is just a big bunch of buzzwords that are ever changing and we cannot get a grasp on it.
    We not only need to get aquainted with the concepts, but we also need to be able to determine wether product xyz fits in the architecture, etc...
    If you were to get a couple of good books to answer some questions, where would you begin ?
    Kind of questions we might have are:
    - What is the difference between Jserv and Tomcat ?
    - What excatly is tomcat ? A replacement for Jserv ?
    - Can Jserv be used as a container for struts apps or do you need tomcat ? If you need tomcat, does it come with some version of 9ias ?
    - What is a java web service ?
    - I read a lot about Enterprise Java Beans etc.. What are they, what are there purpose ? It seems like it is a standard, what are they used for ? If it is a standard, does this mean that If I buy a set of EJB from a vendor, it would offer the same beans as another vendor ? Is Oracle BC4J an implementation of EJB with added functionality ? Is it proprietary ?
    - Buzzwords everywhere: MVC, EJB, J2EE, BC4J etc.. What are the definitions.
    - Is oracle's java vision proprietary or are they really following the rest of the world ? For example, is BC4J compatible with EJB ?
    - What is a Framework
    - What exactly is JSP.
    - Can STRUTS be used to access an oracle database ? If so, what are the required components (I guess you need JDBC or SQLJ) but does the oracle database need to be java enabled ?
    - Even if you use oracle 9ias as an application server, can you use non-proprietary development methods/architectures/techniques that could be easily implemented somewhere else using another vendor's application server (Ex: Apache + Tomcat, WebSphere, etc...)
    - Struts seems to be an interesting thing. I see that it was developped to encourage code reuse and prevent everyone from reinventing the wheel. But I cannot understand what exactly a developper had to write before struts was there. I mean, there must be alternatives to strut, if so what is the purpose of the framework ?
    A lot of questions, but we need to understand the basics before we jump on the java bandwagon. If we wait, we'll be left in the dust and we need to keep current.
    Thanks in advance.

  • Newbie question: JSP x JSTL (Will JSTL kill JSP?)

    Hi,
    I'm newbie in java development and know I'm learning about jsp and jstl.
    I'm reading some articles about jstl, but my doubt remains...
    Was jstl create to kill jsp in apresentation layer?
    Please, if possible, show me an example that I really need use jsp instead of jstl?
    What kind of things can't I do with jstl?
    Thanks a lot

    Ranieri wrote:
    I'm sorry, my question wasn't very clear.
    When I said JSP, I wanted say Scriptlet...
    My central point is that Scriptlet is very confortable for me at the moment...
    So, I don't see a motive to change:
    <% if (1 == 2) }....
    to
    <c:if test="1 eq 2">...Lots of motive to change.
    Now... you can say that jstl is more easy, Or you can say that JSTL is easier.
    but if a big number of people start to use it, it will increase and will turn another programming language...It sounds like you think this is a new thing. JSTL has been around for a very long time. 2001 vintage. It's already here, dude.
    Besides, it's not a programming language per se. There will be other tag libraries, but those are custom. JSTL as written hasn't changed in years. The standard won't expand.
    So, why create another programming language if we have Scriptlet to do the same?Like I said before, scriptlets were the mistake. They're unreadable, ugly, and encourage putting logic in JSPs. Very bad, indeed.
    %

  • Newbie: is JSP thread safe?

    New to JSP and trying to understand the thread-safe-code thing.
    An example maybe is the best way to ask (Tomcat 4 and Win2000/IIS, MsSQL2000, MsJDBC)
    I have a mypage.jsp page which uses a bean (mybean.class) to fill up the page from a database and also make updates to the database. So the bean has connect,disconnect,query by returning resultsets, all the database stuff.
    The question: suppose two users get to the page at the same time and press the update button at the same time, what happens?
    user1 -> mypage.jsp -> mybean.class
    user2 -> mypage.jsp -> mybean.class
    So does the mypage.jsp or mybean.class run in tomcat for both users as one copy? Can user1 database update mix up with user2 database update? And if yes, how can i prevent that? Or am I totally lost..
    -- Mixed up newbie --

    Hi,
    What we are talking about here is Transaction not Threading.
    To separate view with business and data access, it's the business class model that take care about it and not the view (JSP pages).
    So here's what to do in a serious world :
    JSP --> class that support JTA (it may be a simple class or an EJB) --> DAO class.
    Hope it's clear enough

  • Hi I am newbie to Jsp,could anybody please help me

    Hi ,I am designing one login form using Jsp and servlets,these are my programs:
    import java.io.IOException;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class login2 extends HttpServlet {
         private String target = "/welcome.jsp";
         private String getUser(String username, String password) {
    //          Just return a static name
    //          If this was reality, we would perform a SQL lookup
              return "Shopping cart";
         public void init(ServletConfig config)
         throws ServletException {
              super.init(config);
         public void doGet(HttpServletRequest request,
                   HttpServletResponse response)
         throws ServletException, IOException {
    //          If it is a get request forward to doPost()
              doPost(request, response);
         public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
         throws ServletException, IOException {
    //          Get the username from the request
              String username = request.getParameter("username");
    //          Get the password from the request
              String password = request.getParameter("password");
              String user = getUser(username, password);
    //          Add the fake user to the request
              request.setAttribute("USER", user);
    //          Forward the request to the target named
              ServletContext context = getServletContext();
              RequestDispatcher dispatcher =
                   context.getRequestDispatcher(target);
              dispatcher.forward(request, response);
         public void destroy() {
    This is my servlet program and these are my jsp programs:
    <html>
    <head>
    <title>OnJava Demo</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <b>Welcome To: <%= request.getAttribute("USER")
    %>
    </html>
    this is welcome.jsp and this is login.jsp
    <html>
    <head>
    <title>OnJava Demo</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <SCRIPT language=JavaScript>
    function checkUserName( thisform ) {
    if ( thisform.username.value == null || thisform.username.value == "") {
         alert( "You must supply value for Name");
         thisform.username.focus();
         thisform.username.select();
         return false ;
    /* if ( thisform.eMail.value == null || thisform.eMail.value == "" ) {
         alert( "You must supply value for eMail");
         thisform.eMail.focus();
         thisform.eMail.select();
         return false ;
         var myreturn = 0;
         myreturn = thisform.eMail.value.search("@");
         if ( myreturn == -1 ) {
         alert( "Please provide a valid eMail address like '[email protected]'");
         thisform.eMail.focus();
         thisform.eMail.select();
         return false ;
    return true;
    //end hiding -->
    </SCRIPT>
    <body bgcolor="#66CCFF" onLoad="document.loginForm.username.focus()">
    <Form name=loginform onsubmit="return checkUserName(this);"
    action=welcome.jsp method=post>
    <h><font face="Times New Roman" size="+3" color="#FF0000">Shopping cart Login form</font></h>
    <table width="500" border="0" cellspacing="0" cellpadding="0" align="center" >
    <tr>
    <td>
    <table width="500" border="0" cellspacing="20%" cellpadding="10%">
    <form name="loginForm" method="post" action="servlet/login2">
    <tr>
    <r>
    <td width="401" align="center"><div align="right">User Name: </div></td>
    <td width="399" align="left"><input type="text" name="username"></div></td>
         </center>
    </tr>
    <tr>
    <td width="401"><div align="right">Password: </div></td>
    <td width="399"><input type="password" name="password"></td>
    </tr>
    <tr>
    <td width="401"> </td>
    <td width="399"><br><input type="Submit" name="Submit" value="Login"></td>
    </tr>
    </form>
    </table>
    </td>
    </tr>
    </table>
    </body>
    </html>
    and I got Welcome to:null,but instead of i would like to get Welcome To Shopping Cart.
    What's the with my code,could anybody please help me...

    Hi,
    change loginform action to login2 (servlet) for validate user.
    <Form name=loginform onsubmit="return checkUserName(this);"
    action=login2 method=post>Regards,
    Ram.

  • Newbie to JSP, Need to convert some ASP code to work for JSP

    Can I get some aid in converting the following ASP code to work using JSP. I have never used JSP before but I now need to because of a recent server change.
    <%
    DIM URL
    URL = LCase(Request.ServerVariables("URL"))
    if InStr(URL, "/about/") then
    %>
    <p>About Test</p>
    <% elseif InStr(URL, "/menu/") then %>
    <p>Menu Test</p>
    <% elseif InStr(URL, "/contact/") then %>
    <p>Contact Test</p>
    <% else %>
    <p>Test</p>
    <% End if %>Thanks in advance
    Ned

    Can I get some aid in converting the following ASP
    code to work using JSP. I have never used JSP before
    but I now need to because of a recent server change.
    <%
    DIM URL
    URL = LCase(Request.ServerVariables("URL"))
    if InStr(URL, "/about/") then
    %>
    <p>About Test</p>
    <% elseif InStr(URL, "/menu/") then %>
    <p>Menu Test</p>
    <% elseif InStr(URL, "/contact/") then %>
    <p>Contact Test</p>
    <% else %>
    <p>Test</p>
    <% End if %>Thanks in advance
    Ned<%
    String sURL = request.getRequestURL();
    if (sURL.indexOf("//about//") > 1) {
    %>
    <p>About Test</p>
    <%
    } else if (sURL.indexOf("//menu//") > 1) {
    %>
    <p>Menu Test</p>
    <%
    } else if ......
    %>
    I wont do the other cases. Im sure you can figure it out. Hope it helps!

  • Newbie to JSP needs help

    I'm running tomcat and apache and basic servlets work fine, however when I try the usebean tag; I get an error message "CLASS not found". The class object is in the same directory as the servlet?
    Any suggestions?
    Kurt Radamaker
    Orlando FL

    I don't think it is. How do I tell? I'm pretty green with jsp and java, so I'm sorry I can't be of more help.
    Kurt Radamaker
    Orlando FL

  • [Newbie] Model2 JSP + JDBC + JSTL forEach

    Hi,
    This is my first post.
    I'm running into a bit of brain failure over decoupling my JSP view page from the specifics of the JDBC the model uses.
    I want to avoid the easy route of:
    Controller
    - interogates request as default main listing page.
    - runs a JDBC query
    - pops the ResultSet in the request
    - forwards to the mainlisting.jsp view
    JSP View
    - Uses a scriplet to iterate and display the contents of the results set as an HTML table.
    For a start I don't want to pass a ResultSet to the view page. I'd like to keep it completely ignorant of whether the application is using JDBC, XML or an EJB for it's data tier.
    My first smart? idea was to write an adapter for ResultSet that provides a standard List (or similar) interface, taking data from the ResultSet and returning 'domain' value objects instead of Rows.
    This presents a secondary problem however. In order to provide a List of beans around the result set I either need to copy the whole result set into an ArrayList or Vector on creation, or implement the entire List interface myself (<yawn>).
    So I figured if it's that hard, it can't be the correct way.
    Ultimately I'm after some type of Bean collection I can populate (or wrap around) a ResultSet, so that the following JSP will display the list.
    <ul>
    <c:forEach items="${theListOfItems}" var="item">
    <li><c:out value="${item.foo}" /> - <c:out value="${item.bar}" /></li>
    </c:forEach>
    </ul>
    Any pointers?
    Cheers
    Paul

    I'm quite pleased I was on the right track and I even accepted defeat in finding a pipelining way to iterating over the beans attached to the underlying result set and .. as you suggest .. loading it all into beans on creation.
    I ended up with this:
    package uk.co.cmm.tvrecorder.webapp;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.Date;
    @SuppressWarnings("serial")
    public class RecordingList extends ArrayList<Recording> {
         public RecordingList(ResultSet res) throws SQLException {
              while( res.next() ) {
                   Recording rec = new Recording();
                   rec.setId(res.getInt("id"));
                   rec.setChannel(res.getString("chan"));
                   rec.setProgName(res.getString("prog"));
                   rec.setPrio(res.getInt("prio"));
                   // Date-Times are stored as Unix long ints
                   // Why?  Legacy database - allows numerical comparison in legacy dvb recorder shell component.
                   // Possible future change to SQL DateTime but not just now.
                   Date d = new Date(res.getLong("start")*1000);
                   rec.setStart(d);
                   d = new Date(res.getLong("stop")*1000);
                   rec.setStop(d);
                   this.add(rec);
    }Which then allowed me to have:
    <table>
    <tr><th>Programme</th><th>Channel</th><th>Date</th><th>Start</th><th>Stop</th><th>Prio</th></tr>
    <c:forEach items="${recordings}" var="item">
         <c:choose>
                     <!-- when is running now -->
              <c:when test="${(now ge item.start) and (now lt item.stop)}">
                   <c:set var="style" value="background-color:red;" />
              </c:when>
              <c:otherwise>
                   <c:set var="style" value="background-color:white;" />
              </c:otherwise>
         </c:choose>
         <tr style="<c:out value="${style}" />">
              <td><c:out value="${item.progName}" /></td>
              <td><c:out value="${item.channel}" /></td>
              <td><fmt:formatDate type="date" dateStyle="FULL" value="${item.start}"  /></td>          
              <td><fmt:formatDate type="time" value="${item.start}" /></td>          
              <td><fmt:formatDate type="time" timeStyle="LONG" value="${item.stop }" /></td>          
              <td><c:out value="${item.prio}" /></td>     
         </tr>
    </c:forEach>That's that sorted, I think.... NEXT!
    Is this the correct way to put a var into an HTML attribute?
         <tr style="<c:out value="${style}" />">Cheers
    Paul

  • Newbie in JSP...help

    pls post some codes in jsp in adding,editing,deleting and viewing data in the database..i am using tomcat,apache,mysql...thanx

    Asking for code is not going to work here. Rather elaborate your coding problem in detail. Where exactly are you stucking while writing code?
    It is fairly straightforward. Write a DAO class with create/read/update/delete methods which interacts with the database. Write a Servlet which handles the request parameters and interacts with the DAO class. Write a JSP file with HTML tables and forms which sends the request parameters to the Servlet.

  • Newbie with JSP & JDBC questions

    Hi. I have a quick question. I have a client jsp page with a table, listing all the fields from my mySQL table called kellybclients. At the end of each row, I also have a submit button that I would like navigate the user to the campus jsp page that only shows the data associated with the client who's button they clicked on in the table. I'm trying to figure out how to pass this data from my JSP into the rowset.setCommand method in my connection/data bean. I am using a cached row set. Here's the code from my bean:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package ETS;
    import java.sql.SQLException;
    import javax.sql.rowset.CachedRowSet;
    import java.util.ArrayList;
    import com.sun.rowset.CachedRowSetImpl;
    public class CampusDataBean {
        private CachedRowSet rowSet;
      public CampusDataBean() throws Exception
        Class.forName("com.mysql.jdbc.Driver");
        rowSet = new CachedRowSetImpl();
        rowSet.setUrl("jdbc:mysql://traderseven.nmsu.edu/is470Spring08?relaxAutoCommit=true");
        rowSet.setUsername("is470Spring08");
        rowSet.setPassword("1DoNtier");
        rowSet.setCommand("SELECT campid, clientid, campname,campcounty FROM kellybCampus WHERE clientid=?");
        CampusBean camp = new CampusBean();
        rowSet.setString(1, camp.getClientID());
        rowSet.execute();
      public ArrayList<CampusBean> getCampusList() throws SQLException
        ArrayList<CampusBean> campusList = new ArrayList<CampusBean>();
        rowSet.beforeFirst();
        while(rowSet.next())
          CampusBean campus = new CampusBean();
          campus.setCampID(rowSet.getString(1));
          campus.setClientID(rowSet.getString (2));
          campus.setCampName(rowSet.getString(3));
          campus.setCounty(rowSet.getString(4));
          campusList.add(campus);
        return campusList;
    public void addCampus(CampusBean campus) throws SQLException
        rowSet.moveToInsertRow();
        rowSet.updateString(1,campus.getCampID());
        rowSet.updateString(2,campus.getClientID());
        rowSet.updateString(3,campus.getCampName());
        rowSet.updateString(4,campus.getCounty());
        rowSet.insertRow();
        rowSet.moveToCurrentRow();
        rowSet.acceptChanges();
    }I'm sorry if this is too vague. I'd appreciate any help, fixes, or pointers on where to learn how to do this. Thank you again.
    KellyJo

    So the button should be a Submit button for a form. There are a couple of different methods for doing this:
    1) Each row on the table can be a different form, each form uses the same action (servlet) target and has a hidden input with a unique identifier for each of the clients:
    <table>
      <tr><form action="selectClient" method="post"><td> etc </td><td><input type="hidden" name="id" value="1"/><input type="submit"/></td></form></tr>
      <tr><form action="selectClient" method="post"><td> etc </td><td><input type="hidden" name="id" value="2"/><input type="submit"/></td></form></tr>2) Use a single form with a button type=submit for each row with different values (Note: This is broken in IE7 so you probably shouldn't use it)
    <table><form action="selectClient" method="post">
      <tr><td> etc </td><td><button type="submit" name="id" value="1">Submit</button></td></tr>
      <tr><td> etc </td><td><button type="submit" name="id" value="2">Submit</button></td></tr>3) Use a single form, have a hidden value with a blank value. Each row has a submit button with a javascript onclick method that sets the form's hidden value to one appropriate to the row, then submits the form. I won't show you this code but there are examples on the web.
    4) Use a single form with an input="submit" element on each row. Each button would have a different name with the ID info encoded in it, then you would have server-side code that takes parameters, finds the right one and parses out the proper row to edit:
    <table><form action="selectClient" method="post">
      <tr><td> etc </td><td><input type="submit" name="submit__id_1"/></td></tr>
      <tr><td> etc </td><td><input type="submit" name="submit__id_2"/></td></tr>I think most people end up doing some variant of 3, which I don't like because I hate to rely on JavaScript to make my web apps work properly. I would prefer 4, which takes more work on the server side (which I like better) but 1 works just as well with a lot more typing and uglier HTML code. Actually, I would like 2 the best because that is pretty much what the <button> element was designed for, but Microsoft screwed that up.

  • Explain to newbie in JSP how user login works in jsp

    I have so far been able to manually do login with resin's web.xml, but I'm supposed to do login for many users and each user has his own private thing that he sees ie. I want login kind of like in hotmail.

    This is a schetch of my best effort so far:
    <% String user=request.getParameter("user");
          String password=request.getParameter("password");
         if (user==null)
          Tools.displayLogin(); // somehow trace back to this page??
         else {
          String password=request.getParameter("password");
          if (!Tools.checkLogin(user, password)) %>
           <h1>bad login</h1> <%
      <-- display some database stuff for example -->
    <form action="entries.jsp">
    <input type=submit value="view entries">
    <input type=hidden user="<%= user%>">
    <input type=hidden password="<%= password%>">
    </form>
    <form action="queries.jsp">
    <input type=submit value="make queries">
    <input type=hidden user="<%= user%>">
    <input type=hidden password="<%= password%>">
    </form>The idea is to keep password and username with every where you go within secure area... how secure is this then that I don't know? Comments and better suggestions are welcome?

  • Newbie to JSP, advice needed...

    I've been a Java applet and application designer for a while, and I've come to the conclusion that I should get into JSP, I'm wondering, where I can find good tutorials or books to help me out, I already started making simple ones, but what are the capabilites of JSP? I see that this very forum is JSP but how do you make something like this? Any help about this would be greatly appreciated.

    http://developer.java.sun.com/developer/onlineTraining/distributed/
    this page has a short course for JSP and Servlets. Youn should try and understand Servlets first, in my opinion, as a JSP page is a servlet after translation. I thought that Marty Hall's series of books are good for beginnners as well ("CORE servlets and java server pages" and "MORE servlets and Java server pages")

  • Newbie HELP - JSP includes

    Hi,
    I want need to create JSP pages which will have (1) Header (2) Body and (3) footer. The header and footer i am clear about including. But the body has to have two parts (a) a fixed sidebar part with hyperlinks and on the rights side (b) body contents.
    For body, i am thinking of creating a table with two colums and use dynamic include jsps in each column respectively.
    Will it work?. Is there any better way?
    Appreciate the help...

    Will it work?. Sounds good to me.
    Is there any better way?You might want to take a look at the Struts:Tiles framework.
    It is a set of tags which help you do exactly this sort of thing.
    It lets you define templates, and then just define what is different on each page (ie the body content)
    You don't have to be using Struts to use Tiles. It is standalone.

  • Newbie needs jsp form that resembles a Oracle Forms form

    Currently learning JDeveloper and need to create a form where one can view multiple records from the datasource ,update, create, delete and query the data. is there a tutorial that i can reference on that matter. By the way i've already got most of the functionality working except the query part.

    http://www.oracle.com/technology/products/jdev/tips/mills/JSP_Multi_Row_Edits.html

Maybe you are looking for

  • Why can't i open my Panasonic Lumix FZ45 RAW files in CS3?

    why can't i open my RAW files? I have photoshop CS3 with camera raw plug-in 4.6.0.30 on MacBook Pro OS X Lion 10.7.5 (11G63) and a Panasonic Lumix FZ45 I have checked the list of supported cameras and mine appears to be there. I have no available upd

  • Can I increase storage and speed to my iMac computer?

    I have close to 20,000 pictures and videos, and I'm not sure how much more my iMac can handle. Is there a way to increase to several terabytes and increase the speed through Apple? Thanks! T

  • Xls/pdf Download Options not available in interactive report on group by

    Hello All, I have the similar problem like mentioned here: export from IR with group by there I didn't find any response, Please let me know why it is happening, is there any solution to this. thanks Tauceef Edited by: Tauceef on Feb 9, 2011 4:02 PM

  • Exception handling class

    hi i have to going to handle error page so for that i want to create one helper class which is identify all the exception so this utility class i have to use in my application for handling error page so please if anybody know about how to make this h

  • Email enabled printers

    Hi can anyone tell me if the  all in one 2540 has email capabilities Thanks in advance This question was solved. View Solution.