Java script problem in JSP called thru servlet

when jsp page is displayed thru a servlet in following way the java scripts built in that JSP page are not working.
ServletContext sc = getServletContext();
     RequestDispatcher rd = sc.getRequestDispatcher(url);
     rd.include(req, res);
how can i enable these java scripts?

Most probably you have something like this:
<script language="JavaScript1.2" src="menu.js"></script>
The bit that is probably causing the problem is the src attribute.
Its a common issue when using the request dispatcher
You request "/servlets/myServlet"
it forwards to "/jsp/myJSP"
You try and access a resource using a relative URL.
however, the browser knows nothing about the forward being done - it thinks that the URL is /servlets/myServlet, when you want it to be /jsp/myJSP.jsp
So if you access menu.js it will look in /servlets/menu.js instead of /jsp/menu.js (example only)
to fix
1 - Don't use relative links. Ie use /scripts/menu.js to import the script
2 - use a <base> tag <base href="http://www.mywebsite.com/jsp/> This tells a web page where to resolve relative references from.
Hope this helps,
evnafets

Similar Messages

  • How to call java script function from JSP ?

    how to call java script function from JSP ?

    i have function created by java script lets say x and i want to call this function from jsp scriplet tag which is at the same page ..thanks

  • How to access a JAVA Script variable in JSP Code

    How to access a JAVA Script variable in JSP Code. I have been unable todo this.
    Plz Suggest a way.
    Thanks
    Soumya

    try to do this code
    String s=request.getParameter("javascriptvariablename");

  • OS X Lion - JAVA SCRIPT PROBLEM

    I recently updated from Snow Leopard to OS X Lion. Now I seem to have a JAVA Script problem. Where do I start fixing this issue. I have checked updates etc etc but it seems to be updated. However, when I login to my web site backend, I have a problem. Any advice please?

    Would you please write some more details? explain the problem and what web site backend you use. Thanks.

  • Visual Web JSF and Java Script problem

    Hi i am using Visual Web JSF for development in my project. AJAX to update data from server when users enters data in one text box its an chat application. i am getting data from server but unable to update my <webuijsf:textarea> component with the new data on my chat page ... I am facing another problem in java script that it is not accepting relational operators (< . >) in JSF Application.... i am attaching some code here for reference...result =http.responseText.split(","); /// this is the response text from AJAX based call
    var obj=document.getElementById('form1:chatter_box'); /// this text area is to be updated...
    var txt=document.createTextNode(http.responseText);
    ///document.getElementById('form1:chatter_box').innerHTML = txt;
    for(i=0;i < size;i++){
    var txt1=document.createTextNode(result);
    obj.appendChild(txt1);

    Try changing onclick to onClick and try...
    regards
    shanu

  • Adobe Dreamweaver CS5.5 - Windows 7 - Java Script Problem

    I am having trouble with Anchor.htm.
    When I try to insert an anchor in the text (Insert > Named Anchor> I get this error message:
    "While executing insertObject in Anchor.htm a Java Script error occurred."
    I recently downloaded both the 32- and 64-bit Java Script applications when I received a message that the existing version of Java Script was out-of-date. Anchor.htm worked before I installed the update.
    The files I downloaded and installed are:
    jre-7u9-windows-i586.exe
    jre-7u9-windows-x64.exe
    Please can anyone help me with this problem?

    From Dreamweaver FAQ
    http://forums.adobe.com/thread/429114
    "If Dreamweaver is acting erratically, or if you see a message saying "the following JavaScript error(s) occurred",  it's usually a sign of a corrupt cache file. The first thing to try should always be to delete the file cache. If that doesn't work, delete your personal Configuration folder. Full instructions are in Deleting a corrupted cache file.
    http://forums.adobe.com/thread/494811"
    Nancy O.

  • Sreaming at the top of my lungs for HELP with Java Script problem!

    Hello,
    I have this strange problem that no one seems to know why or how to fix it.Whenever I encounter a web site that has java scripting for anything pop ups or redirects to url's anything that says java script when I mouse over the link my browsers do nothing.That is for explorer 6.0 beta netscape 4.7 and netscape version 6.I have tried in another forum some suggestions but nothing changed even though I am told nothing is wrong with the java scripting.I used to be able to click java script's with all of these browsers but no longer.That was a few months ago.Now to try something new I tried to see if a new browser would work.I now have the latest version of Opera.It did work but using Opera on some sites limits what I can do so it doesn't solve my problem.Then I tried the Sun JavaHot browser it also worked but limits what I can do on some site's.I have Windows 98 & updated most of my dll's etc & my java is version 2 1.3.1.My java script is enabled in Explorer & netscape's & the security is at a minimum level.Please help me figure out why these other browsers work but the other's do not.I want to edit a web site of mine but I can't because of this problem.I am very frustrated by this and need as detailed help as I can get.Anything of a suggestion would be very much appreciated.But I am also not an expert on the working's of a computer so bear with me.
    Brian

    Hi,
    Well I am thinking that if anyone could know something about Java script it would be java developers.But anyways I had the previous version of explorer 5.0 & the java didn't work in it either.Now how weird is this,I opened netscape 4.7 today & the java scripts are suddenly working.This has me scratching my head wondering if my computer is possesed by some force beyond my capability to know...????Weird as it seems though the explorer still will not respond to a java script.
    Brian

  • Java script problem when trying to sign in to Ovi ...

    Hi Folks
    I am running XP SP3, with IE7.  I have had problems due to installing ie8 then removing it and going back to IE7.  I have had to reset all sorts of bits.  Anyway. I still can't sign in to the music store, or register my PC for comes with music.  I installed a debugger to see what was going on.  This is my current stage of the problem..... 
    When I sign in, I only get a white panel.  The debugger highlights this section of the java script: __doPostBack('ctl00$C$btnEContinue','')  
    Can someone tell me why this fails, and how I can fix it?
    many thanks.

    I also have the same problem. I've tried all fixes listed in other forums and nothing works. Running windows Vista 32 bit. Any working solutions yet? Tried every solution listed for the cmd prompt. Turned off antivirus and spyware. Rebooting about 100 times. Nothing works.

  • Java script problem

    Hai all,
    i had a problem regarding java script,i had a time shedule page in which there is a start time and end time for each day,means monday,tuesday......
    the problem is when i select monday it shows '0000' in start up but when i de select means change to 'no it will not rest the value to '0000',how can i do this my code is PROBLEM WHEN ONCE SELECTED YES AFTER FIRDAY I WANT TO CHANGE THE TIME OR RESET THE TIME OF SUNDAY TO 'NO' THEN THE DEFAULT VALUE ie "0000" WILL NOT ENTER THE DATA BASE BUT THE ENTERED VALUE HOW WILL I CORRECT IT OR I HAD TO USE AJAX FOR REPOPULATE THE TEXT BOX WITH "0000".and how can i popup a calender insted of this.
    <%@ page language="java" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
    <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html:html lang="true">
    <head>
    <%String path=request.getContextPath();
    String basepath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;%>
    <title>BLUE LAW</title>
         <meta http-equiv="pragma" content="no-cache">
         <meta http-equiv="cache-control" content="no-cache">
         <meta http-equiv="expires" content="0">
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="This is my page">
    <script type="text/javascript">
    function display(val, id1,id2)
         if(val=="Y")
         document.getElementById(id1).style.display="block";
         document.getElementById(id1).style.visibility="visible";
         document.getElementById(id2).style.display="block";
         document.getElementById(id2).style.visibility="visible";
         else
         document.getElementById(id1).style.display="none";
         document.getElementById(id1).style.visibility="hidden";
         document.getElementById(id2).style.display="none";
         document.getElementById(id2).style.visibility="hidden";
         function newWindow(url) {
         popupWindow = window.open(url,'popUpWindow','height=300,width=250,left=50,top=50,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=yes');
         var timeout = 500;
    var closetimer          = 0;
    var ddmenuitem = 0;
    // open hidden layer
    function mopen(id)
         // cancel close timer
         mcancelclosetime();
         // close old layer
         if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
         // get new layer and show it
         ddmenuitem = document.getElementById(id);
         ddmenuitem.style.visibility = 'visible';
    // close showed layer
    function mclose()
         if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
    // go close timer
    function mclosetime()
         closetimer = window.setTimeout(mclose, timeout);
    // cancel close timer
    function mcancelclosetime()
         if(closetimer)
              window.clearTimeout(closetimer);
              closetimer = null;
    // close layer when click-out
    document.onclick = mclose;
    </script>
         <style type="text/css">
    <!--
    body {
         background-color: #e1f2f8;
    .style1 {     font-family: Verdana, Arial, Helvetica, sans-serif;
         font-size: 12px;
    .style5 {color: #EEF0EC}
    -->
    </style>
    <link href="<%=basepath%>/style/style.css" rel="stylesheet" type="text/css">
         <link rel="stylesheet" type="text/css" href="<%=basepath%>/css/default.css">
    </head>
    <body topmargin="0">
    <html:errors/>
    <html:form method="get" action="addblue.do" onsubmit="return validateTYUY(this);">
    <input type="hidden" name="action" value="Add"/>
    <table width="891" border="1" align="center" cellpadding="4" cellspacing="0" >
    <tr >
    <th colspan="4" ><b><strong>Enter TIME Details</strong></b></th>
    </tr>
    <tr >
    <td width="421" class="Label" align="right"> Number</td>
    <td width="448" ><html:text styleClass="Textfield" property="ABCnumber" size="2" maxlength="2" ></html:text><br></td>
    </tr>
    <tr>
    <td> <table>
    <tr >
    <td class="Label" ></td>
    <td width="62" ></td>
    <td class="Label" ></td>
    <td width="68" ></td>
    </tr>
    <tr >
    <td class="Label" width="152"> Restrict on Sundays</td>
    <td style="background-color: rgb(255, 255, 255);"><html:select property="sundayrest" styleClass="Textfield" onchange="display(this.value, 'sunday','sunday1')" >
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option>
    <html:option value="N">NO</html:option> </html:select></td>
    <td class="Label" ></td>
    <td ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="sunday" >
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);"> Sundays Start Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="sundaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="133" class="Label" style="background-color: rgb(255, 255, 255);">Sundays Start Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="sundayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="sunday1" >
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);">Sundays Start Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="sundaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Sundays End Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="sundayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    <td> <table>
    <tr >
    <td width="160" class="Label" >Restrict on Mondays</td>
    <td width="59" style="background-color: rgb(255, 255, 255);"><html:select property="mondayrest" styleClass="Textfield" onchange="display(this.value, 'monday','monday1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td class="Label" ></td>
    <td width="70" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="monday">
    <td class="Label" style="background-color: rgb(255, 255, 255);">Monday End Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="mondayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="148" class="Label" style="background-color: rgb(255, 255, 255);">Monday Start Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="mondaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr id="monday1" style="visibility: hidden;display:none;" >
    <td class="Label" style="background-color: rgb(255, 255, 255);">Monday End Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="mondayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Monday Start Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="mondaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td> <table>
    <tr>
    <td class="Label" width="152">Restrict on Tuesdays</td>
    <td width="62" style="background-color: rgb(255, 255, 255);"><html:select property="tuesdayrest" styleClass="Textfield" onchange="display(this.value, 'tue','tue1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td class="Label" ></td>
    <td width="70" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="tue">
    <td width="138" class="Label" style="background-color: rgb(255, 255, 255);">Tuesday Start Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="tuesdaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="131" class="Label" style="background-color: rgb(255, 255, 255);">Tuesday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="tuesdayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="tue1">
    <td width="138" class="Label" style="background-color: rgb(255, 255, 255);">Tuesday Start Time 2</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="tuesdaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Tuesday End Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="tuesdayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    <td> <table>
    <tr>
    <td width="160" class="Label" >Restrict On Wednesdays</td>
    <td width="58" style="background-color: rgb(255, 255, 255);"><html:select property="wednesdayrest" styleClass="Textfield" onchange="display(this.value, 'wed','wed1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td class="Label" ></td>
    <td width="68" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="wed">
    <td class="Label" style="background-color: rgb(255, 255, 255);">Wednesday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="wednesdayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="149" class="Label" style="background-color: rgb(255, 255, 255);"> Wednesday Start Time1</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="wednesdaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="wed1">
    <td class="Label" style="background-color: rgb(255, 255, 255);">Wednesday End Time2:</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="wednesdayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Wednesday Start Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="wednesdaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><table>
    <tr >
    <td class="Label" width="150">Restrict On Thursdays</td>
    <td width="61" style="background-color: rgb(255, 255, 255);"><html:select property="thursdayrest" styleClass="Textfield" onchange="display(this.value, 'thu','thu1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td ></td>
    <td ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="thu" >
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);">Thursday Start Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="thursdaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="132" class="Label" style="background-color: rgb(255, 255, 255);">Thursday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="thursdayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="thu1">
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);">Thursday Start Time2</td>
    <td style="background-color: rgb(255, 255, 255);"> <html:text styleClass="Textfield" property="thursdaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Thursday End Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="thursdayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    <td> <table>
    <tr >
    <td class="Label" width="170">Restrict On Fridays</td>
    <td width="57" style="background-color: rgb(255, 255, 255);"><html:select property="fridayrest" styleClass="Textfield" onchange="display(this.value, 'fri','fri1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option>
    <html:option value="N">NO</html:option> </html:select></td>
    <td width="150" class="Label" > </td>
    <td width="66" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="fri">
    <td class="Label" style="background-color: rgb(255, 255, 255);">Friday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="fridayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td class="Label" style="background-color: rgb(255, 255, 255);">Friday Start Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="fridaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="fri1" >
    <td width="153" class="Label" style="background-color: rgb(255, 255, 255);">Friday End Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="fridayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="150" class="Label" style="background-color: rgb(255, 255, 255);">Friday Start Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="fridaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td> <table>
    <tr >
    <td width="162" class="Label" > Restrict On Saturdays</td>
    <td width="61" style="background-color: rgb(255, 255, 255);"><html:select property="saturdayrest" styleClass="Textfield" onchange="display(this.value, 'sat','sat1')">
    <html:option value="">select</html:option>
    <html:option value="Y">YES</html:option> <html:option value="N">NO</html:option>
    </html:select></td>
    <td width="132" class="Label" ></td>
    <td width="66" ></td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="sat">
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);"> Saturday Start Time 1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="saturdaystart1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="132" class="Label" style="background-color: rgb(255, 255, 255);">Saturday End Time1</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="saturdayend1" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    <tr style="visibility: hidden;display:none;" id="sat1">
    <td width="140" class="Label" style="background-color: rgb(255, 255, 255);"> Saturday Start Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="saturdaystart2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    <td width="132" class="Label" style="background-color: rgb(255, 255, 255);">Saturday End Time2</td>
    <td style="background-color: rgb(255, 255, 255);"><html:text styleClass="Textfield" property="saturdayend2" value="0000" size="5" maxlength="4"></html:text>(HHMM)</td>
    </tr>
    </table></td><td> </td>
    </tr>
    <tr>
    <td height="27" colspan="4" align="center"><html:submit value="Save"></html:submit>
    <html:reset value="Cancel" onclick="window.close();"></html:reset></td>
    </tr>
    </table>
    <html:javascript formName="ert"/>
    </html:form>
    </body>
    </html:html>

    [some javascript forum...|http://www.webdeveloper.com/forum/forumdisplay.php?forumid=3&s]

  • JAVA SCRIPT PROBLEM IN UNIX

    When we run JAVA SCRIPT in window, the GUI display comes out difference from running under UNIX. For example the check boxes show check when running under WINDOW but not in UNIX. Can anyone tell me how to resolve this problem? Thanks in advance for the information.

    The browsers are generally optimized for specific platform, hence the different look-and-feel. But I find it hard to believe that checkboxes would show up checked on unix but not on Windows. The only thing I can suggest is to examine the HTML file and see if there is the CHECKED keyword being used where you are not expecting.
    V.V.

  • Java script problems

    wasn't supposed to. I don't have the original template.

    What is not working? All I see is DW stock javascript, no
    java whatsiever
    Mick
    destind4film wrote:
    > I have been completely revamping my website using
    Dreamweaver (originally
    > designed in iWeb) and had recently gotten a friend to
    help me put in some java
    > script on the "Order" page. The page works perfectly in
    IE07 and in Firefox,
    > but for some reason the Java does not work at all in
    Safari or on any of my
    > MACs. The site is being hosted on the .MAC servers so
    naturally my friend
    > (anti-MAC user) says that my problem is the .mac or my
    Apple cmputers and not
    > the Java script.
    >
    > I really need to make sure all of my pages work for
    everyone who would go to
    > my site regardless of what OS they have or what browser
    they are using.
    >
    > The page in question is currently located at:
    >
    http://homepage.mac.com/dvdflashbacks/New_DVD_FB_Site/Order.html
    >
    > And in case anyone is curious as to what the original
    site looked like before
    > my redesign, the url is :
    >
    http://www.dvdflashbacks.com
    >
    > If anyone knows Java really well and can take a look at
    the code, maybe
    > something will jump out that is causing my problems.
    >
    > Thanks!
    >

  • Rollover Java Script Problem

    I just upgaded to a new Windows 8 system and also upgraded from old Macromedia Dreamweaver 8 to CS6.
    On my old system, when I inserted an image object / rollover image, the code that was written inserted BORDER="0".
    That made it so when viewed in a browser, the image was not bordered with hyperlink blue/purple.
    My new system does not put the Border="0" in the code and thus I get a border of the rollover image in hyperlink colors.
    I've tried changing the CSS for links, etc. and it does not have any effect on rollovers.
    How do I get the java script writer to add that after the image size in the source code the dialog box creates???
    Your help is much appreciated!

    Thanks Ben,
    Thanks for your help with the ‘LISTINGS’ page on my website (link below).
    Setting up CCS for no border for tag “a img” (link images) got the effect I need without changing the other image types on the page that have their own formatting.
    However, years ago, using a 6 inch thick dreamweaver book, I was able somehow to save a variable BORDER=”0” in some way that changed the Java Script to automatically insert that when using the top menu, to insert image object / rollover image. Do know of a way to change the behavior attribute for rollover (image swap / image restore)???
    I know there’s a way. Do you know how to do it?
    GORDON HUNT
    REALTOR
    CHAPMAN RICHARDS & ASSOC.
    801-486-7075
    <http://www.gordonhuntrealestate.com/> GordonHuntRealEstate.com
    P.S. The Finest Compliment I Can Receive Is Your Referral!

  • JSP & Java Script problem.

    Hi,
    A oldPage.jsp page contains select list box with options coming from oracle database, after selecting any one option (eg as 3rd option) a next button is pressed which leads to newPage.jsp with same select box.
    The problem is as follows
    When the newPage.jsp is loaded we want the selected list box initialized to the value selected from the oldpage.jsp . Currently the default first option is displayed on newPage.jsp.

    Add the "selected" HTML element attribute to the option that was selected from oldPage.jsp

  • Problem in JSP Call ! Urgent

    Hi All,
    I am facing one issue while calling the jsp page from OAF page.
    When I am calling the JSP from html page it is getting called, but when I am calling through OAF Page, the page is not getting called. Instead of a blank page opens.
    The HTML which I am running to call this JSP is...
    <html>
    <head>
    <title>Minimal Configurator Test</title>
    <param name="ui_def_id">3420</param>
    </head>
    <script language="javascript" >
    function init() {document.test1.submit();}
    </script>
    <body onload="init();">
    <form
    action="http://My URL/OA_HTML/CZInitialize.jsp"
    method="post" id="test1" name="test1">
    <input type="hidden" name="XMLmsg" value='<initialize>
    <param name="database_id">some Id</param>
    <param name="user">userName</param>
    <param name="pwd">Password</param>
    <param name="calling_application_id">708</param>
    <param name="responsibility_id">22713</param>
    <param name="ui_def_id">3980</param>
    <param name="ui_type">DHTML</param>
    <param name="organization_id">2</param>
    <param name="inventory_item_id">261902</param>
    </initialize>'>
    </form>
    <pre>
    Loading...
    </pre>
    </body>
    </html>
    In MY OAF Page, I have created one Raw Text Bean and there I copied all the html code I have written, Then My JSP Page is not being called.
    Other approach I already tried is, On Page Load in ProcessRequest I put the javascript code. In that case also I am getting blank page.
    OABodyBean bodyBean = (OABodyBean) pageContext.getRootWebBean();
    String javaS = "javascript:submitForm('DefaultFormName',8,{'database_id':' database_id','user':'user','pwd':'pwd','calling_application_id':'calling_application_id', 'responsibility_id':'responsibility_id','ui_def_id':'ui_def_id','ui_type':'ui_type','organization_id':'organization_id','inventory_item_id':'inventory_item_id'});window.location='http://MyUrl/OA_HTML/CZInitialize.jsp';";
    bodyBean.setOnLoad(javaS);
    Any pointers will be of great help for me.
    Thanks
    Anoop

    I guess there is some problem with your javascript code..
    javascript:submitForm('DefaultFormName',8,{'database_id':' database_id','user':'user','pwd':'pwd','calling_application_id':'calling_application_id', 'responsibility_id':'responsibility_id','ui_def_id':'ui_def_id','ui_type':'ui_type','organization_id':'organization_id','inventory_item_id':'inventory_item_id'});window.location='http://MyUrl/OA_HTML/CZInitialize.jsp';
    Check this as well in your html page.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Java Mail Problems within JSP Page

    Hi all,
    I'm encountering the following problem. I hava a jsp file named common.jsp with holds all common functions like write header and footer and also a send mail function. i include this page in all my other jsp pages. In the signup page - i need to send out 2 emails, one to the administrator and the other to the user who signed up. so i call that send mail function twice. the first call works(meaning it sends out the email) but the second call gives me a No SMTP Provider exception. Can anyone help me with this.
    thx a bunch
    p.s: i have included the sendEmail Function below
    public void sendEmail(String emailServer, String sEmail, String sName, String rEmail,
         String subject, String strmsg) throws Exception {
         java.util.Properties props = new java.util.Properties();
         props.put("mail.host", emailServer);
         javax.mail.Session mailConn = javax.mail.Session.getInstance(props, null);
         javax.mail.Message msg = new javax.mail.internet.MimeMessage(mailConn);
         javax.mail.Address sender = new javax.mail.internet.InternetAddress(sEmail, sName);
         javax.mail.Address receiver = new javax.mail.internet.InternetAddress(rEmail);
         msg.setContent(strmsg,"text/html");
         msg.setFrom(sender);
         msg.setRecipient(javax.mail.Message.RecipientType.TO, receiver);
         msg.setSubject(subject);
         javax.mail.Transport.send(msg);
    }

    This is what i use and it works just fine
    import java.io.*;
    import java.net.InetAddress;
    import java.util.Properties;
    import java.util.Date;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class sendMail {
    public sendMail(String To,String Subject,String message) {
    String to = To, subject = Subject, from = null,
              cc = null, bcc = null, url = null;
         String protocol = null, host = null, user = null, password = null;
         boolean debug = false;
         try{
    Properties props = System.getProperties();
         Session session = Session.getDefaultInstance(props, null);
         Message msg = new MimeMessage(session);
         if (debug)
              session.setDebug(true);
    msg.setFrom(new InternetAddress("[email protected]"));
         msg.setRecipients(Message.RecipientType.TO,
                             InternetAddress.parse(to, false));
         msg.setSubject(subject);
    msg.setText(message);
         msg.setHeader("Mail","test.com");
         msg.setSentDate(new Date());
         Transport.send(msg);
         System.out.println("\nMail was sent successfully.");
         } catch (Exception e) {
         e.printStackTrace();

Maybe you are looking for

  • Can't install itunes... can't uninstall quicktime/itunes

    I've searched the board and found a few threads about the error I'm getting. When I try to install itunes on my machine, I get an error during the installation telling me that the installer could not remove the older version and I should contact supp

  • So many blue screens XP and W2k...please help me.

    Thanks for all the advice, Now for a conundrum that is linked (I bealive) to the IRQL....Blue Screen Stop Error. as a reminder the system hardwear setup at current is this: 1) 1x VData 333mhz PC2700 256mb 2.5v Ram (installed in slot one) 2) 1800+ AMD

  • Can't open my ebook (VE error 59)!

    When I'm trying to open my ebook (bought from amazon) I just can't add it to the Library. Only this message shows up: Adobe DRM Error System: 8 State: 4 Code: 59 Class: 1 Message: VE error 59

  • Script logic problem

    Hi , I transfering the data from HR to finance . HR account dimension :  HRM_Account Finance account dimension : Account in HR diemnsion , i created one property ( fixgroup ) and value for required accounts is "transfer" at the same time in account d

  • Calander Date format(month year)

    Hi All,   I am using the Date format (month year, 'January 2009') to  QaaWs as a input. But when i go into Xcelsius calendar i am trying to give the same format but its not taking  as same as mentioned above( I customize the cell in xcelsius spread s