Do all JSP/Java bean webapps need an xml file?

Hi all,
I have a jsp/ java bean webb application. This is being run on Resin at
Lunarpages.
The site has been shut down due to 'class-loader' not found. I was told it
was causing problems for other java users on the server.
I realise this is limited information but any insight would be welcome.
This is our first JSP / java bean web app.
Also if anyone could tell me briefly the purpose of an xml document in a JSP/Java bean webapplication I would greatly appreciate it.
Thanks in advance
Regards
Jim

Hi there,
Thanks for the reply.
Our application allows people to purchase wedding pictures online. It ran locally on resin we then had to change all the relative file paths in order to deploy it on lunarpages.
Lunarpages use resin also.
We had the application tested and working on Lunarpages for the last week .This morning they sent us a message saying they had shut our JSP pages down as our application was causing problems for other java users. errant code unknown element ' class-loader' .
Not too much help from lunarpages...
thanks

Similar Messages

  • Using JSP / Java to write/create an xml file

    I have been looking around the internet and in my books and I cannot find a good example of JAVA/JSP writing an XML file. I already have a recursive method that will generate the xml .. what's missing in my code now is how am i goin to append or write that xml string into an existing file..
    suppose i have this xml string
    String xmlString = "<?xml version="1.0"?><txn><test>this is just a test</test></txn>";
    FileOutputStream fos = new FileOutPutStream(C://files/sample.xml);
    now , how i will write the xmlString into sample.xml file...
    Any suggestions/ ideas/ tutorial links would be deeply appreciated.. thx!

    never mind.. my code is workin now..

  • How to get an XML string from a Java Bean without wrting to a file first ?

    I know we can save a Java Bean to an XML file with XMLEncoder and then read it back with XMLDecoder.
    But how can I get an XML string of a Java Bean without writing to a file first ?
    For instance :
    My_Class A_Class = new My_Class("a",1,2,"Z", ...);
    String XML_String_Of_The_Class = an XML representation of A_Class ?
    Of course I can save it to a file with XMLEncoder, and read it in using XMLDecoder, then delete the file, I wonder if it is possible to skip all that and get the XML string directly ?
    Frank

    I think so too, but I am trying to send the object to a servlet as shown below, since I don't know how to send an object to a servlet, I can only turn it into a string and reconstruct it back to an object on the server side after receiving it :
    import java.io.*;
    import java.net.*;
    import java.util.*;
    class Servlet_Message        // Send a message to an HTTP servlet. The protocol is a GET or POST request with a URLEncoded string holding the arguments sent as name=value pairs.
      public static int GET=0;
      public static int POST=1;
      private URL servlet;
      // the URL of the servlet to send messages to
      public Servlet_Message(URL servlet) { this.servlet=servlet; }
      public String sendMessage(Properties args) throws IOException { return sendMessage(args,POST); }
      // Send the request. Return the input stream with the response if the request succeeds.
      // @param args the arguments to send to the servlet
      // @param method GET or POST
      // @exception IOException if error sending request
      // @return the response from the servlet to this message
      public String sendMessage(Properties args,int method) throws IOException
        String Input_Line;
        StringBuffer Result_Buf=new StringBuffer();
        // Set this up any way you want -- POST can be used for all calls, but request headers
        // cannot be set in JDK 1.0.2 so the query string still must be used to pass arguments.
        if (method==GET)
          URL url=new URL(servlet.toExternalForm()+"?"+toEncodedString(args));
          BufferedReader in=new BufferedReader(new InputStreamReader(url.openStream()));
          while ((Input_Line=in.readLine()) != null) Result_Buf.append(Input_Line+"\n");
        else     
          URLConnection conn=servlet.openConnection();
          conn.setDoInput(true);
          conn.setDoOutput(true);           
          conn.setUseCaches(false);
          // Work around a Netscape bug
          conn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
          // POST the request data (html form encoded)
          DataOutputStream out=new DataOutputStream(conn.getOutputStream());
          if (args!=null && args.size()>0)
            out.writeBytes(toEncodedString(args));
    //        System.out.println("ServletMessage args: "+args);
    //        System.out.println("ServletMessage toEncString args: "+toEncodedString(args));     
          BufferedReader in=new BufferedReader(new InputStreamReader(conn.getInputStream()));
          while ((Input_Line=in.readLine()) != null) Result_Buf.append(Input_Line+"\n");
          out.flush();
          out.close(); // ESSENTIAL for this to work!          
        return Result_Buf.toString();               // Read the POST response data   
      // Encode the arguments in the property set as a URL-encoded string. Multiple name=value pairs are separated by ampersands.
      // @return the URLEncoded string with name=value pairs
      public String toEncodedString(Properties args)
        StringBuffer sb=new StringBuffer();
        if (args!=null)
          String sep="";
          Enumeration names=args.propertyNames();
          while (names.hasMoreElements())
            String name=(String)names.nextElement();
            try { sb.append(sep+URLEncoder.encode(name,"UTF-8")+"="+URLEncoder.encode(args.getProperty(name),"UTF-8")); }
    //        try { sb.append(sep+URLEncoder.encode(name,"UTF-16")+"="+URLEncoder.encode(args.getProperty(name),"UTF-16")); }
            catch (UnsupportedEncodingException e) { System.out.println(e); }
            sep="&";
        return sb.toString();
    }As shown above the servlet need to encode a string.
    Now my question becomes :
    <1> Is it possible to send an object to a servlet, if so how ? And at the receiving end how to get it back to an object ?
    <2> If it can't be done, how can I be sure to encode the string in the right format to send it over to the servlet ?
    Frank

  • I need one XML File containing one Idoc fields Say Orders01

    hiall,
    i need one XML File containing one Idoc fields Say Orders01
    bye
    satish

    hi,
    <?xml version="1.0" encoding="iso-8859-1"?>
    <ORDERS02>
      <IDOC BEGIN="1">
        <EDI_DC40 SEGMENT="1">
          <TABNAM>EDI_DC40</TABNAM>
          <MANDT>800</MANDT>
          <DOCNUM>0000000000213213</DOCNUM>
          <DOCREL>46B</DOCREL>
          <STATUS>30</STATUS>
          <DOCTYP>ORDERS02</DOCTYP>
          <DIRECT>1</DIRECT>
          <RCVPOR>A000000032</RCVPOR>
          <RCVPRT>LS</RCVPRT>
          <RCVPRN>sell</RCVPRN>
          <RCVSAD/>
          <RCVLAD/>
          <STD/>
          <STDVRS/>
          <STDMES/>
          <MESCOD/>
          <MESFCT/>
          <OUTMOD>4</OUTMOD>
          <TEST/>
          <SNDPOR>SAPSID</SNDPOR>
          <SNDPRT>KU</SNDPRT>
          <SNDPRN>23334</SNDPRN>
          <SNDSAD/>
          <SNDLAD/>
          <REFINT/>
          <REFGRP/>
          <REFMES/>
          <ARCKEY/>
          <CREDAT>20061019</CREDAT>
          <CRETIM>205734</CRETIM>
          <MESTYP>ORDERS</MESTYP>
          <IDOCTYP>ORDERS02</IDOCTYP>
          <CIMTYP/>
          <RCVPFC/>
          <SNDPFC/>
          <SERIAL></SERIAL>
          <EXPRSS/>
        </EDI_DC40>
        <E1EDK01 SEGMENT="1">
          <KZABS>X</KZABS>
          <CURCY>USD</CURCY>
          <WKURS>1.000</WKURS>
          <ZTERM>ZZZZ</ZTERM>
          <BSART>EC</BSART>
          <BELNR>300024455</BELNR>
          <RECIPNT_NO>misssa</RECIPNT_NO>
        </E1EDK01>
        <E1EDK14 SEGMENT="1">
          <QUALF>014</QUALF>
          <ORGID>1000</ORGID>
        </E1EDK14>
        <E1EDK14 SEGMENT="1">
          <QUALF>009</QUALF>
          <ORGID>001</ORGID>
        </E1EDK14>
        <E1EDK14 SEGMENT="1">
          <QUALF>011</QUALF>
          <ORGID>1000</ORGID>
        </E1EDK14>
        <E1EDK03 SEGMENT="1">
          <IDDAT>012</IDDAT>
          <DATUM>20061019</DATUM>
        </E1EDK03>
        <E1EDKA1 SEGMENT="1">
          <PARVW>LF</PARVW>
          <PARTN>000002344</PARTN>
          <TELF1></TELF1>
          <BNAME></BNAME>
        </E1EDKA1>
        <E1EDKA1 SEGMENT="1">
          <PARVW>WE</PARVW>
          <LIFNR>1000</LIFNR>
          <NAME1></NAME1>
          <STRAS></STRAS>
          <ORT01></ORT01>
          <PSTLZ>4444</PSTLZ>
          <LAND1>EN</LAND1>
          <TELF1></TELF1>
          <SPRAS>D</SPRAS>
          <ORT02></ORT02>
          <REGIO>02</REGIO>
        </E1EDKA1>
        <E1EDK02 SEGMENT="1">
          <QUALF>001</QUALF>
          <BELNR>600060324</BELNR>
          <DATUM>20061019</DATUM>
          <UZEIT>205736</UZEIT>
        </E1EDK02>
        <E1EDK17 SEGMENT="1">
          <QUALF>001</QUALF>
          <LKOND>EXW</LKOND>
          <LKTEXT>london</LKTEXT>
        </E1EDK17>
        <E1EDK18 SEGMENT="1">
          <QUALF>001</QUALF>
          <TAGE>12</TAGE>
          <PRZNT>4.000</PRZNT>
        </E1EDK18>
        <E1EDK18 SEGMENT="1">
          <QUALF>002</QUALF>
          <TAGE>30</TAGE>
          <PRZNT>2.000</PRZNT>
        </E1EDK18>
        <E1EDK18 SEGMENT="1">
          <QUALF>003</QUALF>
          <TAGE>45</TAGE>
        </E1EDK18>
        <E1EDP01 SEGMENT="1">
          <POSEX>00010</POSEX>
          <PSTYP>0</PSTYP>
          <KZABS>X</KZABS>
          <MENGE>1.000</MENGE>
          <MENEE>EA</MENEE>
          <BMNG2>1.000</BMNG2>
          <PMENE>EA</PMENE>
          <VPREI>3</VPREI>
          <PEINH>1</PEINH>
          <NETWR>3</NETWR>
          <MATKL>001</MATKL>
          <BPUMN>1</BPUMN>
          <BPUMZ>1</BPUMZ>
          <E1EDP20 SEGMENT="1">
            <WMENG>1.000</WMENG>
            <EDATU>19</EDATU>
          </E1EDP20>
          <E1EDP19 SEGMENT="1">
            <QUALF>002</QUALF>
            <IDTNR>100</IDTNR>
          </E1EDP19>
          <E1EDP19 SEGMENT="1">
            <QUALF>001</QUALF>
            <KTEXT>some text</KTEXT>
          </E1EDP19>
        </E1EDP01>
        <E1EDS01 SEGMENT="1">
          <SUMID>002</SUMID>
          <SUMME>3</SUMME>
          <SUNIT>USD</SUNIT>
        </E1EDS01>
      </IDOC>
    </ORDERS02>
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Column Not found error while trying to access databse through JSP+Java Bean

    I am trying to acees MS Access 2003 db through JSP using Tomcat 5.0.28.The code for accessing the databse is incorporated in the bean.The jsp only calls the particular method of the bean .
    Code for Java Bean:
    package ActiveViewer;
    import java.sql.*;
    import java.util.*;
    public class CompanyBean
    Connection con;
    ResultSet rs=null;
    Statement st;
         public CompanyBean(){}
         public void connect()
         try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("Here4");
    con=DriverManager.getConnection("jdbc:odbc:activeviewer","","");
         System.out.println("Here1");
         catch (ClassNotFoundException e)
         System.out.println("Could not locate driver.");
    catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
         e.printStackTrace();
         catch (Exception e)
    System.out.println("An unknown Exception has occured :: "+e);
         e.printStackTrace();
    public void disconnect()
         try
         if (con!=null)
    con.close();
         catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
         e.printStackTrace();
    public ResultSet select(String username)
    if(con!=null)
         try
    st=con.createStatement();
         rs=st.executeQuery("select * from company where username='" + username + "'");
    catch (SQLException e)
    System.out.println("An SQL Exception has occured :: "+e);
         e.printStackTrace();
    catch (Exception e)
    System.out.println("An Exception has occured while retrieving :: "+e);
    e.printStackTrace();
    else
    System.out.println("Connection to database was lost.");
    return rs;
    The code for JSP that uses the above bean is:
    <%@ page language="java" import="java.sql.*,ActiveViewer.* " contentType="text/html"%>
    <jsp:useBean id="conn" scope="session" class="ActiveViewer.CompanyBean" />
    <html>
    <body>
    <% String username=request.getParameter("username");
    String password=request.getParameter("password");
    System.out.println("username:"+username);
    System.out.println("password:"+password);
    conn.connect();
    ResultSet rs=conn.select(username);
    System.out.println("Below select ");
    while (rs.next())
    String dbusername=rs.getString("username");
         String dbpassword=rs.getString("password");
         if(dbusername.equals(username) && dbpassword.equals (password))
    { %> out.println("OK");
              <% }
    else { %>Invalid Username and / or Password.
    <br>Clickhere to go back to Login Page.
    <% }
    } %>
    </body>
    </html>
    I get the following error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Column not found
    though the database is not int he same folder as the jsp, the DSN is set correctly to pint to the db location.The jsp does print in stdout file:
    Here4 (from connect method above)
    Here 1 (from connect method above)
    Below Select (from jsp)
    This means that the jsp does connect to db but it gives the above error.Also the field name also matches that in the database and data is present in the db too.
    All other things like creating package for bean,incorporating the packakage are done.
    Can someone please help me with their precious advice?

    U're getting this error because there is no field called 'password' in ur database, the field in ur database is named 'cpassword' and not 'password'. So change the statement rs.getString("password"); to rs.getString("cpassword");

  • JSP + JAVA Beans +Torque

    Hey,
    I am using Torque to connect MySQL DB to JSP page, so I am using JAVA Beans, which is created by torque, I wish to use pagination to retrieve the entries from database, plz tell me how can I implement it here.

    Try the following forum (about JSP technology)
    http://forum.java.sun.com/forum.jspa?forumID=45
    Also try the following forum (about JDBC technology)
    http://forum.java.sun.com/forum.jspa?forumID=48

  • Simple jsp deployment - does it need weblogic.xml ?

              Hi,
              I am a newbie and trying out a very simple jsp application which connects to Oracle
              for a simple db lookup. This app used to work with Tomcat/ Apache.
              I am trying to deploy it on WLS7.0 . It does not use servlets - only JSPs.
              Could someone tell me what is the minimum level of configuration I need to deploy
              these JSPs to WLS7.0 ?
              Do I need both web.xml and weblogic.xml ?
              Do I need all the parameters in both these files ?
              Thanks a lot !
              

    WLS7.0 Does use servlet you have to register the servlet inside the
              web.xml file for a web application. It looks like this:
              <servlet>
                   <servlet-name>testservlet</servlet-name>
                   <servlet-class>
                        com.mypackage.MyTestServlet
                   </servlet-class>
              <init-param>
              <param-name>EnvironmentFile</param-name>
              <param-value>/WEB-INF/config/webstore.properties</param-value>
              </init-param>
              </servlet>
              <servlet-mapping>
              <servlet-name>testservlet</servlet-name>
              <url-pattern>/mytestservlet</url-pattern> <!-- this is the
              name on the url-->
              </servlet-mapping>
              Abraham wrote:
              > Hi,
              >
              > I am a newbie and trying out a very simple jsp application which connects to Oracle
              > for a simple db lookup. This app used to work with Tomcat/ Apache.
              >
              > I am trying to deploy it on WLS7.0 . It does not use servlets - only JSPs.
              >
              > Could someone tell me what is the minimum level of configuration I need to deploy
              > these JSPs to WLS7.0 ?
              > Do I need both web.xml and weblogic.xml ?
              >
              > Do I need all the parameters in both these files ?
              >
              > Thanks a lot !
              

  • Java Beans System.out.println Log file

    Helllo,
    I have Forms 11.1.2 installed on linux. I developed a java bean and put some System.out.println() statements. The bean itself is working but where do i look for the debug statement logs that i am generating via System.out.println() statements.
    Please let me know if you need more information, I will post asap.
    thanks in advance,
    Prasad.

    Prabodh,
    thanks, added the following line to the implementation class in java bean:
    private final static Logger logger = Logger.getLogger(MyBean.class.getName());
    and then in the init() method, i put
    logger.info("Prasad .... in init);
    Does this automatically goes into weblogic managed server WLS_FORMS (in my case) standard out?
    Or do i need to do anything else, i know weblogic comes up with its own diagnostic logging and is famous for supressing other loggers.... just want to run this by you as well.
    thanks,
    Prasad,

  • Generate java objects from one single XML file

    Hi,
    I want to create an XML file that describes a set of "messages" (see XML below).
    I want to generate the objects "Message" with simple getters and setters for each <message> entry.
    And a little bit more complicated, I need to generate an object "Action" that will parse an incoming message based on the fields and rules described in the XML.
    XML file:
    *<messages>*
    *<message>*
    *<name>PrivateMessage</name>*
    *<fields>*
    *<receiver maxlength="32" minlength="4"/>*
    *<sender maxlength="32" minlength="4"/>*
    *<content minlength="1"/>*
    *</fields>*
    *</message>*
    *<message>*
    *<name>MessageToAll</name>*
    Message object:
    Example:
    public class MessagePrivateMessage extends Message {
         private String sender;
         private String receiver;
         private String message;
         /* all the getters and setters for the fields above */
    Action object:
    The Action will parse an incoming message based on the rules in the XML above, and create the Message object; e.g. :
    <sender maxlength="32" minlength="4"/>
    will result to
    String sender = getNextField(fields);
    if (sender == null || sender.trim().equals("")) {
         throw new InvalidMessageException("Sender username null");
    if (sender.length() > 32 || sender.length() < 4) {
         throw new InvalidMessageException("Sender username exceeds 32 characters: " + sender);
    Example:
    public class ActionPrivateMessage extends ActionReceiveClient<MessagePrivateMessage> {
         public ActionPrivateMessage() {
         public void execute(LinkedList<String> fields, EndpointServer server, int idMessage, Object stream, Date dateRead)
                   throws InvalidMessageException {
              MessagePrivateMessage dtoMessage = new MessagePrivateMessage();
              dtoMessage.setDateServerRead(dateRead);
              dtoMessage.setId(idMessage);
              dtoMessage.setStream(stream);
              parseMessage(fields, dtoMessage);
              dtoMessage.setDateServerParsed(new Date());
              server.sendPrivateMessage(dtoMessage);
         public void parseMessage(LinkedList<String> fields, MessagePrivateMessage dto)
                   throws InvalidMessageException {
              super.parseMessage(fields, dto);
              String sender = getNextField(fields);
              if (sender == null || sender.trim().equals("")) {
                   throw new InvalidMessageException("Sender username null");
              if (sender.length() > 32 || sender.length() < 4) {
                   throw new InvalidMessageException("Sender username exceeds 32 characters: " + sender);
              String receiver = getNextField(fields);
              if (receiver == null || receiver.trim().equals("")) {
                   throw new InvalidMessageException("Receiver username null");
              if (receiver.length() > 32 || receiver.length() < 4) {
                   throw new InvalidMessageException("Receiver username exceeds 32 characters: " + receiver);
              String message = getNextField(fields);
              if (message == null || message.trim().equals("")) {
                   throw new InvalidMessageException("Message null");
              if (message.length() < 1) {
                   throw new InvalidMessageException("Message exceeds 200 characters: " + message);
              if (!fields.isEmpty()) {
                   String remainingFields = "";
                   while (!fields.isEmpty()) {
                        remainingFields += fields.remove(0) + " ";
                   throw new InvalidMessageException("Fields remaining but everything has been parsed: " + remainingFields);
              dto.setSender(sender);
              dto.setReceiver(receiver);
              dto.setMessage(message);
    First question, is it possible ?
    Second one would be, how ? Any tips ?
    Thank you for any help :)

    matthew_be wrote:
    First question, is it possible ?Sure, why not.
    Second one would be, how ?Well, I think the standard way is to write the required code.
    If you really can't come up with a way, then you probably shouldn't be trying to implement such a thing.
    Any tips ?Before I would start writing my own framework for something like that, I'd take a look at all the existing Java/XML technologies out there (of which there are a bunch). Either an existing framework will solve your problem or it will prove to be helpful in your own implementation.

  • Anonymizer Bean is not working XML file -- ABAP Proxy scenario.

    Hi Experts,
    Can anybody please help, How can add   this line <ns0:ROOT xmlns:ns0="urn:XXX:snc:productactivedata"> to my input xml file?
    </ns0:ROOT> to the end of the input xml file. One more thing please, how to remove "standalone="yes" " from this line <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    I have tried with Anonymizer bean settings, I can't able to achieve this, with XSLT mapping could, but I don't know XSLT mapping, can any one help me in this?
    Many Thanks
    Regards
    San

    Hi Prateek,
    If do, like remove namespace in the message type then i get this error.
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">GENERIC</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_EDI_ProAct_One_N_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
      <SAP:P3>The element type "D01_PO4" must be terminated by t</SAP:P3>
      <SAP:P4>he matching end-tag "</D01_PO4>".</SAP:P4>
      <SAP:AdditionalText />
    <SAP:Stack>com/sap/xi/tf/_MM_EDI_ProAct_One_N_com.sap.aii.utilxi.misc.api.BaseRuntimeException:The element type "D01_PO4" must be terminated by the matching end-tag "</D01_PO4>".</SAP:Stack>
    I have checked the message, xml message format fine. Any help in this please?
    Thanks & Regards
    San

  • Format Payment Instructions - Need the XML file.

    Hi,
    We have a requirement to print first page of this check print program to go to one printer and the second page onwards should go to different printer.
    In order to achieve this requirement we had planned to have 2 programs. first program will be the standard 'Format Payment Instructions' which will print only the first page and we will have second program which will call the JAVA FO Processing API with the XML file generated from the first program and the layout name to generate the PDF file.
    But the problem here is we are not able to find the XML file for the 'Format Payment Instructions' program. Does this program generates the XML file in a different directory? Can anybody help us with the Unix path name where the XML file will be generated.
    Thanks
    Lakshmanan A.

    You can upload the ECCN XML file from the GTS cockpit -> SAP Compliance Management -> Classification/Master Data -> Load ECCNs from XML file.
    You normally get the ECCN XML files from data provider website.
    Edited by: Howard Dai on Feb 27, 2009 11:36 AM

  • Java program to compare 2 XML files

    Any snippet to compare 2 XML files?

    Hi,
    I also haven't tried it before.
    When i create 2 xml same file (content wise, only names different).
    And create 2 Document objects which contains these 2 xml files, and when i tried to compare these 2 documents i come to know that these are not same.
    Well we have our own xml Database, Tamino. And we have our own API's to access it. TA4J.
    So in that also i created XMLObjects and tried to compare it, it tells both are not same.
    Well the reason might be this,
    in Tamino, while storeing any xml/noxml object it stores under a collection and assigns Docname and doctype and also ini:id (which is different for different intances) .
    so when u try to compare these 2 instances , as both has all data , docname, doctype same, but ino:id is different, so says they are not same.
    Hoep this will help u.
    ..........yogesh

  • Urgent help is needed - JSP & Java beans

    Hi,
    I am getting the following problem when trying to interact with Javabeans from JSP (DB I use is Cloudscape) :
    An exception occurred while interacting with the guestbook database.
    The error message was:
    Cannot create bean of class proj.beans.UserDataBean
    Please try again later
    The problem probably occurs in following line:
    status = guestData.checkUser(userName,emailName);
    where guestData represents a Javabean class.
    The strangest thing is that sometimes, suddenly, the program is working OK without this Error Message but when it occurs I don't know the reason and how to solve it.
    Please advise...
    Thanks a lot.

    Can you copy the entire stack trace and post it? It would probably help.

  • Philisophical Question:  Tools for synchronizing JSPs, Java Beans and XML?

    This is a "best practices" question...
    The JSTL and JSF tags provide a lot of support for minimizing the amount of text that must be included in a JSP page. For example:
    <c:out value="${customer.firstName}"/>This snippet will find an object named "customer" in any of the JSP scopes, extract the value of the property named "firstName", and output it as part of the page.
    Here are my questions:
    (1) Is there a recommended method to communicate to the page designer what objects are in scope for a particular page, and what the properties of those objects are?
    (2) Is there any programmatic way to determine from the program's source code that an object with the specified name and of the expected type will be in scope at run time?
    I would love to have an IDE that would be able to help the page designer by providing a list of the objects that are expected to be in scope, along with the name of their properties. What conventions exist to make this possible?

    Maybe you like this, it's one of dozens of tools for Struts and in version 3.0
    http://www.scioworks.com/scioworks_camino.html
    hth,
    .V

  • EJB2.0 CMP Bean table Name in XML file

    hai all,
    I have a doubt in ejb-jar.xml . I have noticed that we mention the field names <cmr-field> ... But where do we mention name of the table in the XML. do we have to make the bean name as that of table name .
    Can Any one help me ?
    Thnks
    Sundar

    Hi pls see this DD for CMP. in this "abstract-schema-name" is the Data Base table name...
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>CustomerBean</ejb-name>
    <local-home>LocalCustomerHome</local-home>
    <local>LocalCustomer</local>
    <ejb-class>CustomerBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <abstract-schema-name>Customer</abstract-schema-name>
    <cmp-field>
    <field-name>lastName</field-name>
    </cmp-field>
    <primkey-field>customerID</primkey-field>
    ... other cmp fields
    <ejb-local-ref>
    <ejb-ref-name>ejb/AddressRef</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>LocalAddressHome</local-home>
    <local>LocalAddress</local>
    <ejb-link>AddressBean</
    </ejb-local-ref>

Maybe you are looking for