Please help..servlet calling JSP

I have a servlet that for the time being (cut out all validation code...everything) is just trying to call a JSP. I keep getting The requested URL /servlet/hellos was not found on this server.---I'm running this at my local host, so it is not a path problem. the code is below.--
Note..when I use getServletContext().getRequestDispatcher("/servlet/log"); this works (calling another servlet) but when the below is executed I get the error.
package hellos;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class hellos extends HttpServlet {
public void doGet (HttpServletRequest req, HttpServletResponse res)
     throws ServletException, IOException
          RequestDispatcher dispatcher =
          getServletContext().getRequestDispatcher("/ITS/itsLoginhtml.jsp");
          dispatcher.forward(req, res);

Ok here is what is going on. I don't want to use redirect I want to use the dispatcher. The code is below and it works with redirect, but not dispatcher???? It says the URL cannot be found on server?????Can anyone help me get the dispatcher to work??
package hellos;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class hellos extends HttpServlet {
public void doGet (HttpServletRequest req, HttpServletResponse res)
          throws ServletException, IOException
          res.sendRedirect("/ITS/itsLoginhtml.jsp");
          //RequestDispatcher dispatcher =
                    //getServletConfig().getServletContext().getRequestDispatcher("/ITS/itsLoginhtml.jsp");
          //dispatcher.forward(req, res);

Similar Messages

  • Please help me on jsp problem

    Hi, I have installed tomcat 4.0 at directory d:\, which comes as d:\jakarata-tomcat4.0. i have java_home as c:\jdk1.3 and j2ee_home as c:\j2sdkee1.3.1. upto now i was practising servlets. I use to store my html file in webapps\examples\servlets and .class file in webapps\examples\web-inf\classes. It worked fine. now i started with JSP. I have created an html file which calls jsp file and passes the value of username.the sample code for jsp is<jsp : usebean id = rohit scope = "session">
    </jsp: usebean>
    <% if (request.getParameter("username").equals("rohit") { %>
    <jsp:forward page = "http://localhost/examles/servlets/welcome.html">
    <% } else { %>
    <jsp : include page = "http://localhost/examles/servlets/admin.html">
    <% } %>please tell me where should i place my .jsp file written in notepad so that it gets compiled and upto now i haven't used or ammended web.xml file as it was working fine with servlets.please help me on jsp

    hi rohit
    just keep it in the folder of your project and givr the path in the address and it will run. It will be compiled automatically.
    If there is some other problem do rite in details.
    TArun

  • PLEASE HELP - error Jdbc/jsp

    Hello
    I have a jsp file myfile.jsp?id=...
    This file was working fine before. I was ready from my testing and i needed to clean my access database's data so i deleted some records manually and copied database again onto live through ftp.
    After this step, myfile.jsp?id=.. was giving me errors only on certain ids for eg. it worked fine myfile.jsp?id=3, but did not work fine for myfile.jsp?id=6 giving this error:
    The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
         org.apache.jsp.viewprofile_jsp._jspService(viewprofile_jsp.java:320)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    I tried an id which does not exist in database and it worked fine ie. jsp page was executing the html message that i composed for unexisting ids.
    I also checked the records' data and these all look fine and appropriately filled.
    PLEASE HELP - any ideas?
    Thanks lodes
    sabcarina

    You could try adding logging statements or SOPs in the JSP. It would help you locate the line where the exception is occuring.

  • Please help to call oracle procedure with out paramter from shell script

    Hi
    I want to call a process with out parameter from shell script. I am calling process in shell script in below way
    function Process_loads {
    ( echo 'set serveroutput on size 1000000 arraysize 1'
    echo "set pagesize 0 term on verify off feedback off echo off"
    echo "BEGIN"
    echo " dbms_output.put_line('Before Calling The package'); "
    echo " x ( '$1', '$2', '$2', '$4', '$5', '$error_code'); "
    echo " dbms_output.put_line('After Calling The package'); "
    echo "EXCEPTION "
    echo " WHEN OTHERS THEN "
    echo " dbms_output.put_line('BIN_LOAD_ERROR' || SQLERRM); "
    echo " ROLLBACK;"
    echo "END;"
    echo "/" ) | sqlplus -s $USER/$PASSWORD@$SID
    Here $error_code is out paramter. All varaibles passed in process are declared with export command.
    When executing .sh it gives below error
    "sh ERROR at line 3: ORA-06550: line 3, column 99: PLS-00363: expression '' cannot be used as an assignment target ORA-06550: line 3, column 3: PL/SQL: Statement ignored".
    Please help to get rid from this error or please suggest how to call a oracle procedure with out paramter from unix shell script.
    Thanks in advance

    You can try this:
    From sql*plus
    SQL> ed
      1  create or replace procedure my_proc(p_id in int, p_result out int)
      2  as
      3  begin
      4  select 10 * p_id
      5  into p_result
      6  from dual;
      7* end my_proc;
    SQL> /
    Procedure created.
    SQL> set serveroutput on
    SQL> declare
      2  v_r int;
      3  begin
      4  my_proc(10,v_r);
      5  dbms_output.put_line(v_r);
      6  end;
      7  /
    100
    PL/SQL procedure successfully completed.
    from bash:
    testproc.sh:
    #!/bin/bash
    (echo 'set serveroutput on';
    echo 'declare';
    echo 'v_r int;';
    echo 'begin';
    echo 'my_proc(10,v_r);';
    echo 'dbms_output.put_line(v_r);'
    echo 'end;';
    echo '/';) | sqlplus -s u1/u1
    Console:
    oracle@mob-ubuntu:~$ chmod u+x testproc.sh
    oracle@mob-ubuntu:~$ ./testproc.sh
    100
    PL/SQL procedure successfully completed.With kind regards
    Krystian Zieja

  • URGENT, Please help with calling one program in another

    I am am trying to call Ch4Ex5 within Ch3Ex5. The teacher said it should take about 6 lines of modification within Ch3Ex5 to be able to call out Ch4Ex5. I also might need to modify Ch4Ex5 to get it to work. But I spent many hours and its due soon and I still cant figure it out. I think the teacher assigned this too early in the semester because most the kids dont know how to do it.
    Here is Ch3Ex5
    import java.util.*;
    public class Ch3Ex5
         public static void main(String[] args)
              Scanner kb = new Scanner(System.in);
              int aCount = 0, bCount = 0, cCount = 0, dCount = 0, fCount = 0;
              int nScores = 0;
              int lowest, highest;
              int currentScore;
              int totalOfScores = 0;
              double average;
              do
                   System.out.print("Enter a score (negative value to quit): ");
                   currentScore = kb.nextInt();
                   kb.nextLine();
                   if(currentScore > 100)
                        System.out.println("Scores cannot be greater than 100, please try again");
              } while(currentScore > 100);
              lowest = currentScore;
              highest = currentScore;
              while(currentScore > 0)
                   nScores++;
                   totalOfScores += currentScore;
                   if(lowest > currentScore)
                        lowest = currentScore;
                   if(highest < currentScore)
                        highest = currentScore;
                   if((100 >= currentScore) && (currentScore >= 90)) aCount++;
                   else if(currentScore >= 80) bCount++;
                   else if(currentScore >= 70) cCount++;
                   else if(currentScore >= 60) dCount++;
                   else fCount++;
                   do
                        System.out.print("Enter a score (negative value to quit): ");
                        currentScore = kb.nextInt();
                        kb.nextLine();
                        if(currentScore > 100)
                             System.out.println("Scores cannot be greater than 100, please try again");
                   } while(currentScore > 100);
              System.out.println("Number of scores: " + nScores);
              if(nScores > 0)
                   System.out.println("Number of A's = " + aCount);
                   System.out.println("Number of B's = " + bCount);
                   System.out.println("Number of C's = " + cCount);
                   System.out.println("Number of D's = " + dCount);
                   System.out.println("Number of F's = " + fCount);
                   System.out.println("Percent A's = "+(100.0*aCount/nScores));
                   System.out.println("Percent B's = "+(100.0*bCount/nScores));
                   System.out.println("Percent C's = "+(100.0*cCount/nScores));
                   System.out.println("Percent D's = "+(100.0*dCount/nScores));
                   System.out.println("Percent F's = "+(100.0*fCount/nScores));
                   System.out.println("High score: " + highest);
                   System.out.println("Low score: " + lowest);
                   average = (double) totalOfScores / nScores;
                   System.out.println("Average score = " + average);
    import java.util.*;
    public class Ch4Ex5
         public static void main(String[] args)
              Scanner kb = new Scanner(System.in);
              double gradeA, gradeB, gradeC, gradeD, gradeF, total;
              double aCount, bCount, cCount, dCount, fCount;
              System.out.println("Enter in the number of each grades");
              System.out.println("In this order, A's, B's, C's, D's, F's");
              gradeA = kb.nextDouble();
              gradeB = kb.nextDouble();
              gradeC = kb.nextDouble();
              gradeD = kb.nextDouble();
              gradeF = kb.nextDouble();
              System.out.println("0    10   20   30   40   50   60   70   80   90   100");
              System.out.println("|    |    |    |    |    |    |    |    |    |    |");
              System.out.println("***************************************************");
              total = gradeA + gradeB + gradeC + gradeD + gradeF;
              aCount = (((gradeA) / (total)) * 100);
              bCount = (((gradeB) / (total)) * 100);
              cCount = (((gradeC) / (total)) * 100);
              dCount = (((gradeD) / (total)) * 100);
              fCount = (((gradeF) / (total)) * 100);
                   for (int i= 0; i < aCount; i = i +2)
                   System.out.print('*');
              System.out.println("A");
                   for (int i= 0; i < bCount; i = i +2)
                   System.out.print('*');
              System.out.println("B");
                   for (int i= 0; i < cCount; i = i +2)
                   System.out.print('*');
              System.out.println("C");
                   for (int i= 0; i < dCount; i = i +2)
                   System.out.print('*');
              System.out.println("D");
                   for (int i= 0; i < fCount; i = i +2)
                   System.out.print('*');
              System.out.println("F");
    }

    Here's a tip for you: it doesn't really matter if you post in New to Java or Java Programming. Post once, be patient and you will get a reply. As I said keep up this style of posting and nobody will be willing to help you.
    Why am I freaking out over double posting? Lets say Fred reads and replies in Thread A. Then Barney comes along and reads Thread B not knowing that Fred has already given an answer in Thread B. So Barney ends up wasting his time by posting the same answer in Thread B. Once again it aint rocket science!

  • Please help -servlet to servlet communication

    hi
    I am using two tomcat servers.
    in my one server having one servlet.
    in that servlet i am entering username .
    in that username send to the other server's servlet.in that servlet check in the database and send the response to this servlet.
    is it possible!
    if possible help me please.
    thank u

    Use HttpURLConnection to POST to the other Servlet and receive its response. Or download Jakarta's HttpClient.
    - Saish

  • Stuck on this for 72 hours, please please help, servlet to midlet coms

    this problem is driving me mad, ive spent 3 whole days now and im totally stumped, so i really hope someone here has an idea
    basically, i have a parsed xml file read into a vector, and now i need to send that vector to my midlet, the question is how, because objectinputstream wont work, and that appears to be the only way to do it from searching around on the internet.
    i tried using a for loop to read and send the data while the the vector is less than its total size and then on the other end read it in but that doesnt work
    please, please someone help im totally desperate

    6EE43274F0210DF9BB963BC753
    hi there, thanks for the reply but I think I may have not made myself clear, im aware of how to create the connection and set everything up etc but the problem I was getting was in "how to send a vector over the air to my midlet" i.e being able to read each item in the vector, and then send that over the air to my midlet, have that received and placed in a vector midlet side, however I did manage to figure it out on my own in the end and it wasn�t my programming that was at fault but the way I had written the xml file, in that for example I had written
    <locations>
    <name>data</name>
    <name>data</name>
    </locations>
    and the parser (xerces) detected each time I had pressed enter as blank space characters, which in turn ruined the for loop I had written to send each one in turn to the midlet, I changed the xml file to include no enters i.e.
    <locations><name>data</name><name>data</name></locations>
    and that fixed it, I was able to send the entire vector over the web using for loops, one that read the vector element into a temp string, and outputted that string using a dataoutput stream, and then a for loop on the midlets side that received it and put it into a vector!
    Thank you for your reply again, I appreciate it lots but next time I think I should provide more information, I thought I would post the solution just in case anyone

  • Urgent problem.. please help...JSP package..

    hi i have a 2 java classes
    one is using the other as an object... because i am using jsp... i have put the classes in packages.
    but it doesnt seem to get the class object when put in packages, when i remove them seems to work..
    but i need the packages to be there... or is there a way around this? can i use the classes without putting them into packages with tomcat and jsp?
    thanks!
    code below..
    this line normally works without the packages
    Connection conn = DBConnection.getDBConnection();
    package multipleChoice.test;
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    import java.util.logging.*;
    public class DBConnection
         public static Connection getDBConnection() throws SQLException
              Connection conn = null;
              try
                   InitialContext ctx = new InitialContext();
                   DataSource ds = ( DataSource ) ctx.lookup( "java:comp/env/jdbc/MySQLDB" );
                        conn = ds.getConnection();
                   catch ( SQLException sqlEx )
                   System.out.println( "cannot get JDBC connection: " + sqlEx );
    catch ( NamingException nEx )
    nEx.printStackTrace();
    return conn;
    public static void closeConnection(Connection conDB) {
    // Return Connection to the pool
    try {
    conDB.close();
    catch(SQLException se)
    // handle any errors
    // Set object to be ready for garbage collection
    conDB = null;
    } // end closeConnection

    If you're going to crosspost, at least have the courtesy to provide a link back to your original thread. It's easy. Just like this:
    http://forum.java.sun.com/thread.jsp?forum=54&thread=502177&start=0&range=30#2375789

  • Please help me! JSP image upload + TOMCAT

    hello i hope someone hear me,
    my problem is after i upload an image in my application.
    i upload successfully because it to the "res" directory, i see it is there but
    i can not display it until i restart the server.
    <img src="resim/<%=ddbresim%>" width="180" height="120" border="1" align="right" />
    any suggestions?

    If that snippet is correct, I am more surprised that you can see the image after the restart. You say it should go in a 'res' subdirectory, yet you refer to a 'resim' directory in the snippet.

  • PDF File not getting generated - PLEASE HELP

    I have a jsp in a portlet from where in I call another jsp to generate a PDF file on the fly. IT is not working I have tried all sorts of stream please help.
    Calling JSP (Portlet)
    <tr>
    <td><netui:anchor href="print.jsp" target="new">Print
    </netui:anchor>
    </td>
    Called JSP, print.jsp:
    try {
    ServletOutputStream outStream = (ServletOutputStream)response.getOutputStream();
    outStream.write("BINARY OUTPUT".getBytes());
    outStream.println("PRINTLN OUTPUT--"+request.getParameter("empID"));
    outStream.flush();
    outStream.close();
    } catch {}
    As you can see I am just trying to Write some string in the print.jsp
    The word opens up but nothing is WRITTEN in it. Have tried all the OutputStreams. Please help why is it not getting printed even if set proper headers.

    There are some issues with this PDF file.  It's not tagged but even still it has some real problems.  I checked the file to see what created it and it was something called "Wine Postscript Driver" and the PDF Producer was "GPL GhostScript 9.10"  When you check the file in Preflight then you will begin to understand that this is a poorly created PDF file.  Here is a bit of the PDF Syntax report:

  • JSP Connection Pooling Please Help

    Hi,
    I have a bean that I want to use for connection pooling with my JSP's. Its constructor creates the pool of connections and I have a getConnection method which retrieves available ones.
    My problem is that I create a new instance of the bean on each jsp page I am using. So that means when I go to my next web page and want to grab a connection I recreate an instance of the bean and therefore am creating another pool all over again.
    How do I get around this. When I first create an instance of the bean from a .jsp should I make the scope of that bean equal session. That way will I be able to use the same instance throughout the whole site.
    Please help
    Thanks
    Natasha

    Hi,
    <jsp:useBean> first tries to locate in the scope specified for the bean.If it doesn't find any, then it will instantiates the bean.
    Set the beans scope as "application" which means the same bean is available throughout the application.
    Hope this helps.
    With Regards
    Gayam_Slash

  • Please help me! Error setting property 'out' in bean of type null

    I got this "nice" exception 2 days ago, but I realy can't find the problem.
    As you can see next all beans have setters/getters and are initializated.
    Please help me:
    index.jsp:
    f:view>
    <h:dataTable value="#{DataBaseReaderBean.todayArticles}" var="articleBean">
    <h:column>
    <h:outputText binding="#{articleBean.out}"/>
    </h:column>
    </h:dataTable>
    </f:view>
    <faces-config>
    <component>
    <component-type>articleComponentType</component-type>
    <component-class>news.UiArticle</component-class>
    </component>
    <managed-bean>
    <description>
    Reads articles from database
    </description>
    <managed-bean-name>DataBaseReaderBean</managed-bean-name>
    <managed-bean-class>news.DataBaseReaderBean</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    <managed-property>
    <property-name>todayArticles</property-name>
    <property-class>java.util.ArrayList</property-class>
    <value>#{todayArticles}</value>
    </managed-property>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>ArticleBean</managed-bean-name>
    <managed-bean-class>news.ArticleBean</managed-bean-class>
    <managed-bean-scope>none</managed-bean-scope>
    <managed-property>
    <property-name>out</property-name>
    <property-class>javax.faces.component.html.HtmlOutputText</property-class>
    <value>#{out}</value>
    </managed-property>
    </managed-bean>
    <lifecycle/>
    <application>
    <locale-config/>
    </application>
    <factory/>
    </faces-config>
    public class DataBaseReaderBean implements Serializable{
    private ArrayList todayArticles=new ArrayList();
    public DataBaseReaderBean() {
    todayArticles.add(new ArticleBean(new Article("First news","this is my first news","articlesimage/1.jpg","First img"),new Boolean(true)));
    todayArticles.add(new ArticleBean(new Article("Second news","this is my second news","articlesimages/2.jpg","Second img"),new Boolean(true)));
    todayArticles.add(new ArticleBean(new Article("Third news","this is my third news","articlesimages/3.jpg","Third img"),new Boolean(false)));
    todayArticles.add(new ArticleBean(new Article("Last news","this is my last news","articlesimages/4.jpg","Last img"),new Boolean(false)));
    public ArrayList getTodayArticles() {
    return todayArticles;
    public void setTodayArticles(ArrayList todayArticles) {
    this.todayArticles = todayArticles;
    public class ArticleBean implements Serializable {
    private Boolean collapsed;
    private news.UiArticle myUIArticle;
    private Article article;
    private HtmlOutputText out;
    public void setOut(HtmlOutputText out) {
    this.out = out;
    public HtmlOutputText getOut() {
    out.setValue("myText");
    return out;
    public ArticleBean() {
    out=new HtmlOutputText();
    }

    hi frank,
    I cross checked, all the entries in the bean, with those in the JSPX source code, and chceked in the auto comment of the JSPX page the name of the bean, i have checked the faces config, i am going to remove the the new models and re-add them, just tell me if i need to add any files other than those:
    MODEL X folder, which contains the model
    JSPX folder, which contans the pages
    SRC folder in view controller
    And the faces config to web-inf
    thanks in advance man
    regards
    Halim

  • Slow performance after iOS 7.1 upgrade, please help.

    My kids have iPad Airs.  One of them has a serious slow down in performance after upgrading to iOS 7.1.  The others work fine.  It is so slow that it is unusable.  When you type a single character, it takes several seconds to show up on the screen.  I'm rebooted and did a reset in Settings.  Any other ideas?  Please help.

    I called Apple Support (800-275-2273) and they also recommended a reset: "Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears".
    It came to a screen with a USB cable and arrow to iTunes logo.  I had to connect to my PC and lanuch iTunes.  iTunes recognized the iPad in restore mode.  My only option per Apple Support was to restore to factory defaults.  It appears all data is lost.
    The Apple Support person would not admit that this is a known issue with iOS 7.1 even though you can go online and see that may people have slow performance after upgrading to iOS 7.1.

  • PLEASE HELP!!! using servlet to generate an image in jsp page

    Hi,
    I am so stuck on this... please help.
    I have a servlet that generated a gif image dynamically. It uses a bean that stores the gif image in a byte array.
    The servlet outputs the byte data to the output stream. The code is really simple and looks like this:
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            //HttpSession session = request.getSession();
            try {
                ServletOutputStream stream = response.getOutputStream();
                ImageByteInformation imageByteInfo = (ImageByteInformation) request.getAttribute("imageByteInformation");
                response.setContentType("image/gif");
                response.setContentLength(imageByteInfo.getByteData().length);
                stream.write(imageByteInfo.getByteData(), 0, imageByteInfo.getByteData().length);
                stream.flush();
            }catch( Exception e){   
                System.out.println("You are hooped!: " + e.getMessage() + " " + e.toString());           
            }When I redirect from the dispatch servlet straight to this servlet an image shows up in the browser window.
    However when I try to use this jsp page to display the image nothing happens...
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
            <h2>Hello World!</h2>
            <img src="servlets/Map24ImageDisplayServlet"/>
             //I also tried src/servlets/Map24..., /src/servlets/Map24..., /display, servlets/display
            <h2>Did you see the image?</h2>
        </body>
    </html>My web.xml is here if it helps...
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
      <display-name>HelloProject</display-name>
    <servlet>
        <display-name>ServletDispatcher</display-name>
        <servlet-name>ServletDispatcher</servlet-name>
        <servlet-class>servlets.ServletDispatcher</servlet-class>
      </servlet>
      <servlet>
        <display-name>Map24ImageDisplayServlet</display-name>
        <servlet-name>Map24ImageDisplayServlet</servlet-name>
        <servlet-class>servlets.Map24ImageDisplayServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>ServletDispatcher</servlet-name>
        <url-pattern>/hello</url-pattern>
      </servlet-mapping>
      <error-page>
        <error-code>404</error-code>
        <location>/404_error.html</location>
      </error-page>
      <servlet-mapping>
        <servlet-name>Map24ImageDisplayServlet</servlet-name>
        <url-pattern>/display</url-pattern>
      </servlet-mapping>
    </web-app>I can never get an image to come up. In fact I can never get the jsp page to run the servlet at all! HELP!!! What am I doing wrong?
    Thanks
    Edited by: Kind_of_Green on May 5, 2008 3:55 PM
    Edited by: Kind_of_Green on May 5, 2008 4:00 PM

    OK... so you WERE absolutely right about the src path for the image tag.
    However I also had another problem that was quite a bit more insidious and mostly just a symptom
    of how little I know about what goes on under the hood of a web app.
    My bean storing the image info was stored as a request attribute. When the servlet was called from the
    jsp page the request object was either reset or just never initialized. Anyway it is not the same request
    object I assumed it was being passed in the doGet method. I added my bean as a session
    attribute and everything is sparkly :)
    I can only assume that when a request is neither forwarded nor included (as is the case with
    calling the servlet from the img tag) it is disappeared.
    Anyway, thanks a mint man. I so totally appreciate your time.
    Ciao :)

  • Problems with Servlet  to JSP communication please help!!!

    Hello All ,
    we have different web applications running
    e.g.
    We have 2 webApp named A and B are running and there URL are
    http://localhost:8080/A and
    http://localhost:8080/B
    and we have one common WebApp running at
    http://localhost:8080/common
    Our problem is that whenever a user log in to the system he/she will first call the
    common URL and then enter his user name and password
    and depending on his username we have redirect user to either A or B with his pasword and username as parameter to the request.
    i.e. in common module whenever i get userName and password we call a Servlet to authenticate the user and to detemine which webapp to forward to..
    i have to call jsp accordingly from servlet in common webApp to JSP in different webapp.
    I m wonderning how it is possilble.
    As
    i don't know how to call another webApp using
    RequestDispatcher.forward () method and
    also
    i am not able to set paramters with the request whenever i user response.sendRedirect() method
    I am wondering what could be the way to pass paramer to the request from servlet in one webApp to JSP in another webApp
    Please help its urgent!!!
    thankx in advance

    forward() can't call another webapp.
    There are several ways you could do this.
    1) Share the session object across both webapps and set something as an attribute of the session.
    2) Use a database or file storage to record the transaction, then go to the second webapp, which picks up that info.

Maybe you are looking for

  • Table for finding rate based on part code and material

    Hi Experts      I am an ABAP consultant with ltd knowledge on SD . Please tell me in which table  I can find the rate based on party code and material .

  • Authorization group in GL A/C using FB01

    HI, We have  activated the authorization Group in GL A/c. Using the authorization object F_BKPF_BES we were able to create restrictions on other tcodes like F-28 . However when using the u201CFB01u201D tcode, the authorization check does not have any

  • Backup restoring procedure in system9

    anybody has documents or links which talks about backup / restore complete system9 products . ?

  • ATI Radeon HD 4870 not better than the Nvidea Geforce 120?

    I bought av new ATI Radeon HD 4870 card to my MacPro. But are wery disappointed. My old NVIDIA GeForce GT 120 performes almost better than ATI. I ran Cinebench test and this is the results: *NVIDIA GeForce* Rendering (Single CPU): 3225 CB-CPU Renderi

  • Copy configuration between company codes tool

    Hi, I would like to know if we can copy configuration between company codes?  If yes, how do we do that?  I know there are some third party tools available, but couldnt recollect now.  Any guesses?  Thanks, Abdul