Response.sendRedirect("abc.jsp") is not  working

Hello,
I deployed my web application(jsp with business components) on AS 902.
Web cache is running on port 80.
Apache is running on 7778.
To pass request i use,
mod_proxy.c in http.conf. and
<virtual host> for my application, to get required url.
It is running fine, But response.sendRedirect("abc.jsp") is not working properly. It redirects the request to apache directly and skips web-cache. Also it changes url for the page given in method.
While the same application was running ok on v 10222a. That version handle this method properly.
how to remove this error ???
Plz hurry up. Our product is ready for launching on 9iAS. It is final testing.
Thnx.

Tahir,
What is the exact error message you are hitting.
Are you able to use web-cache with other examples.
Can you try testing it the the webcache demos that are part of ojspdemos.ear under /j2ee/home/demo.
-Prasad

Similar Messages

  • OC4J JSP Debugging not working for all the jsps

    Hi,
    Initially I was not able to debug jsps using Eclipse and OC4J. The jsp debugging started working once I made the below changes:
    1) global-web-application.xml is modified
    Changed the attribute development="true" in orion-web-app
    Added the below init param for the JspServlet
    <init-param>
    <param-name>debug</param-name>
    <param-value>class</param-value>
    </init-param>
    If the jsps are present in a sub directory under the webcontent none of the breakpoints are working. I am still be able to view the jsp pages on the browser.
    Tools: Oracle 10g Application Server Standalone version(10.1.3.5.0), JDK5, Windows XP, Eclipse Indigo
    Project Structure:
    Test (Eclipse Dynamic Web Project)
    -WebContent
    Sample.jsp ( Breakpoints are working)
    -subF (Folder)
    SubSample.jsp (Breakpoints are not working)
    -WEB-INF
    web.xml
    Debugging worked for http://localhost:8888/Test/Sample.jsp
    Debugging not working for http://localhost:8888/Test/subF/SubSample.jsp
    Any help is highly appreciated.
    Regards
    Danny

    This tells there is not enough main memory (not disk space) for the program to run.
    - You can look the dump in ST22, it will have suggestions on increasing the ROLLAREA??, you can forward that to Basis.
    - Most likely you will not have any more memory to assign so the above may not be feasible. Try to rework your query so it works with less data.

  • Jsp:useBean  not work when I install aplication!!

    Hi
    I developing an application with UIX JSP on Jdeveloper 9.0.2 and i using something like this:
    <jsp:useBean id="cbean" class="oracle.jsp.dbutil.ConnBean" scope="session" />
    <jsp:setProperty name="cbean" property="dataSource" value="jdbc/BiblosConnectionCoreDS" />
    </jsp:useBean>
    <%
    try{
    cbean.connect();
    This code work fine in standalone mode, but when i install this application on 9IAS, with an archive War, the code <jsp:useBean, not work.
    What is missing for? o What is the reason for this situation
    Thanks for some help?

    many thanks for your reply, and I have download new updates driver from your website (http://consumersupport.lenovo.com/en/DriversDownloads/drivers_show_890.html) and Installer it on my Y410 but it still does not work!!!
    the firstly: when I star up with win7, I can see a speaker icon right down near the clock, when I click mouse on it, I can see: Volume Mixer - Speaker with Device(Speaker Hight definition Audio Device, Digital Audio(S/PDIF) ( Hight definition Audio Device) ).
    Look in devicemanger I can see "Sound , video and game controll " has already installer with 'Hight definition Audio Device ' & 'Unimodem Hafl-Duplex Audio Device' below... but I cannot hear the sound when I play music, video, games...etc...
    the second: when laptop wakeup after 'sleep' mode, I can hear sound on speaker! but headphone jack does not work when I plug my headphone jack into it (I cannot hear sound with headphone), however I still hear sound from speaker, in this case!  
    Can you help me or tell me how I can do ?!
    Thanks and Best Regards,
    jupitervn

  • JSP-Editor not working properly

    Hi everybody,
    I am working with ISA5.0 and NWDI. I have checked out the Web-Module Project crm/isa/web/b2b.
    Now I would like to modify JSP-Files. Unfortonately the JSP-Editor is not working properly.
    The JSP-Editor cannot resolve references to Tag-Libraries like
    <%@ taglib uri="/isa" prefix="isa" %>
    Furthermore I get Errors with JSP-Includes
    <%@ include file="checksession.inc" %>
    The JSP-Editor does not show any other compile errors until the above mentioned errors are resolved.
    So the JSP-Editor does not help with compile errors.
    I have tried to use Lomboz instead, but due to the modularization in ISA5.0 and NWDI (ie the Taglibraries are defined in a separate module) I did not get it to work either.
    Does anybody have experience on how to get the JSP editor to work properly?
    Thanks for your help,
    Andreas

    Highlite the clip in the timeline, control click on it and choose "send to soundtrack as an audio file project" in the pop up menu. Don't do an "open with editor". This should work.
    If it doesn't and it's just the one clip, you could launch Soundtrack and then open that clip as an audio project . . . don't do a open with editor, just open it directly. Make your adjustment and save over writing the file with the new audio. You may want to copy the clip first as a backup. When you open your FCP project, you'll have to re-link the clip. Once you do it will show up with the new sound.

  • Bean in JSP is NOT WORKING. Please help

    Hi,
              Anyone who got java-beans working with WL JSP? I could not get even the
              hello bean to work. I am getting a error message saying somthing like
              "foo.bar.HelloBean.class is not a bean" .
              Is there any perticular reason for the abuse of not including java bean
              example in JSP examples?
              I will greatly appreciate any help in this direction.
              Thank you in advance
              -Harit
              

    If I had to guess based on the error message I would say you have incorrectly
              defined the class file.
              Remove the .class from the definition within the JSP.
              For instance,
              <jsp:useBean
              id="myHelloBean"
              scope="session"
              class="foo.bar.HelloBean">
              </jsp:useBean>
              Not class="foo.bar.HelloBean.class"
              Hope this helps.
              Harit Nanavati wrote:
              > Hi,
              > Anyone who got java-beans working with WL JSP? I could not get even the
              > hello bean to work. I am getting a error message saying somthing like
              > "foo.bar.HelloBean.class is not a bean" .
              > Is there any perticular reason for the abuse of not including java bean
              > example in JSP examples?
              > I will greatly appreciate any help in this direction.
              > Thank you in advance
              > -Harit
              

  • JSP/Servlets not working after upload

    I have a JSP file and some servlets that work fine on my PC running Tomcat.
    I just uploaded them to my web server (which supports servlets/jsp and has apache web server running), but they do not work. The jsp file does not run, it just displays the source code.
    Strangely, the support people at my server say the jsp files run ok when they view them. But when I view them from my browser it just shows source code.
    Do I need to configure something in my program? Or is it a server problem?

    Very hard to help without seeing the page - the answer is in the code  :-)
    Can you please point a link to your page?
    Are you sure you uploaded all the image files, and that the paths to the images are all correct?
    Nadia
    Adobe® Community Expert : Dreamweaver
    http://www.perrelink.com.au
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/
    http://twitter.com/nadiap

  • Sites with .jsp extention not working completely

    websites having extension .jsp are not showing propperly

    Normally, when a webserver uses JSP, they instruct Firefox that the content type of the page is text/html, so Firefox doesn't treat those .jsp pages differently from other server technologies.
    Could you provide a link to a page that is not showing properly and describe how it differs from what you expect?
    More generally:
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    "3-bar" menu button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site, try either:
    * right-click and choose View Page Info > Security > "View Cookies"
    * (menu bar) Tools > Page Info > Security > "View Cookies"
    * click the padlock or globe icon in the address bar > More Information > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then try reloading the page. Does that help?

  • JSP Flush not working on submit to page

    I have a page that gets called from another with a badic submit button. In the second page I flush the stream and then wait 10 seconds. The problem is that the browser does not show the response until it is done getting the data and then the whole page shows up. What gives? BTW If I hit the refresh button on the page then it works fine.
    Code below:
    <html>
    <head>
         <title>This is the title</title>
    </head>
    <body>
    here it is.
    </body>
    </html>
    <%
    out.flush();
    Thread.sleep(5000);
    %>
    Response after

    The browser doesn't have to synchronize itself with your output, and there's so much buffering between your JSP and the browser that it couldn't even attempt that anyway. Also, it's quite common that the browser won't display the page until it has received it all, especially if there are tables involved, because it doesn't know how to render the first part until it sees what comes later. I can't imagine why you would want to stall the output, the Internet is slow enough as it is.

  • Terrmap.jsp is not working (mapviewer 10.1.3)

    Hi I cannot seem to get the terrmap demo to work. All I get is this error:
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    Which tells me absolutely nothing.
    I created a datasource like this:
    <data-source class="com.evermind.sql.DriverManagerDataSource" name="MVDemoDS"
    location="jdbc/OracleCoreDS"
    xa-location="jdbc/xa/OracleXADS"
    ejb-location="jdbc/MVDemoDS"
    connection-driver="oracle.jdbc.driver.OracleDriver" username="mvdemo" password="mvdemo"
    url="jdbc:oracle:thin:@localhost:1521:orcl"
    inactivity-timeout="30"
    />
    and restarted the oc4j
    What am I doing wrong?

    Hi Wendy,
    It seems you are creating data source in Oracle Application Server configuration file. But, data source for Oracle MapViewer should be declared in Oracle MapViewer configuration file.
    Oracle MapViewer configuration file, mapViewerConfig.xml is located in the $ORACLE_HOME/lbs/mapviewer/web/WEB-INF/conf. You should modify permanent map data source, defined in the <map_data_source>. Sample map data source declaration:
    <map_data_source name="mvdemo"
                jdbc_host="elocation.us.oracle.com"
                jdbc_sid="orcl"
                dbc_port="1521"
                dbc_user="scott"
                jdbc_password="!tiger"
                jdbc_mode="thin"
                number_of_mappers="3"
    />Also, map data sources can be managed through web based Oracle MapViewer manager.
    Regards,
    Andrejus

  • Jsp sriplets not working in properly in ojsp

    Hi every one i have this ADF application develped in jdevelper 11.1.1.0.2 and deployed in to weblogic server version 10.3.0 and it worked fine.plese note i have used
    ADF for the presentaion layer.We had to migrate in to weblogic server version 10.3.2.for this i used jdevelper version 11.1.1.2.0 and open the project from this and i click yes for the migration.
    then i have deployed the new war file in to the new server.but the thing is it doesnt work the expected way.for my knowldge the issue is something to do with ojsp.when it tries to read jsp scriplets in the jsp page it throws an error.it is as followes
    **JspServlet error: Servlet unable to dispatch to the following requested page: The following exception occurred:oracle.jsp.parse.JavaCodeException:  Line # 13, oracle.jsp.parse.JspParseTagScriptlet@3f673160***
    **Error: Java code in jsp source files is not allowed in ojsp.next mode.>**
    any solution to this.????can i disable the ojsp compiler and go to normal jsp compliser?if so how to do it?
    thanks in advance every one :)
    Umesh

    Extracted from Note 1067696.1:
    You need to either adapt your code to remove the scriptlets in your JSP page,
    or you can use the following Java option to disable OJSP:
    -Dadfvdt.disableOjspDeployment=true
    You can add this option -Dadfvdt.disableOjspDeployment=true in your file "ide.conf" in the directory "<Middleware_Home>\jdeveloper\ide\bin"
    For your Production environment, you can have your Managed WLS ignoring the OJSP mode by adding the Java Option -Dadfvdt.disableOjspDeployment=true
    * in the "startManagedWebLogic" (if you want to limit it to a specific Managed Server)
    * or "setDomainEnv" (for all managed servers in a domain).

  • Jsp code not working

    hello
    we have some class files that are in a zip file that the nw admin has included in the CLASSPATH.
    The code works on Windows w/Tomcat but not the remote Sun Web Server, we cannot get the connection to database due to the code not reading the class files.
    Has anyone come up against anything of this nature. Any thoughts are appreciated.

    yeah we're not getting the str replace error any more - heres index.jsp
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ include file="admin/include/db.jsp" %>
    <html>
    <head>
    <title>Toshiba Industrial Systems</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="common/css/master.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" language="Javascript" src="common/js/master.js"></script>
    <script>
    var strBCLink1 = "placeholder.html";
    var strBCLink2 = "index_oc.jsp";
    var strBCLink3 = "prod_100.jsp";
    var strBCText1 = "Industrial Systems";  
    var strBCText2 = "Uninterruptible Power Systems";
    var strBCText3 = "1000 Series";
    </script>
    <script language="JavaScript" type="text/JavaScript">
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <style type="text/css">
    </style>
    </head>
    <body>
    <table height="100%" width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="87">
    <%@ include file="_header.jsp" %>
    </td>
    </tr>
    <tr>
    <td align="left" class="backGlobalNav" valign="top" height="21" >
    <%@ include file="_nav_global.jsp" %>
    </td>
    </tr>
    <tr>
    <td align="left" valign="top" height="23">
    <%@ include file="_breadcrumb.jsp" %>
    </td>
    </tr>
    <tr>
    <td align="left" valign="top">
    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="160">
    <%@ include file="_nav_side_ups.jsp" %>
    </td>
    <td width="8" align="center" valign="middle"><img src="common/images/spacer.gif" alt="" width="1" height="1"></td>
    <td width="605" align="left" valign="top">
              <TABLE cellSpacing=0 cellPadding=0 width="100%"
    border=0>
    <TBODY>
                   <tr><td height="5"></td></tr>
                        <%
                        if(((request.getParameter("id3")==null))){
                        %>
    <TR>
    <TD width=605 align="left" valign="top">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="605" height="250">
    <param name="movie" value="admin/index_images/index.swf">
    <param name="quality" value="high">
    <embed src="admin/index_images/index.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="605" height="250"></embed></object>                                        
                        </TD>
    </TR>
                        <%}
                        else{
                        str1="";
                        Statement smt4l = conn.createStatement();
                        str1 ="select * from tbl_item where int_parent_id=" + request.getParameter("id3");
                        ResultSet rs_4l=smt4l.executeQuery(str1);
                        %>
    <TR>
    <TD width=605 align="left" height="250" valign="middle" bgcolor="#F0F0F0">
                             <table border="0" width="100%">
                                  <%while (rs_4l.next()){ %>
                                  <tr>
                                       <td>
                                            <a href="./<%=rs_4l.getString(str_link")%">?id1=<%=request.getParameter("id1")%>&id2=<%=request.getParameter("id2")%>&id3=<%=request.getParameter("id3")%>&id4=<%=rs_4l.getInt("int_item_id")%>" class="nav2ndOff">
                                            <%=rs_4l.getString("str_title")%>
                                            </a>
                                       </td>
                                  </tr>
                                  <%}%>
                             </table>
                        </TD>
    </TR>
                        <%
                        }%>
    <TR>
    <TD vAlign=top align=left></TD>
    </TR>
    <TR>
    <TD vAlign=top align=left height=5><IMG height=1
    alt=""
    src="Hard Drives & Optical Drives_files/spacer.gif"
    width=1></TD>
    </TR>
    <TR>
    <TD vAlign=top align=left> <TABLE cellSpacing=0 cellPadding=0 border=0>
    <TBODY>
    <TR>
    <TD vAlign=top align=left> <TABLE cellSpacing=0 cellPadding=0 width=605
    border=0>
    <TBODY>
    <TR>
    <TD class=backGrayMed height=17 align="left" valign="middle"><SPAN
    class=contentBoxOC> Featured Products</SPAN> </TD>
    <TD class=backWhite width=1><IMG height=1 alt=""
    src="Hard Drives & Optical Drives_files/spacer.gif"
    width=1></TD>
    <TD class=backGrayMed align="left" valign="middle"><SPAN
    class=contentBoxOC> News</SPAN></TD>
    </TR>
    <TR>
    <TD vAlign=top align=left width=399><IMG
    height=1 alt=""
    src="Hard Drives & Optical Drives_files/spacer.gif"
    width=1></TD>
    <TD class=backGrayLight vAlign=top align=left
    width=1 rowSpan=2><IMG height=1 alt=""
    src="Hard Drives & Optical Drives_files/spacer.gif"
    width=1></TD>
    <TD vAlign=top align=left width=200 height=10>
    <!-- LiveEdit marker DO NOT REMOVE -->
    <IMG
    height=1 alt=""
    src="Hard Drives & Optical Drives_files/spacer.gif"
    width=1></TD>
    </TR>
    <TR>
    <TD vAlign=top align=left><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td height="237" align="left" valign="top">
    <table width="405" border="0" cellspacing="0" cellpadding="0">
    <!---->
                                                           <!---->
    <%
                                                                Statement smt_featured = conn.createStatement() ;
                                                                ResultSet rs_featured=smt_featured.executeQuery("select * from tbl_item where int_parent_id= 0 and bit_featured=1");
                                                           %>
    <tr>
    <%
                                                           int i=0;
                                                           while(rs_featured.next()){
                                                           i++;
                                                           Statement smt_featured1 = conn.createStatement() ;
                                                           ResultSet rs_featured1=smt_featured1.executeQuery("select * from tbl_item where int_item_id= "+rs_featured.getInt("int_item_id"));
                                                           rs_featured1.next();
                                                           %>
    <td width="1"></td>
    <td width="190" height="190" align="left" valign="top" style="cursor:hand">
    <table width="100%" height="190" border="0" background="common/images/featured/back_box.gif" cellpadding="0" cellspacing="0">
                                                                <a href="<%=rs_featured1.getString("str_link")%>?<%=current_url_paramenters%>&<%=next_url_paramenter%>=<%=rs_featured.getInt("int_item_id")%>">
    <tr>
    <td height="18" colspan="2" align="left" valign="bottom" class="headerMainProdFeature">
                                                                     <a href="<%=rs_featured1.getString("str_link")%>?<%=current_url_paramenters%>&<%=next_url_paramenter%>=<%=rs_featured.getInt("int_item_id")%>" class="headerMainProdFeature" >
                                                                     <%
                                                                     if((rs_featured.getString("str_title").length() )>20){
                                                                          out.print(rs_featured.getString("str_title").substring(0,20));
                                                                     else{
                                                                          out.print(rs_featured.getString("str_title"));
                                                                     %>
                                                                     </td>
    </tr></a>
    </a>
                                                                <a href="<%=rs_featured1.getString("str_link")%>?<%=current_url_paramenters%>&<%=next_url_paramenter%>=<%=rs_featured.getInt("int_item_id")%>">
    <tr>
    <td height="10" colspan="2" align="left" valign="bottom" ><a href="#" class="navfeat"><%=rs_featured.getString("str_subtitle")%></td></tr></a>
    </a>
                                                                <a href="<%=rs_featured1.getString("str_link")%>?<%=current_url_paramenters%>&<%=next_url_paramenter%>=<%=rs_featured.getInt("int_item_id")%>">
    <tr>
    <td height="94" colspan="2" align="center" valign="middle"><a href="<%=rs_featured1.getString("str_link")%>?<%=current_url_paramenters%>&<%=next_url_paramenter%>=<%=rs_featured.getInt("int_item_id")%>"><img src="admin/product_images/<%=rs_featured.getString("str_image")%>" border="0"></td></tr></a>
    </a>
                                                                <a href="<%=rs_featured1.getString("str_link")%>?<%=current_url_paramenters%>&<%=next_url_paramenter%>=<%=rs_featured.getInt("int_item_id")%>">
    <tr>
    <td width="100%" height="16" align="right" valign="middle"><img src="common/images/featured/arrow.gif" width="17" height="18">  </td>
    </tr></a>
    </table>
                                                                </td>
    <td width="9"></td>
    <%if((i%2)==0){%>
    </tr>
    <tr>
    <td height="9"></td>
    </tr>
    <tr>
    <%}
                                                                }%>
    <td></td>
    </tr>
    <tr>
    <td height="8"></td>
    </tr>
    <tr>
    <td height="8"></td>
    </tr>
    </table> </td>
    </tr>
    </table> </TD>
    <TD vAlign=top align=middle> <TABLE cellSpacing=0 cellPadding=0 width="95%"
    border=0>
    <TBODY>
    <%
                                                      Statement smt_news = conn.createStatement() ;
                                                      ResultSet rs_news=smt_news.executeQuery("select * from tbl_news where bit_active=1 and bit_featured=1");
                                                      while(rs_news.next()){
                                                      %>
    <TR>
    <TD vAlign=top align=center><IMG
    src="common/images/featured/82.gif" alt="" width="3" height="5"
    border=0></TD>
    <TD vAlign=top align=left> <A class="pr" href="./admin/news/<%=rs_news.getString("str_link")%>" target="_blank">
    <%=rs_news.getString("str_title")%>
    </A> </TD>
    </TR>
    <TR>
    <TD vAlign=top align=left><IMG height=1 alt=""
    src="Hard Drives & Optical Drives_files/spacer.gif"
    width=1></TD>
    <TD vAlign=top align=left height=6>
    <!-- LiveEdit marker DO NOT REMOVE -->
    <IMG
    height=1 alt=""
    src="Hard Drives & Optical Drives_files/spacer.gif"
    width=1></TD>
    </TR>
    <%}%>
    <TR>
    <TD vAlign=top
    align=left></TD>
    </TR>
    </TBODY>
    </TABLE></TD>
    </TR>
    </TBODY>
    </TABLE>
                                       </TD>
    </TR>
    </TBODY>
    </TABLE></TD>
    </TR>
    </TBODY>
    </TABLE></td>
    <td align="left" valign="top"> </td>
    </tr><tr>
    <td height="5" colspan="4"><img src="common/images/spacer.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td height="30" align="left" valign="top" colspan="4">
    <%@ include file="_footer.jsp" %>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>
    and here is db.jsp
    <%@ page import="com.oreilly.servlet.MultipartRequest,java.io.*;"%>
    <%!
    String nl2br(String str){
         str=blanknull(str);
         return str.replaceAll("\n", "<br>");
    String addslashes(String str){
         str = str.replaceAll("'", "''");
         return str;     
    String getExtention(String str){
         int pos = str.indexOf(".");
         return str.substring(pos,str.length());
    String getExtention1(String str){
         int pos = str.indexOf(".");
         return str.substring(pos+1,str.length());
    String convertFileSize(long size) {
         int divisor = 1;
         String unit = "b";
         if (size >= 1024 * 1024) {
              divisor = 1024 * 1024;
              unit = "M";
         else if (size >= 1024) {
              divisor = 1024;
              unit = "K";
         if (divisor == 1) return size / divisor + " " + unit;
         String aftercomma = "" + 100 * (size % divisor) / divisor;
         if (aftercomma.length() == 1) aftercomma = "0" + aftercomma;
         return size / divisor +  " " + unit;
    String highlight_key(String str, String key,String color){
         //str = str.replaceAll("(?i)"+key, "<font color='"+color+"'><b>"+key+"</b></font>");
         return str;
    String first_sentence(String str, String key){
         int pos = str.indexOf(".");
         if(pos==-1){
              pos=str.length();
              return str;
         String str1=str.substring(0,pos);
         int pos1 = str1.indexOf(key);
         if(pos1==-1 && pos!=str.length()){
              str=str.substring(pos+1,str.length());
              return first_sentence(str,key);
         else{
              return str1;
    String blanknull(String s) {
    return (s == null) ? "" : s;
    String removeslashes(String str){
         str = str.replaceAll("''", "'");
         return str;     
    void sendmail(String to,String from, String subject, String message){
    //String from="[email protected]";
    //String to="[email protected]";
    try{
         SmtpClient client = new SmtpClient("mail.xxxxx.xxx");
         client.from(from);
         client.to(to);
         PrintStream message = client.startMessage();
         message.println("To: " + to);
         message.println("Subject:  "+subject+"!");
         message.println(message);
         message.println();
         message.println();
         client.closeServer();
      catch (IOException e){     
         System.out.println("ERROR SENDING EMAIL:"+e);
    %>
    <%
    Connection conn = null;
    //String dbUrl = new String("jdbc:mysql://localhost/toshiba?user=root&password=");
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    conn = DriverManager.getConnection("jdbc:oracle:thin:@10.0.112.92:1524:cweb","mhunter","chester");
    Statement smt = conn.createStatement() ;
    String path=getServletConfig().getServletContext().getRealPath("admin");
    String imagepath=path+"/product_images";
    String tagpath=path+"/tag_files";
    String newspath=path+"/news";
    String envpath=path+"/env_images";
    String resumepath=path+"/resume_files";
    String pagepath=path+"/pages_files";
    String downloadpath=path+"/download_files";
    %></a>

  • JSP examples not working

    I've recently installed 9iAS release 2 on a windows 2000 machine. It all seems to be working, except for the JSP examples. When I try the standard sun JSPs, I get the following type of message:
    java.io.FileNotFoundException: d:\midtier\apache\apache\htdocs\j2ee\examples\jsp\colors\colrs.jsp (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.(FileInputStream.java:64)
         at oracle.jsp.provider.JspFilesystemResource.fromStream(JspFilesystemResource.java:153)
         at oracle.jsp.provider.JspFilesystemResource.fromReader(JspFilesystemResource.java:169)
         at oracle.jsp.app.JspAppLoader.fromReader(JspAppLoader.java:2013)
         at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java:1246)
         at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java:1141)
         at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java:797)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:368)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:265)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:184)
         at oracle.jsp.JspServlet.service(JspServlet.java:154)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:500)
         at org.apache.jserv.JServConnection.run(JServConnection.java:321)
         at java.lang.Thread.run(Thread.java:484)
    Anyone have any idea why this is occurring? Does it have anything to do with installing the November PDK for Portal and uncommenting the line in httpd.conf about jserv.conf?
    Carey

    Yes, you are right. By default, Apache JServ is disabled in ORacle 9iAS Release 2 installation. but since you uncommented the two lines, now jserv is active and will try to serve all JSP request intead of the defualt OC4J. Comment the two line again. (please use the EM to do this and do not comment the lines using a text editor.)
    You may require to restart.
    Shyam Ellur

  • JSP client not Working

    Hi all
    I have made a simple webservice which retrives some fileds of a remote pointbase
    database.i have published this webservice in the uddiexplorer and generated the
    wsdl file for this webservice.
    now i made the proxies need by the client from the test browser's overview page
    to invoke this webservice,and also wrote the following JSP code to invoke the
    service.
    <!--Generated by WebLogic Workshop-->
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <%@ page import="weblogic.jws.proxies.*"%>
    <%@ page import="WebServices.Users"%>
    <netui:html>
    <head>
    <title>
    Hello World Client Accessing HelloWorld Service
    </title>
    </head>
    <body>
    <p>
    <h2 align="center">Username's and associated Passwords stored in the Remote
    Database, at 10.3.8.254</h2>
    <br>
    <table align="center" border=1>
    <tr>
    <td>USERNAME</td>
    <td>PASSWORD</td>
    </tr>
    <%
    HelloWorld_Impl proxy = new
    HelloWorld_Impl("http://10.3.8.227:7001/SOAPappWeb/WebServices
    /HelloWorldContract.wsdl");
    HelloWorldSoap soapProxy = proxy.getHelloWorldSoap();
    org.openuri.www.Users[] result;
    result=soapProxy.uselect();
    for (int i=0; i< soapProxy.uselect().length; i++)
    %>
    <tr>
    <td align="center"><B><%out.print(
    result.getUSERNAME());%></B></td>
    <td align="center"><I><%out.println(
    result[i].getPASSWORD());%></I></td>
    </tr>
    <%}%>
    </p>
    </body>
    </netui:html>
    now when i run this code on the machine where server is running i get the correct
    result.but when i put the associated proxies and this JSP code on different machine
    and try t orun this JSP i m not able to run it.it sometimes keeps on loading the
    page or sometimes it shows me an error saying wsdl
    weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from
    D:/bea/user_projects/Webservice4/Webservice4Web/WebServices/HelloworldContract.
    wsdl. Please check the URL and make sure that it is a valid XML file [java.io.IOE
    xception: unable to find resource:D:/bea/user_projects/Webservice4/Webservice4We
    b/WebServices/HelloworldContract.xml]
    the path D:/bea/user_projects/Webservice4/Webservice4Web/WebServices/HelloworldContract.wsdl
    is the path where i have downloaded the wsdl in to my local machine i.e the machine
    where the client is.
    hope u get wat i m trying to say
    waiting for response..thanks for sparing time on my doubt
    kirtan

    Hello,
    Just a shot in the dark, but the _Impl needs a URL to the WSDL.  In the
    JSP, did you try something like (note the ?WSDL at the end):
         http://10.3.8.227:7001/SOAPappWeb/WebServices/HelloWorldContract?WSDL
    Can you point your browser at this location and get the WSDL? If you
    are doing a local WSDL file, you might try something like:
    blabla_Impl(new File("whatever.wsdl").toURL().toString());
    Some thoughts,
    Bruce
    kirtan patel wrote:
    >
    Hi all
    I have made a simple webservice which retrives some fileds of a remote pointbase
    database.i have published this webservice in the uddiexplorer and generated the
    wsdl file for this webservice.
    now i made the proxies need by the client from the test browser's overview page
    to invoke this webservice,and also wrote the following JSP code to invoke the
    service.
    <!--Generated by WebLogic Workshop-->
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <%@ page import="weblogic.jws.proxies.*"%>
    <%@ page import="WebServices.Users"%>
    <netui:html>
    <head>
    <title>
    Hello World Client Accessing HelloWorld Service
    </title>
    </head>
    <body>
    <p>
    <h2 align="center">Username's and associated Passwords stored in the Remote
    Database, at 10.3.8.254</h2>
    <br>
    <table align="center" border=1>
    <tr>
    <td>USERNAME</td>
    <td>PASSWORD</td>
    </tr>
    <%
    HelloWorld_Impl proxy = new
    HelloWorld_Impl("http://10.3.8.227:7001/SOAPappWeb/WebServices
    /HelloWorldContract.wsdl");
    HelloWorldSoap soapProxy = proxy.getHelloWorldSoap();
    org.openuri.www.Users[] result;
    result=soapProxy.uselect();
    for (int i=0; i< soapProxy.uselect().length; i++)
    %>
    <tr>
    <td align="center"><B><%out.print(
    result.getUSERNAME());%></B></td>
    <td align="center"><I><%out.println(
    result[i].getPASSWORD());%></I></td>
    </tr>
    <%}%>
    </p>
    </body>
    </netui:html>
    now when i run this code on the machine where server is running i get the correct
    result.but when i put the associated proxies and this JSP code on different machine
    and try t orun this JSP i m not able to run it.it sometimes keeps on loading the
    page or sometimes it shows me an error saying wsdl
    weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from
    D:/bea/user_projects/Webservice4/Webservice4Web/WebServices/HelloworldContract.
    wsdl. Please check the URL and make sure that it is a valid XML file [java.io.IOE
    xception: unable to find resource:D:/bea/user_projects/Webservice4/Webservice4We
    b/WebServices/HelloworldContract.xml]
    the path D:/bea/user_projects/Webservice4/Webservice4Web/WebServices/HelloworldContract.wsdl
    is the path where i have downloaded the wsdl in to my local machine i.e the machine
    where the client is.
    hope u get wat i m trying to say
    waiting for response..thanks for sparing time on my doubt
    kirtan

  • Jsp:root not working

    I have the page below where I am trying to follow the jspx way(this file has a jsp extension but I hear that is okay too). the page works in firefox, but nothing shows up in IE. Upon further investigation, I select show source in IE and it shows me the xml declaration, the jsp:root element and everything(which I think it is not supposed to do especially since omit-xml-declaration is true!!!) What in the world is going on?
    I am using the url http://localhost:8080/Test.jsf and the file name is Test.jsp because I have my *.jsf filter set up. I have no idea what is going on? Anyone have a simple jspx page working that I can also try?
    thanks,
    dean
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <html xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core">
         <head>
              <title></title>
         </head>
         <body>
              <f:view>
                   <h:form id="inputForm">
                   <h:outputText value="some more text"/>
                        Some kind of test <h:inputText id="prop" value="#{backingTest.prop}"/>
                        hello there
                        <h:commandButton id="submit" action="sayhello" value="Say Hello" />
                   </h:form>
              </f:view>
         </body>     
    </html>
    </jsp:root>

    I got it working now. One of the problems was the Sun RI. I don't know if it was an old version or not, but I switched to MyFaces and it now works, yeah! It was probably an old version of Sun's RI anyways and that is probably why.

  • JSP compenent not working in mozilla and firefox

    Hi Experts,
    We have made a portal component with JSPs. And assigned it to anonymous page on our portal.
    Same is working fine with IE. However, with Mozilla and Firefox it gets distorted.
    Anyone knows whether mozilla supports JSP pages or not?
    Is there problem with Support pack?
    I am using EP 7.1 and SP 10 for the Mozilla Browser version (3.6.25 and 8.0.1).
    Your helps will be appriciated.
    Regards,
    Chitra

    Dear Chitra
    Please check Product Availability Matrix in service market place to verify the compatibility for accessing JSP in mozilla,
    I think it should work in 3.6.25 but not sure about 8.0.1, please check and verify in SMP
    Best Regards
    Arun Jaiswal

Maybe you are looking for