Can't usebean in JSP in Java 2 sdk ee1.3 server

I have created a jsp page which used a bean but everytime I accessed the bean from the J2ee server ..it will always displayed the error that the bean class is not found..
I have try to deploy the jsp as a web component using the deploytool but got the same error ...
I am using jdk1.3 and java 2 sdk ee 1.3 in windows 98se
Where do I have to put the class file?
Is there something wrong with my classpath
Do I need the change some of the properties file? if not what other solution is there....
I am completely lost...I have double check the jsp code and the bean code..they are fine...Just couldn't figure out the solution..
Pls help me come up with a solution

Maybe it would be easier if I include the error message that I got and also the files.
I use J2EE server 1.3 so there is only a public_html folder, I can't find any webapp folder...public_html folder contain the context of the application...where do I put the class file there or the package
Here is the error that I got while executing the jsp page
org.apache.jasper.JasperException: Unable to compile class for JSPc:\j2sdkee1.3\repository\default\web\_0002fusebean_jsp.java:61: Class org.apache.jsp.BankAccount not found.
BankAccount BA = null;
^
c:\j2sdkee1.3\repository\default\web\_0002fusebean_jsp.java:64: Class org.apache.jsp.BankAccount not found.
BA= (BankAccount)
^
c:\j2sdkee1.3\repository\default\web\_0002fusebean_jsp.java:69: Class org.apache.jsp.BankAccount not found.
BA = (BankAccount) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "BankAccount");
^
3 errors
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
     at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:523)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:175)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:187)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:254)
     at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:198)
     at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
     at java.security.AccessController.doPrivileged(Native Method)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:255)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:225)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2227)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:229)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:162)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882)
     at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:875)
     at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952)
     at java.lang.Thread.run(Thread.java:484)
here is the bean code:
import java.io.*;
import java.sql.*;
public class BankAccount
     private String sAccountID=" ";
     private String sPin=" ";
     Connection connect=null;
     Statement state=null;
     ResultSet result=null;
     public void setSAccountID(String sAccountID)
          this.sAccountID=sAccountID;
     public String getSAccountID()
          return sAccountID;
     public void setSPin(String sPin)
          this.sPin=sPin;
     public String getSPin()
          return sPin;
     public BankAccount() throws ClassNotFoundException
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
     public boolean AccountValidate()
          boolean validate=false;
          String sPinno="";
          try
               sAccountID=getSAccountID();
               sPin=getSPin();
               connect=DriverManager.getConnection("jdbc:odbc:Bank","","");
               String strquery="select cPin_no from Login where cAccount_id='"+sAccountID+"'";
               state=connect.createStatement();
               result=state.executeQuery(strquery);
               while (result.next())
                    sPinno=result.getString(1);
               sPinno=sPinno.trim();
               sPin=sPin.trim();
               if (sPinno.equals(sPin))
                    validate=true;
          catch(Exception e){}
          return validate;
here is the jsp :
<%@ page language="java" %>
<jsp:useBean id="BA" scope="application" class="BankAccount" >
<jsp:setProperty name="BA" property="sAccountID" param="accid"/>
<jsp:setProperty name="BA" property="sPin" param="pin"/>
</jsp:useBean>
<html>
<head><title>result page</title></head>
<body>
<%
     String accid=request.getParameter("i1");
     String pin=request.getParameter("i2");
     out.println("welcome "+accid);
     boolean validate=BA.AccountValidate();
     if (validate==true)
          out.println("the user is validated");
     else
          out.println("the user is not valid");
%>
</body>
</html>
here is the simple html file
<html>
<head><title>user validation</title></head>
<body>
<form method="post" action="usebean.jsp">
<table border="0" cellspacing="1" cellpadding="5">
<tr>
     <td width="100"> </td>
     <td align="right"><h1><font color="red">Welcome to Bank</font></h1></td>
</tr>
<tr>
     <td width="100"><b><font color="blue">Account ID:</font></b></td>
     <td align="left"><input type="text" name="sAccountID" size="30"></td>
</tr>
<tr>
     <td width=100 align=right><b><font color=blue>Pin Number:</font></b></td>
     <td align=left><input type="password" name="sPin" size="30"></td>
</tr>
<tr>
     <td width=100> </td>
     <td align=left><input type=submit value=submit></td>
</tr>
</table>
</form>
</body>
</html>
what changes do you suggest?
I try testing and creating a simple package just to ensure I can create package and it is accessible but I can't access the package
Here is what I did...
I created a file displayclass.java which contains the package declaration as follows
package mypackage;
public class displayclass
     public String displaytext()
          return "displaying text";
I compile it using javac -d . displayclass.java
I check and the package named mypackage is created under the current directory which is c:\java\jsp
then I created the usepackage.java which use the mypackage package
here it is
import jsp.*;
public class usepackage
     public static void main(String args[])
          displayclass dc=new displayclass();
          String string=dc.displaytext();
          System.out.println(string);
Then I set the classpath as "set classpath=%classpath%;c:\java\jsp\mypackage" without the quotation marks ofcourse
I found to my dismay that when I compile usepackage.java.. the compiler generated the following error message
usepackage.java:7 cannot displayclass
bad class file: c:\java\jsp\mypackage\displayclass.class
class file contain wrong class: jsp.displayclass
Please remove and make sure it appears in the correctsubdirectory of the classpath
My brains are already over the limit...the level of frustration at not be being able to make a simple package thing work after facing hurdles after hurdles in JSP...
What solutions do you suggest for the above 2 problems --the one with the jsp and the one with the package..
I use jdk1.3 and j2sdkee1.3, windows 98se
they are all working fine
I really can't comprehend that the people at sun if they admit that j2sdkee1.3 can work in windows 98 with minor tweakings and instead of leading us to a forum with suggested solutions..why can't they simply support the damn thing in windows98 if it can work on windows98...so much for platform independence..or do they prefer us to upgrade to windows NT or windows 2000 :-)
I feel that it would be way too simple for them to make the batch file to work properly...I am indeed surprised as it wouldn't take much of a time for them. Don't you all think so?
As regards the stuff not working without package...it just is too much...I am close to boiling point...why can't they spare a thought for that? I have seen many of my classmates simply throwing up their hands in desperation :-) it is making life a living hell for us---as we are not genius..it depends upon the genius, if at all they are, to make something more userfriendly
anyway pls help me!....I have to finish my assignments on my home computer...

Similar Messages

  • Connection error -2147217387 with Java RAS SDK and Crystal Server 2011

    Due to a change in operating system, we are required to upgrade our Crystal Reports server from BusinessObjects Crystal Reports Server 11.5 to SAP Crystal Server 2011. We use the Java RAS SDK (RASCore 9.2.2.446 / RASApp 9.0) more or less as described in Java RAS2008-unmanaged exportreport. We use the Crystal Server to export reports stored on disk as PDF files.
    In SAP Crystal Server 2011, the CrystalReports2011ReportApplicationServer is configured with Request Port 1566 and Host Identifier 172.16.4.154 (the local machine). The Crystal Server, report-definition files, and Java VM are all on the same machine.
    The error is
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: XML serialization failed.---- Error code:-2147217387 Error code name:connectServer
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.v.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.ab.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.do(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.for(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.for(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
         at ourpackage.OurClass.openReport(OurClass.java:95)
         ... 6 more
    Caused by: java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:189)
         at java.net.SocketInputStream.read(SocketInputStream.java:121)
         at java.net.SocketInputStream.read(SocketInputStream.java:203)
         at java.io.DataInputStream.readInt(DataInputStream.java:388)
    The code is as follows.
    ReportClientDocument clientDocument = new ReportClientDocument();
    clientDocument.setReportAppServer("172.16.4.154:1566"); // localhost
    // Error occurs on ReportClientDocument.open method
    clientDocument.open("D:\\path\\to\\report.rpt", com.crystaldecisions.sdk.occa.report.application.OpenReportOptions.refreshRepositoryObjects.value());
    DatabaseController dbController = clientDocument.getDatabaseController();
    dbController.logon("dbuser", "dbpassword");
    ParameterFieldController pfController = clientDocument.getDataDefController().getParameterFieldController();
    Fields fields = clientDocument.getDataDefinition().getParameterFields();
    ParameterField oldParameter = (ParameterField) field.get(0);
    ParameterField newParameter = new ParameterField();
    oldParameter.copyTo(newParameter, false);
    newParameter.getCurrentValues().clear();
    ParameterFieldDiscreteValue newDiscreteValue = new ParameterFieldDiscreteValue();
    newDiscreteValue.setValue("paramValue");
    newParameter.getCurrentValues().add(0, newDiscreteValue);
    pfController.modify(oldParameter, newParameter);
    clientDocument.refreshReportDocument();
    PrintOutputController po = clientDocument.getPrintOutputController();
    InputStream is = po.export(reportFormat);
    Could anyone advise me how to proceed with resolving this error?

    Thanks for the link. I copied the CrystalReportsSDK.jar and logging.jar from the Crystal Server java\lib directory into my project and revised the code accordingly. Now, a slightly different error occurs at the same place:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server: {0}. --- Connection reset by peer: socket write error---- Error code:-2147217387 [CRSDK00000039] Error code name:connectServer
      at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(ReportSDKServerException.java:115)
      at com.crystaldecisions.proxy.remoteagent.TCPIPCommunicationAdapter.request(TCPIPCommunicationAdapter.java:659)
      at com.crystaldecisions.proxy.remoteagent.AdapterCommunicationChannel.send(AdapterCommunicationChannel.java:88)
      at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.request(ReportAppSession.java:382)
      at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.logon(ReportAppSession.java:342)
      at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(ReportAppSession.java:330)
      at com.crystaldecisions.sdk.occa.report.application.ClientDocument.initializeServerConnectionAdapter(ClientDocument.java:627)
      at com.crystaldecisions.sdk.occa.report.application.ClientDocument.initializeServerConnection(ClientDocument.java:658)
      at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.initializeServerConnection(ReportClientDocument.java:1420)
      at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(ClientDocument.java:982)
      at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.open(ReportClientDocument.java:226)
      at ourPackage.OurClass.openReport(OurClass.java:97)
    The revised code is
    ReportClientDocument clientDocument = new ReportClientDocument();
    clientDocument.setReportAppServer("172.16.4.154:1566"); // localhost
    // Error occurs here
    clientDocument.open("D:\\path\\to\\report.rpt", com.crystaldecisions.sdk.occa.report.application.OpenReportOptions.openAsReadOnly.value());

  • How can I change between JSP and Java in the page language attribute

    Does any one know the answer to this? I am trying to Switch between the 2 in the middle of the page. I want to include a file that uses <%@ page language = "JAVA" %> but the main mage uses Java Script. How can I switch it for this one file. I can't find the answer anywhere. Thanks for your time, and please help me. Also can some one post a good link for Session Tracking. I can't find much good information on that. Thanks again.
    Eagles757(JAY)

    Wow this didn't make sense in so many ways. It's truly bordering on nonsense. I think it's written in English.
    <%@ page language="Java" %>This is optional. JSPs don't use any language other than Java. This is known as a JSP Directive. This line will be processed by the JSP/Servlet engine, and you won't see it in your output. If JSP ever supported a language other than Java, this would be where you would change it.
    <script type="text/javascript">
    <!--
    // -->
    </script>You can include a block like this in your JSP file. The JSP/Servlet engine will not process this script block at all (unless you include JSP <% %> tags somewhere in there, in which case they will be processed before the response is sent back to the web browser). This script block is where JavaScript goes. This code will be executed on the client's browser.
    This is about as clear as I can make things given how muddled your question is. Please ensure you understand the basic differences between JSP, Java, JavaScript, HTML, Servlet engine, web browser before proceeding. Understand what code executes where, and in what order.
    Brian

  • Java ME SDK 3.0 server certificates problem

    Hi, I'm having a problem using HTTPS connection with the Java ME 3.0 emulator. We have a server certificate from Thawte, but I get
    javax.microedition.pki.CertificateException: Certificate was issued by an unrecognized entitywhen I try connecting to our server with the MIDlet. I have tried importing the server certificate as well as the Thawte root certificates into the keystore in c:\Documents And Settings\<username>\javame-sdk\3.0\work\<id>\appdb\_main.ks and I see the certificates in the Certificate Manager in the emulator, but I still get the exception.
    What am I supposed to do to get the emulator to accept the server certificate?

    Answering myself, I got it working after I exported the Thawte server certificates from Control Panel -> Internet Options -> Content -> Certificates -> Trusted Root Certificate Authorities and then imported them to the MEkeystores.

  • Can not run Oracle JSP's

    I'm getting a "500 Internal Server Error" when trying to run an oracle jsp (which we will be customizing)
    Can anyone offer some pointers as to what classes i may be missing or if I may have missed some env setup in Jdev. Thx.
    Error Details:
    500 Internal Server Error
    OracleJSP:
    JSP Error:
    Request URI:/xxx.jsp
    Exception:
    java.lang.ClassCastException: com.evermind.server.http.HttpApplication
         at com.evermind.server.http.EvermindJSPWriter.<init>(EvermindJSPWriter.java:159)
         at com.evermind.server.http.EvermindPageContext.initialize(EvermindPageContext.java:169)
         at com.evermind.server.http.EvermindJSPFactory.getCachedPageContext(EvermindJSPFactory.java:41)
         at com.evermind.server.http.EvermindJSPFactory.getPageContext(EvermindJSPFactory.java:22)
         at xxx.jspService(xxx.jsp:24)
         [xxx.jsp]
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)

    After having applied the latest sdk from sun and made modifications to libraries, i now get a slightly different error:
    Target URL -- http://localhost:8988/oracle/html/xxx.jsp
    04/06/18 17:40:24 Auto-deploying file:/D:/oracle/html/ (New server version detected)...
    04/06/18 17:40:27 java.lang.SecurityException: access denied (javax.management.MBeanTrustPermission register)
    04/06/18 17:40:27      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1727)
    04/06/18 17:40:27      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:342)
    04/06/18 17:40:27      at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:504)
    04/06/18 17:40:27      at com.evermind.server.Application.addWebModuleMBean(Application.java:3582)
    04/06/18 17:40:27      at com.evermind.server.Application.access$000(Application.java:65)
    Source D:\\oracle\\classes does not exist.
    04/06/18 17:40:27      at com.evermind.server.Application$WebModuleCollectionModificationListener.notifyAdd(Application.java:3661)
    04/06/18 17:40:27      at oracle.oc4j.admin.management.util.CollectionModificationBase.notifyAdd(CollectionModificationBase.java:87)
    04/06/18 17:40:27      at oracle.oc4j.admin.management.util.NotifyingMap.put(NotifyingMap.java:93)
    Source D:\\oracle\\classes does not exist.
    04/06/18 17:40:27      at com.evermind.server.Application.getHttpApplicationConfig(Application.java:964)
    04/06/18 17:40:27      at com.evermind.server.Application.initHttp(Application.java:2866)
    04/06/18 17:40:27      at com.evermind.server.Application.postInit(Application.java:812)
    04/06/18 17:40:27      at com.evermind.server.Application.setConfig(Application.java:170)
    04/06/18 17:40:27      at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1927)
    04/06/18 17:40:27      at com.evermind.server.ApplicationServer.getApplication(ApplicationServer.java:2536)
    Source D:\\oracle\\classes does not exist.
    04/06/18 17:40:28      at com.evermind.server.XMLApplicationServerConfig.initHttp(XMLApplicationServerConfig.java:1962)
    04/06/18 17:40:28      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:97)
    04/06/18 17:40:28      at java.lang.Thread.run(Thread.java:534)
    Source D:\\oracle\\classes does not exist.
    04/06/18 17:40:29 warning: running 1.1 version of SwingUtilities
    04/06/18 17:40:40 warning: running 1.1 version of SystemEventQueueUtilities

  • How to deocde a Base64 String in Sun Java ME SDK 3.0(Urgent)

    Hi there, I want to decode a base64 encoded String in Sun Java ME SDK 3.0 , but cant find any solution to this, after doing search related to this I found that it's very easy to decode a Base64 string in Sun Wireless Toolkit 2.5 using following code:
    import com.sun.midp.io.Base64;
    byte[] data = Base64.decode(EncodedString);
    But I found that it's not possible in Java ME SDK as com.sun.midp.io.Base64 is not available there, anyone please give me some alternative of above code so that I can decode a Base64 String in Java ME SDK.
    Eagerly waiting for the possible solution.

    Can you please let us know as how you solved the problem? Since we are developing a blackberry app, we found base64 class for blackberry development. We have plans of doing the same in android, not sure whether they have this. As long as we have generic base64 class that can be used in any client device, that would be great. I did a lot of research and could not fine. Please give us the solution.

  • How i can make  my own connection in java source of a jsp page

    How i can make my own connection in java source of a jsp page (How to get connection from JNDI datasource address) ?
    imagine that i have a rowset in a web page , now i want to do some operation using
    plain JDBC , so i will need a connection object.
    I tried to get one of my rowsets connection but it return null ?
    what is best way to retrive a connection from JNDI datasource that we define for our project?
    for example if i have
    myRowSet.setDataSourceName("java:comp/env/jdbc/be");
    in web page constructor
    now i want a pure connection from the same datasource ? JNDI
    Thank you

    It is not hard to get your own connection from datasource.
    in your case you need to do like the the following code.
    i provide sample to show you how to catch the exception and create an statement .
    Connection con =null;
    try{
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/be");
    con = ds.getConnection();
    java.sql.Statement st =con.createStatement();
    }catch(SQLException sqlex){
    sqlex.printStackTrace();
    sqlex.getNextException().printStackTrace();
    catch(NamingException nex){
    nex.printStackTrace();
    hth
    Masoud kalali

  • How can I assign javascript variables to jsp or java variables.?

    How can I assign javascript variables to jsp or java variables.?

    See I have generated some variables in the javascript which is on the jsp page. I want to assgin these variables to the jsp vaiables. Or how can I access javascript variables from jsp on the same jsp page.

  • How I can create a XML file from java Aplication

    How I can create a XML file from java Aplication
    whith have a the following structure
    <users>
    <user>
    <login>anyName</login>     
    <password>xxxx</password>
    </user>
    </users>
    the password label must be encripted
    accept any suggestion

    Let us assume you have all the data from the jsp form in an java bean object..
    Now you want a xml file. This can be acheived in 2 ways
    1. Write it into a file using java.io classes. Say you have a class with name
    write("<name>"+obj.getName+</name>);
    bingo you have a flat file with the xml
    2. Use data binding to do the trick
    will recommend JiBx and Castor for the 2nd option
    Regards,
    Rajagopal

  • Passing value from jsp to java

    Hi
    Thanks for reading my query.I am having a jsp page which gets the input from the user from a confirm box(javascript). This input i need to process in my java class.how can i do that
    Regards
    Venki

    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/

  • Is it possible to call the SQL Server DB from jsp to java?

    im doing a configurable system where you can create your own table using the system. i can do the creation of table by running the statement CREATE TABLE...........(with attributes) in java.
    Let's say i have created tblST1 with attributes st_ID, st_Name, st_Description.
    My problem is i dont know if it's possible to retrieve all the attributes from jsp to java.

    jverd: i need your help. Iv read all the links u posted but im having a hard time in understanding them.
    For the site http://java.sun.com/j2se/1.4.2/docs/api/java/sql/ResultSetMetaData.html , there's a code there which is...
    ResultSet rs = stmt.executeQuery("SELECT a, b, c FROM TABLE2");
    ResultSetMetaData rsmd = rs.getMetaData();
    int numberOfColumns = rsmd.getColumnCount();
    boolean b = rsmd.isSearchable(1);
    what i did was, i inserted it in my java code which is :
    public boolean checkFieldTable2()
              boolean checked = false;
              try
                   IRMS_DBConnect db = new IRMS_DBConnect();
                   db.openCon();
                   ResultSet rs = stmt.executeQuery("SELECT a, b, c FROM TABLE2");
              ResultSetMetaData rsmd = rs.getMetaData();
              int numberOfColumns = rsmd.getColumnCount();
              boolean b = rsmd.isSearchable(1);
                   db.closeCon();
                   checked = true;
              catch (Exception ex)
                   System.out.println("Error on Execution: " + ex);
              return checked;
    and i compiled it and there was an error that the variable stmt was not initialized. Am i doing the right way?
    Can anyone help me pls? pls pls pls

  • What's the relationship between JSP and Java?

    hi,dear friends here.......^_^ I'm a graphic/web designer,
    cause the needed of internet web design, I started to learn html and Java server page.But I never have experience of JAVA programs. It's kind of hard for me to know and use JSP now.Should i need to learn Java first? Or can anyone tell me what's the good way for me to
    learn JSP?
    I also want to learn how do make a web page as the first page of java.sun.com about "Industry News ".
    Thanks !!grace from Taipei,Taiwan

    Hi! JSPs allow Java code together with HTML in one document. The servlet engine "compiles" a JSP into a servlet prior to executing it. So, one must know Java prior to dealing with JSPs.
    IMVHO, "Thinking In Java" by Bruce Eckel is a very good book for introduction to Java. You can download the electronic version at no charge from http://www.bruceeckel.com.
    After you get a good handle on Java, "Professional Java Server Programming" (Wrox Press) can give you good information on servlets and JSPs, along with some other related topics.
    Hope this helps!
    Cheers!

  • Where can i get  MySQL api for java?

    I'm new to jsp,
    where can i get MySQL api for java?
    thanks

    You mean the jdbc driver for mysql ? if yes, www.mysql.com/downloads/api-jdbc.html

  • Daniel or anyone else, Help on why I can't access certain jsp pages

    I have installed the Web Service Portlet Wizard to build my portlets. In particular,
    I have created a URL porlet jsp which receives its content from a URL.
    This URL that I retrive is an application that I have running on my Weblogic 6.1
    Server. I can access the login page, and can logon and do a few things but for
    some reason I Can't access certain pages. The pages I can't access are also jsp
    pages on the wlserver6.1 server(exactly the same as other ones I can access and
    interact with).
    The error I receive on the Portal Front end is attached in a word doc. I have
    also included in there, a snapshot of the access log for those pages, but I can't
    really make out what it is telling me (if anything!).
    For one of the pages, that I can't successfully access I get java.lang.ArrayIndexOutOfBoundsException
    This only happens with 1 of the pages. But trying to access the same page withouth
    going thru the portal I get NO errors what so ever.
    Please if anyone can give me any information on why I can't access certain pages
    via my portal It would be very helpful.
    Finally I have included the code of my Portlet which accesses the URL. This is
    also included in the word doc.
    Thanks
    Ramy
    [Portal.doc]

    Ramy,
    I don't know the Web Service Portlet Wizard too well, but I notice that
    login.htm never seems to be found (404 in logs). I would think that the two
    warnings below your JSP call (cookies, and portlet state) are your most
    likely culprits. If the Web Service Portlet Wizard does not handle cookies
    then the portal server will have to continiously reauthenticate. I will
    forward your email however and see if I can dig up a better diagnosis. Also,
    could you post the stack trace for the ArrayIndexOutOfBoundsException you
    are seeing.
    Sincerely,
    Daniel Selman
    "Ramy" <[email protected]> wrote in message
    news:[email protected]..
    >
    I have installed the Web Service Portlet Wizard to build my portlets. Inparticular,
    I have created a URL porlet jsp which receives its content from a URL.
    This URL that I retrive is an application that I have running on myWeblogic 6.1
    Server. I can access the login page, and can logon and do a few things butfor
    some reason I Can't access certain pages. The pages I can't access arealso jsp
    pages on the wlserver6.1 server(exactly the same as other ones I canaccess and
    interact with).
    The error I receive on the Portal Front end is attached in a word doc. Ihave
    also included in there, a snapshot of the access log for those pages, butI can't
    really make out what it is telling me (if anything!).
    For one of the pages, that I can't successfully access I getjava.lang.ArrayIndexOutOfBoundsException
    This only happens with 1 of the pages. But trying to access the same pagewithouth
    going thru the portal I get NO errors what so ever.
    Please if anyone can give me any information on why I can't access certainpages
    via my portal It would be very helpful.
    Finally I have included the code of my Portlet which accesses the URL.This is
    also included in the word doc.
    Thanks
    Ramy

  • JSP vs Java Servelets

    I realize that I'm probably in the wrong place, because I'm not a developer. However, I really don't know where else to turn for help. I used to work in the web dev industry in NYC, now I'm stuck in Little Rock, AR, and I don't know any "answer people."
    I need some advice on whether to use JSP or Java Servelets for my ecommerce site.
    I currently run my brick & mortar retail store on a Java-based Point of Sale (POS) system, with a MySQL relational database. It is a very upscale home furnishings/design store, so the design of the web site really matters.
    My POS vendors have developed a web store interface using Java Servelets, but since the programmers developed it, there is little consideration for design.
    It seems to me, based on my previous experience, that JSP would be the way to go here. I've got a great relational database - wouldn't it be best to have total flexibility in the way data is accessed & displayed?
    If anyone out there can discuss this with me intelligently (without totally going over my head), won't you please help?
    Many, many, many thanks!

    myabigail, I dont know if you are still looking for an answer to your question. I read many good answers on the board already. Based on my many years of experience doing IT type work, I will say that there is a world of difference btw designing a page with servlets vs JSP's. While it is true that JSP's are eventually compiled into servlets, the difference btw them and servlets in syntax and use allows for true separation of concern. Most importantly for you as a business owner, using JSP allows you to create a web site that will be more easily maintained over time, for lower cost. This is because most time your business model will not change, whereas the look of your site will most likely update more frequently (as is typical with most sites). So after initially hiring a Java developer to write your business logic, and a web designer to build your web pages, you will thereafter only need the web designer for updates to your site. The main reason for this is that the bulk of JSP is implemented as a set of tags which look like the regular HTML that a web designer works with on a day to day basis. The learning curve for JSP is very short, most 'webbies' pick it up in a few months. I hope this (long) post helps you out in some useful way!

Maybe you are looking for

  • Book table of contents

    How can I make a table of contents when making a book in iphoto?  I am using the folio theme book and I don't see a page layout for a table of contents.  Please help! Lauren

  • How to or what to install to install OBIEE on the oAS

    Hello all, I want to install OBIEE in the oracle Application Server. But I don't know exactly which software I have to install. I tried a couple of things. But when I choose advanced during the OBIEE install and choose for application server. It's na

  • Availability check determination XC ----- YC

    While creating SO through va01  for Sales organization = 2100,Distribution channel = 01,division = 01. If you enter sold to party( 583382 ) , ship to party( 583382 ) material( ma896n/a )  order qty = 1 and press enter then give credit card type as VI

  • Strange behavior after waking from sleep

    I recently got a Mac Pro 3.33GHz 6-core and put an OWC 60G SSD in as the boot drive. It worked great for the first month or so, but now it's acting strange. Before, when waking from sleep, my computer would immediately come on and be ready to use. No

  • Anchored frames exported as images are solid white

    Hello, I have FrameMaker 8.0p277 on Windows XP (one machine SP2, one SP3), and am trying to use Mif2Go to create a CHM/HTML Help menu. The problem I'm having is that some of my anchored frames are being converted to .jpgs that are solid white. Not al