Screen resolution for jsp page

Hai i have a doubt in the screen resolution of my page. i m using the screen resolution of my pc as 1024*762 pixels. i have done a jsp web page page in this resolution.while copying the page and running it in my friends room it appears differently because he s using the resolution as 1152*864 . Its there any way to solving the problem of viewing the page similarly in any kind of resolution...

Well it is not addressed by JSP rather it can only be done @the client end and javascript is what which can help you.
how is that its gonna do that,pls find the details by refering to the below link.
http://www.w3schools.com/js/tryit.asp?filename=tryjs_browsermonitor
Hope that might help :)
REGARDS,
RaHuL

Similar Messages

  • Re: capturing screen resolution in JSP or servlet

    "Mike Tickle" <[email protected]> wrote ...
              > Is it possible to capture screen resolution in JSP or a Servlet? I can
              > currently do it in JavaScript and write the result in to a cookie that a
              > servlet can read, but is there a better solution.
              > Is it possible to get the time zone of a visitor using JSP or servlets?
              > Can JSP or servlets determine if a visitor has scrolled the page to view
              all
              > of it?
              You seem to be very confused about what servlets and JSPs are. These are
              things that run on the server and generate HTML. They can't possibly know
              if a user has scrolled the page, because the user hasn't seen the page yet
              when they are run. If they tried to read screen resolution, they'd get the
              screen resultion for the graphics subsystem on the server, or an exception
              if one isn't available (eg, there is no X display set).
              For these kinds of client interaction tasks, JavaScript is probably still
              your best option.
              Chris Smith
              

    Hey all you non-ASP programmers, here's the deal. Microsoft has a Browser
              Capabilities component and they have defined a special way for you to
              populate a specially named cookie on the client side that will then allow
              the component to pick up what you sent it. In the ASP script, you then use
              the component. Behind the scenes, it works exactly like what you guys
              imagine, but Microsoft provides the format for sending the information and
              the parsing.
              The client side script does need to be written to include the information
              you want, but it would typically be written once and hidden by the lead
              programmer in a common include file where most programmers never had to
              think about it and thus might think it happened automatically.
              If you're really curious, here's an MSDN link to the details:
              http://msdn.microsoft.com/library/psdk/iisref/comp1vol.htm.
              Rick Joi, former ASP developer
              [email protected]
              www.rickanddonna.com/ips
              "Chris Smith" <[email protected]> wrote in message
              news:[email protected]...
              > "Mike Tickle" <[email protected]> wrote ...
              > > > You seem to be very confused about what servlets and JSPs are.
              > >
              > > I am quite familiar with servlets as I have been using them for 6 months
              > as
              > > part of a uni project. I had the presentation yesterday and the
              moderator
              > > asked why I used JavaScript to determine time zone and screen res. I
              said
              > > JSP/Servlets can not do it as they are server side and he seemed
              confused.
              >
              > Okay. Apologies if I was condescending. Such things happen in newsgroups
              > where I have no idea what your background is.
              >
              > > Apparently ASP can do it. So against my better judgement I thought I
              > would
              > > ask in case I was wrong.
              >
              > I'm surprised if ASP can do it... I can't imagine how that occurs. I
              agree
              > with Jeff, especially after reading the URL he provided; it appears the
              > moderator was just plain wrong, or that there are only very non-portable
              > solutions for IE only.
              >
              > > I currently write the time zone and screen resolution in to a session
              > cookie
              > > so that it can be read every time the servlet is run. Is there a better
              > way
              > > than this?
              >
              > Seems to me like the best way to me.
              >
              > Chris Smith
              >
              >
              >
              

  • Capturing screen resolution in JSP or servlet

    Is it possible to capture screen resolution in JSP or a Servlet? I can
              currently do it in JavaScript and write the result in to a cookie that a
              servlet can read, but is there a better solution.
              Is it possible to get the time zone of a visitor using JSP or servlets?
              Can JSP or servlets determine if a visitor has scrolled the page to view all
              of it?
              Thanks for any help
              Mike
              

    You have to remember JSPs/Servlets run on the server. They can only
              manipulate information that you explicitely pass to them or information
              passed by HTTP. You could pass this information, gathered by JavaScript,
              through a POST or GET method.
              Jim
              "Mike Tickle" <[email protected]> wrote in message
              news:9d8rut$fr4$[email protected]..
              > Is it possible to capture screen resolution in JSP or a Servlet? I can
              > currently do it in JavaScript and write the result in to a cookie that a
              > servlet can read, but is there a better solution.
              > Is it possible to get the time zone of a visitor using JSP or servlets?
              > Can JSP or servlets determine if a visitor has scrolled the page to view
              all
              > of it?
              > Thanks for any help
              >
              >
              >
              >
              > Mike
              >
              >
              

  • 24"iMAC optimal screen resolution for photo processing

    I have a 24" iMAC (matte) and do mostly photo editing. What is the optimal screen resolution for photo processing work?
    thanks
    a/d/

    All Screens are 72 dpi (dots per inch- in reference to pixels) no matter what screen resolution you use. The only difference the screen resolution will make is the size of the photo when you are viewing. Higher resolution means the picture will take up less space in you work area, but you will most likely have to zoom in to edit finer areas. Lower resolution will cause the picture you are editing to take up more of your work space and to see multiple photos side by side you will have to zoom out of fron the photos. So, really the choice is up to you.
    When creating the original document, this is where you need to monitor the dpi. The higher the dpi, the clearer your photo will look in print. A high dpi also means more disk space is being taken up by the photo. Generally a good dpi for print is 300 dpi. Anything that is only purposed for a screen based project (i.e. internet logos) should be saved at 72 dpi. Why use disk space and cause your pages to take longer load if no one will be able to tell the difference on screen between 72 and 300 dpi?
    Hope this helps!

  • What is the optimum screen resolution for Macbook Pro 15 inch?

    Hi, can anyone please provide advice on the optimum screen resolution for a 15 inch MacBook Pro?

    Natively you'll get a resolution of 1440 x 900 or you can pay for an upgrade  to 1680 x 1050(current models).

  • Resizing  Screen Resolution for Specific Apps?

    Hello team,
    Is it possible to resize screen resolution for specific applications? Most of my apps look fine at 1024x768, but there are a couple of older OS 9 apps that I need to run (talking school computers here) which are a bit on the small side when viewed at that resolution. Can I somehow set things so that when those applications are launched, the resolution changes to 800x600, and then reverts to 1024x768 when they're quit again? Any and all details about this will be most appreciated, and I thank you in advance for your help!
    Electronically yours,
    Erik D. Dahlin
    School-based Technology Specialist

    LCD panels must be used at their native resolution. Whatever it is for you monitor is what you must set it to.
    Bob

  • Screen Resolution for CS4 apps?

    I'm finding my 22" screen distorts my files. What are some tips for the best screen resolution for the following:
    PhotoShop
    Illustrator
    InDesign
    Dreamweaver
    This is Windows XP Pro.
    Thanks for your help.

    LCD panels must be used at their native resolution. Whatever it is for you monitor is what you must set it to.
    Bob

  • How we will maintain screen resolution for tmaintaining able control in BDC

    how we will maintain screen resolution for tmaintaining able control in BDC. can you give the code or how we have to set it

    Hi,
    You need to use the CTU_PARAM options with the call transaction method.This is used if you would like to do a commit work once call trnasaction is done. This has also got very important property, for example if your Screen resolution is different from others then the screen (Application) will be different that is you'll be having say 5 lines in your screen where as your friend will be having 8 or 10 so your program might fail in this case. If you set variable DEFSIZE as 'X' it will always use the default screen size and hence avoids error.
    Use CALL TRANSACTION 'XXX' OPTIONS FROM w_ctu_params.( type CTU_PARAMS)
    This structure contains the follwing.
    DISMODE : Display mode (like the MODE addition)
    UPDMODE: Update mode (like the UPDATE addition)
    CATTMODE: CATT mode (controls a CATT)
    CATT mode can have the following values:
    ' ' No CATT active
    'N' CATT without single-screen control
    'A' CATT with single-screen control
    DEFSIZE : Use default window size (Here we are handling those transaction by giving default window size)
    RACOMMIT: Do not end transaction at COMMIT WORK
    NOBINPT : No batch input mode (that is, SY-BINPT = SPACE)
    NOBIEND : No batch input mode after the end of BDC data.
    The components DEFSIZE , RACOMMIT, NOBINPT, and NOBIEND always take the following values:
    'X' Yes
    This might help u in better understanding...
    Re: regarding bdc
    Re: ctu_params
    Regards
    Sudheer

  • 11gr1 - Handling different screen resolutions for an enterprise app.

    Hi,
    We are developing an enterprise application that will be deployed at different clients with different hardware.
    We are confused about how to handle different screen resolutions and wonder how others are handling this.
    We have some fixed size areas in our screens and liquid areas for content that may expand. The problem is say that you have a table with 6 columns. This table will be rendered nicely at 1280X800 but not at 1650X1050 or 800X600.
    At higher resolutions we will either end up having some blank space or expand one of the columns of the table , but can't expand every column proportionally and this will look ugly.
    For lower resolutions same problem in a different way will come into picture, we will not able to resize the columns and end up with scroll bars etc ...
    What is the best practice with handling different screen resolutions for components like table,panel splitter etc ?
    Thanks

    Hi Muhammed,
    I don't think that any better solution exists, you already use liquid layouts and define widths & heights with percentages etc. In my opinion using blank column at the end of table columns makes table's looking better. Additionally creating custom skin for table and defining column heights & widths with % or em may help you to stretch columns?

  • Screen resolution for iPhoto

    Screen resolution for iPhoto-I keep getting the message when I open iPhoto,"screen resolution not optimal for iPhoto". How do I find what is the optimal resolution?

    See this previous discussion
    Re: When I open iPhoto I get on the screen The currant screen resolution is not optimal for iPhoto

  • Optimum Screen Resolution for Slides

    I need to create a few slides which will be displayed full-screen. Since
    there's no way to know the resolution of the monitors of the many
    participants, how do I choose the resolution of my slides? Are they
    downsampled in any way by the Adobe server when I upload them? My screen
    resolution is 1920 x 1200 but I suspect a slide built to that resolution
    would create problems for viewers on smaller monitors. Am I right? Is
    there an optimum screen resolution for slides viewed during a Connect Pro
    session?

    Natively you'll get a resolution of 1440 x 900 or you can pay for an upgrade  to 1680 x 1050(current models).

  • Screen resolution for Fusion Applications?

    We are in process to set screen resolution standard for our ADF applications. We are much interested to know about supported screen resolution in fusion applications. Can any body let us know what is minimum required resolution for fusion applications? And what is recommended resolution?

    It is 1280*1024 as per
    Standard Screen Resolution for Fusion Apps

  • Documentation for JSP pages

    hi,
    i am trying to do documetation for jsp pages, but i not successed.
    can someone clear this up for me? thanks!

    Try the Java developer section of the forums. You're not too likely to get an appropriate response in the SRSS area :-)

  • Save option for jsp page

    hi all,
    In my project am including a html page in jsp.Now i want to save the html page only.Please any body help me to how to give save option for jsp page.
    Thanks in advance.
    mohan :)

    you can save it in with browser "save as"

  • Is any free tool bar for jsp page?

    hi,
    I am having web pages.
    so I am entering some data in text area.
    how to select the font ,size,colors in jsp page.
    i want features like word in jsp page.
    is it any free software available to change font,color of text.
    Thanks
    siva

    and here is the js script for textEditorContent.js ...
    function boldThis(from)
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
            if (from == 2) document.form1.text.select()
                strSelection = document.selection.createRange().text
            document.selection.createRange().text = strSelection + "<b></b>"
        else
            document.selection.createRange().text = "<b>" + strSelection + "</b>"
        return;
    function underlineThis(from)
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
            if (from == 2) document.form1.text.select()
                strSelection = document.selection.createRange().text
            document.selection.createRange().text = strSelection + "<u></u>"
        else
            document.selection.createRange().text = "<u>" + strSelection + "</u>"
        return;
    function italicThis(from)
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
            if (from == 2) document.form1.text.select()
                strSelection = document.selection.createRange().text
            document.selection.createRange().text = strSelection + "<i></i>"
        else
            document.selection.createRange().text = "<i>" + strSelection + "</i>"
        return;
    function fontThis(from)
        var ind=document.form1.fontnames.selectedIndex;
        newfont=document.form1.fontnames[ind].value;
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
            if (from == 2) document.form1.text.select()
                strSelection = document.selection.createRange().text
            document.selection.createRange().text = strSelection + "<font face='"+newfont+"'></font>"
        else
            document.selection.createRange().text = "<font face='"+newfont+"'>" + strSelection + "</font>"
        return;
    function sizeThis(from)
        var ind=document.form1.fontsizes.selectedIndex;
        newsize=document.form1.fontsizes[ind].value;
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
            if (from == 2) document.form1.text.select()
                strSelection = document.selection.createRange().text
            document.selection.createRange().text = strSelection + "<font size='"+newsize+"'></font>"
        else
            document.selection.createRange().text = "<font size='"+newsize+"'>" + strSelection + "</font>"
        return;
    function colorThis(from)
        var ind=document.form1.colors.selectedIndex;
        newcolor=document.form1.colors[ind].value;
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
            if (from == 2) document.form1.text.select()
                strSelection = document.selection.createRange().text
            document.selection.createRange().text = strSelection + "<font color='"+newcolor+"'></font>"
        else
            document.selection.createRange().text = "<font color='"+newcolor+"'>" + strSelection + "</font>"
        return;
    function newlineThis()
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
        document.selection.createRange().text = strSelection + "<br>";
        return;
    function insertPic()
        var ind=document.form1.pictures.selectedIndex;
        if(ind==0)
            alert(msg15)
            return false;
        newpic=document.form1.pictures[ind].value;
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus();
        document.selection.createRange().text = strSelection +"<img border=0 src='"+newpic+"'>";
        return;
    function ahrefThis()
        strSelection = document.selection.createRange().text
        if (strSelection == "")
            document.form1.text.focus()
        document.selection.createRange().text = "<a href='" + document.form1.hyperlinknm.value + "' target='_blank'>" + strSelection + "</a>"
        return;
    function textview()
        popupWindow5=open("EDETAIL_Text_View.jsp",'Windown','scrollbars=YES,resizable=YES,left=10,top=20,toolbar=no,width=1000,height=600');
        if (popupWindow5.opener == null)
            popupWindow5.opener = self;
        popupWindow5.focus();
    function callSave(size, module, msg)
        if(!checkMaxLength(document.form1.text,size,msg))
            return;
        if(isBlank(document.form1.text.value))
            alert(module+" "+msg11);
            document.form1.text.focus();
            document.form1.text.select();
            return false;
        if(module=='Question')
            var tempstr ="";
            var count = document.form1.rowCount.value;
            var ind = document.form1.anstype.selectedIndex;
            for (i=0; i<count; i++)
                if(count==1)
                    if(ind>0)  // RADIO or CHECKBOX or DROPDOWN
                        tempstr = document.form1.answerDesc.value;
                    if(ind==1) // RADIO BUTTON
                        if(!checkMaxLength(document.form1.answerDesc,500,"Answer Option"))
                            return;
                        if(!checkMaxLength(document.form1.feedbackDesc,500,"Answer Option"))
                            return;
                else
                    if(ind>0)  // RADIO or CHECKBOX or DROPDOWN
                        tempstr = document.form1.answerDesc.value;
    if(ind==1) // RADIO BUTTON
    if(!checkMaxLength(document.form1.answerDesc[i],500,"Answer Option"))
    return;
    if(!checkMaxLength(document.form1.feedbackDesc[i],500,"Answer Option"))
    return;
    if(ind>0)
    if(isBlank(tempstr) )
    alert(msg12);
    if(count==1)
    document.form1.answerDesc.focus();
    document.form1.answerDesc.select();
    else
    document.form1.answerDesc[i].focus();
    document.form1.answerDesc[i].select();
    return false;
    for (j=i+1; j<count; j++)
    if(document.form1.answerDesc[i].value==document.form1.answerDesc[j].value)
    alert(msg13);
    document.form1.answerDesc[j].focus();
    document.form1.answerDesc[j].select();
    return false;
    document.form1.submit();
    This function is used to go back to previous screen
    function goBack()
    if(window.confirm(msg14))
    if(document.form1.From.value=="Page")
    document.form1.action="EDETAIL_Add_Page_Content.jsp";
    else
    document.form1.action="EDETAIL_Upload_Text_Editor.jsp";
    document.form1.submit();
    By the way didnt this forum itself give you a big hint on Bold, Itallic & underline ?

Maybe you are looking for

  • Site elements refreshing, dont want that.

    So as I uploaded my site and started clicking around, I notice the background refreshes every time and so do the images and such, how do I stop that? When I originally started doing this, I wanted to use frames for that reason, but thats legacy stuff

  • Python headers not found when compiling gimp2.7

    Hello. I am trying to compile gimp 2.7 and when I run configure I get an error "python headers not found". I've read that in arch you get the headers together with the rest of the package so there is no need for a -dev package. I have installed pytho

  • Java implementation of rsync protocoll

    Hi, has anyone heard of a java implementation of the rsync protokoll other than the inactive "JarSync" Project on SourceForge? Or is there anything that compares to rsync that has been implemented in java? --- carco

  • YouTube videos not playing in either IE or Chrome

    As of this morning, most YouTube videos are not playing. After the advertisement (which always plays properly), the player goes black with no controls. Right-clicking shows "Movie not loaded". This happens in both IE10 and Chrome on Windows 7 64-bit

  • Spell checking won't work

    After the last update to Photoshop CS6 Extended (now version 13.0.1 x64), I find that the spell checker won't work. I get the following message: Everything worked just fine just prior to the last update. Any thoughts?