Code not working in Mozilla

Hi
The below code works in Internet explorer but not in Mozill firefox. Could anyone please tell what could be problem.
<%@page language="java" import="sun.jdbc.odbc.*,java.sql.*,java.util.*;"%>
<jsp:useBean id="bhasar" class="rms.common.EncryptionUtils" scope="page"></jsp:useBean>
<%
java.util.Date d = new java.util.Date();
String qStr = "";
String username = request.getParameter("username");
String area = request.getParameter("area");
String password = request.getParameter("password");
String s1=bhasar.encrypt(username);
String s2=bhasar.encrypt(area);
String s3=bhasar.encrypt(password);
String hintquestion = request.getParameter("hintquestion");
String hintanswer = request.getParameter("hintanswer");
session.setAttribute("username",username);
session.setAttribute("area",area);
session.setAttribute("password",password);
session.setAttribute("hintquestion",hintquestion);
session.setAttribute("hintanswer",hintanswer);
%>
<form name="postform" method="post" action="http://www.abc.com/authenticate.jsp">
<input type="hidden" name="token1" value="<%=s1%>" />
<input type="hidden" name="token2" value="<%=s2%>" />
<input type="hidden" name="token3" value="<%=s3%>" />
</form>
<script>
document.postform.submit();
</script>
regards
Prashanth

Is that the entire page? Doesn't look like it generates valid HTML, which may be why Mozilla (which is more strict about these things) doesn't like what it gets from this JSP.
If you add an <html> and <body> tag set to your page it works just fine:
<html>
<body>
<form name="postform" method="post" action="http://www.abc.com/authenticate.jsp">
<input type="hidden" name="token1" value="<%=s1%>" />
<input type="hidden" name="token2" value="<%=s2%>" />
<input type="hidden" name="token3" value="<%=s3%>" />
</form>
<script>
document.postform.submit();
</script>
</body>
</html>BTW, this is a goofy way to use a JSP page. Isn't this more suited to a Servlet? There's no presentation on this page at all...

Similar Messages

  • Download to Excel Not working in Mozilla Firefox

    Hi Friends
    I have wriiten code for downloading data as a Excel file from a webdynpro application using the below methodology.
    ht[http://wiki.sdn.sap.com/wiki/display/WDABAP/Downloadafileintoexcelsheet|http://wiki.sdn.sap.com/wiki/display/WDABAP/Downloadafileintoexcelsheet]
    It works fine in Internet Explorer 7.0. Its not working in Mozilla Firefox 3.6. Our current SAP Version is ECC 6.0 EHP4 (NW7.01).
    Please provide some insight into the issue.
    Thanks a lot.
    Regards
    Rakesh

    Hi Rakesh
    Please check the browser compatibility in Product availability Matrix in service market place for your server version.
    Loging with SMP userid and password at http://service.sap.com/pam
    Best Regards
    Srinivas

  • The 'Content, index, search' section of my help is not working in Mozilla

    Dear All,
    The 'Content, index, search' section of my help is not working in Mozilla.
    I am using robo8 and mozilla 8. Any idea? please help...
    Regards,
    Jobin.

    Dear William,
    It is a webhelp
    It is working in all other browsers except Mozilla.
    It is a merged help...
    waiting for your reply..:)
    Regards,
    Jobin.

  • Radio Buttons not working in Mozilla firefox

    Hi,
    I want one solution, i have done some enhancement in my application in which if we click on radio button(Yes) the corresponding fields(select list,shuttle fields will be shown) or else it will be hidden. My problem here is this works fine in IE but it does not work with Mozilla Firefox, can anybody please help me to sort my problem.
    Thanks,
    Dil
    Edited by: dil84 on Nov 18, 2009 2:29 AM

    Thanks for your interest. Here is a page where it does not work: http://foundation.zurb.com/docs/components/switch.html . Radio button is too small (only click on the top right corner can toggle the button).

  • Keyboard not working in Mozilla

    My laptop’s keyboard is not working in Mozilla at all but works anywhere else. I am currently writing this in Word and cut and pasting it into the feedback box. I really need to fix this because it’s really making things difficult because I really don’t want to use another browser. I’ve already tried restarting with all my plugins disabled but that hasn’t helped and I have the newest version of Mozilla. I have not downloaded anything recently and have no idea why this started. The last thing I typed was into youtube which worked but as soon as I typed something else my keyboard wouldn’t work.
    Please help!

    I have this problem since I am on Windows 8/Bootcamp/iMac 27'.
    I noticed that it is because the Windows key (command key on mac keyboard) is active, by pressing this key, the keyboard works again...
    I assume I must hit the Windows key by mistake... Strange because I do not have this issue on other systems.
    I have a similar issue with Word 2013, suddenly keys B, C and W stop working, again it is the Windows key.

  • PS4 Game Voucher Code not working

    my PS4 Game Voucher Code not working and says: "The code you entered may not be correct or may no longer be valid" "Please check your entry (e-820000134)  

    Voucher codes are region-specific. For instance a US voucher won't work with a UK account. First thing to check is whether the voucher's region matches your account's region.

  • Embed tag is not working with Mozilla Firefox 23, 24 and 25

    Requirement:
    While loading the java applet on a page, if the user system do not have plugin loaded then our code should redirect the user to get Java 1.6 plugin.
    At present I am using below two URL for automatically JRE6 download
    • IE : https://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,31<br />
    [When user tries to access the applet page from IE browser then he/she is getting pop-up message for JRE6 installation, provided that the user system don’t have any JRE installed]. This scenario is working IE8,9,10<br />
    • Mozilla family : https://javadl.sun.com/webapps/download/AutoDL?BundleId=60336
    Below is the used script for ‘Object’ and ‘embed’ tag:
    <pre><nowiki><script language="javascript" >
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" name="OrderApplet"';
    WIDTH = 775 HEIGHT = 600
    codebase="https:\/\/java.sun.com\/update\/1.6.0\/jinstall-6-windows-i586.cab">';
    <PARAM NAME = "type" VALUE="application\/x-java-applet;version=1.6.0_31">';
    <PARAM NAME = "scriptable" VALUE = "true" >';
    <COMMENT>';
    <EMBED type="application\/x-java-applet;version=1.6"
    pluginspage="https:\/\/javadl.sun.com\/webapps\/download\/AutoDL?BundleId=60336">
    <NOEMBED>
    <\/COMMENT>;
    <\/NOEMBED><\/EMBED>;
    <\/OBJECT>;
    </script></nowiki></pre>
    User is getting pop-up message for JRE6 installation with browser IE8, 9, and 10 and also with Mozilla Firefox 22, but it’s failing with latest version of Mozilla Firefox23,24 and 25.
    I have gone through so many sites but could find any reason for this behavior.
    I have provided JRE6 32-bit version download URL, here I don’t think so I’m doing any version incompatibility because both the JRE6 and Mozilla Firefox are 32-bit version. And 64 bit Firefox version is not available for windows.
    I’m not sure why the code is working with Firefox 22 and its lower version but
    doesn’t work with higher version than firefox22….like 23,24,25
    Can anyone help to sort out this issue?
    Thanks, <br />
    Sumit

    Sorry for the delay in getting an answer, yesterday was a holiday in the USA.
    This forum is for Firefox user support, not for web developer support. My rough guess is that since Mozilla has blocked all but the most recent update for Java 7 Plugins - https://addons.mozilla.org/en-US/firefox/blocked/ - and Firefox 23 brought in a new '''Simplified interface for notifications of plugin installation''' - http://www.mozilla.org/en-US/firefox/23.0/releasenotes/ - that is probably why you're having a problem with versions of Firefox after Firefox 22.
    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    ''You'll need to register and login to be able to post in that forum''.

  • I made a clickable image with download link on my FACEBOOK page, but its not working on Mozilla Firefox, while its working on other browser.. pls help!!

    im using Firefox 23.0.. i just used a simple HTML code on the download link.. but its not working on FIrefox..

    In what way is this button not working?
    Can you post the code that you use for this download button?
    Do you get this link if you right-click and choose "Inspect Element" to open the built-in inspector?
    *https://developer.mozilla.org/en/Tools/Page_Inspector

  • Flash Player does NOT work with Mozilla Firefox

    I have Mozilla Firefox on my computer which uses Windows XP 32-bit and the flash player (newest version) simply does not work.  I have successfully followed ALL instructions for making it work but nothing has changed.  I have an .SWF file that I wish to open but I get the message that flash player is not installed on my computer but it is confirmed as installed.  I need it to work but I am not a computer whiz.

    Hi!  The Shockwave Flash plugin has be disenabled and re-enabled numerous times….
    I have Mozilla Firefox 22
    These are the files in my \Windows\system32\Macromedia\Flash file:
    flashInstall
    flashplayer.xpt
    FlashPlayerUpdateService
    Flashutil32_11_8_800_94_Plugin
    genuinst
    install
    KB923789
    mms.cfg
    NPSWF32_11_8_800_94.ddl
    plugin.vch
    I have already spent at least 8 hours trying to understand what to do with no change and as I said before I am not a computer whiz….
    Thanks for your help!
    Raney

  • End Routine Code not Working after Support Pack Upgrade

    Hi BI Community,
    We have recently upgraded to SPS17 (BW SP19) for our production system and the code deriving the values of several attributes in the end routine of the transformation for one InfoObject (as info provider) does not work anymore. We have been trying to identify the root cause but the fact is that we did not change anything to the InfoObject and its transformation and this used to work fine. The strange thing is that when we debugged the code we could see the value of the aforementioned attributes was derived correctly but the value is just not updated to the InfoObject where we still see the old values for these attributes.
    We have a similar InfoObject with the same end routine code in the transformation and it is working fine. We are out of idea what could have caused this during the SP upgrade.
    Thanks in advance for your feedback.
    Regards,
    Peter

    Cannot say what might have caused it but one check you can perform.
    Open your transformation in change mode and you can see a button next to create end routine button, titled ' Update Behavior of End Routine Change', click on that and say all fields.
    Hope it helps...
    Regards,
    Ashish

  • .oam file of html5 video trigger code not working in Muse

    I simply want to have a video play on page load. I have done the code for a trigger on one <div> to automatically play a video in Edge. The video plays perfectly in browser preview, even with transparency intact! Just the way I want it. The problem is when I insert .oam file in Muse it doesn't work. Other animations of simple objects and key frames work fine in Muse. But, I can make much more beautiful animations for certain elements in After Effects, with transparency and integrate them with elements in Muse. The video, its transparency and other objects work great from Edge to browser preview but not when .oam file is exported and placed into Muse. I know, I wouldn't build an entire site like this, I just want one or two animations to play automatically, with out controls (which I've been able to do), when the page is loaded.
    I publish with business catalyst to a my own domain, with Creative Cloud.
    Attached is a video where I'm at.
    What is the code or method to get to work?

    HI,
    Ok. I know that mov is not supported in Firefox nor Chrome, now.
    When I put the trigger in Edge to play the .mov file, it works when I preview from Edge to Safari, and not in any of the other browsers. This leads me to think that Safari supports .mov files, with and without transparency.
    However, when I try to put the .oam file generated by Edge into Muse and run the page in Safari the video doesn't work. Is this a .mov support with Muse? Does the video need to be uploaded to the Adobe Business Catalyst server? Where I publish my site?
    .mov and transparency aside, I can't get any video to play in any browser from the .oam file placed in Muse. Nothing plays in preview nor when I publish in Muse. I get the previews to work from Edge for the corresponding video for each browser. And yes, when controls in put in it says wether the video is supported or not. But I would want no controls and the video to play automatically on page load. Ideally I would like transparency. But I realize that's a browser support thing.  I don't see why all browsers don't support all video types and WITH transparency. C'mon now it's almost 2014! Am I right or am I right? Ok, sorry.
    I followed everything in this Tom Green video. Pretty sure all my code is correct.
    http://layersmagazine.com/embedding-video-in-adobe-edge-animate.html
    Picture shows code for working .ogv in Edge preview but not from .oam file in Muse in preview nor publish.
    Not sure why it won't even show in preview from Muse. But thinking when I publish, the video must have to be local on the publish server right?
    Am I missing something? Do I need to insert HTML into Muse, not the .oam?

  • Open my closed hotmail account , code not worked

    Hi
    I closed my account hotmal by mistake , and I tray to open it 
    saliraouf​@hotmail​.com​ will be closed on 8/17/2014
    You're trying to sign in to an account that's going to be closed. If you continue, we'll reopen the account. If you cancel, your account stays marked for closure. 
    What do you want to do?
    I tray to use all the code sending by Windows but it appeerl le code does not work , tray another time , I have a week trying to open it but it still closed
    i posed the problem to technical support but i have not get any answors
    can you help me

    Hi,
    Seems this question is that you closed your Microsoft Account by mistake but now you can't cancel the action.
    Please note we provide support for Excel in the current forum, this question is beyond the scope. I think you can get this issue resolved with the help from this link below:
    http://windows.microsoft.com/en-us/windows-live/id-support
    I hope this will help.
    Regards,
    Melon Chen
    TechNet Community Support

  • Flash Object is not working in Mozilla firefox 3.6 and safari

    Hi All ,
    I am facing issue in Flash , my Flash application functionality is working fine in IE all versions and Chorme , but it is not
    working properly in mozilla Firefox and safari as well .
    The Problem is when i am using mousewheel scroll at the centre of the mouse to scroll down to the bottom of the page and again revisit some
    portion of flash the mouseOver functionality is getting lost and it is expecting a click to gain the focus .
    Can any body help me on this .
    please provide some suggestions on what need to be done to solve this issue
    regards,

    Hi, I don't know about the mouse issue, but go here and test :
    http://www.adobe.com/products/flash/about  Use your Firefox browser when you test, perhaps you need the plug-in. Whatever the
    test tells you to do, do it. Then check your websites and see if that works.
    Thanks,
    eidnolb

  • 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>

  • Body onUnload() is not working on Mozilla, I checked it on IE and Chrome, its working fine but on Mozilla it is not working.

    I m using <body onunload()> in which I m calling some AJAX function that will affect particular row.
    But as I m going to close my browser sch function is not working.
    I checked the same on Internet Explorer and google Chrome it's working fine there.
    But on Mozilla it is not working.

    Any errors in the error console?
    Please provide a public URL or reduced test case that exhibits this issue.

Maybe you are looking for

  • Unable to set  size and scroll bar to table components in visual web jsf

    Hi Friends, Good day all of you, my requirement is to display multible tables in the same jsp page with same size. if some tables have more columns than other tables then that table need horizontal scroll bar...

  • How to make the changes in Existing DC

    hi I am new to the NWDI. We have created one trac and we have added one .SCA file to that. This file contains many DC's. I have imported this track in to NWDS. I am able to see the list of the DC in Development configuration prospective. Now i need t

  • Error when i upload TBH file

    Hi, I Need your help, when I am attempting to load TBH file, I am getting an error “input contains special characters check the file”, I am unable to identify the special character in the upload file, can you please help to trace the error? I thought

  • Slideshow Playback "Out of Focus" on DVD

    I exported a Keynote slideshow as a .mov and burned it on a DVD. When I played the DVD, everything was "fuzzy" as if it were out of focus or a very soft focus. I used the same process that I have used previously (as well as I remember) and those DVDs

  • TABLE WIDTH OF SMARTFORMS

    Hello Guys, Im just new in ABAP...and currently using smartforms . Im quite confuse in table width.. my report should be in legal size with 18 columns...dont know what is the exactly size for each column. I tried to use a table width of 300 MM..but o