MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
tamaki
Post subject: Initial positioning in a JSP-generated page  PostPosted: Nov 18, 2004 - 12:09 AM
Veteran Member
Veteran Member


Joined: Oct 26, 2004
Posts: 10

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Nov 18, 2004 - 05:11 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

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.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
tamaki
Post subject:   PostPosted: Nov 18, 2004 - 11:26 PM
Veteran Member
Veteran Member


Joined: Oct 26, 2004
Posts: 10

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

Hisao
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Nov 19, 2004 - 12:32 AM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

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

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits