Working of ComboBox in JSP

I am new to jsp programming. I have no idea how to navigate if there is two dropdownlist. Here second one depends on the first one then should i have to design two pages with sam dessign?
I have checked the url
http://forum.java.sun.com/editwatches!default.jspa
thsi page contains two comboboxes. I have selected java essentials from first combo. Then it got redirected to another page.
with the url
http://forum.java.sun.com/editwatches!default.jspa?filterCat=5
When I checked the view source of http://forum.java.sun.com/editwatches!default.jspa
I have seen something like this...
<select name="filterForum"
onchange="location.href='editwatches!default.jspa?filterForum='+this.options[this.selectedIndex].value+'&filterCat='+this.form.filterCat.options[this.form.filterCat.selectedIndex].value;">
In the above code what do they mean by location?
Please reply me
Thanks in advance

Hi,
Well if you are looking for Dependent Dropdown problem...
There are many solutions in order acheive this...
checkout some of those...
1).Save the present of the Form in a Bean with the scope of session and onChange of the first Combo box redirect it to a Controller(Servlet) Query the Database and save the results in the FormBean which we saved in the scope session and then redirect the formBean to the same JSP again...and now repopulate the second combo with new obtained results from the database and repopulate the rest of the form according to present FormBean state from the session.
Here is a Typical example for you
Assuming that a Servlet had already preloaded the first drop-down values from the database in a FormBean
FormBean.java
=============
public class FormBean{
private String firstDDValue = new String("");
private ArrayList firstDDOptions = new ArrayList();
private String secondDDValue = new String();
private ArrayList secondDDOptions = new ArrayList();
// Setters & getters for all the bean properties.
}Form.jsp:
=========
<jsp:useBean id="formBean" class="com.formbeans.FormBean" scope="session"/>
<%
  ArrayList fristDD = formBean.getFirstDDOptions();
  ArrayList secondDD = formBean.getSecondDDOptions();
  String firstDDValue = formBean.getFirstDDValue();
  String secondDDValue = formBean.getSecondDDValue();
  int FDSIZE = fristDD.size();
  int SDSIZE = secondDD.size();
%>
<form name="formBean">
First DropDown:
<select name="firstDropDown" onChange="if(this.value != '-1')window.location.href='ControlerServlet?firstDropDown='+escape(this.value);" >
<option value="-1">Pick One</option>
<%for(int i = 0;i < FDSIZE ; i++){
    String value = ((String[])firstDDOptions.get(i))[0];
    String text = ((String[])firstDDOptions.get(i))[1];
%>
  <%if(value.equals(firstDDValue){)%>
   <option value="<%=value%>" selected="selected"><%=text%></option>
  <%}else{%>
   <option value="<%=value%>"><%=text%></option>
  <%}%>
<%}%>
</select>
<BR/>
<BR/>
Second DropDown:
<select name="secondDropDown">
<option value="-1">Pick One</option>
<%for(int i = 0;i < FDSIZE ; i++){
    String value = ((String[])secondDDOptions.get(i))[0];
    String text = ((String[])secondDDOptions.get(i))[1];
%>
  <%if(value.equals(secondDDValue){)%>
   <option value="<%=value%>" selected="selected"><%=text%></option>
  <%}else{%>
   <option value="<%=value%>"><%=text%></option>
  <%}%>
<%}%>
</select>
<BR/>
<BR/>
</form> NOTE: It would be a better practise if you can make use of JSTL tags to render the page in to make your View Page look more cleaner
ControlerServlet.java
=====================
public doGet(request,response){
String firstDropDown = request.getParameter("firstDropDown");
HttpSession session = request.getSession();
FormBean fb = (FormBean) session.getAttribute("formBean");
fb.setFirstDDValue(firstDropDown); 
fb.setSecondDDOptions(DAODelegate.getSecondDropDownData(firstDropDown));
session.setAttribute(""formBean",fb);
response.sendRedirect("/Form.jsp");
}2).Make use of a Hidden IFrame by using which you reload the page and then Reload a Page after getting values from the database update the parent frame combo accordingly.
3).Take help of AJAX call a Controller get the Response in XML/JSON and parse it and then update the second combo by the XML/JSON response.
checkout an example by you can achieve this.
index.jsp:
=======
<%@page language="java" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Automatic Dependent Drop-Down Updation</title>
     <script language="javascript">
      // Global Variable for XmlHttp Request Object  
      var xmlhttp
      // Timer Variables
      var c = 0
      var t
       /* A function which calls a servlet  named AjaxServlet to get XmlData using XmlHttpObject */    
        function refreshCombo(txt){
            xmlhttp = null
            // code for initializing XmlHttpRequest Object On Browsers like  Mozilla, etc.
            if (window.XMLHttpRequest){
                 xmlhttp = new XMLHttpRequest()
            // code for initializing XmlHttpRequest Object On Browsers like IE
           else if (window.ActiveXObject) {
               xmlhttp = new ActiveXObject("Microsoft.XMLHTTP")
           if (xmlhttp != null){
              // Setting the Servlet url to get XmlData
               url = "AjaxServlet?req="+txt;
               // Course of Action That Should be Made if their is a change in XmlHttpRequest Object ReadyState NOTE : it is 4 when it has got request from CGI
               xmlhttp.onreadystatechange = getResponseAction;
               // Open the Request by passing Type of Request & CGI URL
               xmlhttp.open("GET",url,true);
               // Sending URL Encoded Data
               xmlhttp.send(null);
           else{
             // Only Broswers like IE 5.0,Mozilla & all other browser which support XML data Supports AJAX Technology
             // In the Below case it looks as if the browser is not compatiable
              alert("Your browser does not support XMLHTTP.")
      /* Used for verifing right ReadyState & Status of XmlHttpRequest Object returns true if it is verified */
      function verifyReadyState(obj){
         // As Said above if XmlHttp.ReadyState == 4 then the Page Has got Response from WebServer
          if(obj.readyState == 4){
           // Similarly if XmlHttp.status == 200 it means that we have got a Valid response from the WebServer
            if(obj.status == 200){               
                return true
             else{
                alert("Problem retrieving XML data")
      /* Action that has to take place after getting reponse */
      function getResponseAction(){
          // Verifying State & Status
          if(verifyReadyState(xmlhttp) == true){
              // Building a DOM parser from Response Object
              var response = xmlhttp.responseXML.documentElement
              // Deleting all the Present Elements in the Drop-Down Box
              drRemove()      
              // Checking for the Root Node Tag
              var x = response.getElementsByTagName("option")
              var val
              var tex
              var optn
              for(var i = 0;i < x.length; i++){
                 optn = document.createElement("OPTION")
                 var er
                 // Checking for the tag which holds the value of the Drop-Down combo element
                 val = x.getElementsByTagName("val")
try{
// Assigning the value to a Drop-Down Set Element
optn.value = val[0].firstChild.data
} catch(er){
// Checking for the tag which holds the Text of the Drop-Down combo element
tex = x[i].getElementsByTagName("text")
try{
// Assigning the Text to a Drop-Down Set Element
optn.text = tex[0].firstChild.data
} catch(er){
// Adding the Set Element to the Drop-Down
document.SampleForm.state.options.add(optn)
/* Function removes all the elements in the Drop-Down */
function drRemove(){
document.SampleForm.state.options.length = 0;
</script>
</head>
<body>
<pre> <h1>Refresh Drop-Down <div id='txt'> </div> </h1></pre>
<form name="SampleForm">
<table align="center">
<tr>
<td>Country:</td>
<td>
<select name="country" onchange="refreshCombo(this.value)">
<option value="india">INDIA</option>
<option value="US">United States</option>
<option value="UK">United Kingdom</option>
<option value="Saudi">Saudi</option>
</select>
</td>
</tr>
<tr>
<td>State:</td>
<td>
<select name="state">
<option value="-1">Pick One</option>
</select>
</td>
</tr>
</form>
</body>
</html>
AjaxServlet.java:
=============
* AjaxServlet.java
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
* @author RaHuL
* @version
public class AjaxServlet extends HttpServlet {
    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
     * @param request servlet request
     * @param response servlet response
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        // Sets the content type made to xml specific
        response.setContentType("text/xml");
        response.setHeader("pragma","no-cache");
        response.setHeader("Cache-Control","no-cache");
        response.setHeader("Cache-Control","no-store");
       //Initializing PrintWriter
        PrintWriter out = response.getWriter();
        String req = request.getParameter("req");
        // Creating an instance of XmlBean Which generates XmlData From Business Logic specified
        XmlBean xml = new XmlBean(req);
        // Method to Generate XMLDATA
        String buffer = xml.getXmlData();
        // If Close of DB connections are succefull then write the content to the printstream
        if(xml.close() == true)
            out.write(buffer);   
        out.flush();                 
        out.close();
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        // Calls a Method called processRequest Which Processes the request which was made by the Browser Page
        processRequest(request, response);
}XmlBean.java:
===========
* XmlBean.java
import java.sql.*;
import java.util.*;
import java.io.*;
* @author RaHuL
public class XmlBean {
    private Connection con = null;
    private PreparedStatement pstmt = null;
    private ResultSet rs = null;
    private String req;
    // Setting CLASSURL path to TYPE I Driver
    private String CLASSURL = "sun.jdbc.odbc.JdbcOdbcDriver";
    /* Specifing CONNECTION PATH to a DSN named TestDsn
     * Please Make Sure you create a DSN Named TestDsn to your database which holds EMP table
    private String CONNECTIONURL = "jdbc:odbc:TestDsn";
    boolean IS_ESTABLISHED = false;
    /** Creates a new instance of XmlBean and also establishes DB Connections */
    public XmlBean(String req) {
        try{
            this.req = req;
            Class.forName(CLASSURL);
            con = DriverManager.getConnection(CONNECTIONURL,"admin","");
            IS_ESTABLISHED = true;
        } catch(SQLException sqe){
            sqe.printStackTrace();
        } catch(Exception exp){
            exp.printStackTrace();
    /* Generates XmlData For the Business Logic Specified */
    public String getXmlData(){
        String XmlBuffer = "";
        if(IS_ESTABLISHED == true){
            try{
                pstmt = con.prepareStatement("SELECT stateid,statename FROM EMP where countryid=' "+req+" ' " );
                rs = pstmt.executeQuery();
                if(rs != null){
                    XmlBuffer = XmlBuffer + "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
                    XmlBuffer = XmlBuffer + "<!--  Edited by Rahul Sharma -->";
                    // Root Node
                    XmlBuffer = XmlBuffer + "<dropdown>";
                    while(rs.next()){
                        String value = rs.getString(1);
                        String text = rs.getString(2);
                        // Sub-root Node
                        XmlBuffer = XmlBuffer + "<option>";
                        // node which holds value of drop-down combo
                        XmlBuffer = XmlBuffer + "<val>"+value+"</val>";
                        // node which holds text for drop-down combo
                        XmlBuffer = XmlBuffer + "<text>"+text+"</text>";
                        XmlBuffer = XmlBuffer + "</option>";
                    XmlBuffer = XmlBuffer + "</dropdown>";
            }catch(SQLException sqe){
                sqe.printStackTrace();
            } catch(Exception exp){
                exp.printStackTrace();
        return(XmlBuffer);
    /* Closes the DB Connection Conmpletely */
    public  boolean close(){
        if(IS_ESTABLISHED == true){
            try{
                pstmt.close();
                con.close();
                return(true);
            } catch(SQLException sqe){
                sqe.printStackTrace();
            } catch(Exception exp){
                exp.printStackTrace();
        return(false);
}Sample XML Reponse generated:
<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>
<!--  Edited by Rahul Sharma -->
<dropdown>
<option>
<val>DEL</val>
<val>New Delhi</val>
</option>
<option>
<val>HAR</val>
<val>HARYANA</val>
</option>
</dropdown>for further reference you may use the below articles
http://www.it-eye.nl/weblog/2005/12/13/ajax-in-struts-implementing-dependend-select-boxes/
http://www.it-eye.nl/weblog/2006/04/04/implementing-dependent-select-boxes-in-jsf/
Hope this might help,if that does do not forget to assign/distribute Duke Stars which you have promised :)
REGARDS,
RaHuL

Similar Messages

  • OC4J JSP Debugging not working for all the jsps

    Hi,
    Initially I was not able to debug jsps using Eclipse and OC4J. The jsp debugging started working once I made the below changes:
    1) global-web-application.xml is modified
    Changed the attribute development="true" in orion-web-app
    Added the below init param for the JspServlet
    <init-param>
    <param-name>debug</param-name>
    <param-value>class</param-value>
    </init-param>
    If the jsps are present in a sub directory under the webcontent none of the breakpoints are working. I am still be able to view the jsp pages on the browser.
    Tools: Oracle 10g Application Server Standalone version(10.1.3.5.0), JDK5, Windows XP, Eclipse Indigo
    Project Structure:
    Test (Eclipse Dynamic Web Project)
    -WebContent
    Sample.jsp ( Breakpoints are working)
    -subF (Folder)
    SubSample.jsp (Breakpoints are not working)
    -WEB-INF
    web.xml
    Debugging worked for http://localhost:8888/Test/Sample.jsp
    Debugging not working for http://localhost:8888/Test/subF/SubSample.jsp
    Any help is highly appreciated.
    Regards
    Danny

    This tells there is not enough main memory (not disk space) for the program to run.
    - You can look the dump in ST22, it will have suggestions on increasing the ROLLAREA??, you can forward that to Basis.
    - Most likely you will not have any more memory to assign so the above may not be feasible. Try to rework your query so it works with less data.

  • Populating combobox in jsp page from javabean using jsp:getProperty tag

    hi,
    i am new to jsp, so i don;t know how to populate a combobox in jsp page with productid attribute from a javabean called Bid . i want to have a code to automatically populating combobox using the attribute value from javabean.
    please reply me.
    <jsp:useBean id="bidpageid" class="RFPSOFTWARE.Bid" scope="session" />
    <jsp:setProperty name="bidpageid" property="*"/>
      <table  width="50%" align="center" border="0">
       <tr>
        <td  width="30%" align="left"><h4><b><label>Date (dd/mm/yyyy) </label></b></h4> </td>
        <td><input type="text" name="date" size="11" maxlength="10" readonly="readonly" value="<jsp:getProperty name="bidpageid" property="date"/>"  > </td>
      </tr>
      <tr> <td > </td> </tr>
      <tr>
        <td  width="30%" align="left"><h4><b><label>ProductId </label></b></h4> </td>
        <td><select name="productid" tabindex="1" size="1" >
          <option  value="<jsp:getProperty name=bidpageid" />Sachin</option>
          <option value="Hello">Vishal</option>
        </select></td>
      </tr>  and the javabean for Bid is as follow :
    import java.util.Date;
    import RFPSOFTWARE.Product;
    public class Bid{
    private Product product;
    private Integer bid_id;
    private String description;
    private Date date= new Date();
    public Integer getBid_id() {
    return bid_id;
    public Date getDate() {
    return date;
    public String getDescription() {
    return description;
    public Product getProduct() {
    return product;
    public void setBid_id(Integer bid_id) {
    this.bid_id = bid_id;
    public void setDate(Date date) {
    this.date = date;
    public void setDescription(String description) {
    this.description = description;
    public void setProduct(Product product) {
    this.product = product;
    }

    No Sir,
    I think I did not explained clearly.what I try to say is I dont want to use JSTL.I am using only Scriptlets only.I can able to receive the values from the database to the resultset.But I could not populate it in Combobox.
    My code is :
    <tr>
    <td width="22%"><font color="#000000"><strong>Assign To Engineer</strong></font></td>          
    <td width="78%">
         <select NAME="Name" size="1">
    <option><%=Username%></option>
    </select> </td>
    </tr>
    in HTML
    and in Scriptlets:
    ps1 = con.prepareStatement
              ("SELECT Username FROM Users");
              rs2=ps1.executeQuery();
              System.out.println("SECOND Succesfully Executed");
              while(rs2.next())
                   System.out.println("Coming inside rs2.next loop to process");
                   Username=rs2.getString("Username");
                   System.out.println("Success");
                   System.out.println("The value retrieved from UsersTable Username is:"+Username);
    In the server(Jboss console) I can able to display the username but I could not populate it in the Combobox .
    Can you now suggest some changes in my code,Please..
    Thanks a lot
    With kind Regds
    Satheesh

  • Filling comboBox in JSP from Oracle tbl

    Hello,
    Can anybody help, how to fill comboBox (in JSP page)
    <select name="types"></select><br>
    ...from Oracle DB. Types values sould come directly from Oracle tbl.
    Thanks in advance.
    A.

    hai here is the ex code.
    here iam populating client name from MySQL table. hope this will help u.
    <select name="Client">
            <option value="SELECT">SELECT</option>
         <%
            try
                  Class.forName("com.mysql.jdbc.Driver");
                  Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3307/s4", "root", "root");
                  Statement statement = connection.createStatement();
                  ResultSet rs = statement.executeQuery("select client_name from client");
                  while(rs.next())
         %>
                       <option value="<%=rs.getString("client_name")%>"><%= rs.getString("client_name") %> </option>
         <%
         %>
            </select>

  • GWT generated file doesn't work when included in jsp

    Hi all,
    I'm trying to use GWT in my Spring application. I want to include
    the .html file generated by GWT in my .jsp. When I run my application,
    and view the source of page, I saw that the HTML is included, but it
    seems that the gwt:module can't be loaded.
    The meta tag in html is:
    <meta name='gwt:module' content='com.mycompany.dmc.gwt.MyApplication'>Note that jsp and html files are in the same directory.
    When I call the html file from browser, it works fine, but included in
    the jsp it doesn't.
    Any suggestions are appreciated.
    Thanks in advance.

    Hi,
    You can put a copy of your master page within the template site, use that for the site's master page, and then save the site as a template then check whether it works.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/30699/featureactivated-not-called-for-site-template
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Javascript is not working correctly in the jsp

    Hello experts,
    i have problem with javascript. Actually i am written a javascript function isInteger(s) for checking wether
    the entered string is numberic or not. But its not wroking(can't display alert message). Means it not calling the function. If i try this javascript in different html page its work but in jsp pages its not calling the javascript function.
    This jsp page require some settings or anything, then help me.
    Edited by: andy_surya on May 4, 2009 11:04 AM

    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <script language="javascript">
    function isInteger(s)
        var i;
         s = s.toString();
         var o;
         o=s.length;
             for (i = 0; i < o; i++)
                  var c = s.charAt(i);
                     if (isNaN(c))
                        alert("Given value is not a number.\n Remove It. \nAnd Try Again.");
                        return false;
             return true;
    </script>
    </head>
    <body>
    <input type="text" name="txtbx1" size="25" onkeyup="isInteger(this.value)" />
    </body>
    </html>

  • BPEL from Java working;but not from jsp

    Hi
    I am trying to invoke the my BPEL process through a simple java class;It was working fine. When I run the same BPEL process from jsp, I get the following error:
    500 Internal Server Error
    java.lang.ExceptionInInitializerError     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMICall.throwRecordedException(RMICall.java:125)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:517)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:461)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)     at __Proxy1.request(Unknown Source)     at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:104)     at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)     at invokeOrderCapture.jspService(_invokeOrderCapture.java:88)     [invokeOrderCapture.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:534)Caused by: java.util.MissingResourceException: Can't find bundle for base name com.collaxa.cube.i18n.exception_cube, locale en_US     at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:838)     at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:807)     at java.util.ResourceBundle.getBundle(ResourceBundle.java:701)     at com.collaxa.cube.CubeException.getResourceBundle(CubeException.java:142)     at com.collaxa.cube.CubeException.<clinit>(CubeException.java:82)     at java.lang.Class.forName0(Native Method)     at java.lang.Class.forName(Class.java:219)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].io.ClassLoaderObjectInputStream.resolveClass(ClassLoaderObjectInputStream.java:33)     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIClientConnection.handleMethodInvocationResponse(RMIClientConnection.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:287)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.rmi.RMIConnection.run(RMIConnection.java:107)     ... 2 more
    I have added all the required list of jars to my web application class path.
    What could be the problem?
    please give me list of jars for the web-to-BPEL applications.
    Thanks
    INDIA

    Caused by: java.util.MissingResourceException: Can't find bundle for base name com.collaxa.cube.i18n.exception_cube, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:838) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:807) at java.util.ResourceBundle.getBundle(ResourceBundle.java:701) at com.collaxa.cube.CubeException.getResourceBundle(CubeException.java:142) at com.collaxa.cube.CubeException.<clinit>(CubeException.java:82) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:219) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0)[/i]
    leads me to missing orabpel.jar / orabpel.common.jar ??
    /clemens

  • Dynamic combobox using jsp

    HI All,
    This is very urgent for me please help me to come out of this.
    I just want to display the values in combobox from database using jsp,but i have difficulty in doing it can any one help me for this.I will be thankfull if any one gives me a code for the same.
    Ramesh.R

    very simple example
    <%@ page import="java.sql.*" %>
    Add Item:
    <SELECT NAME="item">
    <ol>
    <%
    Connection con5 =
    DriverManager.getConnection("url","user","password");
    String q5 = "query" ;
    Statement stmt5 = (Statement)con5.createStatement();
    ResultSet rs5 = stmt5.executeQuery(q5);
    while(rs5.next()){
    String str5= rs5.getString("field");
    %>
    <li> <% out.print("<OPTION>" + str5); %>
    <% } %>
    </ol>
    </SELECT>

  • Index.HTml works fine but Inex.jsp can't access

    I ve create 2 folder and 2 files both file and folders have successfuly created HTMl will redirect Prefectly to JSp file but jsp can't run when i will save it by frontpage (simple open and click on save and close then its work fine) i have flush the file also in my code why it can't execute Note Its perfectly write in file that i want ..
    import java.io.*;
    public class createdir
         private static File fileOptions;
         public String mydir(String DirectoryName, String userDirectoryName, String userfileName, String userData, String userData1)
              //Write a File Text
              String myStringValue = "<%String loginIdName = request.getRequestURI();int lastValue=loginIdName.lastIndexOf(\"/\");loginIdName=loginIdName.substring(11, lastValue);session.setAttribute(\"loginId\", loginIdName);%><%@ include file=\"../../templates/"+ userData1 + "\"%>";
              String mystr = new String(myStringValue);
              //Create User Directory
              fileOptions = new File("c:/tomcat/webapps/soft", DirectoryName);
              fileOptions.mkdir();
              String Path = fileOptions.getAbsolutePath();               
              //Create Client Name Directory
              fileOptions = new File(Path, userDirectoryName);
              fileOptions.mkdir();
              Path = fileOptions.getAbsolutePath();               
              //Create Client Name File
              fileOptions = new File(Path, userData);
              try
                   fileOptions.createNewFile();
              catch(Exception e)
                        System.out.print(e);
              try
                        DataOutputStream myStream = new DataOutputStream(new FileOutputStream(fileOptions));
                        myStream.writeChars(mystr);
                        myStream.close();
              catch (Exception e)
                        System.out.print(e);
              return ("True");
         public void indexDir(String userDirectoryName, String userfileName, String userData)
              //Write a File Text
              String myStringValue = "<html><head><script>function redirect(){window.location=\"../user/" + userDirectoryName + "/index.jsp\";}</script></head><body onload=redirect()></body></html>";
              String mystr = new String(myStringValue);
              //Create User Directory
              fileOptions = new File("c:/tomcat/webapps/soft", userDirectoryName);
              fileOptions.mkdir();
              String Path = fileOptions.getAbsolutePath();               
              //Create Client Name File
              fileOptions = new File(Path, userfileName);
              try
                   fileOptions.createNewFile();
              catch(Exception e)
                        System.out.print(e);
              try
                        DataOutputStream myStream = new DataOutputStream(new FileOutputStream(fileOptions));
                        myStream.writeChars(mystr);
                        myStream.close();
              catch (Exception e)
                        System.out.print(e);
    }

    Hi Thanks for reply i found the problem my self ... The tomcat is abustlly running other wise it can't run local host. in my previous the i write by char due to this when its write in a file its crate spaces between every character then i use Buffer and i solve it :)

  • How to set working-dir for precompiled jsp pages to some where under tmp

    If my weblogic application gets exploded into this tmp directory:
    D:\bea_domains\my_wl_domain\servers\SERVER001\tmp\_WL_user\mywebapp\wxyzzz\war
    where "wxyzzz" is a random directory name generated by weblogic 9.2, how would I set my working-dir in weblogic.xml to store the precompiled jsp classes under:
    D:\bea_domains\my_wl_domain\servers\SERVER001\tmp\_WL_user\mywebapp\wxyzzz\war\WEB-INF\classes\jsp_servlet\_jsp directory?
    Is there an "expression" or "variable" that will hold the value of the tmp directory? Thanks.

    If my weblogic application gets exploded into this tmp directory:
    D:\bea_domains\my_wl_domain\servers\SERVER001\tmp\_WL_user\mywebapp\wxyzzz\war
    where "wxyzzz" is a random directory name generated by weblogic 9.2, how would I set my working-dir in weblogic.xml to store the precompiled jsp classes under:
    D:\bea_domains\my_wl_domain\servers\SERVER001\tmp\_WL_user\mywebapp\wxyzzz\war\WEB-INF\classes\jsp_servlet\_jsp directory?
    Is there an "expression" or "variable" that will hold the value of the tmp directory? Thanks.

  • SetEditable is not working with combobox

    Hi,
    I am working with table and using combo box in cell of table, in certain condition I have to make combo as editable and non editable.
    I have written class which extends DefaultCellEditor
    @Override
    public Component getTableCellEditorComponent(JTable table, Object value, boolean flag, int row, int column)
    comboBox.getModel()).setSelectedItem(value.toString());
    comboBox.setEditable(true);
    if i set comboBox.setEditable(true). cell become editable but i am not able to select item from combo..
    when i do set comboBox.setEditable(false) cell become non editable and i can select value from combo but not able to enter any value.
    i want both the operations. Editable cell in which user can enter any value and also can select value from combo.
    Any Idea???? please share with me, this is blocking issue for me. Thanks in advance.
    Prashant Gour
    Message was edited by:
    Prashant_SDN

    thanks
    that is working idea of key listener. now i am able to select item form combo and can enter value too. but now problem is that by default combo looks non editable and become editable after pressing key .
    so that is looked user friendly.
    have you any suggestions.

  • TLF not working on Combobox/TextArea/List

    There is NO SUPPORT for TLF and right-to-left writting settings in Flash CS5 for this components: Combobox / List / TextInput
    Steps to reproduce:
    1.Add combobox component to stage
    2.Open properties panel and add in the data provider some Arabic text eg.: العربية
    3.Publish and upload Flash page on some server
      Actual Results:
      The Arabic text is backwards
      Expected Results:
      To show correctly
    TLF and right-to-left writtin support is missing completly for this components: Combobox / TextInput / List.
    Please test on a computer where Flash CS5 is not installed, because it   shows correctly on that machine and incorrectly on a normal user   computer that doesn't have Flash CS5 IDE.
    * Persists in any browser.
    If anyone knows of a workaround please let me know ASAP !
    Many thanks,

    The reason the combobox isn't doing R-to-L correctly, is because the component is based on TextField (not TLF). TextField does not have support for R-to-L.
    The only component converted to work with TLF in CS 5 was the Scrollbar.
    To do what you're wanting, you'll need to modify the component to use TLF text instead. Not having looked at that component, I don't know how large of a task that is, but it's certainly doable.
    Rusty

  • URGENT - Flash CS5 - TLF not working on Combobox

    There is NO SUPPORT for TLF and right-to-left writting settings in Flash CS5 for this components: Combobox / List / TextInput
    Steps to reproduce:
    1.Add combobox component to stage
    2.Open properties panel and add in the data provider some Arabic text eg.: العربية
    3.Publish and upload Flash page on some server
      Actual Results:
      The Arabic text is backwards
      Expected Results:
      To show correctly
    TLF and right-to-left writtin support is missing completly for this components: Combobox / TextInput / List.
    Please test on a computer where Flash CS5 is not installed, because it  shows correctly on that machine and incorrectly on a normal user  computer that doesn't have Flash CS5 IDE.
    * Persists in any browser.
    If anyone knows of a workaround please let me know ASAP !
    Many thanks,

    The reason the combobox isn't doing R-to-L correctly, is because the component is based on TextField (not TLF). TextField does not have support for R-to-L.
    The only component converted to work with TLF in CS 5 was the Scrollbar.
    To do what you're wanting, you'll need to modify the component to use TLF text instead. Not having looked at that component, I don't know how large of a task that is, but it's certainly doable.
    Rusty

  • Combobox in JSP

    How to set the first value in the Combobox as the default value in JSP.?
    Using Struts Framework.
    Thanks.

    I'm not sure I quite understand your question. Is the combobox dynamically created?

  • MediaLookup isn't working in a certain JSP file

    Hi there!
    This is my first time around here (I was in the original ATG Forum though) and I'm looking for your guidance about this odd behavior in my project...
    I'm using MediaLookup droplet to show an image in the home page. This is the code I'm using:
         <dsp:droplet name="/atg/commerce/catalog/MediaLookup">
              <dsp:param name="id" value="defaultIMGProd"/>
              <dsp:setvalue param="media" paramvalue="element"/>
              <dsp:oparam name="output">
                   <dsp:getvalueof var="imageURL" vartype="java.lang.String" param="media.url"/>
                   <c:if test="${not empty imageURL}">
                        <img height="80px" width="80px" src="${imageURL}"/>
                   </c:if>
              </dsp:oparam>
         </dsp:droplet>
    And it works fine...
    But when I copy the same code in a different JSP (to show this same image in the catalog, next to each product), it doesn't work at all, and it throws this error message:
    12:30:41,485 INFO [MediaLookup] DEBUG Find item: id=defaultIMGProd; type=media
    12:30:41,486 INFO [MediaLookup] DEBUG Item Found:media-internal-binary:defaultIMGProd(/ContenidoAdministrable/Catalogo/defaultIMGCatProd.jpg)
    12:30:41,486 ERROR [DynamoServlet] atg.servlet.ServletResources->dynamoHttpServletRequestCantAccessProperty : getParameter(media.url) can't access property url in class atg.adapter.gsa.GSAItem
    I just can't think on a reason why this is working in one JSP but isn't working in other one...
    Any suggestions will we appreciated :)
    Thanks!
    Waldo.-
    Edited by: user12845432 on 25-may-2012 9:41

    Hi ,
    The issue may be because you are using paramvalue="element" .
    In the new jsp element may be referring to something else , due to nesting of droplets.
    its better to use elementName attribute :
    eg :
    You may be using like this :
    <dsp:droplet name="XYZ">
    <dsp:param name="inputparam" param="inputparam" />
    <dsp:oparam name="output">
    <dsp:droplet name="/atg/commerce/catalog/MediaLookup">
    <dsp:param name="id" value="defaultIMGProd"/>
    <dsp:setvalue param="media" paramvalue="element"/>
    <dsp:oparam name="output">
    <dsp:getvalueof var="imageURL" vartype="java.lang.String" param="media.url"/>
    <c:if test="${not empty imageURL}">
    <img height="80px" width="80px" src="${imageURL}"/>
    </c:if>
    </dsp:oparam>
    </dsp:droplet>
    </dsp:oparam>
    </dsp:droplet>
    Instead use like this :
    <dsp:droplet name="XYZ">
    <dsp:param name="inputparam" param="inputparam" />
    *<dsp:param name="elementName" value="mediaItem" />*
    <dsp:oparam name="output">
    <dsp:droplet name="/atg/commerce/catalog/MediaLookup">
    <dsp:param name="id" value="defaultIMGProd"/>
    *<dsp:setvalue param="media" paramvalue="mediaItem"/>*
    <dsp:oparam name="output">
    <dsp:getvalueof var="imageURL" vartype="java.lang.String" param="media.url"/>
    <c:if test="${not empty imageURL}">
    <img height="80px" width="80px" src="${imageURL}"/>
    </c:if>
    </dsp:oparam>
    </dsp:droplet>
    </dsp:oparam>
    </dsp:droplet>
    ~ Praveer

Maybe you are looking for

  • Mac Pro 3.1 Nvidia 8800GT problem

    Here I am again guys and after about 3,5 months from 8800GT failure and rebaking it succesfully, the card is dead again, so I baked it once more. I am on OSX Yosemite 10.10.2 now with my Mac Pro 3.1. I don't use photoshop or any 3d game.Beyond safari

  • Possible to have both an index and TOC open by default?

    I'm using RH7 (I have RH 8 but don't use it since it buggers up formatting from previous versions) and I publish wbhelp. Is it possible to set BOTH the Index and TOC to display as open when the project is posted. When I generate a primary layout, I c

  • Pictures in "photos" tab (sidebar) are still present after deleting from original album.

    After importing my library from iPhoto to photos (Version 1.0 (209.52.0)), i deleted a large number of photos from one of my events (now an album). In this album i can only see the photos which i wanted. However when i select the "photos" tab at the

  • Full screen quicktime at 1680 x 1050

    Have any of you heard that quicktime running full screen at 1680 x 1050 can be a problem because the 1050 height is not divisible by four???

  • Secure Communication between SharePoint and SQL

    What are the options of securing the communication between the SharePoint Server and SQL Server? Is the Kerberos one of the options?  Any instructions on how to set it up?