facebook

Initial positioning in a JSP-generated page

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #219591 Reply

    tamaki
    Member

    I am developing a Web application using Struts. One of the pages
    shows an interaction history together with an input form and
    thus grows larger and larger along the user interaction.
    When the modified page is displayed I want the browser window to
    position on the form part rather than on the top part of the page
    occupied by the history. I know that I can do this with an intra-page
    link and Javascript. Is there a simpler way to do this in the Struts framework?

    Thanks,

    Hisao

    #219623 Reply

    Riyad Kalla
    Member

    Hisao,
    This definately sounds like a client-browser JavaScript thing, I’m not aware of any component in Struts that will automate this for you. It will be up to you to do this.

    Moving to OT > Soft Dev.

    #219668 Reply

    tamaki
    Member

    Thanks Ryad, I suppose I have to live with it.

    Hisao

    #219675 Reply

    Riyad Kalla
    Member

    I’m sure you alread have a way to do this, but using anchor tags and JavaScript in your body’s onLoad event to change window.location to <currentPage>#<anchor name> might do the trick….

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Initial positioning in a JSP-generated page

You must be logged in to post in the forum log in