Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8694855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:53:12+00:00 2026-06-13T00:53:12+00:00

I have a page design where it involves some frames, on the left frame

  • 0

I have a page design where it involves some frames, on the left frame I have menu on which if I click it has to go to other frame, but it is not getting loaded to specified frame instead it is getting loaded in to the same frame where the link is specified.

I create hyperlink as follows in java code.

left_menu_HTML.append("<a href=\"#\" target=\"workFrame\" onclick=\"getMenuRequest('"+model.getResource_name()+"','goToHome')\">"+model.getMenu_name()+"</a>");

I use struts 1.2.9 when the user clicks on the link i call the action like this

function getMenuRequest(actionName,methodName){
   document.forms[0].action=actionName+".htm";
   document.forms[0].method.value=methodName;
   document.forms[0].submit();
}

and the method in action class looks like this

public ActionForward goToHome(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
        throws Exception {
    //call method to verify Pagetoken
    forwardRequestTo = "departmentHome";
    return mapping.findForward(forwardRequestTo);
}

and mapping for this

<action path="/common/DepartmentAction"  name="SecurEyesForm" type="com.secureyes.eswastha.struts.action.DepartmentAction" scope="request" parameter="method" validate="false">
    <forward name="departmentHome" path="/WEB-INF/Masters/DepartmentMaster.jsp"></forward>            
</action>

This is how the frame is aligned ;

</head>
    <frameset border="0" frameborder="0" framespacing="0" rows="64,*">
            <frame border="0" frameborder="0" framespacing="0" id="topFrame" name="topFrame" src="<%=resourcePath%>/common/header.jsp" marginheight="0" marginwidth="0" noresize="noresize" scrolling="no">
            <frameset border="0" frameborder="0" framespacing="0" id="MainFrameSet" cols="209,*">
                    <frame noresize="noresize" border="0" frameborder="0" framespacing="0" id="leftFrame" name="leftFrame" src="<%=resourcePath%>/common/left_menu.jsp" scrolling="auto">
                    <frame border="0" frameborder="0" framespacing="0" id="workFrame" name="workFrame" src="<%=resourcePath%>/common/WelcomePage.jsp" marginheight="7" marginwidth="7" noresize="noresize" scrolling="auto">
            </frameset>
    </frameset>
</html>

Please help me to resolve this,

don’t know and can’t understand why it is getting loaded in to the same frame .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:53:14+00:00Added an answer on June 13, 2026 at 12:53 am

    The code seems fine.

    Which kind of DTD are you using ? Because, according to W3C specs,

    1) The target attribute IS SUPPORTED in HTML5.

    2) The target attribute IS DEPRECATED in HTML 4.01.

    3) Frames and framesets are not supported in HTML5, so the _parent, _top and framename values are now mostly used with iframes.

    EDIT:

    You SHOULD (you better do 😉 have defined, in the first row of your jsp page, a DTD to say the browser how to interprete your code.
    If you don’t specify it, the browser go in Quirks Mode, and try to “predict” the page’s DTD by its content (with misterious results).
    If you do specify it, then you must respect the “rules” for that DTD, that you can find on W3C site. They’re All liste on wikipedia by the way:

    http://en.wikipedia.org/wiki/Document_Type_Definition

    And this is how a DTD looks like:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    

    FYI, you can validate your page, based on the selected DTD, on the official W3C validator page: http://validator.w3.org/#validate_by_input

    Hope that helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My Page is 980px in Width, but I have a few design elements (which
I have a page that I need to design in PhP/Html/Java/CSS that has to
I have page named page--news.tpl.php, which i created for my news page. But after
I have a asp.net project, and in my design page I have some asp:Label
I have a html file has the general design (some div's) and I need
I have a page design I'm trying to implement with a header (menu bar)
I have a design/best practice question relating to MVC3. I have a front page
I have a design for a page that uses 3 types of audio and
I have purchase Object-Oriented Analysis and Design with Applications , at page 64 paragraph
I have page where I use model which can have different types (depending by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.