How to set the classpath and path from the jsp to call  java class function

Hi Exprets,
I have a requirement to call a java class function which returns a hashmap object from the jsp. The java class in present in one jar file and that jar file is location somewhere in unix path. So the requirement is to set the classpath for that jar file and then create the object of the java class and then call the function.
If any one know how to achieve it, please reply as soon as possible.
thanks in advance,
swapna soni.

It is never advisable to store large data sets in the session. But it will depend on a lot of factors:
1. How costly is the query retrieving the data from the database?
If it's a complex query with lots of joins and stuff, then it will be better to store it in the session as processing the query each time will take a lot of time and will decrease performance. On the other hand if the query is simple then it's advisable not to store it in the session, and fetch it each time.
2. Are there chances for the data to become stale within a session?
In this case storing the data is session will mean holding the stale data till the user session lasts which is not right.
3. How many data sets does the session already holds?
If there are large no. of data sets already present in the session, then it's strictly not advisable to store the data in the session.
4. Does the server employ some kind of caching mechanism?
Using session cache can definitely improve performance.
You will have to figure out, what is the best way analyzing all the factors and which would be best in the situation. As per my knowledge, session is the only place where session specific data can be stored.
Also, another thing, if the data set retrieved is some kind of data to be displayed in reports, then it would be better to use a pagination query, which will retrieve only the specific no. of rows at a time. A navigation provided in the UI will retrieve the next/previous data set to display.
Thanks,
Shakti

Similar Messages

  • How to find out web-inf path from the physical drive?

    How to find out web-inf path from the physical drive?
    I have some user profiles in web-inf directory.SO I want to know the path from root directory like
    d:/program files/allaire/jrun/appname/web-inf/profiles/username like that.
    Presently I am able to get the path upto the application directory and from that I am concatinationg web-inf/profiles/username .
    But it is giving problems when it is deployed under unix or linux.Because web-inf there it treats as WEB_INF
    SO I want to get the path of web-inf directory with out hard coding.
    Thanku

    String path = application.getRealPath("/WEB-INF/profiles/username");
    Note sure why you need this, but you don't need the real path to read the file - you can get an InputStream using the relative path. See ServletContext getResource() and getResourceAsStream().

  • I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?

    I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?

    Well the error message is in Swedish but says: The installation program database is damaged. Please contact the Adobe support (which is a hard thing to do!!). I use Windows 7 Home Premium with service pack 1.
    Från: Mylenium 
    Skickat: den 29 december 2014 16:48
    Till: Tony Bohman
    Ämne:  I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?
    I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?
    created by Mylenium <https://forums.adobe.com/people/Mylenium>  in Downloading, Installing, Setting Up - View the full discussion <https://forums.adobe.com/message/7050595#7050595>

  • I want to copy fotos to a mass storage external HD, but my emac only allow me to copy from the HD to the mac and not from the mac to the HD, how can I do it? thanks in adavance for your help

    I want to copy fotos to a mass storage external HD, but my emac only allow me to copy from the HD to the mac and not from the mac to the HD, how can I do it? thanks in adavance for your help

    The external HD might be set to Read Only on your eMac.  Try this:
    If the external HD shows on your desktop, single click the HD to highlight it.  From the Finder Menu bar at the top of the screen, click on File, pull down and click on Get Info.  At the bottom of window that opens, under Sharing and Permissions, you might see something like:
    System:  Read & Write
    Admin:  Read & Write
    User X:  Read Only
    User X being your user account.
    Good luck.

  • HT1848 How do I download content and apps from the iTunes Store to my computer, and then sync them to iPhone

    How do I download content and apps from the iTunes Store to my computer, and then sync them to iPhone

    Nevermind I got it
    I went to itunes on my iphone and clicked on purchesed and then went to not on this iphone and downloaded it
    Thank you all so much for you time and sorry im new to this

  • How do I toggle back and forth from the live site in the tutorial to the working site?

    How do I toggle back and forth from the live site in the tutorial to the working site?

    I think that if you scroll down the page to the third video, you will find what you're looking for.
    Best regards,
    Randy Nielsen
    Product Integration Manager, Creative Cloud Learning
    Adobe

  • How to get customer number and name from the SD document

    Hi All,
    Can you please let me know how to get Customer Number and Name from the SD Document?
    Thanks a lot....
    Anil

    Hi,
    It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
    regards,
    radhika
    Edited by: kolipara radhika on Jul 10, 2009 5:32 AM

  • How do I access photoshop and illustrator  from the creative cloud on my i mac?

    how do I access photoshop and illustrator  from the creative cloud on my i mac?

    Log in to your Cloud account to be able to download and install
    Some general information
    http://www.adobe.com/products/creativecloud/faq.html
    http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
    what is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Cloud Getting Started https://helpx.adobe.com/creative-cloud/topics/getting-started.html

  • After reinstalling game, the achievements from Game Center doesn't uploaded to the game and starts from the beginning . All the achievements are seen in the Game Center . How could I upload the last progress into the game?

    After reinstalling game, the achievements from Game Center doesn't uploaded to the game and starts from the beginning . All the achievements are seen in the Game Center . How could I upload the last progress into the game?

    Hello there, Elena Lyubina.
    The following Knowledge Base article offers up some great steps for troubleshooting issues with an application not functioning as expected:
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open
    http://support.apple.com/kb/ts1702
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How do I export words and definitions from the glossary widget in C7?

    How do I export words and definitions from the glossary widget as XML? I need to use the same glossary in several projects. When I copy and paste the widget to a different project about 1/2 of the definitions disappear. Figured I would try exporting the words then importing them back in new glossaries in each project. Using 7 on a Mac.

    Yes i read, and the answer to the main question is still the same, you cannot export, you just can import definitions if you previously have structured them into an xml file. So, first of all it would be useful to warn the user to ALWAYS start from an xml file BEFORE starting populating the glossary. Furthermore, not all users are supposed to manage easily an xml editing, and the widget itself has been programmed to insert the definitions with a simple method, so it would be necessary also to have an instrument to export to xml for importing purpose. Storyline has the same lack, you cannot move glossary from one project to another but you are forced to start from an old project or insert the glossary itself into a master project. You will agree with me that an xml export feature is not something so difficult to add for the widget. In my personal example, i added about 200 definitions, then i discovered that the glossary of captivate 7 does not work well in html5, the new one in captivate 8 is little bit better, but still not working on chrome (at least on ipad it shows, but you cannot show a button over it since it goes always on the top of everything, so at the moment i inserted a big transparent square behind it to close everyting like a lightbox). This widget is still very buggy and need to be improved.

  • For preparing the filenames and paths for the oracle database files..

    Hi,
    I am preparing the filenames and paths for the oracle database files.....but I am not able to complete this one...Will you Please help for filling this one.
    Controlfile ---- > select name from v$controlfile;
    Redologfile -- > select member from v$logfile;
    Datafile --------- > select tablespace_name,file_name from dba_data_files order by 1;
    Tempfile --------> select tablespace_name,file_name from dba_temp_files;
    Spfile -----------> show parameter spfile
    Pfile --------------->
    Passwordfile ---->
    tnsnames.ora -->
    listener.ora------>
    sqlnet.ora ------>
    oratab ------------->
    Thanks
    Shiju

    orashiju wrote:
    Hi,
    I am preparing the filenames and paths for the oracle database files.....but I am not able to complete this one...Will you Please help for filling this one.
    Controlfile ---- > select name from v$controlfile;
    Redologfile -- > select member from v$logfile;
    Datafile --------- > select tablespace_name,file_name from dba_data_files order by 1;
    Tempfile --------> select tablespace_name,file_name from dba_temp_files;
    Spfile -----------> show parameter spfile
    Pfile --------------->spfile and pfile are located under $ORACLE_HOME/dbs/
    Passwordfile ----> passwordfile is located under $ORACLE_HOME/dbs
    tnsnames.ora -->
    listener.ora------>
    sqlnet.ora ------>all above files are under $ORACLE_HOME/network/admin
    oratab ------------->depends on operating system. Usualy under /etc/oratab

  • I can't extract the msi and files from the 11.0.02.exe it is asking for a password!

    I can't extract the msi and files from the 11.0.02.exe it is asking for a password!!!!  Help

    From where did you download the exe?
    How exactly are you trying to extract it?

  • My friend's iPod touch 5th gen is locked somehow for 41 years and she does not have a backup. Is there a way to unlock the iPod without restoring it or loosing the pictures and videos from the camera roll?

    My friend's iPod touch 5th gen is locked somehow for 41 years  and she does not have a backup. Is there a way to unlock the iPod without restoring it or loosing the pictures and videos from the camera roll, the applications can be redownloaded and she had no music. Is there any known bug about ipods locking on their own because no one seemed to have tried to bypass the 4 digit code and it is locked for 26 million minutes.So thank you if anyone has any information or help for us.

    Your friend may have placed the ipod next to an object that repeatedly pressed the screen.  Under certain circumstances this can lead to what appears to the iTouch to be failed attempts to access the system.  After repeated failed attempts, the Touch increases the waiting time required for the password and may ultimately lock in the way you describe.
    It's been a while since this was posted, but this might be informative to someone else who finds themself in a similar predicament.

  • How do I set up 2 different IPOD's on the same computer without having all the songs and games from the first one copy onto the second one?

    how do I set up 2 different IPOD's on the same computer without all the songs and games from 1 copying to the other?

    - Disable autosyncing: go to iTunes>Preferences>Devices and check the box that says "Prevent iPods ...syncing">
    - Connect the iPod and go to the music, apps and other panes for the iPod and check the boxes that say only sync the checked items.

  • How do you get the web application path from the servlet?

    I have created a web application which is installed in
    /webapps/myApplication
    /webapps/myApplication/data/users.xml
    /webapps/myApplication/WEB-INF/classes/myServlet
    How can you get the path to the "users.xml" file from the "myServlet" file?
    The code below doen's seem to return the xml file. anybody knows why?
    public class myServlet extends HttpServlet {
    public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException
    File myXmlFile = new File("/data/users.xml");

    Try this..
    String FileName = getServletContext().getRealPath("\\data\\users.xml");
    File myXmlFile = new File(FileName);
    hope this helps..

Maybe you are looking for

  • How to send html in an email (46C) using SO_NEW_DOCUMENT_SEND_API1

    I am having trouble sending an email so that it appears in HTML format, nice and pretty.  I have been experimenting with FM SO_NEW_DOCUMENT_SEND_API1 and ATTSEND_API1.  I have been able to successfully send an email to myself (using an email address

  • GDM not starting

    I just upgraded to GNOME 3.8 through the gnome-unstable repo, but GDM doesn't seem to be starting. The main problems seem to be that it's "unable to create drawable", that the gnome-settings-daemon is unavailable, and there are some font-config issue

  • Rename a set of files in Power Shell

    Hello Scripting Guys, I am trying to rename a group of files in a given directory.  The files all start with a number and a dash (such as "1 - " or "24 - ") when I first get them. Sometimes there are files that do not start with a number or a dash in

  • Combine 2 Answers and divide the results

    Hello, Is it possible to further calculations of results of two-generated queries. I created two queries. The results can I view in the dashboard. However, I am unable to carry out further calculations with the results. Now I wanted to divide a query

  • Finder DOES NOT Respond after Restart, Or Shut Down

    I am running an iMac G5 on OS X 10.5.4, After a shut down or restart, Finder does not respond, The only thing on my desktop is My HD and Chosen wallpaper. I can launch Apps from the Dock, but not folders from the dock, Not Downloads folder, Documents