Guest anand_rj3 Posted September 25, 2007 Share Posted September 25, 2007 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. Link to comment Share on other sites More sharing options...
spoonraker Posted September 25, 2007 Share Posted September 25, 2007 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 Link to comment Share on other sites More sharing options...
Synook Posted October 8, 2007 Share Posted October 8, 2007 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. Link to comment Share on other sites More sharing options...
vijay1440 Posted February 9, 2009 Share Posted February 9, 2009 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.