The jsp file does not open the new login window but opens the source code.....plz help

When i try to log in to the log in link at the site https://efp.bpcl.in the log in page does not open but the firefox wants to ask with which program the firefox should open the file and when we give firefox or internet explorer than it opens the source code.Plz help...

Those files are send as application/octet-stream and that makes Firefox display a download dialog.
http://developer.mozilla.org/en/docs/Properly_Configuring_Server_MIME_Types

Similar Messages

  • My JSP file does not reflec the change of a Bean

    My test environment: Win 2000, JDK 1.3.1, OC4J(standalone)
    My problem:
    In servlet, the change of a Strng value is reflected at the next refresh of a browser.
    But, when a jsp file call a bean's getXXX(return a String value) method, and if the String value of that bean is changed, the next refresh or visit to that jsp file does not reflect the change of that bean.
    For example:
    1) TestClass.java
    public class TestClass {
    private String txt;
    public class TestClass {
    txt = "Test"; ----- (g
    public String getTxt() {
    return txt;
    2) test.jsp
    <html><body>
    <h2>
    <% TestClass test = new TestClass(); --(h
    out.print(test.getTxt()); %> --(i
    </h2>
    </body></html>
    In my first vistit to "http://localhost:8888/test.jsp" the brower shows "Test" String, but after I change the txt value to "Test1"((g) the brower does not reflect the change.
    I found that if I use <jsp:useBean id="test" class="TestClass" /> instead of (h-(i line, the brower reflects the change of the bean.
    Why does this occur?
    Thaks in advance.
    PS) In some cases(Not above example), I get the java.lang.ClassCastException.
    So Each time I change a Servlet or a Bean, I restart OC4J.
    null

    SangKyu,
    <jsp:useBean > has a property called scope, which defaults to "page".
    So the bean gets reset everytime you reload the page.
    Can I suggest that you set it to "session"?
    The following syntax card I have found userful:
    http://java.sun.com/products/jsp/syntax.pdf
    Cheers,
    Scott
    Atlassian - Supporting YOUR 'Orion/OC4J' World
    http://www.atlassian.com - [EMAIL][email protected][EMAIL]

  • Want to open a new browser window and display the html file in locale disk.

    Hi,
    I want to open a new browser window and display the html file in local drive. The below html applet work in local system successfully. But i deploy the same in web server (Tomcat) and try the same in client machine it does not work. Please help.
    Note:
    The class below fileopen.FileOpen.class i make it as a jar and put it in jre\ext folder at the client machine.
    ------------------------------------FileOpen.html(Tomcat)-----------------------------------------------------
    <html>
    <body >
    <applet code="OpenFile.class" archive="loadfile.jar" width="100" height="100">
    <param name="path" value="file://c:/open.html" />
    </applet>
    </body>
    </html>
    -------------OpenFile.java in server(Tomcat)--------------------------------------------
    public class OpenFile extends Applet implements ActionListener{
    String path = "";
    fileopen.FileOpen open = null;
    Button b = null;
    public void init(){
    path = getParameter("path");
    b = new Button("Open");
    b.addActionListener(this);
    add(b);
    public void actionPerformed(ActionEvent ae){
    try
    open = new fileopen.FileOpen(this,path);
    catch (Exception e){
    e.printStackTrace();
    -------------------------------------------FileOpen.java /Client JRE/ext----------------------------------------------------
    package fileopen;
    public class FileOpen
    AppletContext context = null;
    URL url = null;
    public FileOpen(Applet applet,String path)
    try
    if(null != applet){
    context = applet.getAppletContext();
    if (null != path)
    url = new URL(path);
    context.showDocument(url, "_blank");
    }catch(Exception ex)
    ex.printStackTrace();
    Please help to solve this issue very urgent.
    Thanks in advance.
    By,
    Saravanan.K.

    zzsara wrote:
    I want to open a new browser window and display the html file in local drive. ...Did you ever pause to consider how ridiculous that is?
    The best audience for applets is people off the internet. 'People off the internet' might be using a computer that has no (what was it?) 'open.html' in the root of the C: drive. In fact (shock horror) they may not even be running Windows, and would therefore probably have no 'C:' drive at all.
    If you do not intend to distribute this to people off the web, an application makes a lot more sense, but even then, you cannot rely on the document being there unless you 'put it there' (during installation, for instance).
    As the other poster intimated, applets can load documents off the local disk as long as they are trusted. Here is an example*, but note that it is not so rash as to presume any particular path or file, and instead leaves it to the user to choose the document to display.
    * The short code can be seen at SDNShare on the [Defensive Loading of Trusted Applets|http://sdnshare.sun.com/view.jsp?id=2315] post.
    On the other hand, a sandboxed applet can load any document coming from its own server via URL, or get showDocument(URL) to work. In that case, the JRE must recognize that the URL is from its own server, so the best way to form URLs for applet use is via the URL constructor
    new URL(getDocumentBase(), "path/to/open.html");That is how I form the URL in this [ sandboxed example of formatting source|http://pscode.org/fmt/sbx.html?url=/jh%2FHelpSetter.java&col=2&fnt=2&tab=2&ln=0]. Of course, in this case the applet loads the document, then parses the text to draw the formatted version, but the point is that an URL produced this way will work with showDocument(URL).
    I am pretty sure showDocument() in an applet off the internet will work with an URL pointing to a foreign (not its own) server, but it will not be able to load documents off the end user's local disks.
    I suggest a couple of things.
    - Try to express this problem in terms of what feature it is that you want to offer the end user. Your question jumps directly to a bad strategy for achieving ..who knows what? An example of a feature is "Shows the applet 'help' files on pressing F1".
    - A good way to indicate interest in a solution is to offer [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match that interest.
    Edit 1:
    ..and please figure out how to use the CODE tags.
    Edited by: AndrewThompson64 on Sep 12, 2008 11:14 PM

  • Error in script task "The name 'file' does not exist in the current context"

    I am new to the c# scripting and SSIS come from PHP and Foxpro.
    I am using SSIS with a script task and I am getting am errror "The name 'file' does not exist in the current context" in the following code in the picture below: (See
    Why does the object named "file" go away after the first refrence to it?? How do I make it avaliable for the whole script??
         public void Main()
            String cFileInfo = null;
            DateTime dFTPFileDateTime;
       bool fireAgain = true;
                List<IRemoteFileInfo> fileList = (List<IRemoteFileInfo>)Dts.Variables["SFTPResult"].Value;
                foreach (IRemoteFileInfo file in fileList)
                    cFileInfo = file.Name + "|" +file.ModifiedTime +"|"+ file.Size;
                Dts.Events.FireInformation(1, "Name ", cFileInfo, "", 0, ref fireAgain);
                dFTPFileDateTime =
    file.ModifiedTime;
    << This is where the error is occuring. 
                Dts.TaskResult = (int)ScriptResults.Success;

    I think you forgot { and } after the loop... Or is that deliberately?
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • MW64,  cs6 bridge when I move or copy files the  context menu does not retain  recent folder destinations after I close the program

    W64,  cs6 bridge when I move or copy files the  context menu does not retain  recent folder destinations after I close the program. The context options that show are the ones from original install. The workspace I set up is also gone. I have every explorer box and cleaner checked to save recent. Had to disable nivedia desktop software because of weird display conflict. Have Dell pro support and they cannot fix. Any ideas to help me with this would be appreciated.

    Self-solved!  I work in column view in Finder so get there in a Finder window with folders and files appearing.
    There really is no problem, just select an ITEM in the COLUMN before right-clicking!
    The "old" context menu will appear. If you click in the white space in that column (or anywhere in a Finder window) and then place the cursor over a folder or file WITHOUT selecting it and right-click you will bring up the secondary context menu - Open, Copy, Duplicate, View Options and a greyed out Labels option. No "Move to Trash".

  • HT2486 The selected file does not appear to be a valid comma separated values (csv) file or a valid tab delimited file. Choose a different file.

    The selected file does not appear to be a valid comma separated values (csv) file or a valid tab delimited file. Choose a different file.

    I guess your question is, "what's wrong with the file?"
    You're going to have to figure that out yourself, as we cannot see the file.
    Importing into Address book requires either a tab-delimited or a comma-delimited file. You can export out of most spreadsheets into a csv file. However, you need to make sure you clean up the file first.  If you have a field that has commas in the field, they will create new fields at the comma. So, some lines will have more fields than the others, causing issues like the error you saw.

  • "The selected file does not contain audio media ..."

    I'm using Premiere Pro CC in Windows 7. A week ago I created a project using media from an external hard drive. I opened the project today to make changes to it, and a number of the .MTS files show up as missing. When I click on "Link Media" and locate the file -- which shows up as being on the external drive -- I get the following error message: "The selected file does not contain audio media used by clip references in one or more sequences. These audio clip references will be deleted, and cannot be undone. Do you want to continue?" I have canceled out of it because I do not want to damage my project irreparably, but I'm trying to determine the best course of action in re-linking these clips that are essential to the project. (I did apply a Left Fill to all the audio in the project, but I don't know if that would cause a problem, or if it did, how I could remove that effect. I've tried to re-link with several previous autosave versions of the project, only to get the same result.)

    Try this:
    FAQ: Why are some codecs and sequence presets missing from my installation of Premiere Pro?

  • I opened a new developer account but shows The item you've requested is not currently available in the U.S. store.

    i opened a new developer account but shows The item you've requested is not currently available in the U.S. store.

    actually my ios developer account has been approved two days ago, and transfer an app from other account. when i try to enter my user account via iTunes then it shows "Item Not Available, The item you've requested is not currently available in the U.S. store." So what should i do??!!

  • On windows, while cloning error The destination file does not have write pe

    Hi,
    I am cloning in windows 2003, 11.5.10.2. After copying files while runnig
    adcfgclone.pl dbTier it is hanging at 13% and throwing error "The Destination file does not have write permissions ......\9.2.0\OPatch\perl_modules\Command.pm"
    i am not using MKS perl.
    i changed directory to $ORACLE_HOME\Apache\perl\5.*\MS*\
    perl .....\appsutil\clone\bin\adcfgclone.pl dbTierPlease any pointers will be helpful.
    Regards
    Taher

    Hi Taher;
    Please check:
    perl setting windows:
    Re: cloning oracle applications 11i on windows
    Also check:
    Setting the Perl Environment PERL5LIB [ID 395294.1]
    Common Perl Setup Issues and Solutions for E-Business Suite 11i [ID 404055.1]
    Regard
    Helios

  • Drag and dropping an address from address book to the desktop, the address file does not go where my mouse is positioned.

    If I drag and drop an address from address book to the desktop, the address file does not go where my mouse is positioned. It winds up somewhere in the middle of my screen. Any way to have the address file land and stay where my mouse pointer is?

    You have to assign the favicon yourself to the desktop shortcut (right-click the shortcut: Properties) after you have dragged the link to the desktop.
    You can usually find the favicon in Tools >Page Info > Media and save the icon there.
    Otherwise use the main domain of the website and add favicon.ico (e.g. mozilla.com/favicon.ico ) to display the favicon in a tab and save that image to a folder.

  • I can open a new browser window, but not a new tab, neither by clicking the plus or selecting it from the menu. I have fully updated firefox and also restarted. what's going on?

    I can open a new browser window, but not a new tab, neither by clicking the plus or selecting it from the menu. I have fully updated firefox and also restarted. what's going on?

    I have the same problem with the right click and do not have the ask toolbar installed on my system?

  • I need help moving my Photoshop 7 from my old laptop to my new laptop which is running Windows 7 Enterprise.  I've tried two routes unsuccessfully.  I install the CD, it does not autoplay.  I execute Autoplay.exe at the root directory, I am welcomed, I ch

    I need help moving my Photoshop 7 from my old laptop to my new laptop which is running Windows 7 Enterprise. I’ve tried two routes unsuccessfully. I install the CD, it does not autoplay. I execute Autoplay.exe at the root directory, I am welcomed, I choose English, I accept the EULA, I get the Install/Explore choices window, with the Install button already selected, I click the Photoshop button, the CD spins, and nothing happens.  In the 2nd attempt I execute Setup.exe in the Photoshop directory, and nothing happens at all.  I’m never even offered the opportunity to enter my product code. What should I do?

    There could is likely a compatibility problem between the old software and the newer operating system.

  • When I try to play a song in my itunes libery I get an error saying "this song could not be used because the original file could not be found".  I do I restore the file?

    When I rry to paly a song in my itunes libery, I get an error saying "this song could not be used because the original file could not be found". I do I find the orginal file?

    Hello crispinofromfl,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Where are my iTunes files located?
    http://support.apple.com/kb/ht1391
    Have a nice day,
    Mario

  • When i burn a disk in Disk Utility, the burn completes but the verification process does not complete and my disk pops out. The error message i get is something like this "burn failed because disk cannot be verified," PLEASE HELP

    when i burn a disk in Disk Utility, the burn completes but the verification process does not complete and my disk pops out. The error message i get is something like this "burn failed because disk cannot be verified," PLEASE HELP.
    Also when i take the disk out it seems fine nd everything seems to be burned onto the disk. I am buring mac os x lion onto a disk.
    The disk i am using is nextech and i am burning at the slowest speed (4x).
    Also this is my 3rd time trying to do this and the verifying process keeps failing.... what do i do?

    see there
    http://www.techmixer.com/best-free-mac-burning-software-for-mac-osx/
    what you like most
    try different brand of CD/DVD

  • When i plug in my iphone to the system, itunes does not recognize my iphone. i have tried all the troubleshooting part n there are no results yet. what should i do?

    when i plug in my iphone to the system, itunes does not recognize my iphone. i have tried all the troubleshooting part n there are no results yet. what should i do?

    I have reset my iphone and made sure all updates have been done on my macbook pro and iphone. It was after updating my macpro that I plugged in my phone and went to itunes to backup phone and can't see the device anywhere! I have also done all the troubleshooting that apple.com recommended too...all except re-installing itunes!

Maybe you are looking for

  • System extension cannot be used  --can anyone help ?

    so i spotted that the system library as well as the home library had permissions blocked for the administrator, so i unlocked all enclosed items permissions. i already had issues being brought to senior advisor attention over 1,5 years now, about han

  • All of table results are not showing in universe

    Hello, I have a table that I created via a SQL view. I then insert this view/table in a universe. Then when I export the universe some of the fields are not there. I went back to the designer and the fields are listed on the right side pane, but not

  • Mail & Yahoo

    hi there, i have a yahoo public account i tried to create a Mail account using the POP, Exchange it didn't work am i doing something wrong thanx?

  • 3rd Gen. iPod -- can't mount with FireWire, can't restore

    When my 3rd gen. iPod is plugged into an Apple computer by USB, it mounts but it won't charge. When it's plugged in by Firewire, it charges but won't mount. When it's plugged into a Windows computer by Firewire, it charges but won't mount. When it's

  • Aperture images with iLife

    I know you can access Aperture images in iLife, but it doesn't let you access the versions that are so carefully edited. Does anyone know if this is possible without exporting versions as JPEGs and then reimporting? Along the same lines, sometimes I