facebook

h:commandButton displays in preview; not MyEclipse browser

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #300416 Reply

    MikeKing
    Member

    Here is the JSP page.

    
    <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    
        <html>
            <head>
                <base href="<%=basePath%>">
                <title>My JSP 'manageMedAid.jsp' starting page</title>
                <meta http-equiv="pragma" content="no-cache">
                <meta http-equiv="cache-control" content="no-cache">
                <meta http-equiv="expires" content="0">
                <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
                <meta http-equiv="description" content="This is my page">
                <!--
        <link rel="stylesheet" type="text/css" href="styles.css">
        -->
            </head>
            <body>
            <br>
                This is the top level Med Aid page mcfk.
                <f:view>
                <h:form rendered="true" id="formToManMedAid">
    
                    <h:commandButton action="manClaims" rendered="true"
                        value="Manage Claims">claims</h:commandButton>
                    <h:commandButton action="manPats" rendered="true"
                        value="Manage Patients">patients</h:commandButton>
                </h:form>
                <br>
            </f:view>
            <br>
            This is after the buttons
            </body>
        </html>
    
    
    

    Here is the JSP preview

    Here is the view in the Eclipse Browser

    What am I doing wrong?
    Thanks,
    Mike King

    #300491 Reply

    What do you have declared as a welcome page in your web.xml?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: h:commandButton displays in preview; not MyEclipse browser

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