Loading
Struts Jsp Tags

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  How to use Structs tag libs in Jsp ?


Ans)

<%@ page contentType=”text/html;charset=”UTF-8” %>
<%@ taglib uri=”/WEB-INF/struts-bean.tld”
    prefix=”bean” %>
<%@ taglib uri=”/WEB-INF/struts-html.tld”
    prefix=”html” %>

<html:html locale=”true”>
<head>
  <title>
    <bean:message key=”logon.title”/>
  </title>
  <html:base/>
</head>
<body bgcolor=”white”>

<html:errors/>

<html:form action=”/logon” focus=”username”
        onsubmit=”return validateLogonForm(this);”>
<table border=”0” width=”100%”>

  <tr>
    <th align=”right”>
    <bean:message key=”prompt.username”/>
    </th>
    <td align=”left”>
      <html:text property=”username” size=”16”/>
    </td>
  </tr>
</html:form>
</body></html:html>



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

Struts Jsp Tags


Struts Jsp Tags

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free