jsp:include is not working on weblogic

I have a problem I write the following code
html>
<head>
<script LANGUAGE="javascript" SRC="js/tab.js"></script>
<LINK href="stylesheets/global.css" type=text/css rel=stylesheet>
<title>JobSpinner Status</title>
</head>
<body class="bodymargin" onload="setpage(1)">
<jsp:include flush="true" page="JobSpinnerTab.jsp"></jsp:include>
<form id="loginForm" action="/jobspinner/JobStatus.faces" method="post">
<input type="hidden" name="loginForm" value="loginForm" />
<nobr>
It is working fine on four to five PC we have checked .
But the problem is that it is not working on a particular weblogic Server 8.1 SP2 .
Can someone help me .
Regs
Amit Verma

Are other JSP tags working on the page?
eg
Server info = <%= application.getServerInfo() %> <br>
Servlet engine version = <%=  application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
Java version = <%= System.getProperty("java.vm.version") %><br>
Java home = <%= System.getProperty("java.home") %><br>Your page might be being interpreted as HTML rather than passed through the JSP engine.

Similar Messages

  • Jsp:include does not work in 8.1 SP3?

    Hi all,
              I need to include a local file (external to the app) in jsp code. The external file includes an image map which changes very so often. So in order to avoid doing a build everytime, I thought about keeping the image map in a file which can be "included" in the jsp file, making it very dynamic to a change.
              So I have a servlet which will read this file and output the contents to response.getWriter(), which will be included in calling jsp code.
              But the jsp file does not seem to call the servlet at all.
              Here is the code in the jsp file:
              <%
              String sFileUrl = "/Prj/RenderReport?file=OrgChart.html";
              %>
              <jsp:include page="<%=sFileUrl%>" />
              What am I doing wrong? Is this not possible at all?
              Thank you all in advance.

    hi pjoshi,
              <jsp:include page="hello.jsp" /> tag is working fine in weblogic 8.1 sp3.
              I think it might be syntax error in your jsp page.
              This is the syntax to including dynamic files in jsp using <jsp:include page="" />tag as given below.
              <jsp:include page="{relativeURL | <%= expression %>}" flush="true" />
              go through the below link and you will find exact information how to include dynamic files in jsp using <jsp:include page=""/>
              http://java.sun.com/products/jsp/syntax/1.1/syntaxref1112.html
              --Anilkumar kari                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • JSP include directive not working with Tomcat 5.0

    Hi.
    I'm developing a small JSF webapp under Tomcat 5.0. My idea was to use the include directive to display a navigation panel on every JSP page.
    I took the code straight from the Java Web Services Tutorial; the resulting page looks like this:
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
           version="2.0">
    <jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
    <%@ include file="/jsp/panelpage_header.inc" %>
         <h:outputText value="Welcome!"/>
    <%@ include file="/jsp/panelpage_footer.inc" %>
    </jsp:root>However, when I try to load the page, a compilation error occurrs:
    org.apache.jasper.JasperException: /trias/welcome2.jsp(11,2) The content of elements must consist of well-formed character data or markup.
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
    ...I checked the path to the included files, and it seems to be okay. The files themselves contain the JSF tags for the view, html-head, html-body etc. The compiler doesn't even care if the files exist or not because it aborts immediately when it reaches the first include-statement.
    Did anyone see this kind of error before?

    Ok, the solution with jsp:directive.include works,
    if header.inc and footer.inc themselves are well
    formed too. If I understood the concept right this is
    because header and footer are processed during
    request time and therefore interpreted as
    'standalone' pages.This isn't true. The include directive (<jsp:directive.include>) is run a Compile Time. The code is inserted directly into the surrounding JSP (unlike <jsp:include> which forwards the request at runtime). The finished JSP, after the include, is then processed and needs to be well-formed XML.
    >
    But: What can I do when these two files define a tag
    that should enclose my current page (for example,
    header opens a panelGrid-Tag, and footer closes it).
    For this case I thought the use of the
    @include-directive would be neccessary to combine the
    three pages during compilation. By this the resulting
    page would be well-formed although header and footer
    are not.It should be, as long as you are using <jsp:directive.include>, and the rest of the included pages are also well formed (no <% %> tags, nothing else out of place...).
    Honestly, I haven't done much work with JSP documents, so I haven't run into this problem. But I do believe everything I said is correct.
    What I would do is double check the correctness of the rest of the included pages and see if your error isn't something else.

  • JSP PRECOMPILER IS NOT WORKING WITH WEBLOGIC 6.1 SERVICE PACK 5

              When i compile JSPs using JSP PreCompiler in weblogic 6.1
              ( Service Pack 4 ) , compilation is perfect.
              But when i precompile the same JSPs with weblogic 6.1 (Service Pack 5 )
              , i get compilation error.
              Variable Not Found error comes in service pack 5. But the same code works
              well with service pack 4.
              Could anyone help me ?
              [java] C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
              NF\classes\jsp_servlet\_secure\__confirmation.java:280: cannot resolve symbol
              [java] symbol : variable yesLinkPageText
              [java] location: class jsp_servlet._secure.__confirmation
              [java] htmllink0.setPage(yesLinkPageText); //[ /secure/co
              rmation.jsp; Line: 32]
              [java] ^
              [java] C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
              NF\classes\jsp_servlet\_secure\__confirmation.java:378: cannot resolve symbol
              [java] symbol : variable noLinkPageText
              [java] location: class jsp_servlet._secure.__confirmation
              [java] htmllink0.setPage(noLinkPageText); //[ /secure/con
              mation.jsp; Line: 37]
              [java] Error: compilation of jsp file /secure/confirmation.jsp (java file C
              VSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WEB-INF\classes
              p_servlet\_secure\__confirmation.java failed):
              [java] ^
              [java] null
              [java] 2 errors
              [java] Error: [jspc]: 1 file(s) failed:
              [java] /secure/confirmation.jsp
              [java] java.io.IOException: Compiler failed executable.exec(java.lang.String
              

    Can you post the jsp page or a example which doesnt compile in sp5. It seems
              difficult to guage what the problem could be from looking at the error.
              --Nagesh
              "george vargeese" <[email protected]> wrote in message
              news:40c56502$1@mktnews1...
              >
              > When i compile JSPs using JSP PreCompiler in weblogic 6.1
              > ( Service Pack 4 ) , compilation is perfect.
              >
              > But when i precompile the same JSPs with weblogic 6.1 (Service Pack
              5 )
              > , i get compilation error.
              >
              > Variable Not Found error comes in service pack 5. But the same code
              works
              > well with service pack 4.
              >
              > Could anyone help me ?
              >
              >
              > [java]
              C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
              > NF\classes\jsp_servlet\_secure\__confirmation.java:280: cannot resolve
              symbol
              >
              > [java] symbol : variable yesLinkPageText
              > [java] location: class jsp_servlet._secure.__confirmation
              > [java] htmllink0.setPage(yesLinkPageText); //[
              /secure/co
              > rmation.jsp; Line: 32]
              > [java] ^
              > [java]
              C:\CVSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WE
              > NF\classes\jsp_servlet\_secure\__confirmation.java:378: cannot resolve
              symbol
              >
              > [java] symbol : variable noLinkPageText
              > [java] location: class jsp_servlet._secure.__confirmation
              > [java] htmllink0.setPage(noLinkPageText); //[
              /secure/con
              > mation.jsp; Line: 37]
              > [java] Error: compilation of jsp file /secure/confirmation.jsp (java
              file C
              >
              VSMessageRouter\platform-apps\2notify\webapp\consoleapp\.\web\WEB-INF\classe
              s
              > p_servlet\_secure\__confirmation.java failed):
              > [java] ^
              > [java] null
              > [java] 2 errors
              > [java] Error: [jspc]: 1 file(s) failed:
              > [java] /secure/confirmation.jsp
              > [java] java.io.IOException: Compiler failed
              executable.exec(java.lang.String
              >
              >
              

  • Jsp:include doesn't work with Tomcat & IIS

    Hi, Guys,
    I installed IIS4.0 and Tomcat in my windows NT system. http://localhost/examples/jsp/index.html works fine.
    When I load http://localhost:8080/about.jsp, it's also working fine. But when I load http://localhost/about.jsp, it will ignore the part which the line is display as
    <%String topName = "/servlet/topServlet";%>
    <jsp:include page="<%=topName%>" flush="true"/>
    The other part will work just as a html file. And I didn't get any error message.
    Would can tell me how to figure out this problem. Thank in advanced very much!

    Oh, God, why not tell me earlier!!!!!! I do use tomcat 3.1 and it just support servlet. I have no way out but modify all my jsp:include to encoding into a servlet page. I almost re-do all my work. But anyway, thank you! Next time I will know.

  • ListenerAdmin not working in WebLogic

    I seem to be having the same issue that folks are having within the Glassfish server. I've configured the APEX listener on WebLogic 11g (10.3.5). Followed the instructions to create the adminlistener and managerlistener and their respective groups: Admin and Manager and assigned the users apppropriately (followed the installation instructions). I've used listenerConfig to configure the listener but when trying to access listenerAdmin URL I get the dreaded 403 error. Any help would be appreciated.
    Thanks,
    Jack

    Hi Jack,
    could you post some additional information of what exactly you did and which version of APEX Listener you use?
    And did you try to reset your browsers authentication cache? As I've learned when investigating similar problems (also discussed here) both listenerStatus and listenerAdmin use the same realm for basic authentication ("APEX"). If your browser stores your authentication information for one of these realms (which it usually does) and you try to enter the other part, it resends these information, which can lead to a 403 (as discussed in Link http://localhost:8080/apex/listenerConfigure not working).
    Possibly this caching is even instance-independent (as the realm doesn't include any host/instance/... information), so if you've entered different credentials for another instance, this could be an explanation as well. Could you try to erase any entry concerning APEX Listener from your browser cache? Or try a different browser you ususally don't use, perhaps even a portable version of Firefox or something like that, where you can be sure you have a fresh start and can safely abandon everything once you've done?
    The latter case would only be relevant if you aren't even asked before you get the 403. So the question is: Can you enter the credentials at all, or do you get the 403 right away?
    Another possibility: Did you try with a simple password (without any special character)? And did you restart your WLS after adding those users? Possibly these changes aren't effective immediately.
    -Udo

  • Navigation not working in Weblogic Server but working from JDeveloper.

    Hi
    I created a simple application with some page navigations (some declarative and some dynamic using Managed Bean).
    The navigation works fine when I run from JDeveloper. (Local System)
    So I deployed the application to the WebLogic server (Local system with a domain configured with ADF.)
    The pages are getting rendered correctly, bu on button clicks, the navigation is not happening from any of the pages.
    Could I have missed something or is there a way to track what the problem might be?
    JDev : 11.1.1.3
    Web Logic Server : 11gR1 (1.3) which comes with JDeveloper
    Thanks for any help.
    Sameer

    Hi John
    I am not using task flows. I just have some jspx pages defined in the unbounded task flow adfc-config.xml connected with navigation.
    I run from JDEveloper by right clicking on the jspx files.
    The URL when run from jdeveloper is as follows.
    http://127.0.0.1:7101/SessionsPOC-ViewController-context-root/faces/MainPage
    From Weblogic server I am using the link given in the Testing tab of the weblogic administration console.
    The URL is as follows.
    http://10.9.73.103:7001/SessionsPOC-ViewController-context-root (default)
    http://10.9.73.103:7001/SessionsPOC-ViewController-context-root/MainPage.jspx
    Actually, the URL given in the weblogic testing tab is not runnable. I am changing the link as follows to be able to run it.
    http://10.9.73.103:7001/SessionsPOC-ViewController-context-root/faces/MainPage.jspx
    I have defined the MainPage.jspx in the web.xml 's Welcome page. But it is not taking it I guess.
    Also, I am able to run the other page by giving the following url. But the navigation buttons are not working in that page also.
    http://10.9.73.103:7001/SessionsPOC-ViewController-context-root/faces/SecondPage.jspx
    Thanks
    Sameer

  • Dynamic src in ui:include ajax not working

    Hello,
    I'm migrating my application to JSF 2. We are using Richfaces 4 implementation.
    We have a need, that a menu item, triggers an Ajax function, that sets a page name (xhtml), and then re renders the output panel, that has an ui:include.
    The page is loaded fine, but any ajax in the page loaded does not work. I've read several post saying that this happens because ui:include is not a component, but a Tag handler, and that it's life cycle is different from a component. But I haven't found any solution for this yet !
    Any idea on what I need to do ?
    Thanks a lot !
    John.

    I'm 99.9% sure that the only answer is: don't use Ajax in this particular case. Its a menu, menus are used for navigation, let JSF do its regular navigation magic. But since you use Richfaces perhaps a Richfaces specific component can help you out. Such as the Richfaces dropDownMenu I spot in the showcase. If you're already using a richfaces component and you need help with it, try the actual Richfaces forum.
    https://community.jboss.org/en/richfaces?view=discussions

  • Index.jsp page is not working.

    hi
    i have created one simple webpage and save as index.jsp.
    when i upload this file and i check it with URL it gives me file not found.
    is there any mistake.
    I have used Netbeans 5.5..
    when i run this file in NetBeans it is working perfectly. But as i upload and then check on my Firefox browser it gives file not found.
    then i saved it as a index.html then it is working perfectly. but with .jsp extension it's not working..
    request you to give me suggestions..
    you can mail me also ... thanks
    thanks
    discuss
    ([email protected])

    hi...
    think its the problem with URL you have given in browser...
    if you have a page in your application named index.html, we can load the page by this URL.....
    http://localhost:8080/myapp/
    where myapp is the folder where u have index.html
    if u r saving it as index.jsp the URL should be like this.
    http://localhost:8080/myapp/index.jsp
    U have to give the full path of the file in URL...
    Hope this will work..

  • Debugging not working in weblogic portal

    When I am running my portal app built on weblogic portal 8.1, its throwing an error cannot start debugger. App might not be deployed properly.
    I have redeployed 2-3 times, and its running also fine, but debugger is not working.
    when the app domain starts few exceptions are thrown like,
    primary key voilated,
    jms connection pool could not connect
    Can this be the reason?

    well, from a debugging perspective, the application errors should not prevent a debugger from attaching to the VM. Can you be more specific about when you say the debugger is not starting?
    Thanks
    Mike

  • CDI not working in Weblogic 12c Embedded EJB Container?

    Hi,
    we are trying to use embedded ejb container from weblogic 12c (12.1.2.0) for our junit tests.
    As our application is running in weblogic 12c, we would like to run our tests  in same environment.
    But we encountered two problems, which brings me to the conclusion that CDI is not working correctly in embedded ejb container.
    1. CDI Interceptor are not working
    2. CDI Objects (@Inject) are null
    I can provide an error message, which I think is thrown, when container tries to access the interceptor, because if I delete the interceptors the error message gets no longer thrown:
    Caused by: java.lang.UnsupportedOperationException: authenticatedLookup is unavailable for BasicNamingNode types
          at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:234)
          at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:463)
          at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:274)
          at weblogic.jndi.internal.ServerNamingNode_12120_WLStub.authenticatedLookup(UnknownSource)
          at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:483)
    We just want to know, if CDI is not working in embedded ejb container, so we can go ahead and look for another solution for our junit tests.
    Stefan

    Hi There,
    If you have access to Oracle Support Portal, please go through below Knowledge Articles which can provide more information on your requirement:
    Sample Application Using Timer API (CommonJ) to configure Timer Based tasks in Oracle WebLogic Cluster 10.3.X Cluster (Doc ID 1614886.1)
    Clustered EJB Timer - The minimum time for recurring execution of a timer (Doc ID 1931091.1)
    Let us know if it helps.
    Cheers,
    Naveen

  • Jsp code is not working after some modification in design why?

    hi,
    I am in the final touch of my course work in jsp.i did all the coding and tested..everything was working properly..after i did some modification in the structure of the page the update query is not working..i dont understand why?
    i am attaching my old page and new page here...plz help me to solve this...
    old page editstudent.jsp
    <html>
    <body>
    <%@ page language="java" import="java.sql.*,java.text.SimpleDateFormat,java.util.Date" %>
    <%
    SimpleDateFormat formatter;
    formatter = new SimpleDateFormat("dd-MM-yyyy");
    String refno=request.getParameter("refno");
         String student=request.getParameter("student");
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con=DriverManager.getConnection("jdbc:odbc:lsmsdsn","","");
         Statement st1=con.createStatement();
    ResultSet rs=st1.executeQuery("select * from sponsordetails where refno='"+refno+"'");
    %>
    <form name=editsponsorform method="POST" action="editsponsor.jsp" >
    <input type="text" name="refno" size="20" value="<%=refno%>"></p>
    <p>Sponsor Name <input type ="text" name="sponsorname" size="50" value="<%=rs.getString(2)%>"></p>
    <p>Sponsor's Address&nbsp<textarea name="sponsorsaddress" rows="5" cols "80" tabindex="10"><%=rs.getString(3)%></textarea></p>
    <p>Sponsor's Phoneno <input type ="text" name="sponsorsphoneno" size="30" value="<%=rs.getInt(4)%>"></p>
    <p>Sponsor's Fax <input type ="text" name="sponsorsfax" size="30" value="<%=rs.getInt(5)%>"></p>
    <input type="submit" name="b1" value="Save & Continue" >
    <input type="Reset" name="b2" value="Cancel "onClick="window.location='home.html'">
    old page editsponsor.jsp
    <html>
    <body>
    <%@ page language="java" import="java.sql.*,java.text.SimpleDateFormat,java.util.*" %>
    <%
    String refno=request.getParameter("refno");
    String sponsorname=request.getParameter("sponsorname");
    String sponsorsaddress=request.getParameter("sponsorsaddress");
    String d=request.getParameter("sponsorsphoneno");
    int sponsorsphoneno=Integer.parseInt(d);
    String d1=request.getParameter("sponsorsfax");
    int sponsorsfax=Integer.parseInt(d1);
    Connection con =null;
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         con=DriverManager.getConnection("jdbc:odbc:lsmsdsn","","");
         PreparedStatement st=con.prepareStatement("update sponsordetails set sponsorname= ?,sponsorsaddress=?,sponsorsphoneno=?,sponsorsfax=? where refno=?");
    st.setString(1,sponsorname);
    out.println(sponsorname);
    st.setString(2,sponsorsaddress);
    st.setInt(3,sponsorsphoneno);
    st.setInt(4,sponsorsfax);
    st.setString(5,refno);
    st.executeUpdate();     
         st.executeUpdate();
         out.println("record updated successfully"+"<A HREF='loginhtml.html'>login page</A>.");
    finally {
         try {
              if (con !=null) {
              con.close();
         catch (SQLException se)
         out.println(se.getMessage());
    %>
    </body>
    </html>
    New page editstudent.jsp
    <html>
    <body>
    <%@ page language="java" import="java.sql.*,java.text.SimpleDateFormat,java.util.Date" %>
    <%
    SimpleDateFormat formatter;
    formatter = new SimpleDateFormat("dd-MM-yyyy");
    String refno=request.getParameter("refno");
         String student=request.getParameter("student");
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con=DriverManager.getConnection("jdbc:odbc:lsmsdsn","","");
         Statement st1=con.createStatement();
    ResultSet rs=st1.executeQuery("select * from sponsordetails where refno='"+refno+"'");
    %>
    <form name=editsponsorform method="POST" action="editsponsor.jsp" onSubmit="return validateEditsponsorform()">
    <table width="821" border="1" align="center" bordercolor="#F8F8F8" bgcolor="#F5F5F5">
    <tr>
    <td colspan="6" bgcolor="#CCCCCC"><p class="style6"> </p>
    <p class="style6"> </p>
    <p class="style6"> </p></td>
    </tr>
    <tr>
    <td width="130">Ref No:</td>
    <td width="158">
    <input type="text" name="refno" disabled="true" value="<%=refno%>" />
    </td></tr>
    <tr>
    <td width="130">Sponsor Name</td>
    <td width="158">
    <input type="text" name="sponsorname" value="<%=rs.getString(2)%>"/>
    </td></tr>
    <tr>
    <td>Sponsor's Address:</td>
    <td>
    <textarea name="sponsorsaddress" cols="20" rows="5"><%=rs.getString(3)%></textarea>
    </td></tr>
    <tr>
    <td>Sponsor's Phone No:</td>
    <td>
    <input type="text" name="sponsorsphoneno" value="<%=rs.getInt(4)%>"/>
    </td></tr>
    <tr>
    <td>Sponsor's Fax:</td>
    <td>
    <input type="text" name="sponsorsfax" value="<%=rs.getInt(5)%>" />
    </td></tr>
    <tr>
    <td>
    <input type="submit" name="b1" value="Submit & continue" />
    </td>
    <td><label>
    <input type="reset" name="b2 " value="cancel" onClick="window.location='home.html'" />
    </td>
    </tr>
    </table>
    </form>
    new page editsponsor.jsp
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Edit</title>
    <style type="text/css">
    <!--
    .style2 {
         color: #CC6600;
         font-weight: bold;
         font-size: small;
    .style4 {
         color: #0000CC;
         font-weight: bold;
         font-size: large;
    -->
    </style>
    </head>
    <body bgcolor="#F5F7F4" topmargin="0">
    <%@ page language="java" import="java.sql.*,java.text.SimpleDateFormat,java.util.*" %>
    <div align="center">
    <table width="800" border="0" cellpadding="0" cellspacing="0" bgcolor="#FBFCFF">
    <!--DWLayoutTable-->
    <tr>
    <td height="150" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <!--DWLayoutTable-->
    <tr>
    <td width="800" height="139" valign="top"><img src="images/banner copy.jpg" width="800" height="150" /></td>
    </tr>
    </table>
    <%
    String refno=request.getParameter("refno");
    String sponsorname=request.getParameter("sponsorname");
    out.println(sponsorname);//i am getting the values here.............
    String sponsorsaddress=request.getParameter("sponsorsaddress");
    out.println(sponsorsaddress);
    String d=request.getParameter("sponsorsphoneno");
    out.println(d);
    int sponsorsphoneno=Integer.parseInt(d);
    out.println(sponsorsphoneno);
    String d1=request.getParameter("sponsorsfax");
    int sponsorsfax=Integer.parseInt(d1);
    out.println(sponsorsfax);
    Connection con =null;
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         con=DriverManager.getConnection("jdbc:odbc:lsmsdsn","","");
    PreparedStatement st=con.prepareStatement("update sponsordetails set sponsorname= ?,sponsorsaddress=?,sponsorsphoneno=?,sponsorsfax=? where refno=?");
    st.setString(1,sponsorname);
    out.println(sponsorname);
    st.setString(2,sponsorsaddress);
    st.setInt(3,sponsorsphoneno);
    st.setInt(4,sponsorsfax);
    st.setString(5,refno);
    st.executeUpdate();
         out.println("record updated successfully"+"<A HREF='loginhtml.html'>login page</A>.");
    finally {
         try {
              if (con !=null) {
              con.close();
         catch (SQLException se)
         out.println(se.getMessage());
    %>
    </body>
    </html>
    the database is not updating...its updating when i am giving values directly to update query..why?help me plzzz..
    thanks in advance

    ashish1234 wrote:
    hi,
    I am in the final touch of my course work in jsp.i did all the coding and tested..everything was working properly..after i did some modification in the structure of the page the update query is not working..i dont understand why?
    i am attaching my old page and new page here...plz help me to solve this...
    the database is not updating...its updating when i am giving values directly to update query..why?help me plzzz..With all that Java code in your JSPs, it doesn't look like you are in the final touch of learning JSP, but just at the beginning. Try to move all that java code into Servlets and JavaBeans. The JSP should be all about display, and nothing else.
    What is your problem? I don't know. All that unformatted code is un-readable. On top of being scriptlet code which is hard enough to read.
    You should search the logs to see if there is an error message hidden in there. That is one of the major problems with putting regular Java code in JSPs, the error messages get hidden, and become near impossible to translate.

  • Jsp:include doesn't work in JSF (Trinidad)

    Hallo,
    first: i'm a newbe in JSF - so sorry for stupid questions.
    I would like to include a page with some trinidad-tags in my jsf-page (into the body).
    But running the application the included page isn't shown. Looking to the generated html-code the included code is shown between the head- and body-tag -> not rendered as html-tag but still as trinidad-tags.
    I do not understand why :(
    I tried to integrate my jsp:inlcude with <f:subview> and also with <h:panelGroup> but without different results. Also I've tried to use <jsp:directive.include> but nothing different happens.
    Does anybody know what I'm doing wrong?
    Thanks for help

    The way I include another faces file is to use the following syntax:
    <body>
    <jsp:include page="/header.jsp"/>
    the header.jsp file is a file that contains JSF components, but its included using the jsp extension since you already within the mist of a request.
    And in the included file, you MUST have everything surround with a subview tag with an ID attribute...
    <f:subview id="headerView">
    </f:subView>
    And lastly, something to always remember...everything in your included page must be contained within JSF components. You cannot have straight html, it must be surrounded with verbatim tags. The reason being when the page is included, the components from the page are included into the main pages component tree. The HTML from those components is output and then any regular html markup in the page is output AFTER the components output.

  • JSP include tag not showing page content

    Below is my code for a JSP page that uses JSP:include tag to include footer.jsp. The footer page does not display on show_email_entry.jsp. The error I am getting is variable emailAddress cannot be resolved. What am I doing wrong?
    Here is my code.
    show_email_entry.jsp
    <!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <%@ include file="../includes/header.htm" %>
    <body>
    <%
    String firstName = request.getParameter("firstName");
    String lastName = request.getParameter("lastName");
    String emailAddress = request.getParameter("emailAddress");
    %>
    <h1>Thanks for joining our email list</h1>
    <p>Here is the information that you entered:</p>
    <table cellspacing="5" cellpadding="5" border="1">
    <tr>
    <td align="right">First name:</td>
    <td><%= firstName %></td>
    </tr>
    <tr>
    <td align="right">Last name:</td>
    <td><%= lastName %></td>
    </tr>
    <tr>
    <td align="right">Email address:</td>
    <td><%= emailAddress %></td>
    </tr>
    </table>
    <jsp:include page="footer.jsp" flush="true" />
    <p>To enter another email address, click on the Back <br>
    button in your browser or the Return button shown <br>
    below.</p>
    <form action="../email6/join_email_list.html" method="post">
    <input type="submit" value="Return">
    </form>
    </body>
    </html>
    FOOTER.JSP page:
    <%@ page import="java.util.Date" %>
    <p><i><%= emailAddress %> was added on <%= new Date() %>.</p>

    The [url http://java.sun.com/products/jsp/syntax/2.0/syntaxref209.html#1003408]@include directive and the [url http://java.sun.com/products/jsp/syntax/2.0/syntaxref2020.html#8828]<jsp:include> have two different functionalities.
    From the [url http://java.sun.com/products/jsp/syntax/2.0/syntaxref20.html] reference page:
    Include Directive : Includes a resource of text or code when the JSP page is translated.
    <jsp:include>
    Includes a static resource or the result from another web component
    (italic emphasis is mine)
    Basically the @include directive is like "copy and paste this file into the JSP and then compile"
    jsp:include is "run this web page, and add the result of that to my current response"
    So jsp:include can only include complete standalone JSPs.
    Do you see now why it would throw an error message with your example?
    Cheers,
    evnafets

  • InvokeODI webservice is not working from Weblogic Server 11gR1

    Hi,
    We have deployed axis2 (1.2) with invokeodi service to weblogic server 10.3.1.
    We have a BPEL process (using Jdeveloper/SOA 11gR1) which is invoking the invokeOdi webservice to
    invoke a scenario. The invoke is failed with the following fault.
    "Unable to access the following endpoint(s): http://www.oracle.com/"
    Complete Stack Trace:
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault} parts: {{ summary=oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): http://www.oracle.com/ ,detail=Unable to access the following endpoint(s): http://www.oracle.com/ ,code=200 } at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:301) at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:935) at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.handleNormalInvoke(BPELInvokeWMP.java:440) at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:182) at com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:140) at com.collaxa.cube.engine.CubeEngine._performActivity(CubeEngine.java:2675) at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:2558) at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1256) at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:73) at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:188) at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:285) at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4607) at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:828) at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:610) at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:354) at sun.reflect.GeneratedMethodAccessor697.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37) at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54) at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy181.handleInvoke(Unknown Source) at com.collaxa.cube.engine.ejb.impl.bpel.BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.handleInvoke(BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.java:73) at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:34) at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:139) at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)
    FYI, this is working fine with OC4J 10.1.3.4.
    Any help is greatly appreciated.
    Thanks in advance.
    Thanks & Regards,
    Rama Krishna. P
    Edited by: user4477725 on Aug 19, 2009 12:17 PM
    Edited by: user4477725 on Aug 19, 2009 12:39 PM

    I have developed one web application using Autocompleteextender ajax control and used webservice to get the values.
    It is working in local system where i can enter some text in textbox and it will show related word sear list in dropdown.
    But after hosting in production server, some time like 1 hr or 2 hr it will work. Then it will stop working means if i type test in text box  i will not get the list related to entered text.
    Where exactly the problem. Even i have added webreference of that service. Then also sometime it will work and after some time it will not work
    How to fix this issue. Please suggest me.
    Thanks in advance.

Maybe you are looking for

  • How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"

    How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"? I have an install SQL scripts that creates a Linked Server. I want to put some security on the Linked Server and only grant the Agent Job Signon (the "Run As" or "Executed as U

  • ODP 9.2.0.7 and Database 10g (10.2.0.5)

    Hello everybody. I wanted to know if it is possible to use ODP 9.2.0.7 against a 10g (10.2.0.5) database. Up to this moment, one of our customers has an application with a 9.2.0.7 database that uses the 9.2.0.7 ODP. Some years ago, the development te

  • How do I change which programs start when the system boots up?

    I want to delete a program from the start up sequence so that the program does not start up automatically.  Suggestions!

  • Error when installing certificate - FIPS-140 compliance.

    Hi, I am having an issue installing a certificate on my LaserJet M750 printer.  The error is: "The cryptographic algorithms used in the ID or CA certificate do not comply with FIPS-140." We can recreate the issue by:  converting cert and key to pfx s

  • MM_SPSTOCK Archiving

    Hi Experts, I need to archive Special stocks form and SAP AFS system. Can some one send me the process of how exactly we configure the Archive infostructure for this object. Thanks in advance. Best regards, Naveen