You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "G.L. Grobe" <ga...@grobe.org> on 2001/04/28 00:29:41 UTC

html form widgets not appearing

My pages are showing up fine and the form Actions are working, w/ one exception, all of my pages are not displaying any of the form widgets like radio buttons or text entry boxes and even bean message keys, yet no errors are occurring. Is there anything wrong w/ the below page that would prevent forms from not showing?

A problem I had before of not finding message keys was that in the taglib lines where the prefix was only - prefix="bean" - and I actually needed - prefix="struts-bean", though I've seen no examples of it anywhere's, just from somebody's post, so I tried it and it worked.

TIA

------------------------ my index.jsp -------------------------------------------
 <%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="struts-bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="struts-html" %>

<html:html>
<head>

<title>
   <bean:message key="main.title" />
</title>

<%@ include file="menubar.js" %>
<%@ include file="main.css" %>

</head>

<body bgcolor="white">
<html:errors/>

<%@ include file="header.jsp" %>
<%@ include file="mainMenu.jsp" %>

<html:form action="view.do">

<table border="0" cellspacing="2" cellpadding="0" align="left">
   <tr>
      <td>
         <html:radio property="view" value="Master View">
         <bean:message key="main.master" />&nbsp;
         </html:radio>
      </td>
      <td>
         <html:radio property="view" value="Details View">
         <bean:message key="main.detail" />
         </html:radio>
      </td>
      <td>
         <center>
         <html:submit value="View"/>
         </center>
      </td>
   </tr>
</table>
</html:form>

<br> <br> <br> <br> <br>
<%@ include file="footer.jsp" %>

</body>
</html:html>