Click here to Skip to main content
16,017,151 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello
i have tree with links connected with databae i want create jsp page automatic for every link
note: i don't no how number of field from database
HTML
<%@page import="TLMClient.AddNewFormWithItsParameters"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page errorPage = "guestBookErrorPage.jsp" %>
<%@ page import = "java.util.*" %>
<%@ page import = "TLMClient.*" %>

  <jsp:usebean id="ParamData" scope="request" xmlns:jsp="#unknown">
                class = "TLMClient.AddNewFormWithItsParametersSQL" /> 
  <jsp:usebean id="ParamData1" scope="request">
                class = "TLMClient.AddNewFormWithItsParametersSQL" />
   <jsp:usebean id="ParamData2" scope="request">
                class = "TLMClient.AddNewFormWithItsParametersSQL" />

<html>
    <head>
       <meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>css3menu.com</title>
	<!-- Start css3menu.com HEAD section -->
	<link rel="stylesheet" href="CSS3 Menu_files/css3menu2/style.css" type="text/css" /><style type="text/css">._css3m{display:none}</style>
	<!-- End css3menu.com HEAD section -->
        <title>R7_add new from with its parameters</title>
    </head>
    <body>


CSS
<!-- Start css3menu.com BODY section --><div style=" text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;"><table width="100%" border="1" cellpadding="2" cellspacing="2" style="background-color:#6495ed;">
<tr valign="top">
<td style="border-width : 0px;"><font size="4">-[egstask1]</font>
</td>
</tr>
</table>
<!-- Start css3menu.com BODY section -->
<ul id="css3menu2" class="topmenu">
	<li class="topfirst"><a href="#" target="_parent" style="height:32px;line-height:32px;"><img src="CSS3 Menu_files/css3menu2/blue_circle - folder open.png" alt=""/>Open</a></li>
	<li class="topmenu"><a href="#" style="height:32px;line-height:32px;"><img src="CSS3 Menu_files/css3menu2/blue_circle - document spreadsheet.png" alt=""/>Save</a></li>
	<li class="topmenu"><a href="#" style="height:32px;line-height:32px;"><img src="CSS3 Menu_files/css3menu2/blue_circle - clipboard cut1.png" alt=""/>Cut</a></li>
	<li class="topmenu"><a href="#" style="height:32px;line-height:32px;"><img src="CSS3 Menu_files/css3menu2/blue_circle - clipboard paste.png" alt=""/>Copy</a></li>
	<li class="topmenu"><a href="#" style="height:32px;line-height:32px;"><img src="CSS3 Menu_files/css3menu2/blue_circle - document text.png" alt=""/>Paste</a></li>
	<li class="topmenu"><a href="#" style="height:32px;line-height:32px;"><img src="CSS3 Menu_files/css3menu2/blue_circle - arrow - up.png" alt=""/>Up</a></li>
	<li class="topmenu"><a href="#" style="height:32px;line-height:32px;"><img src="CSS3 Menu_files/css3menu2/blue_circle - arrow - down1.png" alt=""/>Down</a></li>
	<li class="toplast"><a href="#" style="height:32px;line-height:32px;"><img src="CSS3 Menu_files/css3menu2/blue_circle - globe1.png" alt=""/>Search</a></li>
</ul><p class="_css3m"><a href="http://css3menu.com/">How To Make Menu In HTML  Css3Menu.com</a></p>
<!-- End css3menu.com BODY section --><div style=" text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;"><table width="100%" border="3" cellpadding="2" cellspacing="2" style="border-color: #000000; border-style: solid; background-color: #ffffff;">
<tr valign="Top">
<td rowspan="22" style="border-color : #000000 #000000 #000000 #000000; border-style: solid;">
    width="444"><p style=" text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;">
        
      </p>
      
      <lt><h3>SubSystem</h3></lt>
                 <% // start scriptlet
            List paramListtree =ParamData1.getParamListTree();
            Iterator paramListIterator1 = paramListtree.iterator();
            AddNewFormWithItsParameters param1;

            while ( paramListIterator1.hasNext() ) 
            {
               param1 = ( AddNewFormWithItsParameters ) paramListIterator1.next();
         %>
        <dd> - <%= param1.getNameSubSystem() %></dd>
          <%
               }%>
                 
                     
      
                     <lt><h3>Formulars</h3></lt>
                 <% // start scriptlet
            List paramListtree1 =ParamData2.getParamListTree1();
            Iterator paramListIterator2 = paramListtree1.iterator();
            AddNewFormWithItsParameters param2;

            while ( paramListIterator2.hasNext() ) 
            {
               param2 = ( AddNewFormWithItsParameters ) paramListIterator2.next();
         %>
         <dd> <a href="<%=param2.getFormulars()+" .jsp="%>"><%= param2.getFormulars() %></a>
 </dd>
          <%
               }%>
              
</td>                                                                   
</tr>

</table>
  </div>
    </body>
</html></div>
Posted
Updated 5-May-13 1:32am
v2
Comments
Richard MacCutchan 5-May-13 7:33am    
You need to provide more detail about your problem; please use the "Improve question" link and edit your post.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900