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

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

  • 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

  • After using Image Capture and watching a video, the screen resolution changes

    Hello,
    Normally the colors of my screen are clear; The top ruler of each window is grey.
    But after scanning a color document, the color is pale. As if someone changed the screen resolution.
    Is this a common problem?
    My former Macbook Pro died because of a problem with the video system, a default acknowledged by Apple that they didnt want to repair under warranty anymore.
    Does this ring a bell?
    Today, the colors quickly became normal again, but I'd like to make sure it ' s not going to become a serious problem.
    Maybe this sounds kind of vague, well if anyone has something constructive to say about this, please do.
    thanks

    dairishcajun
    When you decided to not copy the files into the iPhoto Library Folder you took responsibility for File Management. iPhoto does not touch your file structure. Therefore, when you delete a photo from iPhoto you have to delete it from your file structure by hand.
    This is not the case if you let iPhoto do the File Management.
    There is no way to get iPhoto to find the pics you have deleted from it but which remain in your file structure. In the future, you could Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected. You can then delete it from there, and after delete it from iPhoto.
    BTW, many people hold on to their own file structure because they feel that they will be unable to find a pic in the Finder, should they need it for uploading or emailing. There are three ways (at least) to get files from the iPhoto Window.
    1. Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, this produces a copy.
    3. Show File: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    Regards
    TD

  • Screen resolution in Lightroom 4 on Lenovo windows 8

    How can I increase the resolution so I can read the text

    Hi Jim
    Think Young, but it is already "large"
    The text is so small that to Read need a magnifying  glass to Read the text
    The program is useless at present
    Sendt fra min iPad
    Den 07/04/2014 kl. 18.32 skrev Jim Wilde <[email protected]>:
    Re: Screen resolution in Lightroom 4 on Lenovo windows 8
    created by Jim Wilde in Photoshop Lightroom - View the full discussion
    JIm, you can make the text larger....look at the Interface Tab on the Preferences menu and you'll see several different Font size options (although there are less on OSX apparently). Make a selection, then close and restart Lightroom for the change to take effect.
    http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-6278230-626541/450-184/Untitle d.png
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6278230#6278230
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6278230#6278230
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6278230#6278230. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Lightroom at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How to upload a file into server using j2ee jsp and servlet with bean?

    How to upload a file into server using j2ee jsp and servlet with bean? Please give me the reference or url about how to do that. If related to struts is more suitable.
    Anyone help me please!

    u don't need j2ee and struts to do file uploading. An example is as such
    in JSP. u use the <input> file tag like
    <input type="file"....>You need a bean to capture the file contents like
    class FileUploadObj {
        private FormFile srcFile;
        private byte[] fileContent;
        // all the getter and setter methods
    }Then in the servlet, you process the file for uploading
        * The following loads the uploaded binary data into a byte Array.
        FileUploadObj form = new FileUploadObj();
        byte[] byteArr = null;
        if (form.signFile != null) {
            int filesize = form.srcFile.getFileSize();
            byteArr = new byte[filesize];
            ByteArrayInputStream bytein = new ByteArrayInputStream (form.srcFile.getFileData());
            bytein.read(byteArr);
            bytein.close();
            form.setFileContent(byteArr);
        // Write file content using Writer class into the destination file in the server.
        ...

  • Screen resolution changes every time I open I-Tunes

    The screen resolution changes when I open I-Tunes. I have to go into control panel every-time to adjust the resolution to make the print and screen layout small enough so its entirety is captured which then allows me to use I-Tunes. Otherwise the graphics are too large to be captured on the screen making the program unusable.

    You are still under warranty.  Call Apple Care. Make sure you get a case number as all repairs have an additional 90 days of warranty. 
    #1 - You have 14 days from the date of purchase to return your computer with no questions asked.
    #2 - You have 90 days of FREE phone tech support.
    #3 - You have the standard one year Apple warranty.
    #4 - If you've purchased an AppleCare Protection Plan, your warranty last for 3 years.   You can obtain AppleCare anytime up to the first year of the purchase of your computer.
    Take FULL advantage of your warranty.  Posting on a message board should be done as a last resort and if you are out of warranty or Apple Care has expired.

  • Screen resolution gone poor in Mac Mini

    I cannot get optimum resolution on my Mac Mini. Just a day before I disconnected all the cords, including power and HDMI, just to move my Mac Mini (OS X 10.9.4) to a different room, and connected it back as it was. (Really speaking only two cords) and now I can't seem to get my screen resolution back.
    The earlier screen resolution was there since I connected my Mac Mini for the first time to the LCD TV screen and I never had to deal with any resolution settings, but I am clueless now why I can't SET and SAVE optimum screen resolution settings. Here is screen capture for my System Preferences -> Display settings
    I also have DISPLAYMENU app which gets me to a better screen resolution now, but it seems I do not have any option to save that configuration so every time I restart my Mac Mini, the display will go back to its weird screen resolution state and I have to start from all over again to get it back in a good viewable screen resolution with the help of DISPLAYMENU. I have contacted Apple Support and have done resetting SMC and PRAM and entering in to SAFE-BOOT as well; nothing seems to help here. Any other suggestions? (I cannot accept that it is LCD TV problem because 1. Earlier it was working absolutely FINE. 2. I have my xbox connected to same LCD TV and I am getting screen resolution what I was getting earlier.)

    Backlight
    Direct LED
    Refresh Rate
    60Hz
    Resolution
    720p
    Dynamic Contrast Ratio
    100,000:1
    Display Aspect Ratio
    16:9
    Display Resolution
    1366x768
    Colors:
    16.7 million
    This is what I found on manufacturer's website for the TV model I have. I do not remember exactly what was the resolution earlier but it was definitely not 720 (in earlier image). All I know is I can observe the difference in the screen resolution.
    Also I have tried all sort of setting and resettings; (I was on chat with Apple support over an about 45 mins and on phone call around the same time.)
    Also, I cannot accept that I might be using wrong connectors/adapters/TV not compatible to the resolution I am trying to get to; because it was working absolutely fine just few days before and as mentioned I have connected my xbox to the same TV, which works absolutely fine.

  • High screen resolution problems

    Hi. 
    Just bought a Dell XPS lapptop with screen resolution 3200x1800 and windows 8.1. After installing photoshop CS6 the program interface, menus and icons are extremly smal and almost impossible to see. That also happens in Bridge but not in Lightroom. Thankfull for your help.  Best regards/janis lukas

    Ideally  For a Image editor you want a high resolution display so you can edit your images at a high resolution near or actual print quality.  And the editor should have a UI that is easy to see and use.  That is what CC 2014 2x UI is all about.   You can can have an OS like Windows scale your display image effectively  run you display at a lower resolution so that things display larger.  Scaling the display to 1/2 resolution is easy for its and even multiplayer 2x A 200DPI display would be like a 100DPI display with 1/4 the number of pixels.  Scaling the display defeats the reason to have a high resolution display.  However it may work well for a Application like the bridge. The the bridge only displays previews and thumbnails.  It is not what you want for an image editor like Photoshop.  You want to be able to use the high resolution for editing.
    As I wrote Windows can scale the system display for application to lower resolutions.   Application have that option.  Adobe application do not the have windows scale the display so their Applications can take advantage of all the pixels and resolution the display has to offer.  However Only Photoshop has a option to scale its UI 2x.
    It is possible to have Windows scale the display for an Adobe Application by making a registry update and adding an external manifest file for applications yo want Windows to scale.
    I can show you the difference between  Adobe CC 2x UI and Windows scaling.  CC 2014 2x UI works well on 4K displays that have high resolution.  However it does not work well on a Surface Pro 3  Display that has a 216PPI resolution for the display only has 2160 x 1440 Pixels Scaling the UI 2x effectively make the display look like a 108 PPI display with 1080x720 pixels.  Which doe not meet Photoshop 1024x768 requirement.  Photoshop UI just doesn't fit.
    Windows Scaling for the Surface Pro 3 has  4 preset dor scaling the display 150% being the default for the surface pro 3
    Microsoft Preset Display scaling
    100% 2160x1440   216 PPI
    125% 1728x1152   173 PPI
    150% 1440x960    144 PPI SP3 Default setting
    200% 1080x720    108 PPI
    The 150% scaling works well for Photoshop UI however it alsi scala Photoshop image window where CC 2014 2C UI does not.  Windows scaling can also be use on other versions of Photoshop and bridge etc. It would be helpful if Photoshop also offered a  1.25x and 1.5x UI.  Here are some screen captures I did on my Surface Pro 3 the shows the difference  between 2x UI and Display scaling.   CC 2014  Adobe scaling vs Windows scaling.

  • Capturing the output from jsp selvlet

              Hi,
              I have a requirement where I need to capture the output of the JSP generated servlet
              , and do something with it before it get's to the client side.
              Has someone done something like this before.Any ideas, suggestions .
              Thanx,
              Tajdar
              

    You can set the MIME content type as .doc and try to open the Page.
    res.setContentType("application/vnd.ms-excel"); to generate the Page output as Excel
    res.setContentType("application/vnd.ms-word"); to generate the Page output as MS Word doc
    Hope this helps..

  • Get Screen Resolution from Custom Reports

    I was wondering if it was possible to get the screen resolution of a workstation from the Custom Reports in ZCC ??
    Seb

    Originally Posted by sebastien
    I was wondering if it was possible to get the screen resolution of a workstation from the Custom Reports in ZCC ??
    Seb
    Hi Seb
    I'm out of the network so I can't double check this but I don't think Zen captures that information. If my memory serves it captures some PNP info from the screen like the manufacturer and product ID's.
    It looks like you could pull the data from the registry.
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardwa re Profiles\UnitedVideo\CONTROL\VIDEO\{EE167610-A476-4BE2-9CD6-C24D55DFF3B9}\0000
    I think the challenge will be that this key will vary from system to system. And if you have multiple monitor setups you would want to collect both sets of data.
    One way you could do this would be to deploy a bundle containing a small easily available executable called DumpEDID.exe (google it) This little command line utility does exactly what it says on the box. It reads the EDID data from the display and dumps the data back to the command shell.
    Then all you need to do is to run a script to retrieve this output and load it into a custom made registry key. From there you can then pull the registry data into Zen and even create an ADF field for the info.
    Hope this helps

  • Screen Resolution for Recording

    Hi All,
    I am using Adobe Captivate 5.5.
    I  have captured a whole module with screen resolution of 1440 by 900. Now the requirement is to reduce the same to 1024 by 768. Is it possible to reduce this for the captured video without affecting the quality of the screens. Already tried Rescale Project feature in Modify menu but the output quality is deteriorating. Please help me in resolving this issue.
    Krishna

    Rescaling will always lower quality because it is about bitmap, but normally downscaling should be acceptable. However the width/height ratio is different for your original resolution and the final one. I do not know how you rescaled, but I would rescale in two steps:
    first Maintain Aspect Ratio and lower height from 900 to 768; Rescale Project to fit new size; width will stil be too big
    then lower width to 1024, but now choose 'Crop'; I hope you can cope with losing something in the width?
    And be sure to set the quality to High or Optimized.
    If you cannot cope with losing pixels in the width, I would first upscale so that the width/height ratio is the same as the final one (no Maintain ratio) and then downscale while Maintaining ratio
    Lilybiri

  • After Effects Issue uploading to Youtube - Screen Resolution

    Hi All
    I've been struggling lately trying to get my set of youtube videos to appear at the proper resolution and ideally fullscreen without the black bars at the side.
    Youtubes recommended sizes:
    1080p: 1920x1080
    720p: 1280x720
    480p: 854x480
    360p: 640x360
    240p: 426x240
    My original videos are recorded in 1280x1024 which is what my screen resolution is set to, when I drop these videos into AE i set the comp size to 1280x1024 and i get a normal correct sized video. However when i render it out and upload it to the site I am given black bars down the side of the video and it does not appear full screen. (The quality is not great either if you do go fullscreen mode in the player - but the bars remain)
    Now youtube state this is fine and works ok but as a personal preference i'd just like the video to fit the player.
    but your not rendering at the recommended settings I hear you say; well, when I change the comp setting to 1280x720 i lose the top of my video and I am stuck as to how to fix it. Is the issue i'm having to do with the original video size, should i change resolution and record at 1280x720 (i dont have a widescreen) or is there a way around this in AE? I hope its not as easy as just scaling the video down in AE and forcing it to fit, something just feels wrong when I do that.
    i would apprecaite any help! I really would.
    Simon
    (Additional - Recorded at 30FPS and Output in H.284

    You should be using the YouTube HD preset in the Adobe Media Encoder and your comps should be either standard HD 1080p or 720p. No matter what you upload to YouTube they will process the footage and set up the other resolution options.
    The important thing here is that youTube videos are either 16X9 or 4X3. Anything not at that picture aspect will end up with black borders at the top or on the sides. There is absolutely no way to override this. It cannot be done. The only way you can provide non standard video frame sizes to the public over the Internet is to use a codec that supports odd frame sizes and load it on your own server. All streaming services have standards and they are the same frame size.
    If you want to see your entire screen capture then you should either set your screen resolution to 1920 X 1080 and capture that or simply scale your screen capture footage or project so that it will fit into a standard HD comp.
    Saving a few KB in file size is not what you are looking for. The best picture and sound quality you can get in a streaming format is. That can only be achieved using the Adobe Media Encoder. The YouTube Presets are already optomized for the best you can get with this software for this delivery format. There is no need to re-invent anything. Just use the presets.

  • Changing my screen resolution ratio

    I am new to the Mac world. I'm about 3 months in on my MacBook (13").
    I bought an iPhone today, so Apple has officially captured me.
    When I went to plug in my iPhone to my computer iTunes automatically started up. When I click on the "iPhone" tab, ti showed a registration screen with a "register later" button at the bottom left. The text was obviously wider than the iTunes window, but there wasn't a scroll bar at the bottom to read the text to the right of the screen. There isn't a way to increase the width of the iTunes window, so how do I get to that information. This wouldn't be critical, but now I can't navigate to past the "License Agreement" screen without pushing the "Accept" button, which appears to be outside of the iTunes window.
    Things that I have tried to resolve this problem:
    1. Changing the resolution. The highest resolution that shows up on my Color LCD Display screen is 1280x800. There aren't any screen resolutions greater than so, I don't know how else to get past this screen.
    Has anyone else experienced this problem? Can anyone help me????

    Caleb.online wrote:
    There isn't a way to increase the width of the iTunes window
    You can resize any window by grabbing (click-hold) the three little lines in the bottom right corner and move it up or down, right or left.
    Is this what you mean?
    BTW... the resolution of 1280 x 800 is what you would normally set your screen to.

  • Store a URL with given screen resolution

    I need to Save the web page with the GIVEN screen resolution in my local machine.
    The input i receive are URL and the screen resolution parameters.
    I figured that i can extract data from the URL by using the *URL Class and
    using readers* Now i have the data ,i am not sure how to store the data with the
    given screen resolution?? Any help would be greatly appreciated?
    Thnak you

    Do you think i should use applet to render the page
    first and then use the robot class to "Capture" the
    page. Thank you once againIf you want to convert HTML into an image, you are going to need something which renders HTML. Since you are asking on this forum, I'm assuming you want to use Java to do it. You could use a JTextPane, but it doesn't display HTML 2 very well. There are third party components which do it better. If you used some Java component, you wouldn't have to display the page, you could get it's graphics object and create and image, then save it too a file.
    To display a browser or take a snapshot of it with the robot class, your applet is going to have to be signed. Since you haven't given me any information about what it is you are trying to accomplish, I'm not sure any of this is relevant.

Maybe you are looking for

  • How to delete Remittance Advice through FB01 - which User exit or BADI?

    I have created a BDC program for transaction FB01 to create an FI posting.  During this BDC session, i need to delete the associated remittance advice using the function REMADV_DELETE. Is there a user exit or BADI that i can use to call REMADV_DELETE

  • JDBC for Oracle 8.1.5

    Hello Guys, I have oracle 8.1.5 with java 1.2.2. But, the problem is that i cann't connect to oracle through jdbc. Problem is that it cann't create the jdbc. Can any one help me?

  • Unwise.exe Files not run on Windows 8.1 SSSS

    So unwise.exe Files not run on Windows 8.1 I Tried too! much but when i run it , it will not open i also tried To run as Administor but not works i am downloaded GTA San Andreas Admin console for my GTA San Andreas that one was unwise.file its not op

  • _v and _h

    Should I stop using the _v and _h for the indesign files? Actually I need to go and read the latest docs.... but if anyone wants to answer this I would be grateful anyway Cheers Alistair

  • Making a button that onclick opens email program

    What is the code to make a button that onclick opens the user's email program? Thanks.