Come on, at least tell us the strut version.

I happen to be using struts 1.3.10 and if you look in
/META-INF/tld/struts-html.tld of the struts-taglib-1.3.10 jar you will find
<uri>http://struts.apache.org/tags-html</uri>

so i use
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html"%>

mas

davargas123 wrote:
> When I change the standard HTML tags of my .jsp page into the Struts tags,
> the page loads up completely blank, aside from what is loaded by the
> tiles-def. What could be causing this? I'm thinking that's why my page
> doesn't submit data to the actionform, but I don't see why it wouldn't be
> rendering the struts tags at all. For instance, if I even add ONE struts tag
> in the middle of my working code that isn't the html:form tag, the entire
> jsp page will not be rendered at all. It's driving me nuts, I've been
> working on figuring this out for far too long and would greatly appreciate
> some input.
> 
> 
> ---------------------------JSP---------------------------------------
> <%...@taglib uri="/taglib/struts-html" prefix="html"%>
> <%...@taglib uri="/taglib/struts-bean" prefix="bean"%>
> <%...@page import="com.thomson.west.pubrec.optout.ui.servlet.SSNLookupAction"
> %>
>                       
> <script>
> function encryptSSN(){
>         document.ssnLookupForm.submit();
> }
> 
> 
> function showError(){
>         document.getElementById('error').style.display='block';
>         document.getElementById('box1').style.display='none';
> }
> 
> function validateSSN(){
>         var ssn = document.ssnLookupForm.ssn.value;
>     if( /^\d{3}-\d{2}-\d{4}$/.test(ssn) == false ){
>                 showError();
>     }else{
>        encryptSSN();
>     }
> }
> </script>
> <html:form method="post" action="/SSNLookupEncrypt">
>         <div style="text-align: center; font-family: arial;">
>       <div class="productsdiv" style="margin: 0 auto; padding: 5px;
> text-align: left; width: 43%">
>          <div>
>             SSN: <input type="text" name="ssn"
> value="<%=ssnLookupForm.getSSN()%>"/>
>             <div class="spacer"> </div>
>             Format: XXX-XX-XXXX
>          </div>
>          <div class="spacer"> </div>
>          <div style="text-align: center;">
>            <input type="button" value="Encrypt" onclick="validateSSN()"/>
>          </div>
>          <div class="textBox" id="box1" style="text-align: center;
> display:block">
>          <div class="spacer"> </div>
>            Encrypted Value: <%=ssnLookupForm.getEncryptedSSN()%>
>        </div>
>       </div>
>       <div class="spacer"> </div>
>    </div>
> </html:form>
> ------------------------------------------------------
> This is the corresponding ActionForm:
> 
> public class SSNLookupForm extends ActionForm{
> 
>         private static Logger log =
>               Logger.getLogger(SSNLookupForm.class.getName());
>                
>         private String ssn = "XXX-XX-XXXX";
>         private String encryptedSSN = "[Encrypted Value]";
>        
>         public String getSSN(){
>                 return ssn;
>         }
>        
>         public void setSSN(String ssn){
>                 this.ssn = ssn;
>         }
>        
>         public String getEncryptedSSN(){
>                 return encryptedSSN;
>         }
>        
>         public void setEncryptedSSN(String encryptedSSN){
>                 this.encryptedSSN = encryptedSSN;
>         }
>        
>         public void reset(ActionMapping mapping, HttpServletRequest request)
> {
>             this.ssn = "XXX-XX-XXXX";
>             this.encryptedSSN= "[Encrypted Value]";
>         }
>                
> }
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to