Jump to content
Sign in to follow this  
Guest anand_rj3

page is loaded without any page refresh.

Recommended Posts

Guest anand_rj3

Hi,In jsp,servlets & struts project..when I append # symbol with the action and submit that,action is performed and page is loaded without any page refresh.code in java script: document.forms[0].action += "#abc"; I am not sure that why this happen. Any one plz tell me the reason.

Share this post


Link to post
Share on other sites

How exactly are you linking to the action? Post more code and describe exactly what it does better.I just tried adding a #name to one of my struts links and it worked just fine, it refreshed, ran the action, and went to the #name part of the page

Share this post


Link to post
Share on other sites

Well, if the action only has "#abc" in it without the page name (e.g. "index.jsp#abc") then the page will not refresh. Add the name of the page to your action and try again.

Share this post


Link to post
Share on other sites
Hi,In jsp,servlets & struts project..when I append # symbol with the action and submit that,action is performed and page is loaded without any page refresh.code in java script: document.forms[0].action += "#abc"; I am not sure that why this happen. Any one plz tell me the reason.
Hey, the symblo # is used to navigate within the page, just try out some examples

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...