Plz help me regarding jsps

Hi all,
I have menu.jsp which is included in 100 jsp's
in menu.jsp i have lots of db calls so each and evry action this menu is getting called so my application performence is getting decreasing so how can i include menu.jsp in all 100 jsps so i my application works faster and faster.., any suggetions are welcome
Regards
Rajani

if you know the ans tell me or els dont make joke of
itI wasn't making a joke, you quite clearly didn't bother reading my post. you just saw that I hadn't spoon-fed you code like you hoped, and moved on. this happens every single day. and since this is a free forum, I think I'll choose for myself what and who I reply to, and in what manner

Similar Messages

  • Plz Help(Reg javascript & jsp)

    hi all
    I am new to java .i strcked in one situation.
    in appl, i used scriptlet code in javascript.
    can i write script let code in javaScript.there is any prob,while writing sciptlet code in javascript.
    i posted my code here .plzz help me.
    function sendvalues(firstinstall){
    var installmentfee = new Array();
    <!--installmentfee is an array to store resp installment fees-->
    <%
    for (int j = 0; j < al.size(); j++) {
    InstallmentVO insVo = (InstallmentVO) al.get(j);
    %>
    installmentfee[0]=firstinstall;
    installmentfee[<%=j+1%>] ="<%=insVo.getTotalFee()%>";
    alert(installmentfee[<%=j%>]);
    <%}%>
    alert(installmentfee[2]);
    var val = document.form.money.value;
    <% int k=0;%>
    while(val>=0) {
    alert("k"+<%=k%>);
    if(val>installmentfee[<%=k%>]){
    val=val-firstinstall;
    document.form.installamount<%=k%>.value = (firstinstall);
    bal=0;<% k++;%>
    }else{
    document.form.installamount<%=k%>.value = (val);
    bal=(firstinstall)-(val);
    val=-1;<% k++;%>
    document.form.balance0.value =bal ;
    if(document.form.balance0.value<=0){
    document.form.FullPaid0.value = 'Y';
    else{
    document.form.FullPaid0.value = 'N';
    document.all['Layer1'].style.visibility = "visible";
    return false;
    plz help me.

    can i write script let code in javaScriptNo you cannot use scriplet code in a java script,
    scriplets are only used in JSP files.
    Kind Regards
    WernsScriplets are only used in JSP files.
    But OP's question was - can i write script let code in javaScript?
    According to my understanding, its possible. Yes, we can write scriplet codes in java script as below
    <html>
    <head>
    <title>Scriplet tags in Javascript</title>
    </head>
    <script>
    function foo(){
         <%System.out.println("Scriplet tags in Javascript");%>
    </script>
    <body>
    <form name="index" onSubmit="index.jsp" method="post">
    <input type="submit" name="submit" value="Submit" onClick="foo()">
    </form>
    </body>
    </html>and, U cant use scriplet tags in a javascript file(js file)
    Am I correct? Comments pls....
    Cheers.
    Message was edited by:
    astelaveesta

  • PLZ HELP ME PROBLEM :- JSP Pages is slow

    HI, i am using oracle 10g application server to deploy my jsp pages.
    When i am running the jsp page ie. default.jsp which consist of three combo box which are dependent on each other.
    Database :- oracle 10g.
    Logic : I am retrieving all the data from the database in to a nested structure and using that nested structure to fill up in the combo box,
    Problem : when i m refreshing or opening the page , it takes a lot of time to open. well the data are also not so much huge that it take some time. ]
    Plz help me

    Why have you declared your own interface Tag?
    The server knows nothing about your custom classes.
    You should be implementing the javax.servlet.jsp.tagext.Tag Interface.
    Actually the easier way is for your tag to extend SimpleTag, which implements the basic interface for you, leaving you to override the bit you want to.
    Check out the API: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/package-summary.html

  • Plz Help me regarding oracle  event alerts..... Its urgent !!

    Hi all,
    How to create oracle event alert when particular column is update. plz help me.... Acutually i need email alert when ever list price for an item column in pricing table get updated+... plz. Its urgent.

    In that thread,... gareth.roberts say to modify the trigger definition to the column. Actually i am new to oracle >alert. How do i get that trigger definition and from where i have to get. and how to modify the trigger definition . >
    plz...Need not to say like that, I am just trying to help you. I believe if you are new try to read and understand the documents and process. Please start with Oracle Alert User's Guide to create a alert and send notification.
    I do not have any ready made scenario, I can refer you the documents to do the same,
    [How to Create a Basic Trigger|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=119667.1]
    [RDBPROD: How to Create an Update Trigger Which Depends on Any Other Field|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=68037.1]
    To view the Trigger Information you can use TOAD and modify the same as per your need.
    Thanks,
    Anchorage :)

  • Plz help me regarding scripting in adobe forms..urgent

    Hi all,
    I have the requirement to print <b>subtotal for each page in the layout</b>.Please tell me how to do the scripting  to find out subtotal in the form object.
    and also i want to know how to refer each field in the hierarchy .
    i would be greatful if you help me

    In that thread,... gareth.roberts say to modify the trigger definition to the column. Actually i am new to oracle >alert. How do i get that trigger definition and from where i have to get. and how to modify the trigger definition . >
    plz...Need not to say like that, I am just trying to help you. I believe if you are new try to read and understand the documents and process. Please start with Oracle Alert User's Guide to create a alert and send notification.
    I do not have any ready made scenario, I can refer you the documents to do the same,
    [How to Create a Basic Trigger|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=119667.1]
    [RDBPROD: How to Create an Update Trigger Which Depends on Any Other Field|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=68037.1]
    To view the Trigger Information you can use TOAD and modify the same as per your need.
    Thanks,
    Anchorage :)

  • DMS-Object link to business partner (ISU-Module) required. Plz help.

    Hi all,
    I require to give an object link from DMS to Business partner of ISU module t code BP.
    So checked up in SPRO- Control data- maintain key feilds, & i found that BUT001 is the transparent table which is used here. so i inserted the same in object link for my document type, but there was no screen no defined to it so i gave the screen no as 500, the tab has appeared under the objectlink tab in DIR, but the screen is not appearing, it is blank, also in the business partner Transaction the DIR table is not appearing.
    What should i do? is there any other setting required, or the table which i have found is wrong. Plz help.
    Regards
    Tushar.

    Hi,
    Have you solved your issue? I want to have the same link. If you have please give me a step by step description.
    I saw the screen number for general business partner is 1249, maybe you can use this.
    Regards Camilla

  • Plz help me.....How to write rtf text in a file

    Hi all,
    i m creating a rtftextEditor.. with bold, italic ,underline, strikethroug features... i want to save the text with this attributes in a file but the strikethrough attribute does not save in the file.
    the code for that i write is..
    File file=new File(curFileName);
    OutputStream fo=new FileOutputStream(file);
    rtf.write(fo,doc,0,doc.getLength());
    fo.close();
    so wat can i do now.plz help me
    Regards...

    Sun's RTF package is old and I am not sure they have plan to update it. Many RTF keywords are not handled by the java RTF package. You might want to modify their rtf package. Most of the files in this package are protected, only the RTFEditorKit is public. Look into the src.zip file and check out the RTFGenerator.java file.

  • Compaq presario c795tu sound driver needed...plz help me...

    Plz help me ...... i need conexant HD smart audio 221 sound driver.....
    Actually i reinstalled the XP and came to know that the sound is not coming...
    when i checked it...sound driver was missing some files likes AUDSYS.exe and UIU32A.exe etc.
    By mistake, my friend had been uninstalled the sound driver. then the problem has been increased...
    2 days back...i went to local compaq shop...they installed some sound driver which is working but at the same time 
    head phone and speaker both are working continuously...means if u want to listen through head phone... speaker also working with head phone....
    sound is coming through both devices.....
    Plz help me regarding this....and provide me presario c795tu audio driver..... 
    This question was solved.
    View Solution.

    Hi,
    Here are the drivers.
    Unzip to a folder...use Device Manager.
    From Device Manager,right click "Audio Device on High Def Bus",choose Update driver,
    No to connect,
    Install from a list or specific location,
    Select Don't Search, I will choose the driver to install,
    For the Hardware Type select 'Show All Devices'
    Remove the check from "Show Compatible Hardware" and click on "Have Disk".
    Next...browse to the unzipped folder and choose the "WiSVHe5.inf".
    Ignore XP when it complains.
    Reboot.Hi,
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

  • Classpath problem plz help me

    hi!
    i am unable to run my RMI server program .Name of My server class is SumServer.java,it implements SumInterface.java all the files(.class,.java and stub) are at location c:\javaprog\rmi\sum.
    I have not put them in any package.
    value of classpath is
    classpath=c:\jdk1.4\lib;.;c:\javaprog\rmi\sum
    i go in sum folder and run the program
    c:\javaprog\rmi\sum > SumServer
    it gives me following exception.plz help me out.
    Thx in advance.
    Exception occur.Unable to register serverjava.rmi.ServerException: RemoteExcepti
    on occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
    tion is:
    java.lang.ClassNotFoundException: SumServer_Stub

    Deepa lakshmi wrote:
    Hi,
    Am new to weblogic.
    Am using the tools are,
    Weblogic8.1 version
    MySql5.0,mysql-connector-java-3.1.12-bin.jar file
    While test configuration of connection pooling am getting the error is "JDBC Driver is not on the classpath".
    How can i solve this problem
    plz help me
    regards
    DeepaEdit the start-weblogic script. Near the bottom, you will see
    lines that create a CLASSPATH for the weblogic server. Add a
    script line that adds the mysql driver to the classpath there.
    Joe

  • How do i pass parameters from j2me to jsp?plz help

    hi everyone...
    i m doing my final year project
    can anyone plz tell me how to pass parameters like user name,password,etc.. from a j2me midlet to a jsp page running in tomcat server?
    i tried passing parameters in http connection through url as:
    String url="http://localhost:8080/example/test.jsp?name=abc";
    i need this info urgently as i am not able to proceed with my project... plz help
    any suggestions or references would be appreciated...
    thank u...
    regards,
    Rinzi

    JHD
    hi.
    you have written in URL i sperfectly right but if this is also not complete one.
    i.e url = "http://localhost:8080/dir/xxx.jsp?userName=jasmit&password=vala"
    now when u establishing connection i.e
    HttpConnection con = (HttpConnection) Connector.open(url,3);
    this will work as an declaration but if u want to send that parameter for that you have to get response from the server and that time only original connection is going to establish i.e
    when u r writting
    int responseCode = con.getResponseCode();
    if(reponseCode == 200)
    then ur parameter were passed to jsp page.
    in jsp page u have to get parameter using request class
    String userName = request.getParameter("userName").toString();
    String password = request.getParameter("password").toString();
    i hope this might solve ur problem.
    Regards,
    Jasmit vala
    [email protected]

  • Plz help me work out in jsp

    hai to all
    I am new to Jsp,plz help me how to define and declare the Function in Jsp, if i declare and define the function and how i call the function within a jsp.
    i worked the Jsp in the Tomcat 5.5 Environment it shows me some error.
    The sample coding which i have worked out is
    <html>
    <title> Sample code for calling a jsp </title>
    <head> </head>
    <body>
    <%!
    public void function()
    out.println("hai");
    %>
    <h1> hello Good Morning </h1>
    <%
    function();
    %>
    The Error which are shown in the Tomcat Environment is
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 15 in the jsp file: /call.jsp
    Generated servlet error:
    out cannot be resolved
    Regards
    udhaya.c

    The implicit objects are avbl only inside scriptlets <%........%> and not inside your own custom methods (which you shouldnt anyways be having, in first place. However its ok since you have just about begun with jsps).
    To use the implicit 'out' object within custom methods, you will have to pass them as parameters when you call the methods from within your scriptlets.
    Try this
       <% @ page import="java.io.*"%>
      <html>
    <title> Sample code for calling a jsp </title>
    <head> </head>
    <body>
    <%!
    public void function(PrintWriter out) throws IOException
    out.println("hai");
    %>
    <h1> hello Good Morning </h1>
    <%
    function(out);
    %>cheers,
    ram.

  • JSP Send Mail Application, plz help

    Hi,
    I have written a jsp send mail application, but it is giving error that NoSuchProviderException. What to do? Plz help. I m sending the code as below:
    <%@ page import="java.util.*, javax.mail.*,javax.mail.internet.*" %>
    <html>
    <head>
    <title>E-Mail Us</title>
    </head>
    <body bgcolor="white" text="#003399" >
    <%
    if(request.getMethod().equals("POST") )
    boolean status = true;
    String mailServer ="SMTP_HOST";
    String fnm = request.getParameter("fnm");
    String lnm = request.getParameter("lnm");
    String facility = request.getParameter("facility");
    String subject = request.getParameter("select");
    String fromEmail = "[email protected]";
    String toEmail = "[email protected]";
    String bccEmail = "[email protected]";
    String contact =request.getParameter("select2");
    String way =request.getParameter("way");
    String messageEnter = request.getParameter("message");
    try
    Properties props = new Properties();
         props.put("mail.smtp.host", mailServer);
    props.put("mail.smtp.auth", "true");
    Session s = Session.getInstance(props,null);
    MimeMessage message = new MimeMessage(s);
    InternetAddress from = new InternetAddress(fromEmail);
    message.setFrom(from);
    InternetAddress to = new InternetAddress(toEmail);
         InternetAddress bcc = new InternetAddress(bccEmail);
         message.addRecipient(Message.RecipientType.TO, to);
    message.addRecipient(Message.RecipientType.BCC, bcc);
    message.setSubject(subject);
         message.setSentDate(new Date());
    message.setText(messageEnter);
         message.setText(way);
         message.setText(contact);
         message.setText(facility);
         message.setText(fnm);
         message.setText(lnm);
         Transport transport = s.getTransport(mailServer);
    transport.connect(mailServer, "USER", "PASSWORD");
    transport.sendMessage(message, message.getAllRecipients());
    transport.close();
    catch(NullPointerException n)
    System.out.println(n.getMessage() );
         out.println(n.getMessage());
    out.println("<br><br><br><br><center><b>"+"ERROR!!!"+"</b></center>");//you need to enter a message"+"</b></center>");
         out.println("<br><br><center><b>"+"You need to Enter a message"+"</b></center>");
    status = false;
    catch (Exception e)
    System.out.println(e.getMessage() );
         out.println("<br><br><br><br><center><b>"+"ERROR!!!"+"</b></center>");
    out.println("<br><br><center><b>"+"Your Message to " + toEmail +" and "+ bccEmail+ " failed, reason is: " + e);
    status = false;
    if (status == true)
    out.println("<br><br><center><b>"+"Your message to " + toEmail +" and "+ bccEmail+ " was sent successfully!"+"</b></center>");
    else
    %>
    <center>
    <h1>Contact Us</h1>
    <form method="post" name="mail" action="mail.jsp">
    <table border="0">
    <tr>
    <td><b>First Name :</b></td>
    <td><input type="text" name="fnm" size=24></td>
    </tr>
    <tr>
    <td><b>Last Name :</b></td>
    <td><input type="text" name="lnm" size=24></td>
    </tr>
    <tr>
    <td><b>Facility :</b></td>
    <td><input type="text" name="facility" size=24></td>
    </tr>
    <tr>
    <td><b>Subject :</b></td>
    <td> <select name="select">
              <option>-------------------------------</option>
    <option>Missing File</option>
    <option>Correction Issue</option>
    <option>Refer Us</option>
    <option>Miscellaneous</option>
    </select></td>
    </tr>
    <p>
    <tr>
    <td><b>Comments :</b></td>
    <td><textarea name="message" rows = "10" cols="50"></textarea></td>
    </tr>
    <tr>
    <td><b>Best way to contact :</b></td>
    <td>
    <select name="select2">
              <option>--------------</option>
              <option>Phone</option>
    <option>Email</option>
    <option>Fax</option>
    </select>
    <input type="text" name="way" size=24></td>
    </tr>
    </table>
    <p>
    <font face="Helvetica"><input type="submit"
    value="Submit" name="Command">
    </font>
    </form></center>
    <%
    %>
    </body>
    </html>

    Ur messaging server will not be up..
    regards
    shanu

  • How to open a JSP page from a form ??? plz help

    hi ..
    i want to know how to open a jsp page from a oracle apps form using a button .
    the requirement is that whenever we click on the button created on the form, it opens a jsp page.
    plz help me ..its urgent !! :-(

    In portlet project, to navigate between pages, you should not use the URL property to link to a page. Instead, portlets use navigation via action handling. You use the Page Navigation editor to set up links to pages; that is, the navigation editor sets the action property.
    Here is an example to hyperlink ans button to open a new page:
    # From within the IDE, create a new portlet project. This action creates the project and one page, PortletPage1.jsp.
    # Create a second portlet page, called PortletPage2.jsp, for the project.
    # Drop a Hyperlink component onto the first portlet page, PortletPage1. (You can drop the Hyperlink on the page in the Design window or on the PortletPage1 node in the Outline window.) Change the Hyperlink's text property to Next Page.
    # Drop a Button component (found in the Basic section of the Palette) onto the second portlet page, PortletPage2.
    # Open the Page Navigation Editor. It displays the two pages (PortletPage1.jsp and PortletPage2.jsp) of the application.
    # Click the PortletPage1.jsp icon in the Navigation window to expand it, and then drag a connector from hyperlink1 to PortletPage2.jsp. Change the name of the connector from case1 to Page2.
    # Click the PortletPage2.jsp icon in the Navigation window to expand it, and then drag a connector from button1 to PortletPage1.jsp. Change the name of the connector from case1 to Page1.
    # Run and deploy the portlet. The browser displays PortletPage1 and you should see the Next Page hyperlink. When you click the Next Page hyperlink, the Apache Pluto Portal server displays PortletPage2. Click the Page2 button to return to PortletPage1.
    Sherry
    Creator Team

  • Tabs in JSP- Plz help-Urgent

    I want to have 3 tabs say Tab1, tab2, tab3 in my page and based on which tab is clicked , I have to display the contents of a table.
    Ex: if Tab1 is clicked, i have to display contents of Table1 and tab2,table2 and so ...
    Plz help with how to link the click on the tab to calling of the JSP file which retrives and displays the data???....
    Its urgent ;plz help

    dnamiot ,
    I'm also looking for similar funcitonality.
    the URL mentioned in your reply is not free ware. you know, it is tough to convince management to buy a software for the project even it is $1.
    So if you know any taglibrary which is free ware , which generates maximum of 4 tabs and dynamic in nature, please let me know.
    Thanks in advance
    tekbond

  • JSP send mail exception,plz help

    Hi,
    I have written code for mail program in jsp but it gives "javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketException: Connection reset "
    what will be the reason for this plz help.
    thanks

    restart your machine then it s will be corrected...i mean socketexception
    i have found my problem...its a problem about delaying emails like spam protection...ur mail server and and script must run on the same ip...and so my problem solved...
    maybe there is a trick for delaying emails even they dont run under the same ip but i dont know..!

Maybe you are looking for

  • No account is specified in item 0000001037

    Dear Gurus, Sales return is being performed. During Accounting posting for Credit memo, we are getting this error.. I have checked VKOA Settings. Material Acc posting., Customer Acc posting. In Billing document, Revenue acc analysis.. GL account has

  • Best Practice for vDS, Uplinks and TF ?

    Hi, Three questions about vNetwork Distributed Switch: My environment: - Datacenters: 2 - Hosts: 50 (25 in each datacenter) - Cluster: 10 (5 in each datacenter) (2 to 5 nodes per cluster) - Nics Hosts:      - 1 nic for management      - 1 nic for red

  • Embarrassed kt400 user

    Ok I have for a while now came to the conclusin that a 200mhz fsb no matter the multiplier was impossible with this mobo! thinking the chipset was at fault! well guess what it is not!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Friend of min

  • How can I permanently enlarge the default size for pop-ups?

    I use several sites that employ pop-ups. The default size is too small, so I have to manually enlarge each pop-up. How can I set the default size for pop-ups to a larger size. I don't want them maximized, just larger than the default.

  • HT4718 By mistake, I delete OS X lion from my MAC app store "purchases"  how could I get it back?

    By mistake, I delete OS X lion from my MAC app store "purchases"  how could I get it back.?