HTML br tag modifications

Hi all,
I'm working on an editor that allows users to enter some notes. I use a JEditorPane with a HTML document and editor kit.
The problem is that the data is saved in an XML file so the Document needs to be well formed.
Now my question.
How can I modify a HTML.Tag like the <br> to be <br/> or create a new one.
Thanks Oscar

In the XSL template for BR, what are you converting it to in the XML file?
You need to convert the BR to whatever XML element is used to represent a sentence without an indent.
The paragraphs in the XML instance should then contain this element as a child. For example,
<paragraph>This is a sentence that is part of a paragraph converted from an HTML report that is using a BR element. We need to start a new line of text in the paragraph without an indent.How about right here:
<newline/>
I'm on a new line of text within the paragraph.
</paragraph>
Search the Apache FOP API to find out how to manipulate the format of the text.
Edited by: GhostRadioTwo on Sep 25, 2007 12:39 PM

Similar Messages

  • Problem with html:select or html:options tags using struts,jsp and tomcat

    Hi
    I'm updating a Struts-Project to a new layout and therefore rework all jsp Sites.
    I'm also using a new Folder-Structure and update therefore my struts-config file.
    My Problem now is:
    Till now, we had a select-field with a code like this:
    < html:form action="/timetableAction" method="POST">
    < table width="53%" border="0">
    < tr>
    < td>< html:radio property="dauer" value="semester"
    /></ td>
    < html:select property="semester" size="1">
    < htmlptions name="semesterList" />
    </ html:select>
    </ html:form>
    The problem now is, that whenever I use any <html:xy> tag, the tomcat server I use can not show the page, he shows just the headers of the template, but not the
    content.-jsp-File where the form would be in. He stops right in the middle of the html page, when he notices the <html:xy> tags.
    And the funny thing is, that he has no problem to show a page when there is a <html:errors> within it? Why could this be? the struts-html.tld File is well included and teh Tomcat Server shows no exceptions.
    Waiting for you answers and thanks

    Thank you, I already got the answer in another forum

  • How to compare result from sql query with data writen in html input tag?

    how to compare result
    from sql query with data
    writen in html input tag?
    I need to compare
    user and password in html form
    with all user and password in database
    how to do this?
    or put the resulr from sql query
    in array
    please help me?

    Hi dejani
    first get the user name and password enter by the user
    using
    String sUsername=request.getParameter("name of the textfield");
    String sPassword=request.getParameter("name of the textfield");
    after executeQuery() statement
    int exist=0;
    while(rs.next())
    String sUserId= rs.getString("username");
    String sPass_wd= rs.getString("password");
    if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
    exist=1;
    if(exist==1)
    out.println("user exist");
    else
    out.println("not exist");

  • Insert an HTML Table tag as a value in a Tree Table

    Hi helper,
    Can I insert an HTML Table tag inside a TreeTable (Hierarchical data) using AdvancedDataGrid as a value?
    I need to create a Tree table in flex and I have beside normal int values some cells that need to show a certain images in an HTML Table I will create.
    Is it possible?
    Please advice
    Thanks
    Jo

    <div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>It depends on where you get the list of images<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Alex Harui<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Flex SDK Developer<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><a href="http://www.adobe.com/"><span style='color:blue'>Adobe<br />Systems Inc.</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Blog: <a href="http://blogs.adobe.com/aharui"><span<br />style='color:blue'>http://blogs.adobe.com/aharui</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Yossi Bar<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Monday, February 09, 2009 1:14 AM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> Re: Insert an HTML Table tag as a value in a Tree Table<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new message was posted by<br />Yossi Bar in <br><br /><br><br /><b>Developers</b> --<br><br />  Insert an HTML Table tag as a value in a Tree Table<br><br /><br><br />Thanks Alex, <br><br />What is the way to implement HorizontalLIst of images for<br />AdvancedDataGridColumn? <br><br /><br><br />In the code here I create a tree table and in Actual column I show an image: <br><br /><br><br />&lt;mx:AdvancedDataGrid width=&quot;100%&quot; height=&quot;100%&quot;<br />folderClosedIcon=&quot;{null}&quot; folderOpenIcon=&quot;{null}&quot;<br />defaultLeafIcon=&quot;{null}&quot;&gt; <br><br /><br><br />&lt;mx:dataProvider&gt; <br><br />            &lt;mx:HierarchicalData<br />source=&quot;{dpHierarchy}&quot;/&gt; <br><br />        &lt;/mx:dataProvider&gt; <br><br />        &lt;mx:groupedColumns&gt; <br><br />         &lt;mx:AdvancedDataGridColumn<br />headerText=&quot;&quot; width=&quot;50&quot;/&gt; <br><br />            &lt;mx:AdvancedDataGridColumn<br />dataField=&quot;Region&quot; backgroundColor=&quot;haloSilver&quot;<br />headerText=&quot;Region title&quot;<br />headerRenderer=&quot;mx.controls.Label&quot;/&gt; <br><br />            &lt;mx:AdvancedDataGridColumnGroup<br />headerText=&quot;Group Header&quot;<br />headerRenderer=&quot;mx.controls.Label&quot;&gt; <br><br />&lt;mx:AdvancedDataGridColumn dataField=&quot;Territory_Rep&quot;<br />headerText=&quot;Territory Rep&quot;<br />headerRenderer=&quot;mx.controls.Label&quot;/&gt; <br><br />&lt;mx:AdvancedDataGridColumn dataField=&quot;Actual&quot;<br />headerText=&quot;Actual title&quot;<br />headerRenderer=&quot;mx.controls.Label&quot;&gt; <br><br />&lt;mx:itemRenderer&gt; <br><br />&lt;mx:Component&gt; <br><br />&lt;mx:VBox horizontalAlign=&quot;center&quot;&gt; <br><br />&lt;mx:Image width=&quot;50&quot; source=&quot;{data.Actual}&quot;/&gt; <br><br />&lt;/mx:VBox&gt; <br><br />&lt;/mx:Component&gt; <br><br />&lt;/mx:itemRenderer&gt; <br><br />&lt;/mx:AdvancedDataGridColumn&gt; <br><br /><br><br />&lt;mx:AdvancedDataGridColumn dataField=&quot;Estimate&quot;<br />headerText=&quot;Estimate title&quot; headerRenderer=&quot;mx.controls.Label&quot;/&gt;<br /><br><br />            &lt;/mx:AdvancedDataGridColumnGroup&gt;<br /><br><br />        &lt;/mx:groupedColumns&gt; <br><br />    &lt;/mx:AdvancedDataGrid&gt; <br><br /><br><br />Please advise, <br><br /><br><br />Thanks <br><br /><br><br />Jo <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b7d1ae/2">Insert an HTML Table tag<br />as a value in a Tree Table</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b7d1ae!folder=.3c060fa3">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>

  • Use of titleKey attribute in html:select tag

    Hi,
    There is one "titleKey" attribute to create mouse over pop-up texts taking key values from property files in case of i18n. It works for every struts specific tag like <html:text titleKey="help.rmc.name"/> or <html:checkbox titleKey="help.rmc.name"/> except for <html:select> tag which is used for creating combo box or list box. But this tag contains the titleKey attribute.
    Please give me some suggestions how to implement this mouse over pop-up texts in case of <html:select> tag

    Hi,
    There is one "titleKey" attribute to create mouse over pop-up texts taking key values from property files in case of i18n. It works for every struts specific tag like <html:text titleKey="help.rmc.name"/> or <html:checkbox titleKey="help.rmc.name"/> except for <html:select> tag which is used for creating combo box or list box. But this tag contains the titleKey attribute.
    Please give me some suggestions how to implement this mouse over pop-up texts in case of <html:select> tag

  • How to specify HTML meta tags?

    I'm trying to get a portal to always have the following an HTML meta tag in the head of the generated HTML:
    <meta name="ROBOTS" content="NOFOLLOW" />
    I haven't seen any documentation about doing this in particular, but looking at some of the XML schema (*.xsd) files in various weblogic-specific jars, it seems like maybe the following would work in the <netuix:head> tag of the .portal configuration file for the portal:
    <netuix:head>
    <netuix:meta name="ROBOTS" content="NOFOLLOW" />
    </netuix:head>
    However, this does not seem to work.
    Also, I've checked the skin.properties file to see if there are any comments about how to specify meta tags, but there aren't any.

    Turns out there are a number of ways to do this. A BEA consultant recommended modifying the "head.jsp" for the portal's skin.
    Alternatively, it dawned on me that all I had to do was put the meta tags in a jsp and use that jsp in the head area of the .portal file. For example:
    <netuix:head>
    <netuix:jspContent contentUri="/resources/jsp/customHead.jsp"/>
    </netuix:head>

  • Using the new HTML 5 tags

    I can't  get the new HTML5 tags section, header and footer to work on my page.  When I change the divs to section it totally screws up the page rendering.I added the appropriate CSS to my style sheet.  What do I do?
    Here is the oiginal code:
    <!DOCTYPE HTML>
    <html><!-- InstanceBegin template="/Templates/Ricks Universe.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <!-- InstanceBeginEditable name="doctitle" --> 
    <titleRick's Universe</title>
    <!-- InstanceEndEditable -->
    <meta charset="utf-8">
    <link rel="stylesheet" href="ricks.css" type="text/css" media="screen" title="Ricks Style Sheet"/>
    <link rel="stylesheet" href="hh.css" type="text/css" media="handheld"/>
    <link rel="stylesheet" media="print" type="text/css" href="print.css" />
    <!-- InstanceBeginEditable name="head" -->
    <style type="text/css">
    td {border: 2px;
        bordercolor: #008800;
    </style>
    <!-- InstanceEndEditable -->
    <!-- InstanceParam name="home" type="boolean" value="true" -->                
    </head>
    <body>
    <div id="wrapper">
         <div id="header" title="header">
      <p class="a8">
      <a href="HOME.HTM">Old Home Page</a>  
      <a href="newmenu.htm">Rick's Dog Page</a></p>
      <iframe src="http://free.timeanddate.com/clock/i425m2zy/n179/tct/pct/ahl/avt/tt0/ta1" frameborder="0" width="378" height="19"             allowTransparency="true"></iframe>
      <!-- InstanceBeginEditable name="title" -->
      <p class="title">Rick's Universe</p>
      <!-- InstanceEndEditable -->
         </div> <!-- End header  -->
      <div id="leftcolumn" title="left column">
    <ul>
    <li><a href="MEETDOGS.HTM">Meet the dogs</a></li>
    <li><a href="ART.HTM">Art</a></li>
    <li><a href="PARKING.HTM">Automotive</a></li>
    <li><a href="BABY.HTM">Babies</a></li>
    <li><a href="BOUTIQUE.HTM">The Boutique</a></li>
    <li><a href="CATLG.HTM">Catalogs</a></li>
    <li><a href="CHARITY.HTM">Charities</a></li>
    <li><a href="COMPUTE.HTM">Computing</a></li>
    <li><a href="DAYCARE.HTM">Day Care</a></li>
    <li><a href="DEPT.HTM">Department Stores</a></li>
    <li><a href="DOGCOMP.HTM">Dogs In Competition</a></li>
    <li><a href="DRUGS.HTM">Drug Stores</a></li>
    <li><a href="EDUCATE.HTM">Education</a></li>
    <li><a href="ELECT.HTM">Electronics</a></li>
    <li><a href="EMPLOY.HTM">Employment</a></li>
    <li><a href="ENTERT.HTM">Entertainment</a></li>
    <li><a href="MONEY.HTM">Financial</a></li>
    <li><a href="FITNESS.HTM">Fitness</a></li>
    <li><a href="FLOWERS.HTM">Flowers</a></li>
    <li><a href="FOOD.HTM">Food</a></li>
    <li><a href="FUNGAME.HTM">Fun and Games</a></li>
    <li><a href="GARDEN.HTM">Gardening</a></li>
    <li><a href="GOVMENT.HTM">Government</a></li>
    <li><a href="CARDS.HTM">Greeting Cards</a></li>
    <li><a href="GROCERY.HTM">Groceries</a></li>
    <li><a href="HEALTH.HTM">Health</a></li>
    <li><a href="HOBBY.HTM">Hobbies</a></li>
    <li><a href="HARDWARE.HTM">Home Improvement</a></li>
    <li><a href="INFO.HTM">Information</a></li>
    <li><a href="INTERNET.HTM">Internet and More</a></li>
    <li><a href="JEWELRY.HTM">Jewelry</a></li>
    <li><a href="BOOKS.HTM">Literature</a></li>
    <li><a href="MAPDIR.HTM">Maps and Directions</a></li>
    <li><a href="RECORDS.HTM">Music and Video</a></li>
    <li><a href="MOVIES.HTM">Movies</a></li>
    <li><a href="NEWS.HTM">News Stand</a></li>
    <li><a href="OFFICE.HTM">Office Supplies</a></li>
    <li><a href="PEOPLENET.HTM">People</a></li>
    <li><a href="PETS.HTM">Pets</a></li>
    <li><a href="PHONE.HTM">Phones</a></li>
    <li><a href="PHOTO.HTM">Photography</a></li>
    <li><a href="POST.HTM">Post Office</a></li>
    <li><a href="PRICES.HTM">Price Comparison</a></li>
    <li><a href="REALEST.HTM">Real Estate</a></li>
    <li><a href="SECURITY.HTM">Security</a></li>
    <li><a href="SEARCHNET.HTM">Searches</a></li>
    <li><a href="SENIOR.HTM">Senior Page</a></li>
    <li><a href="SHOES.HTM">Shoe Store</a></li>
    <li><a href="SHOPPING.HTM">Shopping Clubs</a></li>
    <li><a href="SPORTING.HTM">Sports</a></li>
    <li><a href="TOYS.HTM">Toys and Games</a></li>
    <li><a href="TV.HTM">Television</a></li>
    <li><a href="TRAVEL.HTM">Travel</a></li>
    </ul>
      </div> <!-- End Left Column-->                 
      <div class="content">
      <!-- InstanceBeginEditable name="content" -->
      <!-- Position Weather -->
      <div id="weather" class="noborder">
      <script type="text/javascript" src="http://voap.weather.com/weather/oap/11590?template=TRVLV&par=3000000007&unit=0&key=twciwea therwidget"></script>
      </div>
      <div id="center"><!-- Email me code -->
      My E-Mail address is <a class="black" href=
      "MAILTO:[email protected]" onmouseover=
      "window.status='Click Here To Send me E-Mail';return true"
      onmouseout=
      "window.status=' '; return true">[email protected]</a>
      </div>
      <div id="center"><!--CNN Ticker-->
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase=
    "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"
    id="breakinnews4" width="500" height="81">
        <param name="movie"
    value="http://cnn.com/QUICKNEWS/ticker/ticker.swf" />
        <param name="loop" value="false" />
        <param name="menu" value="false" />
        <param name="quality" value="high" />
        <param name="bgcolor" value="#000000" />
        <embed src="http://cnn.com/QUICKNEWS/ticker/ticker.swf" loop=
    "false" menu="false" quality="high" bgcolor="#000000" width="500"
    height="81" type="application/x-shockwave-flash" pluginspage=
    "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"/></embed></embed>
      </object>
      </div>
      <br/>
      <!-- Mapquest  -->
      <div id="mapq"> <a href='http://www.mapquest.com' target='_blank'><img border='0' alt='medium-logo.png' src='http://www.mapquestapi.com/cdn/common/images/medium-logo.png'/></a>
      </div>
      <div id="google">
    <table cellpadding=0 cellspacing=0 border=0 >
    <tr>
      <td><img src="Pictures/doodle_plus_google_logo_on_grey.gif" alt="doodle_plus_google_logo_on_grey.gif" /> <br />
      <form method="get" action="http://www.google.com/search">
      <input type="text"   name="q" size="31"
      maxlength="255" value="" />
      <input type="submit" value="Search" />   
      </form> </td>
      <td  style="font-family: Arial, Helvetica, sans-serif; font-size: 7.5pt;">
      <center><table width="90%" cellpadding=0 cellspacing=0 border=0  style="font-family: Arial, Helvetica, sans-serif; font-size: 7.5pt;">
      <tr>
      <br/><br/><span style="font-size: 18pt;">Search this site</span> <br/>
      <td style="font-family: Arial, Helvetica, sans-serif; font-size: 7.5pt;" align=left ><a href="http://search.freefind.com/siteindex.html?si=9724475">index</a></td>
      <td style="font-family: Arial, Helvetica, sans-serif; font-size: 7.5pt;" align=center><a href="http://search.freefind.com/find.html?si=9724475&m=0&p=0">sitemap</a></td>
      <td style="font-family: Arial, Helvetica, sans-serif; font-size: 7.5pt;" align=right><a href="http://search.freefind.com/find.html?si=9724475&pid=a">advanced</a></td>
      </tr>
      </table></center>
      <form style="margin:0px; margin-top:4px;" action="http://search.freefind.com/find.html" method="get" accept-charset="utf-8" target="_self">
      <input type="hidden" name="si" value="9724475">
      <input type="hidden" name="pid" value="r">
      <input type="hidden" name="n" value="0">
      <input type="hidden" name="_charset_" value="">
      <input type="hidden" name="bcd" value="&#247;">
      <input type="text" name="query" size="15">
      <input type="submit" value="search">
      </form>
      <br/>
      <a style="text-decoration:none; color:gray;" href="http://www.freefind.com" >search engine</a><a style="text-decoration:none; color:gray;" href="http://www.freefind.com" > by
      <span style="color: #606060;">freefind</span></a>
      </td>
    </tr>
    </table>
    <!-- end of freefind search box html -->
          </div>
      <br/>    
      <div id="ring">
      <table border="1" cellpadding="2" cellspacing="2" align="center" >
        <tr >
          <td align="center" bgcolor="transparent"><a href="SARIPAGE.HTM" target="_blank"><img src="Pictures/sari/sarinewchamp.jpg" alt="Sari's Page" /></a></td>
       <td align="center" bgcolor="transparent"><a href="HARLEYPAGE.HTM" target="_blank"><img src="Pictures/harley/HarleyChampion.jpg" alt="Harley's Page" /></a></td>
        </tr>
      </table>
      </div>
            <!-- InstanceEndEditable -->
            </div><!-- end of content html -->
      </div><!-- end wrapper -->
      <div id="footer">
      This website is the property of Fredric M. Zipser<br />
            Last Updated on
      <!-- InstanceBeginEditable name="EditRegion6" -->
      01/15/2015
      <!-- InstanceEndEditable -->
      </div><!-- end footer-->
    <div id="sitelock_shield_logo" class="fixed_btm" style="bottom:0;position:fixed;_position:absolute;right:0;"><a href="https://www.sitelock.com/verify.php?site=www.rickzipser.com" onclick="window.open('https://www.sitelock.com/verify.php?site=www.rickzipser.com','SiteLock','width=600,height= 600,left=160,top=170');return false;" ><img alt="PCI Compliance and Malware Removal" title="SiteLock"  src="http://shield.sitelock.com/shield/www.rickzipser.com"/></a></div>
    </body>
    <!-- InstanceEnd --></html>
    Here is the CSS:
    body {
      font-family: Garamond,Arial,sans-serif;
      margin: 0;
      color: #000000;
      font-size: medium;
      font-family:"Verdana";
      font-style: normal;
      font-weight: normal;
      line-height: normal;
      letter-spacing: normal;
      margin:auto;
      background-color: #93A5C4;
    #wrapper {
      background-color: #0000aa;
      color: #000000;
      width: 93%;
      margin:auto;
      min-width: 800px;
      height: 950px;;
      border: 10px solid #008800;
    #leftcolumn {
      float: left;
      margin:0;
      border-right: 10px solid #008800;
      width: 21%;
      height: 89.6%;
      overflow: auto;
    #leftcolumn li {
      list-style-type:none;
        padding-bottom: 0px;
      margin-bottom: 0px;
    #leftcolumn a {
        padding-bottom: 0px;
      margin-bottom: 0px;
    #header {
      color: #007700;
      background-color: #dddddd;
      border-bottom: 2px solid #000000;
      height: 10%;
      clear: both;
      padding-left: 40px;
    .content { padding-top:60px;
      margin:;0;
        float:right;
        height:83.4%;
      background: #87CEFA;
      width:78%;  
      overflow: auto;
    #weather {
      margin:20px;
      float: right;
    #footer {
      font-size: xx-small;
      background-color: #e8ffff;
      border: solid;
      text-align: center;
      padding-top: 20px;
      padding-bottom: 20px;
      padding-left: 40px;
      height: 5%;
    #leftcolumn a {
      text-decoration: none;
      margin: 15px;
      display: block;
    #leftcolumn li {
      padding-top:0;
        padding-bottom:0;
    #center {
        padding-left: 50px;
      padding-bottom: 30px;
      text-align: center;
    div#leftcolumn>ul>li a:link {
      color: #ffffff;
      font-weight: bold;
        text-decoration: none;
      padding-bottom: 0px;
      margin-bottom: 5px;
    div#leftcolumn>ul>li a:visited {
      color: #ffffff;
        text-decoration: none;
    div#leftcolumn>ul>li a:hover { text-decoration: none;
      background-color: #006600;
      color: #ffffff;
    a:link {
      color: #000066;
      font-weight: bold;
        text-decoration: none;
      padding-bottom: 0px;
      margin-bottom: 5px;
    a:visited {
      color: #000066;
        text-decoration: none;
    a:hover {
      text-decoration: none;
      background-color: #000066;
      color: #ffffff;
    .title {
      position: relative; top: -25pt;
      text-align: center;
      color: #0000aa;
      font-size:48px;
      font-weight:bold;
      font-family:"Times New Roman",Georgia,Serif;
        padding-bottom::10px;
    p.a8 {
      float:right;
      padding-right: 10px;
    #google {
      padding-bottom: 20px;
      position: relative; left: 75px;
      display: inline;               
    #mapq {
      padding-top: 50px;
      padding-bottom: 30px;
      float:right;
    #ring {
      text-align: center;
    .AllDogs {
      text-align: center;
    .pic {
      border: thick double #008800;
      padding: 20px;
    .mdogs {
      text-align: center;
    #menutest {
      display: block;
      background-color: #000066;
    .border {
      border: 5px solid #008800;
    ul a {
         padding-right:  4%;
    div.form  {
      padding: 0px;
      color: #FFFFFF;
      text-align: center;
      position: relative; left: -70px;
        font-size: small;
      border:0;
      white-space: nowrap;
    div.d1 {
      padding-left: 10px;
      padding-bottom: 0pt;
      padding-top: 30px;;
    h5 {
      color: #000066;
      position: relative; top: 15px;
    article, aside, figure, footer, header, hgroup, menu, nav, section { display:block; }

    A link would be 100 times better.
    But The main question is are you editing the layouts through the admin editor? If so it will change html5 tags because it is only XHTML compliant. Do not use the editor for markup, only content.
    Either code it and upload it through SFTP or use the develop tab if you see it (Partner only) in the top ribbon.
    In terms of the code you posted, there are no html 5 tags like section etc in there as far as I can see.

  • html:option tag in STRUTS

    How can I put a "selected" attribute in the <html:option> tag in STRUTS? In regular HTML, I can say:
    <select name="test">
    <option name="opt1" selected>Option 1</option>
    </selected>
    But I can't use the "selected" key word in the STRUTS tag:
    <html:select property="myList">
    <logic:equal name="myListElement" value="Hello World">
    <html:option value="opt1" selected>Option 1</html:option>
    </logic:equal>
    <logic:notEqual name="myListElement" value="Hello World">
    <html:option value="other opts">Other opts</html:option>
    </logic:notEqual>
    </html:select>
    How can I get the following to work?
    Thanks,
    Dylan

    DavidHymes wrote:
    He is trying to pre-select an option, not determine which option is selected. I have the same question, anyone know the answer?Ugh! Why're you replying to a thread from over 4 years ago?? Couldn't you start your own topic?
    Take a look at this topic from yesterday: http://forum.java.sun.com/thread.jspa?threadID=5223675

  • Html:select tag

    Hi all,
    In my jsp page i am using struts html:select tag,some contents are not fitting in the alloted size so i want to give horizontal scrolling for this select box,pls any body can tell me which property of select tag can be used,or any html tricks by which i can achive horizontal scrolling.examples will be help full.
    thanks,

    There aren't any tricks. This has nothing to do with Struts or JSP. It only has to to with HTML. The width is controlled by the size of the options or the size of the HTML area it has to display in. The latter if it's restricted otherwise by some table cell's width. I don't believe that I've ever seen a select box which has horizontol scrolling in any browser ever.

  • How to use form name in struts html:form tag

    Hi,
    I want to validate text box value, if it is ordinary html form I would have done like this <form name="myform" action="xxxx.jsp" onsubmit="return validate()">
    But am using struts html:form tags. In this case how can I use/specify name for a form.
    Can any one help me.
    Thanks

    The name of the form comes from the actionForm you have defined backing it.
    View source on the generated page to see what HTML it constructs.
    You are able to use the onsubmit event with the <html:form> tag just like the standard one, so if all you want to do is that:
    <html:form action="/saveUser" onsubmit="return validate()">
    ...You can also give it a styleId, which will generate an id in the HTML.
    See the tag documentation for details: http://struts.apache.org/1.2.x/userGuide/struts-html.html#form

  • How to use bean write in  struts html:text tag

    hi,
    i'm new to struts concepts.here i'm trying to write a value in html struts tag using <bean:write>
    my current tag is
    <html:text property="empname" value='<bean:write name="employee" property="empid">' />
    but it gives same tag in the text box.how i can solve this.

    what am I doing wrong?You will notice above that I mentioned
    YOU CAN'T USE CUSTOM TAGS AS ATTRIBUTES TO OTHER CUSTOM TAGS
    (was that loud enough for you to notice this time)?
    Try
    <html:text styleId="instruction" styleClass="text" size="50" name="instruction" property="value"/>
    //or
    <html:text styleId="instruction" styleClass="text" size="50" property="instruction" value="<%= instruction.getValue() %>"/>
    better alternative: populate your formbean with your action and just have:
    <html:text styleId="instruction" styleClass="text" size="50" property="instruction"/>
    If you set the "instruction" property of your formBean in the action, the value will be automagically reflected here.
    Cheers,
    evnafets

  • Jsf-1_0-pfd-spec.pdf - 9.5 Standard HTML RenderKit Tag Library

    I am somewhat confused by section 9.5 in jsf-1_0-pfd-spec.pdf.
    It ends with
    "Each action included in the Standard HTML RenderKit Tag Library is documented
    in a subsection below, with the following outline for each action:"
    I however seem to miss these subsections.
    Am I interpreting something wrong or is there stuff missing?
    Thanks,
    Peter

    The description of Std HTML Renderkit (8.5 ) as well as the Std HTML tag library will be updated by the next release. In the mean time, please refer to the TLD. Sorry for the confusion if any.
    -Jayashri

  • Query on struts html:optionsCollection tag !

    Hi,
    I've a query on struts <html:optionsCollection tag. I'm trying to render the values of an arraylist using the optionsCollection . The arraylist is stored as a part of form object. But the issue is that each row of arraylist contains a string data. The arraylist is returned by a remote process.Now, when I use the following struts code,
    <html:select property="userProxy" size="1" >
    <html:optionsCollection property="userProxy" value="" label=""/>
    </html:select>
    what shud be the value for value and label , as the arraylist contains only one string per row . The userProxy is the arraylist field defined in the form object.
    My question, will I be able to use the <html:optionsCollection tag in this scenerio ?
    I'll really appreciate if someone can get back to me on this.
    Thnx

    The html:optionsCollection tag is designed to work with a collection of beans, each with a "label" and "value" attribute.
    If you only have a list of strings, then you probably want to use the html:options tag.
    Note that your ActionForm should have two attributes
    // form bean"
    String userProxy;  //stores the currently selected userProxy
    List userProxyList;  //list of userProxies.
    // assume appropriate get/set methods
    // the jsp page:
    <html:select property="userProxy" size="1" >
      <html:options property="userProxyList"/>
    </html:select>Cheers,
    evnafets

  • JSP applet tag X Html applet tag (what is the difference?)

    what is the advantage in using the JSP applet tag instead of a simple Html applet tag ?
    second question:
    I have an applet in a Html frame, and a menu on the left side.... When the user select the applet option at first time, everything runs ok.. after the user select another option and then select the applet again, it fails in some features .. Why ?

    well, if by "the JSP applet tag", you mean the jsp:plugin tag.. that will just generate the same HTML tag you would write. The only advantage would be it should be less typing to use the taglib.
    second answer:
    without seeing any code, it'd be hard to figure out the problem. The obvious thing is you are setting some state of something that is preventing further action.

  • Passing values to action form in struts using html:link tag in struts

    hi
    As we can post values to action form bean in struts using a <html:text> tag in side a form.
    Can the same be achieved by using a html:link attribute.
    If not then how can this be achieved (i.e. posting a form on click of a link and populating action form bean property for the same).
    thanx in advance.

    Crosspost:
    http://forum.java.sun.com/thread.jspa?threadID=5244035&tstart=0

Maybe you are looking for

  • Complex conjugate in MIMO

    hi there,i m new to labview and working on mimo........now i have a problem in complex conjugate......as its output isnt working ur suggestions will be appreciated regards

  • Azure SQL server v12 upgrade remaining time.

    I'm upgrading SQL server to v12 to be able to utilize S3 performance level. Upgrade is running for 28 hours and still not completed. Actually, info in the portal said that it takes up to 24 hours. Is there any way to determine how much time is needed

  • Illustrator cs5.1 : transparentes eps mit Schlagschatten-Element

    Hallo, ich möchte ein Element mit Schlagschatten als eps/ai abspeichern, so dass es in Indesign mit transparentem Hintergrund erscheint. Trotz Einstellung "transparent" erhalte ich immer einen weiße Fläche ... Im Voraus vielen Dank

  • Serial ata versus fusion

    what's the difference between serial ata & fusion drives?

  • I cannot get icons only on my bookmarks toolbar. Text always shows.

    I transferred all my files and desktop from an older mac. I had downloaded an 'icons only'bookmarks toolbar as an add on, which I loved. This toolbar did not move as icons only, and is no longer available as a download. It looks like icons only is no