JSP and Netscape frame target bug. HELP!!!!!!!!

Hello All,
I have a frameset that has 4 frames. In one of the frames I submit a form which processes some jsp code. The jsp code then is suppossed to load a new page in another frame (I have the target="MyFrame" in the form).
In IE it works fine and loads into the proper frame, but in Netscape 4.79 + it doesn't and opens in a completely new window. If I just have the page as html it works fine in all browsers, so I have isolated it to the jsp implementation.
Anyone come across this problem? Better yet, Anyone know how to fix the problem?
I need help ASAP as my deadline has passed and I haven't found a solution.
Thanks in advance,
Hyper
Actual jsp page below
<html>
<head>
<base target="QA">
<Script>
function pushme(){
document.form1.submit();
</script>
</head>
<body>
<form name="form1" action="nd/Euser.jsp" method="get" target="MyFrame">
<input type=hidden name=server value="00.000.000.00 - I actually have a correct server address in the functioning code">
<input type=hidden name=port value="8080">
<input type=hidden name=username value="enduser01">
<input type=hidden name=userid value="1">
<input type=hidden name=role value="EU">
<input type=hidden name=eventid value="1">
</form>
<script>
pushme();
</script>
</body>
</html>

This can not possibly be a JSP issue since it works in IE. In your case, JSP is just producing html and how this html will be handled depends on the browser .Post your frameset tag along with the html that you calimed to be working. Better yet, some html/Netscape users forum might be more helpful for you.

Similar Messages

  • Interesting single sigon application project using jsp and servlet....Help.

    A customer login's to my website using Enterprise login. I am supposed to have a link on my website to this other website(that also uses our Enterprise login details but hosted by other vendor/company on their server), and when I click this link the customes should automatically get logged in to this other website and get a welcome page(instead of login page).
    Below are the sequence of steps that the other website wants me to perform to get to his welcome page(i.e bypass his login page).
    FYI, I am planning to build a jsp page with a link to this other website. Can some body tell me how should I build the application(i.e) how jsp and servlets be build to interact to perform these operations. Any hep is greatly appreciated.
    1.When a user clicks on to other website link(available on my website), the browser generates an HTTP GET request to the Other website's session servlet. User's name is one of the parameters of this request.
    2.Other website receives the HTTP request and generates a unique session identifier for this user. An HTTP response to the end-user is then sent. The user's name and the session identifier are passed back as parameters in the redirect URL.
    3.The browser sends the HTTP request (GET) to the Verification Service that was specified in the redirect message. The parameters (user name and/or session id) will be passed as URL parameters.
    4.The Verification Service(of other website) authenticates the user. A redirect URL to it's sigon servlet(with parameter's User id and key) is then sent back to the user's browser.
    5.The end-user's browser will perform the redirect (performing an HTTP get operation to Other website's signon servlet with the username and the digest key).
    6.The other website will check if the parameter's passed is the same as the one passed earlier, if the user is who he says he is then he is redirected to the main page of the application.
    7.The browser will then redirect the user to Other website's main page (welcome.jsp).
    There seems's to be many calls to this other website that needs to be performed behind the scenes once a user clicks the link on my website.
    Please suggest and help me out.........
    Edited by: 836726 on Feb 21, 2011 3:41 PM

    Why are you trying to build a whole federated single sign on framework from scratch when you can just use/buy an existing and proven solution instead? There are a lot of security implication and trust issues involved for this so unless you already understand all of those I'd advise you not to re-invent the wheel. There are a lot of products available that do this. Try searching for '<vendor name> Access Manager' or OpenSSO.

  • InterMedia Java Classes for Servlets and JSPs and Netscape

    I am using the interMedia Java Classes for Servlets and JSPs to upload and retrieve multimedia data. I have found that it is much more performant in Internet Explorer (5.5) than in Netscape Communicator (4.7). In fact, I cannot upload images larger than 10K at all using netscape. However, the same image can be uploaded into the same application using IE. Is this a known issue?
    Thanks in advance.

    Hi,
    We have successfully uploaded multimedia data in the giga-byte range (Quicktime and AVI files) at the same speed with both the Netscape (4.7n) and MS IE (4.n and 5.n) browsers. One thing we have noticed is that its very important to set the manual proxy settings correctly if you have an environment with a proxy server. If you don't, then uploads can go via the proxy server and, for some reason, that seems to take considerably longer. For example, suppose you are in the www.xyzco.com domain and are connecting to a host named webserver.www.xyzco.com, then specify webserver and webserver.www.xyzco.com (to cover both cases) in the "Do not use proxy servers for..." box in the manual proxy server configuration screen. Also, if you're using a tool such as JDeveloper that uses the host IP address in the debugger environment, then you also need to add the numeric-based (nnn.nnn.nnn.nnn) IP address to this list.
    Hope this helps.
    In order to better understand the variety of ways in which our customers are using interMedia, we'd be very interested in knowing a little more about your application, the interMedia functionality that you are using, and how you are developing and deploying your application. If you are able to help us, please send a short email message with some information about your application, together with any comments you may have, to the Oracle interMedia Product Manager, Joe Mauro, at [email protected] Thank you!
    Regards,
    Simon
    null

  • JSP and JavaBean simple question, pls help

    Hello,
    I am new to JSP. I just installed Sun Java Studio Enterprise 8 to create a JSP project. I created a jsp file and java class file in the same project. the class file is in default package. I use <jsp:useBean id="date" class="DateFormatBean"/> in jsp file to call the java class. When I run the jsp page I got the error:
    cannot resolve symbol
    symbol : class DateFormateBean
    if I add a package in the class file, I got the error: package com.mycom.projsp does not exist.
    Also I tried to add a jar file into the library and tried to import it in my jsp page, I also got package doesn't exist error.
    I know I need to set the classpath and I did it, but still got the error. Could someone help me out? Do I miss some settings? I am using Tomcat.
    Thanks in advance!

    i'm not familiar with Java Studio Enterprise 8 so i'm not sure how it is organizing its project. However, i know tomcat...and if for test purposes you take your jsp file and put it in $TOMCAT_HOME/webapps/ROOT and your class file and put it in $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes, things should work out. perhaps the web app isn't being organized properly in your tool.
    hope that helps.

  • JSP and XML...need help

    hello i have a simple issue
    i have an xml file with various elements
    lets say and element named Uni with the values UTS, UNSW, USYD etc
    and each of the differenet element values have a attribute i.e CourseNo and ListOFSubjects
    <UNI>
         <name>UTS</name>
                <CourseNo>
                         50001
                </CourseNo>
                <ListOfSubjects>
                         <category>English</category>
                         <category>Maths</category>
                         </categories>
               <link>50001.xml</link>
          <name>UNSW</name>
            <CourseNo>
                         50102
                </CourseNo>
                <ListOfSubjects>
                         <category>Sience</category>
                         <category>Maths</category>
                         </categories>
               <link>50102.xml</link>
    </UNI>For now i am reading an xml containg the following xml code.
    BufferedReader is = new BufferedReader( new FileReader(f));          
                        String inputLine;     
                        while ((inputLine = is.readLine()) != null)
                        out.println(inputLine);
                        out.println();
                        is.close();          } but when i read the file i read the whole file.
    instead i want to know how i can read and output on certain aspects of the file.
    eg i would like to only output the words UTS and UNSW
    or only the categories for UTS i.e English and Maths
    i was hoping someone knows how to do this..
    PLEASE help its very important
    thankyou

    You can use Parsing API of Java.
    You can use DOM (Document Object Model) Parser for the same.
    So that you will get node name like <name> and also its value as UTS.
    You can refer this link to use DOM.
    http://www.developer.com/java/other/article.php/3292751
    or you can follow following steps
    1. Get instance of DocumentBuilderFactory as
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(false);
    factory.setNamespaceAware(false);
    2. Use DocumentBuilder as
    DocumentBuilder parser = factory.newDocumentBuilder();
    3. Then Parse the file as
    DocumentBuilder parser = factory.newDocumentBuilder();
    Document dom = parser.parse(file);
    4. Using element class u can get root & usingNameNodeMap you can get attributes for root follows
    Element root = dom.getDocumentElement();
    NamedNodeMap attrib = root.getAttributes();
    5. Get and process children of the current node
    NodeList children = node.getChildNodes()
    Here u can write recurssive function named traverseTree(Node node)
    Firstly, u'll pass root node as a parameter to this function
    6. Get childrens of cuurent node
    NodeList children = node.getChildNodes();
    7. Iterate this 'children' node.
    for each child do the following
    Node child = children.item(c);
    if(child.getNodeType() == Node.ELEMENT_NODE)
    NamedNodeMap attrib = child.getAttributes(); // using this , u can have Node name & Node value. Here you can get UTS & UTWS as node value for node <name>
    traverseTree(child ) // if child is ellement node again traverse the child
    Edited by: Abhijai on ?? ???, ???? ?:?? ???????

  • Plain JSP and java:  can any one help .

    I explained below the logic
    each declaration & loop has comment
    if possible please try it
    After you run this code it will work fine as many as entris you want
    Just make some changes remove comment marked with @ then run again the same program for more than 26 entries it will not work ..
    I want this code to work for any no of entries user selected . minimum 30-35
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <script type="text/Javascript" language="Javascript">
    function goto()
      document.forms[0].submit();
    </script>
    </head>
    <body>
    <%
    /* this block declares the array elements  for storing the values when page is submitted*/
         String len="";
        String arr_sr_no[]=null ;
         String arr_frmdeler_nm[]=null;
         String arr_frm_dest[]=null;
          String arr_todeler_nm[]=null;
          String arr_to_dest[]=null;
          String arr_mode_trans[]=null;
          String arr_fare[]=null;
       /* When page get submitted values are stored in theese array elements */  
          arr_sr_no=request.getParameterValues("sr_no");
          arr_frmdeler_nm=request.getParameterValues("frm_dlr_name");
          arr_frm_dest=request.getParameterValues("frm_dest");
          arr_todeler_nm=request.getParameterValues("to_dlr_name");
          arr_to_dest=request.getParameterValues("to_dest");
          // @ arr_mode_trans=request.getParameterValues("transport_mode");
          arr_fare=request.getParameterValues("fare");
       /* Array of serial number is null for first time when page gets loaded so i initialized
         the len="1";
        if(arr_sr_no==null)
               len="1";          
      /* when array of serial  is not null when page gets loaded
         i initialized len with the length of the array of serial number i.e arr_sr_no[]
            if(arr_sr_no!=null)
               int i = arr_sr_no.length;
               len = Integer.toString(i);
            // Converted String  len into Integer
             int add_cnt = Integer.parseInt(len);
           /* this line gets the value from Select combo which select  no. of rows  to be generated
            for table entries */
            String str2=request.getParameter("no_statements");
            String str3="";
          //when  str2 is not null initialize the str3 with str2.
          // This is for that how many rows we have selected in  <select> tag
          //else part is for first time when page is loaded
          // so that one row will be defaultly created
           if(str2!=null)
              str3=str2;
            else
              str3="1";
          //converted String to integer..
             int entry=Integer.parseInt(str3);
    %>
    <form name="myform" >
    <table width="500" border="1" >
        <tr>
           <%--This is Select tag which Selects the No of Rows whch onChange calls goto()
               and page gets submitted
           --%>
               <select  name="no_statements" onChange="goto()">
                      <%
                          int cnt;
                         for( cnt=1;cnt<=30;cnt++)
                      %>
                          <option value="<%=cnt%>" <% if(entry==cnt) out.println("selected");%>> <%=cnt%> </option>
                      <%
                      %>
                      </select>   
               </td>
    <%
      /*  This for loop gets the iterates for Selected no of Rows in <SELECT> tag
       "entry" variable is initialized above for selected rows
           for (int i=1;i<=entry;i++)
                  String strdlr_name="";
                  String strfrm_dest="";
                  String strtodeler_nm="";
                  String strto_dest="";
                   String trans_mode="0";
                    String strfare="";
            /* This condition checks for any array is not null*/
            if(arr_sr_no!=null)
                    /* this array checks for each time that i is less than add_cnt
                       where add_cnt is length of arr_sr_no[] (which is in turn length
                       of each array we have stored above)
                       This cond'n ensures that no null pointer assignment is done
                    if(i<=add_cnt)
                       /* we initializes each element of each array serially to
                        local String variables */
                       strdlr_name=arr_frmdeler_nm[i-1];
                       strfrm_dest= arr_frm_dest[i-1];
                       strtodeler_nm= arr_todeler_nm[i-1];
                       strto_dest= arr_to_dest[i-1];
                       // @ trans_mode=arr_mode_trans[i-1];
                        strfare =arr_fare[i-1];
                      }// end of inner if
                  }// end of outer if
            %>
         <tr>
                <%-- here we assign local string  values to <input> box this will
                     this will ensure that all entris  will stay intact when page
                      gets submitted
                --%>
                <td><input name="sr_no" type="text" value="<%=i%>" size="2"></td>
                <td><input name="frm_dlr_name" type="text" value="<%=strdlr_name%>" size="16"></td>
                <td><input name="frm_dest" type="text" value="<%=strfrm_dest%>" size="11"></td>
                <td><input name="to_dlr_name" type="text" value="<%=strtodeler_nm%>" size="18"></td>
                <td><input name="to_dest" type="text" value="<%=strto_dest%>" size="11"></td>
               <%-- @ <td><select name="transport_mode" >
                        <option value="0" <%if("0".equals(trans_mode)) out.println("selected"); %>>--Select--</option>
                        <option value="1" <%if("1".equals(trans_mode)) out.println("selected"); %>>Air</option>
                        <option value="2" <%if("2".equals(trans_mode) )out.println("selected"); %>>Train</option>
                        <option value="3" <%if("3".equals(trans_mode)) out.println("selected"); %>>Bus</option>
                        <option value="4" <%if("4".equals(trans_mode)) out.println("selected"); %>>Taxi</option>
                        <option value="5" <%if("5".equals(trans_mode)) out.println("selected"); %>>Two Wheeler</option>
                        <option value="6" <%if("6".equals(trans_mode)) out.println("selected"); %>>Auto Rikshaw</option>
                     </select>
              --%>
           <td><input name="fare" type="text" value="<%=strfare%>" size="4"></td>
           </tr>
            <%
            }// End of For loop
            %>
    </table>
    </form>
    </body>
    </html>Hope you will reply
    it is very urgent

    No need to post it again. Particularly when it is right near the top.
    http://forum.java.sun.com/thread.jspa?threadID=765816&tstart=0

  • Help with jsp and frameset

    i have a dozen of asp pages which talk with MSSQL. I want to build an interactive menu with dozen of links ( probably like a tree structure with dozen nodes each pointing to these asp pages).
    1) I intend to build the menu in jsp using the tree structure available.
    My Question is when a user clicks on a node, i want the asp page to open in a frameset style, opening in a different frame.
    this is a fragment of the jsp tag:
    <ui:treeNode binding="#{Page1.treeNode1}" id="treeNode1" target="_parent" text="Tree Node 1" url="http://myserver/page1.asp">
    how do i change the target attribute so that it opens the asp page in a new frame?

    Build a page with 2 frames with one frame's name as say "left" and the other as "right". Assuming that you would want your menu jsp on the left, set the src of that frame to your menu jsp. and set the target as target="right" (name of your right frame) instead of _parent..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Equivalent for objectGUID in OpenLDAP and Netscape 4.1

    Hi ,
    Is there anything equivalent to objectGUID in AD in OpenLDAP and Netscape 4.1
    Please help.

    http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/J2SE

  • JSP and MySql Connectivity in Fedora core 4

    Dear all,
    We are developing software using JSP and MySql on Fedora Core 4 platform and are unable to find the connectivity for JSP and MySql. Can anybody help....

    Dear all,
    We are developing software using JSP and MySql on Fedora Core 4 platform and are unable to find the connectivity for JSP and MySql. Can anybody help....

  • Replicating data between oracle9i(source) and 10g database(Target)

    sucessfully replicated data between source and target in 10g
    Now I have to replicate the data between oracle9i(source) and 10g database(Target)
    please help me to solve this issue

    sucessfully replicated data between source and target in 10g What sort of Replication you talking about ? Is it Object level , Schema level or DB Level ?
    Now I have to replicate the data between oracle9i(source) and 10g database (Target) please help me to solve this issue
    http://www.freelists.org/archives/oracle-l/08-2005/msg01260.html
    Hare Krishna
    Alok

  • Confused between JSP and Serlvet

    Hi!
    I am very new in this area. It would be appreciate if someone can explain for me
    1. The differences btw JSP and Serlvet and the implementation.
    2. Advantages and disadvantages each of this.
    Thank you.

    If you look under "Products & APIs" you'll find several documents in the JSP and Servlet area that will help you understand what servlets and JSPs are all about.

  • HELP!!!!! JSP and Java Script

    Hi,
    I have a JSP file that I need to create 3 drop lists (choice list). If one of these 3 choice lists is selected, then the other 2 need to deselected and disabled. I need help with the code.
    Do I use JavaScript or Java? Below is the html code. I would really appreciate any help on this.
    Thanks,
    BK
    <!--
    Refer to the directory gary/reportingstd/getReqs.jsp to see how to get the value from the
    choice list and other fields.
    -->
    <html>
    <head><title>New Window Example</title>
    <STYLE TYPE="text/css" >
    td { font-size: 11px }
    th { font-size: 11px }
    body { background-color: #666666 }
    </STYLE>
    <SCRIPT>
    /* When press CANCEL button, the dialog box disappears. */
         function Closer()
              window.close();
         function checkForm()
         var f = document.queryForm;
    * Checks if an account number is entered. If not, an error message dialog pops up
    * to the user.
    * Checks if a business unit was chosen. If not, an error message dialog pops up
    * to the user.
         buChoice = f.buList.selectedIndex;
              if (f.buList.options[buChoice].value == "")
                   alert("Please choose a business unit.");
                   f.buList.focus();
                   f.toDate.select();
                   return false;
         * This <code>statusMsg()</code>is to give the user feedback while data is being entered by
         * creating a status message. This script lets you modify what is displayed in this bar,
         * giving you the ability to send messages to the user while he interacts with filling out
         * the fields.Status Messages are the phrases you see in the status bar at the bottom of a
         * window or dialog.
         * For instance: For the account number text field, as long as the cursor is in this text
         * field of Account #, there's a message at the bottom of the dialog box informing, " Enter
         * only numeric characters."
         * @param msgType
         * @ mesage the data structure to store the messages sent to the users
         function statusMsg(msgType)
    var message = "";
    if (msgType == "integer")
    message = "Enter numeric characters.";
    if (msgType == "integerDate")
    message = "between 1990 and 2010";
    if (msgType == "ListBU")
    message = "Choose which BU?";
    if (msgType == "ListMonth")
    message = "Choose a month."
    window.defaultStatus = message;
    window.status = message;
    </script>
    </head>
    <body onFocus="statusMsg('')">
    <FORM NAME= "queryForm" onSubmit = "return checkForm()" ACTION="Welcome.html">
    <TABLE Border="0" cellspacing="2" cellpadding="4">
    <TR>     
    <TD ALIGN=left>Company Code:</TD>
    <TD WIDTH="20%"><SELECT Name=choiceMonths1 size=1 onFocus="statusMsg('ListMonth')">
    <option value="" selected>
    <OPTION Value="01">01
    <OPTION Value="02"> 02
    <OPTION Value="03"> 03
    <OPTION Value="04"> 04
    <OPTION Value="05"> 05
    <OPTION Value="06"> 06
    </SELECT></TD>
         <TR>
         <TD ALIGN=left>RegionID:</TD>
         <TD><select name=buList onFocus="statusMsg('ListBU')"> // onChange = "selectionMade()"
         <option value="" selected>
         <option value=Norht ALIGN="left">North
         <option value=East ALIGN="left">East
              <option value=South ALIGN="left">South
         <option value ALIGN="left">North</select></TD></TR>
    <TR>
         <TD ALIGN=left>Business Unit ID:</TD>
         <TD><select name=buList onFocus="statusMsg('ListBU')"> // onChange = "selectionMade()"
         <option value="" selected>
         <option value=TBR ALIGN="left">TBR
         <option value=BAL ALIGN="left">BAL
         <option value ALIGN="left">ABH</select></TD></TR>
    </TR></TABLE>
    <TABLE>
    <tr>
    <TD><INPUT TYPE=submit Value=Submit></TD>
    <TD><INPUT TYPE=button NAME=btnClose VALUE=Cancel SIZE=20 ALIGN= center onClick="Closer()"></TD>
         <TD><input type=reset VALUE= Clear Query SIZE=20 ALIGN= right></TD></TR></TABLE>
    </FORM>
    </BODY>
    </html>

    What i've done in the past in this same situation is to use radio buttons alongside my dropdown lists. Whenever a radio button is selected, the corresponding dropdown list is enabled, and the other lists are all disabled. Not too hard to implement in Javascript either. Use an onClick() and set the other fields to disabled, using document.form.field.disabled = true. (and obviously, set the one you want to disabled = false). But obviously, you're still going to want to know which one to retrieve later, right? Use a hidden tag and in the same Javascript onClick, you can dynamically set the variable to whatever you want. Here's a pretty compact example using 2 fields
    function enable(field)
         if(field == "firstName")
              document.myForm.firstName.disabled = false;
              document.myForm.lastName.disabled = true;
              document.myForm.searchBy.value = "firstName"
         else
              document.myForm.firstName.disabled = true;
              document.myForm.lastName.disabled = false;
              document.myForm.searchBy.value = "lastName"
    }Or something like that. Yeah, I know it's not the greatest javascript in the world, but i was just simplifying things to give an example. Hope this helps somewhat :)
    Simon

  • Help on JSP and Beans!

    Hi! I am new to JSP and I need help on how to utilize java bean on JSP. I have gone through this forum, I found similar question but did not find any answer that could solve my question. Tons of thanks to anyone who could help me out!
    I have a java bean class called Bean1, which I put under /ROOT/WEB-INF/classes/, and a JSP file that utilizes class Bean1, saved under /ROOT/, which should be a correct way indicated by several posts I found in this forum. But when I try to compile the JSP file over TOMCAT4.1 over http://localhost:8080/beanexample1.jsp, it throws me a lot of error messages (see below). I've been struggling for so long. Any help is greatly apprecitated! Thanks!
    Bo
    The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 0 in the jsp file: /beanexample1.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\beanexample1_jsp.java:41: cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    Bean1 bean1 = null;
    ^
    An error occurred at line: 0 in the jsp file: /beanexample1.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\beanexample1_jsp.java:43: cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    bean1 = (Bean1) pageContext.getAttribute("bean1", PageContext.PAGE_SCOPE);
    ^
    An error occurred at line: 0 in the jsp file: /beanexample1.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\beanexample1_jsp.java:46: cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    bean1 = (Bean1) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Bean1");
    ^
    An error occurred at line: 13 in the jsp file: /beanexample1.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\beanexample1_jsp.java:66: cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    out.print(JspRuntimeLibrary.toString((((Bean1)pageContext.findAttribute("bean1")).getName())));
    ^
    An error occurred at line: 16 in the jsp file: /beanexample1.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\beanexample1_jsp.java:69: cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    out.print(JspRuntimeLibrary.toString((((Bean1)pageContext.findAttribute("bean1")).getSeventhPrimeNumber())));
    ^
    An error occurred at line: 19 in the jsp file: /beanexample1.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\beanexample1_jsp.java:72: cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    out.print(JspRuntimeLibrary.toString((((Bean1)pageContext.findAttribute("bean1")).getCurrentTime())));
    ^
    An error occurred at line: 27 in the jsp file: /beanexample1.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\beanexample1_jsp.java:79: cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    out.print(JspRuntimeLibrary.toString((((Bean1)pageContext.findAttribute("bean1")).getColor())));
    ^
    7 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
         at java.lang.Thread.run(Thread.java:484)

    you need to put your bean in a package. do this by
    making a sub directory under the classes directory,
    let's say you call it "mybeans".
    so copy Bean1.java to
    /ROOT/WEB-INF/classes/Bean1.java
    add the line "package mybeans;"
    to the top of the Bean1.java file,
    and then compile it there.
    the standard way to use the bean in your jsp file is like this:
    <jsp:useBean id="thisbean" scope="page" class="mybeans.Bean1" />
    this <jsp:usebean> tag instantiates the bean for you.
    then refer to it by its id:
    thisbean.myMethod();
    thisbean.setProperty();
    I have a java bean class called Bean1, which I put
    under /ROOT/WEB-INF/classes/, and a JSP file that
    utilizes class Bean1, saved under /ROOT/, which should
    be a correct way indicated by several posts I found in
    this forum. But when I try to compile the JSP file
    over TOMCAT4.1 over
    http://localhost:8080/beanexample1.jsp, it throws me a
    lot of error messages (see below). I've been
    struggling for so long. Any help is greatly
    apprecitated! Thanks!
    Bo
    The server encountered an internal error () that
    prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile
    class for JSP
    An error occurred at line: 0 in the jsp file:
    /beanexample1.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Program Files\Apache Group\Tomcat
    4.1\work\Standalone\localhost\_\beanexample1_jsp.java:4
    : cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    Bean1 bean1 = null;
    ^
    An error occurred at line: 0 in the jsp file:
    /beanexample1.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat
    4.1\work\Standalone\localhost\_\beanexample1_jsp.java:4
    : cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    bean1 = (Bean1)
    (Bean1) pageContext.getAttribute("bean1",
    PageContext.PAGE_SCOPE);
    ^
    An error occurred at line: 0 in the jsp file:
    /beanexample1.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat
    4.1\work\Standalone\localhost\_\beanexample1_jsp.java:4
    : cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    bean1 = (Bean1)
    1 = (Bean1)
    java.beans.Beans.instantiate(this.getClass().getClassLo
    der(), "Bean1");
    ^
    An error occurred at line: 13 in the jsp file:
    /beanexample1.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat
    4.1\work\Standalone\localhost\_\beanexample1_jsp.java:6
    : cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    out.print(JspRuntimeLibrary.toString((((Bean1)pageCont
    xt.findAttribute("bean1")).getName())));
    ^
    An error occurred at line: 16 in the jsp file:
    /beanexample1.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat
    4.1\work\Standalone\localhost\_\beanexample1_jsp.java:6
    : cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    out.print(JspRuntimeLibrary.toString((((Bean1)pageCont
    xt.findAttribute("bean1")).getSeventhPrimeNumber())));
    ^
    An error occurred at line: 19 in the jsp file:
    /beanexample1.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat
    4.1\work\Standalone\localhost\_\beanexample1_jsp.java:7
    : cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    out.print(JspRuntimeLibrary.toString((((Bean1)pageCont
    xt.findAttribute("bean1")).getCurrentTime())));
    ^
    An error occurred at line: 27 in the jsp file:
    /beanexample1.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat
    4.1\work\Standalone\localhost\_\beanexample1_jsp.java:7
    : cannot resolve symbol
    symbol : class Bean1
    location: class org.apache.jsp.beanexample1_jsp
    out.print(JspRuntimeLibrary.toString((((Bean1)pageCont
    xt.findAttribute("bean1")).getColor())));
    ^
    7 errors
    at
    org.apache.jasper.compiler.DefaultErrorHandler.javacEr
    or(DefaultErrorHandler.java:130)
    at
    org.apache.jasper.compiler.ErrorDispatcher.javacError(
    rrorDispatcher.java:293)
    at
    org.apache.jasper.compiler.Compiler.generateClass(Comp
    ler.java:340)
    at
    org.apache.jasper.compiler.Compiler.compile(Compiler.j
    va:352)
    at
    org.apache.jasper.JspCompilationContext.compile(JspCom
    ilationContext.java:474)
    at
    org.apache.jasper.servlet.JspServletWrapper.service(Js
    ServletWrapper.java:184)
    at
    org.apache.jasper.servlet.JspServlet.serviceJspFile(Js
    Servlet.java:295)
    at
    org.apache.jasper.servlet.JspServlet.service(JspServle
    .java:241)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.jav
    :853)
    at
    org.apache.catalina.core.ApplicationFilterChain.intern
    lDoFilter(ApplicationFilterChain.java:247)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilt
    r(ApplicationFilterChain.java:193)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(S
    andardWrapperValve.java:260)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipe
    ineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    rdPipeline.java:480)
    at
    org.apache.catalina.core.ContainerBase.invoke(Containe
    Base.java:995)
    at
    org.apache.catalina.core.StandardContextValve.invoke(S
    andardContextValve.java:191)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipe
    ineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    rdPipeline.java:480)
    at
    org.apache.catalina.core.ContainerBase.invoke(Containe
    Base.java:995)
    at
    org.apache.catalina.core.StandardContext.invoke(Standa
    dContext.java:2415)
    at
    org.apache.catalina.core.StandardHostValve.invoke(Stan
    ardHostValve.java:180)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipe
    ineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke
    ErrorDispatcherValve.java:170)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipe
    ineValveContext.invokeNext(StandardPipeline.java:641)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(Err
    rReportValve.java:172)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipe
    ineValveContext.invokeNext(StandardPipeline.java:641)
    at
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    rdPipeline.java:480)
    at
    org.apache.catalina.core.ContainerBase.invoke(Containe
    Base.java:995)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(St
    ndardEngineValve.java:174)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipe
    ineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    rdPipeline.java:480)
    at
    org.apache.catalina.core.ContainerBase.invoke(Containe
    Base.java:995)
    at
    org.apache.coyote.tomcat4.CoyoteAdapter.service(Coyote
    dapter.java:223)
    at
    org.apache.coyote.http11.Http11Processor.process(Http1
    Processor.java:432)
    at
    org.apache.coyote.http11.Http11Protocol$Http11Connecti
    nHandler.processConnection(Http11Protocol.java:386)
    at
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolT
    pEndpoint.java:534)
    at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunna
    le.run(ThreadPool.java:530)
         at java.lang.Thread.run(Thread.java:484)

  • I have a Macbook Air (july 2012) with OS X 10.8.3  installed.  I have dvds with .vob files and have Quicktime Version 10.2 (603.12).  I can't play the DVDs.  Thereare some features of QT that I like, e.g. precise frame selection and save as .png file-help

    I have a Macbook Air (july 2012) with OS X 10.8.3  installed.  I have dvds with .vob files and have Quicktime Version 10.2 (603.12).  I can't play the DVDs.  There are some features of QT that I like, e.g. precise frame selection and save as .png file-help.  Am I missing some Apple software?  I thought QT for Mountain Lion could convert the .vob files - is there some setting that I have missed?
    Any suggestions that preserves a simple workflow much appreciated.

    arthur wrote:
    Perian is here: Perian - The swiss-army knife of QuickTime® components
    Perian will be retired soon.

  • Help with jsp and javaBean in eclipse/Tomcat

    Hi,
    I am new to JSP and JavaBean. I am going through tutorial for a jsp page that uses a javaBean. I am using eclipse to create jsp page and the java bean.
    My eclipse project "Date" has five package as under:-
    1. Deployment Descriptor
    2. Java Resources: src
    3. build
    4. WebContent
    I have my data.jsp page in WebContent/WEB-INF/ folder. When I just run date.jsp in a browser as: http://localhost:8080/Date/date.jsp, it gets launched into the browser correctly. But when I add a JavaBean "TimeFormatterBean.java" in the Java Resources:src folder and use it in date.jsp page, I get errors as under:-
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 5 in the jsp file: /date.jsp
    TimeFormatterBean cannot be resolved to a type
    2: pageEncoding="ISO-8859-1"%>
    3: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    4:
    5: <jsp:useBean id="formatter" class="TimeFormatterBean"/>
    6:
    7: <html>
    8: <head>
    The data.jsp page is as under:-
    <jsp:useBean id="formatter" class="TimeFormatterBean"/>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
         <h1> Date JSP </h1>
         <p> The  current time is:
         <%= new java.util.Date() %>
         <jsp:getProperty name="formatter" property="name"/>
         </p>
    </body>
    </html>I can see "TimeFormatterBean.class" in build/classes folder.
    If anyone could please help me out with this, it would be very helpful
    Thanks a lot!

    You probably should place TimeFormatterBean inside a package, or maybe you could try importing it , even if it�s in the default package, with something like this <%@ page import="TimeFormatterBean" %> at the top

Maybe you are looking for

  • How can I unlock an I phone 4 locked to Orange UK

    I have bought my niece an I phone 4 but she is on Talk mobile and the phone is Orange, Orange say I have to wait 6 months to unlock it, is there another way?

  • Hanging up or freezing problems

    I hope someone can help me here. I've spent several days trying to fix the problem myself by removing older programs and upgrading my video and keyboard drivers and so far nothing has worked and the problem seems to be getting worst. I have 3 interna

  • Advanced Data Grid Grouping per Level

    I'm new to flex, i'm using the advanced data grid component and i need to do different grouping for each level in the tree,i want to do right click and select which drill down is relevent for the specific level. how can i do it? the grouping seems to

  • Tecra 8100: DVD Video-Playback only with jerking/flickering under W2K

    I cant play a normal DVD on my Tecra 8100 (P3-600MHz, 256 MB RAM, Windows 2000 with SP4) without jerkings. Have already try to copy image from DVD to HDD and play directly from HDD - same result. Therefore it is NOT a problem with the DVD-Drive, poss

  • How do i delete music from my iPhone once I have iCloud

    My phone is now overcapacity, but I am not sure how to get music off it directly, and just get it from the cloud?