
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        
        
                   <table border="1">
                        <tr><td>
                                        <table border="1"><tr>
                                                <td>
                                                 FORMULARIO 
 
                                                 
       
                                                 
                      
                                                 
                                                 
        <s:form action="categoriaindice">
            
            <s:submit  name="i" value="maria"/>
        </s:form>
                                       
                        
                        

                        
                        
                        
                        </td></tr>
                                        </td></tr>
                                        </table>
                            </td><td>            
        
        
        
        
        <s:form action="categoriaSearch">
            <s:textfield name="m" />
            <s:submit value="Buscar"/>
        </s:form>
        
        
        </br>
        <h2>Reporte de Cursos Registrados</h2>
        <br/>
        <s:url id="url" action="categoriaInput"/>
        <s:a href="%{url}">Nuevo Curso</s:a>
        <br/>
        <table border="1">
            <thead>
                <tr>
                    <th>Nrc</th>
                    <th>Nombre</th>
                    <th>Semestre</th>

                </tr>
            </thead>
            <tbody>
            <s:iterator value="lstCat">
                <tr>
                    <td><s:property value="catNoca"/></td>
                    <td><s:property value="catNom"/></td>
                    
                    
                    <td>
                        <s:url id="url" action="categoriaInput">
                            <s:param name="noca" value="catNoca"/>
                        </s:url>
                        
                        <s:a href="%{url}">Editar</s:a>
                        
                        
                        
                        
                        
                        <s:url id="url" action="categoriaRemove">
                            <s:param name="noca" value="catNoca"/>
                        </s:url>
                        <s:a href="%{url}">Eliminar</s:a>

                        
                        
                        <s:url id="url"  action="categoriaDetalle2">
                            <s:param name="noca" value="catNoca"/>
                        </s:url>
                        <s:a href="%{url}">Detalle 2</s:a>    
                        

                    </td>
                </tr>
            </s:iterator>
            </tbody>
        </table>
        
        
                            </td></tr>
                    </table>
                        
                        
        
        

    </body>
</html>
