Can i create an instance of a jar file?

Actually,i'm creating a combobox component.For tht i've written a java class,in tht calss i read the javascript code and create an instance of the java class n render tht code.If i want to give this java file and javascript file i need to jar it.i have done tht also but i can't create the instance of tht java class from the jar .can u help me out?
Thanks in advance.

Hey thanks so much for the reply.
Let me tell you the exact scenario. I'm actually developing a struts-application. Hope I can get some help here too.
I have:
1. login.jsp-where user logs in.
-I have a userid and a password as default values for each unique user.
Where should i store these details -in HashMap??
-How can I display error messages if userId/passWord is invalid on login.jsp page ??
2. confirmation.jsp-on successful login, he's shown his details:
YOur first name: .........
Your last name: ........ etc.
-Here I can't use bean:write tag to read from form-bean.
- how do i display it here without using a scriptlet ?
3. LoginAction.java
-Here i will get userId and passWord from LoginFormBean.java setter
and getter methods.
-For all validations' results, should i call a boolean getUserDetails() method from form-bean, wherein i can map values(first name, last name etc ) to each key (userid) ?
i can use methods like:
if (isValidUserId && isValidPassWord )
LoginValidateUtil.getUserDetails();
return mapping.findForward("success");
But, can I assign many values to a single key using Map ?
4. LoginFormBean.java
-Here should I have to use set/getUserDetails() ?
-If so, how do I use Map there?
I want to have userId as the only key to which i can map values and not password.
5. LoginValidateUtil.java
-Here all validations are defined and boolean result is passed to LoginAction.java.
Hope you got what I meant.
Please tell me if i am right in this approach...
Thanks in advance,
sanlearns

Similar Messages

  • Can't create a true ADF Libray JAR FIle

    I created a Model project. Then created an ADF Library JAR File Deployment Project to deploy the jar to the file system.
    I then, created a separate project and tried to add the export jar file to it via a File System connection in the Resource Palette.
    But, when I right click on the jar file in the Resource Palette, I only see 2 options, "Open" and "Advanced Search".
    I expected to have an option to add the jar to the selected project.
    Now, I am able to add the jar to the Project if I go to the projects properites, then add the jar via the "Libraries and Classpath".
    Note that even the icon for the jar is different than those from other System Jar files (the bookshelf/library icon).
    The icon I see for my jar is hard to identify, sort of like a torch.
    So, what is going on?
    I have double and triple checked that my deployment profile is for an "ADF Library JAR File".
    I have deleted the default deployment profile and create a brand new one.
    Still, the same issue.
    Any ideas?
    Thanks in advance.

    When you say you see the XML files for the EOs & VOs do you mean in the resource palette? Never mind, let's take a step back.
    Via the following link this is what you should see for a Model project ADF Library JAR that contains EO/VOs etc:
    https://dl.dropboxusercontent.com/u/12154176/pic01.png
    If you were to right click on the JAR this is what options you should see:
    https://dl.dropboxusercontent.com/u/12154176/pic02.png
    I'd suggest you're still doing something wrong when you create the ADF Library JAR. To assist you via this link:
    https://dl.dropboxusercontent.com/u/12154176/Model.zip
    ...you'll find a previous workspace/project I've setup. If you right click on the Model project look to the Deployment options you'll see an ADF Library deployment profile called "Model_Model_adflib". If you exit out of the preferences, right click Deploy -> select Model_Model_adflib, the appropriate ADF Lib JAR will be created under Model/Model/deploy. Returning to JDev and the Resource Palette, add a file system connection to this deploy directory, then you should see what I see above.
    Let us know how you go.
    CM.

  • ?? can not create an instance of org.apache.axis.client.Service

    hi,
    firstly, i should introduce what i am doing now.
    I want to write a Jeanbean, which can invoke 2 web services.
    I found in tomcat, when I submitted the parameters from a web page form, there was Internal Server Error.
    The problem is I can not created an instance of org.apache.axis.client.Service, or an instance of org.apache.axis.client.AxisClient.
    But very stange, I tried to create an instance of org.apache.axis.client.Transport, which should exist in the same package with Service and AxisClien, there was no exceptions.
    can anyone give me some hints?

    Is it a "class not found" error? Have you tried viewing the jar file that you think org.apache.axis.client.Service is in to be sure that it's really in there?
    jar tvf <filename>

  • Can I create multiple instances of  realplayer plug-in in one jsp page?

    I want to play meny video files in one jsp web page, these video files are to be played with the embeded plug-in of realplayer, each plug-in was linked(use its SRC property) a different video file. But, to my surprise, when I press the play button, every player played the same video file,not its specified file.
    I have no idea why it did so and what can I do?
    Whether can I create multiple instances of realplayer plug-in in one jsp page, that is to say, each instance is independent of others?
    thanks in advance!

    Generally speaking, Internet Explorer tries not to launch multiple versions of a plug-in. So what's happening is that you load the first video clip, and then before it has a chance to play, you load the second video clip into the same window. (It's like changing songs in WMA.)
    In some cases - this may not work for Real Player, but it's worth trying - if you spawn a new window through a hypertext link and then launch the plug-in in that window, IE will treat it separately. Otherwise, you could not, for example, run two Macromedia Flash applications from different web sites at the same time.
    Keep in mind that only one program can access the soundcard at a time, so Real Player may purposely "pause" or "cancel" other video streams until the active one finishes. If you were using the desktop version, selecting another video by any means aborts the currently running video (i.e., RP won't let you create a separate instance of it).
    The easiest solution is to create a wrapper JSP file that takes the name of the video clip, and plays it. Call that JSP and specify that it should be opened in a new window via the TARGET keyword in the anchor tag. Then hopefully RP itself won't block a second window from running.

  • Can i create an instance of ArrayList ?

    hi ,
    I need to store first name, last name etc in an ArrayList for a unique userid. And i have to do it for few userids. on successful login of the user ( with unique userid that matches with the one in the arraylist), i need to retrieve user details (first name, last name etc) from that arraylist and display in jsp file.
    Could u please tell me:
    1. how do i go about doing it?
    2 .Can i create an instance of ArrayList and use .add() method to add details ?
    3. can i write some java code in jsp without using scriptlets ?
    Thanks in advance,
    Sanlearns

    Hey thanks so much for the reply.
    Let me tell you the exact scenario. I'm actually developing a struts-application. Hope I can get some help here too.
    I have:
    1. login.jsp-where user logs in.
    -I have a userid and a password as default values for each unique user.
    Where should i store these details -in HashMap??
    -How can I display error messages if userId/passWord is invalid on login.jsp page ??
    2. confirmation.jsp-on successful login, he's shown his details:
    YOur first name: .........
    Your last name: ........ etc.
    -Here I can't use bean:write tag to read from form-bean.
    - how do i display it here without using a scriptlet ?
    3. LoginAction.java
    -Here i will get userId and passWord from LoginFormBean.java setter
    and getter methods.
    -For all validations' results, should i call a boolean getUserDetails() method from form-bean, wherein i can map values(first name, last name etc ) to each key (userid) ?
    i can use methods like:
    if (isValidUserId && isValidPassWord )
    LoginValidateUtil.getUserDetails();
    return mapping.findForward("success");
    But, can I assign many values to a single key using Map ?
    4. LoginFormBean.java
    -Here should I have to use set/getUserDetails() ?
    -If so, how do I use Map there?
    I want to have userId as the only key to which i can map values and not password.
    5. LoginValidateUtil.java
    -Here all validations are defined and boolean result is passed to LoginAction.java.
    Hope you got what I meant.
    Please tell me if i am right in this approach...
    Thanks in advance,
    sanlearns

  • Can we create Named instance without installing Default instance

    Hi experts,
    i'm new for sql dba,
    Can we create Named instance without installing Default instance
    Thanks in advance.
    Regards,
    Madhu

    Yes you can
    You can also have mutiliple instance in think max (16 instances) for différents versions of SQL server (2000, 2005, 2008 and 2012) in the same physical machine.

  • How many server nodes can you create per instance

    Hi,
    Very often the bottle neck in a java installation (NW04s) is the heap size. In order to increase the heap you simple create new server nodes.
    My question is:
    How many server nodes can you create per instance?
    Is there an upper limit before you have to create a new dialog instance (with a web dispatcher)?
    I can imagine that when you create a new server node you also have to increase the heap and max therad of the dispatcher. Is there any upper limit of the heap size of the dispatcher node ?

    Rasmus , I think you laid out a real good scenario for every one to contribute
    I may be very late but just updating this forum for benefit of everyone who visits this.
    In addition to all the points above one must also consider following things if one decides to add more server nodes to one dispatcher
    1.Garbage collection time
    2.Dispatcher would keep on sending request to node S2 if it is not completely bad and there by impacting all the servernode       so  you might end up restartiing the entire cluster.
    3,Debugging also becomes diffculy as you are not sure on which server node you are within the cluster.
    4.If you have something like F5 which does hear beat monitoring even one server node goes bad F5 will not report anything.
    So in my view one server node per dispatcher is an ideal configuration.
    Over All Dispatcher does not consume more resouces (Disk Space + CPU + memory ) at the same time it will give you maintenance flexibility.
    Nothing is right or wrong ,all these things are based on how your infrastructure set up is.
    Cheers !!
    Manish Jain

  • How can I create a link from a CHM file to a webhelp file?

    How can I create a link from a CHM file to a webhelp file?
    The CHM output (accreditation.chm) is stored in a parent directory, and the webhelp output (index.htm) is stored in a child directory.

    Open the usual Link dialog and enter the relative path from where the CHM will be installed to where the webhelp will be installed.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • RE: How can I create a page break in a file?

    Thank you, Glen. I tried WriteText. But it didn't work.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    From: Glen A. Whitbeck
    Sent: Thursday, September 11, 1997 11:59 AM
    To: Wang, Tien
    Cc: forte-users; owner-forte-users
    Subject: Re: How can I create a page break in a file?
    Instead of using "WriteLine," try using "WriteText" ("WriteLine" writes
    TextData into an open file, while "WriteText" writes data to a stream)
    like this:
    <method 1>
    myFile : file = new();
    myFile.WriteText('\f');
    Glen
    Wang, Tien wrote:
    Hi,
    I am creating a text file for a report which contains multiple pages.
    How can I create a page break in my file? I tried to use the
    following
    two methods, but neither of them works. Specifically, it seems a
    special
    character printed in the file. But when I print the file through a
    WordPad, it didn't separate pages.
    I am currently using version 3.0.C on Windows NT 4.0 with a HP Plus 4
    printer. Any help will be greatly appreciated.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    >
    <method 1>
    myFile : file = new();
    file.writeLine('\f'); --- \f is the form feed in the C language
    <method 2>
    myFile : file = new();
    j : IntegerData = new( value = 14 );
    c : char = j.IntegerValue; -- c now contains ascii 14 (form feed)
    p : pointer to char = &c; -- Set a pointer to the character
    pageBreakTxt : TextData = new();
    pageBreakTxt.Concat(p);
    myfile.writeLine(pageBreakTxt);

    Tien,
    Try myFile.WriteText('\x0c'); instead of myFile.WriteText('\f');
    Regards
    Richard Stobart
    -----Original Message-----
    From: Wang, Tien [SMTP:[email protected]]
    Sent: Friday, September 12, 1997 6:09 PM
    To: Glen A. Whitbeck
    Cc: forte-users; owner-forte-users
    Subject: RE: How can I create a page break in a file?
    Thank you, Glen. I tried WriteText. But it didn't work.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    From: Glen A. Whitbeck
    Sent: Thursday, September 11, 1997 11:59 AM
    To: Wang, Tien
    Cc: forte-users; owner-forte-users
    Subject: Re: How can I create a page break in a file?
    Instead of using "WriteLine," try using "WriteText" ("WriteLine" writes
    TextData into an open file, while "WriteText" writes data to a stream)
    like this:
    <method 1>
    myFile : file = new();
    myFile.WriteText('\f');
    Glen
    Wang, Tien wrote:
    Hi,
    I am creating a text file for a report which contains multiple pages.
    How can I create a page break in my file? I tried to use the
    following
    two methods, but neither of them works. Specifically, it seems a
    special
    character printed in the file. But when I print the file through a
    WordPad, it didn't separate pages.
    I am currently using version 3.0.C on Windows NT 4.0 with a HP Plus 4
    printer. Any help will be greatly appreciated.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    >
    <method 1>
    myFile : file = new();
    file.writeLine('\f'); --- \f is the form feed in the C language
    <method 2>
    myFile : file = new();
    j : IntegerData = new( value = 14 );
    c : char = j.IntegerValue; -- c now contains ascii 14 (form feed)
    p : pointer to char = &c; -- Set a pointer to the character
    pageBreakTxt : TextData = new();
    pageBreakTxt.Concat(p);
    myfile.writeLine(pageBreakTxt);

  • How can I create a page break in a file?

    Hi,
    I am creating a text file for a report which contains multiple pages.
    How can I create a page break in my file? I tried to use the following
    two methods, but neither of them works. Specifically, it seems a special
    character printed in the file. But when I print the file through a
    WordPad, it didn't separate pages.
    I am currently using version 3.0.C on Windows NT 4.0 with a HP Plus 4
    printer. Any help will be greatly appreciated.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    <method 1>
    myFile : file = new();
    file.writeLine('\f'); --- \f is the form feed in the C language
    <method 2>
    myFile : file = new();
    j : IntegerData = new( value = 14 );
    c : char = j.IntegerValue; -- c now contains ascii 14 (form feed)
    p : pointer to char = &c; -- Set a pointer to the character
    pageBreakTxt : TextData = new();
    pageBreakTxt.Concat(p);
    myfile.writeLine(pageBreakTxt);
    -----------------------------------

    Tien,
    Try myFile.WriteText('\x0c'); instead of myFile.WriteText('\f');
    Regards
    Richard Stobart
    -----Original Message-----
    From: Wang, Tien [SMTP:[email protected]]
    Sent: Friday, September 12, 1997 6:09 PM
    To: Glen A. Whitbeck
    Cc: forte-users; owner-forte-users
    Subject: RE: How can I create a page break in a file?
    Thank you, Glen. I tried WriteText. But it didn't work.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    From: Glen A. Whitbeck
    Sent: Thursday, September 11, 1997 11:59 AM
    To: Wang, Tien
    Cc: forte-users; owner-forte-users
    Subject: Re: How can I create a page break in a file?
    Instead of using "WriteLine," try using "WriteText" ("WriteLine" writes
    TextData into an open file, while "WriteText" writes data to a stream)
    like this:
    <method 1>
    myFile : file = new();
    myFile.WriteText('\f');
    Glen
    Wang, Tien wrote:
    Hi,
    I am creating a text file for a report which contains multiple pages.
    How can I create a page break in my file? I tried to use the
    following
    two methods, but neither of them works. Specifically, it seems a
    special
    character printed in the file. But when I print the file through a
    WordPad, it didn't separate pages.
    I am currently using version 3.0.C on Windows NT 4.0 with a HP Plus 4
    printer. Any help will be greatly appreciated.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    >
    <method 1>
    myFile : file = new();
    file.writeLine('\f'); --- \f is the form feed in the C language
    <method 2>
    myFile : file = new();
    j : IntegerData = new( value = 14 );
    c : char = j.IntegerValue; -- c now contains ascii 14 (form feed)
    p : pointer to char = &c; -- Set a pointer to the character
    pageBreakTxt : TextData = new();
    pageBreakTxt.Concat(p);
    myfile.writeLine(pageBreakTxt);

  • Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    I’m using version 11.0.10. So where the Menu resides in a folder ready to be burnt on to a CD, that same folder is where the links point to.
    Thanks

  • Can't create an instance of StringTemplate in WSAD 5.1.1

    I have just downloaded and installed WSAD 5.1.1 on my computer. I created a simple web application and added a Servlet. In my Servlet whenever I create an instance of a StringTemplate class (http://www.antlr.org/stringtemplate/index.tml) I get a java.lang.NoClassDefFoundError:
    [19-01-04 20:19:54:328 CET] 3c4c5142 WebContainer A SRVE0169I: Loading Web Module: Proj1.
    [19-01-04 20:19:54:453 CET] 3c4c5142 WebGroup I SRVE0180I: [Proj1] [Proj1] [Servlet.LOG]: JSP 1.2 Processor: init
    [19-01-04 20:19:54:484 CET] 3c4c5142 WebGroup I SRVE0180I: [Proj1] [Proj1] [Servlet.LOG]: SimpleFileServlet: init
    [19-01-04 20:19:54:516 CET] 3c4c5142 WebGroup I SRVE0180I: [Proj1] [Proj1] [Servlet.LOG]: InvokerServlet: init
    [19-01-04 20:19:54:547 CET] 3c4c5142 ApplicationMg A WSVR0221I: Application started: DefaultEAR
    [19-01-04 20:19:54:641 CET] 3c4c5142 HttpTransport A SRVE0171I: Transport http is listening on port 9.080.
    [19-01-04 20:19:56:922 CET] 3c4c5142 HttpTransport A SRVE0171I: Transport https is listening on port 9.443.
    [19-01-04 20:19:56:984 CET] 3c4c5142 RMIConnectorC A ADMC0026I: RMI Connector available at port 2809
    [19-01-04 20:19:57:109 CET] 3c4c5142 WsServer A WSVR0001I: Server server1 open for e-business
    [19-01-04 20:20:01:031 CET] 59ed1140 WebGroup I SRVE0180I: [Proj1] [Proj1] [Servlet.LOG]: HelloServlet2: init
    [19-01-04 20:20:01:469 CET] 59ed1140 WebGroup E SRVE0026E: [Servlet Error]-[antlr/RecognitionException]: java.lang.NoClassDefFoundError: antlr/RecognitionException
         at com.bigjrun.proj1.servlets.HelloServlet2.doGet(HelloServlet2.java:27)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
    I added the StringTemplate.jar on Project -> Properties -> Java Build Path -> Libraries -> Add External JARs
    My code looks like this:
    package com.bigjrun.proj1.servlets;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.Servlet;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.antlr.stringtemplate.StringTemplate;
    public class HelloServlet2 extends HttpServlet implements Servlet {
         public void doGet(HttpServletRequest req, HttpServletResponse resp)
              throws ServletException, IOException {
              PrintWriter out = resp.getWriter();
              try {
                   StringTemplate query = new StringTemplate("SELECT $column$ FROM $table$;");
                   query.setAttribute("column","name");
                   query.setAttribute("column","email");
                   query.setAttribute("table", "users");
                   out.print(query);     
              } catch (Exception e) {
                   // TODO: handle exception
                   out.print("Exception " + e.getMessage());
    }What am I doing wrong?

    I have a project called 'Default EAR' in my workspace.
    But I can't add the JAR to the that project. These instructions are for WSAD 4, but I assume WSAD 5 is similar:
    Go to menu File and select Import. Choose "File System" to import from. Specify "Default EAR" as your folder and select the jar file from the directory/browse prompt.
    This is assuming your web app is connected to Default EAR and not some other EAR file. Also once you've done this, you will find that the jar file automatically becomes part of your build path. You didn't have to do anything extra to make that happen.

  • Why portal server can't create an instance of axis.Service class?

    Hi,gurus,
    We developed a uwl custom connector,The time out occured in that custom connector.After adding the time out value from 30s to 300s,the problem still existed.
    The code is like below:
    String endpoint = "http://172.16.127.4:8080/appframe-web/services/WorkItemService";
    Service service = new Service();    // time out code
    Call call = (Call) service.createCall();
    call.setTargetEndpointAddress(endpoint);
    call.setOperationName("wisForPortal");
    call.addParameter("userCode", org.apache.axis.encoding.XMLType.XSD_STRING, javax.xml.rpc.ParameterMode.IN);/
    call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
    String temp = "36";
    Object result = call.invoke(new Object[]{temp});
    The time out occured when the portal server create an instance of Service class.Does that mean the server can't find the jars?
    But the object declaration like "Service service=null;" is all right.
    Any ideas?Thanks in advance.

    I have a project called 'Default EAR' in my workspace.
    But I can't add the JAR to the that project. These instructions are for WSAD 4, but I assume WSAD 5 is similar:
    Go to menu File and select Import. Choose "File System" to import from. Specify "Default EAR" as your folder and select the jar file from the directory/browse prompt.
    This is assuming your web app is connected to Default EAR and not some other EAR file. Also once you've done this, you will find that the jar file automatically becomes part of your build path. You didn't have to do anything extra to make that happen.

  • How can I create an instance of "java.util.prefs.WindowsPreferences"?

    Hi All,
    I was trying to find out a way to access the Windows Registry to add soome keys and and later add a string.
    I found WindowsPreferences might be useful in the above mentioned context.
    I was trying to create an instance of it, but when I import the class, it says it is invisible.
    Can anyone let me know how to instantiate this class.
    Note:- Under the same package "java.util.prefs" we have another class "Preferences", Iam able to import this one and use it in my code.
    Thank You.
    Regards,
    Suman.H

    It's true that Preferences uses the Registry on Windows systems, that does not mean you can use it as a Registry API. The only part of the Registry you can access are those branches that are set aside for java.util.prefs: HKLM\Software\JavaSoft\Prefs and HKCU\Software\JavaSoft\Prefs. IF you need to access other parts of the Registry, you'll need to use JNI or a separate Windows Registry library.

  • Can we create multiple instances of a Bean in a JSP file?

    Hi,
    I am new to JSP & Servlets programming.
    I need to write a servlet that connects to a database via JDBC ( using IBM DB2 dbms) , sets some Beans with the tuples in the relevant table.
    Then, I need to have a JSP "read" ( or "get") info from the Beans & display the contents to the client.
    ( At a time only 5 tuples must be visible in the UI , with Next & Prev links ...)
    I am using Tomcat 4.0 for this...
    Can any one please help me regarding HOW to go abt it ?
    Esp., should we create 1 instance of a Bean , ( say "DataBean") for EACH tuple , or is there a way to do it with only 1 instance...
    Please, guide me... ( if not possible, at least give me some hints to some GOOD resources ( books, sites,etc.), that deal with this kind of applications)
    Thanks,
    Raghu.

    Once again, thanx a lot for your detailed help -- evnafets !!
    I think I am gaining in my knowledge of JSP & Servlets thanks to your help...
    Now, I am tackling the issue of selecting the BEST way of "STORING" which "PAGE" no. I am displaying.
    Say, I have only 15 tuples(ROWS), & with 5 tuples displayed per page, I have to have 3 "pages", & I need to accomplish the handling of "Prev" & "Next" links using only 1 Servlet & 1 JSP ( apart from the Authorization servlet ).
    I am thinking of storing a "session-scoped" variable called "page-num". Do you think it's the best way?
    Or should I score it as an "application-scoped variable" ( i.e., in the ServletContext ...) ??
    Also, I have got no clues as to which of the following would be a better idea :
    (a) Fetch ALL the tuples in the table & set as many beans. And then display the corresponding 5 tuples in each page.
    Here, more bean instances are needed to hold the data which gets repeatedly passed around ( when Prev & Next links are clicked ).
    OR ..
    (b)Fetch only 5 tuples at a time . I think this may be done by creating a scrollable Resultset & then moving around to the appropriate ROW by saying
    resultSet.absolute( (page_num - 1)*5 + 1 ); & then fetching 5 tuples relative to this row.
    In this case I will need atmost 5 Bean objects per request.
    And YES, one more thing , WOULD you PLEASE try & give me some guidance towards some good references to JSP, Servlets & J2EE ? ( Links, Books, anything ! )
    Sorry for the TROUBLE I gave, but THANKS a lot for the TROUBLE u took ! ;-)
    Thanks & Regards,
    Raghu

Maybe you are looking for

  • 8600 Won't Print to Custom Size Envelopes

    I used to have an HP Office Jet 7410 and was able to print all the addresses for my holiday cards on custom envelope sizes - nothing too out of the ordinary, but not #10.  I have now upgraded (or at least I thought I was upgrading) to the 8600 Premiu

  • Extracting audio

    I have imovie 6 and 8. I have digital video that i would like to take the audio (singing) off and put in Itunes as an audio file. Some please help me figure out how to do this. I can not seem to figure out how to extract the audio in the new imovie 8

  • Convert Pojo to XSD using Java

    Dear Sir, how to convert POJO to XSD format using Java...? give me some clue about conversion.... Thank you, Boss134

  • Unzip the disk1 files

    I can't unzip the zipped disk 1 files for the installation of Oracle 9i database. I find no programme for the unzip of the files with the file extention .cpio

  • HT4059 I am unable to email the full document of notes that I've taken. It only emails the last 4 notes on the section.

    I've taken a ton of notes in ibook's. I've never had a problem emailing them and printing them in their entirety before now. I can't get the complete page of notes to email. Only the last four will email. I've tried restarting my iPad. I've tried syn