Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

HTML Span tag to Struts Sapn tag

Posted on 2008-06-19
2
2,112 Views
Last Modified: 2010-05-18
Am having a problem in converting from normal html page to struts configured html due to the span tag in my page....Can u convert it to stutrs configured html page...Am new to this version..




<html>
<head>
<title>Product SetUp</title>
<LINK href="Images\StyleOne.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<form name=frm>
<br><br><br><br>
<div class="top-link"><center>PRODUCT SET UP</center></div>
<br><br>
<center>
<table>
<tr class="textname">
	 <td height="40"  bgcolor="white">&nbsp;&nbsp;Set Up By &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td height="40"  bgcolor="white">
		<select class=selbdy-txt onchange="show(document.frm.searchBy.options[document.frm.searchBy.selectedIndex].value);" name="searchBy" editable="true">
		<option value="1">Payer Product</option>
		<option value="2">Provider Product</option>
		</select>
	</td>
</tr>
<span id="spnPayer" style="display:inline;">
<table>
<tr class="textname">
		<td align="left"  bgcolor="white">&nbsp;&nbsp;&nbspPayer Name &nbsp;&nbsp;</td>
		<td><input type="text" name="payername" class="textbox-normal" style="border:2px solid;background-color:#FFFFCC;">
		<td><span id="reqFile" style="display:inline; font-weight:bld;  color:red">&nbsp;&nbsp;*</span> </td>
		<td align="center" height="40" bgcolor="white">
</tr>
<tr class="textname">
		<td align="left"  bgcolor="white">&nbsp;&nbsp;&nbspPayer ProductName &nbsp;&nbsp;</td>
		<td><input type="text" name="payerprodname" class="textbox-normal" style="border:2px solid;background-color:#FFFFCC;">
		<td align="center" height="40" bgcolor="white">
</tr>
<tr class="textname">
		<td align="left"  bgcolor="white">&nbsp;&nbsp;&nbspPayer ProductID &nbsp;&nbsp;</td>
		<td><input type="text" name="payerprodid" class="textbox-normal" style="border:2px solid;background-color:#FFFFCC;">
		<td align="center" height="40" bgcolor="white">
</tr>
<tr class="textname">
		<td align="left"  bgcolor="white">&nbsp;&nbsp;&nbspPayer PriceTag &nbsp;&nbsp;</td>
		<td><input type="text" name="payerptag" class="textbox-normal" style="border:2px solid;background-color:#FFFFCC;"></td>
		<td align="center" height="40" bgcolor="white">
</tr>
</table>
</span>
<span id="spnProvider" style="display:none;">
<table>
<tr class="textname">
		<td align="left"  bgcolor="white">Provider Name &nbsp;&nbsp;</td>
		<td><input type="text" name="providername" class="textbox-normal" style="border:2px solid;background-color:#FFFFCC;">
		<td><span id="reqFile" style="display:inline; font-weight:bld;  color:red">&nbsp;&nbsp;*</span> </td>
		<td align="center" height="40" bgcolor="white">
</tr>
<tr class="textname">
		<td align="left"  bgcolor="white">Provider ProductName &nbsp;&nbsp;</td>
		<td><input type="text" name="providerprodname" class="textbox-normal" style="border:2px solid;background-color:#FFFFCC;">
		<td align="center" height="40" bgcolor="white">
</tr>
<tr class="textname">
		<td align="left"  bgcolor="white">Provider ProductID &nbsp;&nbsp;</td>
		<td><input type="text" name="providerprodid" class="textbox-normal" style="border:2px solid;background-color:#FFFFCC;">
		<td align="center" height="40" bgcolor="white">
</tr>
<tr class="textname">
		<td align="left"  bgcolor="white">Provider PriceTag &nbsp;&nbsp;</td>
		<td><input type="text" name="providerptag" class="textbox-normal" style="border:2px solid;background-color:#FFFFCC;"></td>
		<td align="center" height="40" bgcolor="white">
</tr>
</table>
</span>
</table>
</center>
<center>
<table>
<tr class="textname">
	<td height="60" bgcolor="white"></td>
	<td><input class="button" type=button onclick="javascript:validate(document.frm.searchBy.options[document.frm.searchBy.selectedIndex].value);" value=Submit>&nbsp;
	<input class="button" onclick='window.location.href("HomePage.jsp")' type=button value=Cancel></td>
</tr>
</table>
<table>
	<tr class="textname">
		<td height="60" bgcolor="white"></td>
	 	<td align="center"><span id="reqFile" style="display:inline; font-weight:bld;  color:red">*&nbsp;&nbsp;Optional field</span></td>
	</tr>
</table>
</center>
</form>
</body>
</html>

Open in new window

0
Comment
Question by:Isotropes
  • 2
2 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 125 total points
ID: 21839464
I am not a struts expert but since there has been no other response (yet) I do have a suggestion.  If Struts will make most tags for you but doesn't provide a way to do span tags then just use JSP to write the HTML.  JSP isn't my expertise but it must have a way to just write content and you could use it to make the HTML tag.  Another option is to end the server script, make a block of html, and then start the server script again.

Both of these are options that will work in server languages and frameworks I know and use.  I believe it will be an option for you too.  Let me know if you have a question or need more info.

bol
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 21847746
I'm glad I could help.  Thanks for the fun question.

bol
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
asp.net input html code have it display the content 2 22
Html CheckBox obtain Its Value 5 27
Copying table data to one another 15 31
Selected in an option list 13 20
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question