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

Similar Messages

  • 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

  • I have a problem with my iphone 5s. recording a vid using back lens and no sound but on the rear lens there is a clear voice.. anyone with any answers???

    I have a problem with my iphone 5s. recording a vid using back lens and no sound but on the rear lens there is a clear voice.. anyone with any answers???

    Hi, Nurlynn.  
    Thank you for visiting Apple Support Communities.  
    I would need clarification on this issue to provide a better answer.  However, here are a couple articles that I would go through when experiencing issues with the Mic and Camera.  
    If your voice is too faint or sounds unclear using iPhone, or iPod touch
    http://support.apple.com/kb/ts5183
    Get help with the camera on your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT6350
    Cheers, 
    Jason H.  

  • Problem in html:link tag in struts

    hi every body i have a problem i have to pass two dynamic variable to next page using html:link tag how can i send it
    for example
    <a href = "editEmp.jsp?id=<%= empSno %>&&delete=no"> Edit </a>
    should be coverted into <html:link >and i want to pass 2 parameters to next page how can i do can anybody help

    i have used forward only but how to passs variable dynamically in forward for eaxmpleeee
    i am retreving records from database
    emdID name desig
    1 suresh PM edit
    2 ram PL edit
    when user clecks on link of edit of suresh then i should pass controll to edit page with his empID an parameter............
    i have done this prevoiusly by href tag like
    while (rst.next()) { %>
                        <tr>
                             <% empSno = rst.getInt ("ID");%>
                             <td align = "left"><%= empSno %></td>
                             <td align = "left"><%= rst.getString ("empno") %></td>
                             <td align = "left"><%= rst.getString ("empname") %></td>
                             <td align = "left"><%= rst.getString ("desig") %></td>
                             <td><a href = "strutsEx/ch05/editEmp.jsp?id=<%= empSno %>&&delete=no"> Edit </a>&nbsp&nbsp&nbsp&nbsp<a href = "editEmp.jsp?id=<%= empSno %>&&delete=yes"> Delete </a>
                             </td>
                        </tr>
    now i want to use html:link action in place of HREF can u help me plzzzzzzzzzz

  • How to add a value(text) from javascript to html:option tag .....

    How to populate the <html:option> tag dynamically
    I have a tree view, in tree view tag ( <layout:maeuItem> tag i have written "onclick " event )
    <layout:menuItem key="${agrovoc.AGURI}" link="#"
                                       onClick="return copyVal(this)">
    <script language="javascript" type="text/javascript">
                   function copyVal(obj){
                   str= obj.innerHTML; 
                   l = str.length-4;
                   xyz= str.substring(12,l);
                   document.getElementById('agrovoc').value =document.getElementById('agrovoc').value + xyz+'\n';
                   </script>Here "xyz" contains the Term ( the term clicked in the tree view) now i want add these terms ( clicked in tree view) into <html: option> tag.... how to do this.. plz give me some ideas
    <html:select  property="agrovocbuffer" size="10" >
                        <html:option value="" styleId="agrovoc1"></html:option>
                        </html:select>

    Hi,
    i have tried with this, it's works fine... but when i click on the next page ( i mean 2 or 3 page etc ) the content of <html:option> are erasing (deleting).. i wanted those terms wht i have selected in the 1st page to remain in <html:option> when i click on 2 nd page also...
    Tree view code
    <layout:menuItem key="${agrovoc.AGURI}" link="#"
                                       onClick=" copyVal(this)">JavaScript
    <script language="javascript" type="text/javascript">
                    var i=0;     
                    var myArray=new Array();
                   function copyVal(obj){
                        var flag=0;     
                   str= obj.innerHTML; 
                   l = str.length-4;
                   xyz= str.substring(12,l);
                   while (xyz != null) {
                   for( var l=0;l<myArray.length;l++){
                   if( myArray[l]==xyz){flag=1;alret("The Term is already selected.");}
                   if(flag!=1){
                   document.getElementById('agrovoc').options[i] =new Option(xyz,xyz);
                   myArray=xyz;
                   i++;
                   //alert(i);
                   xyz=null;
                   function del(){
                                  var oc=document.getElementById('agrovoc').options;
                                  //alert(oc.length);
                                  firstBox = document.getElementById('agrovoc');
                                  selectedOption = firstBox.options[firstBox.selectedIndex].value;
                                  selected = firstBox.options[firstBox.selectedIndex].index;
                                  //alert(selected);
                                  for( var l=0;l<myArray.length;l++){
                   if( myArray[l]==selectedOption){myArray[l]="";}
                                  firstBox.options[firstBox.selectedIndex] = null;
                                  var oc=document.getElementById('agrovoc').options;
                                  //alert(oc.length);
                                  for(var x=selected;x<oc.length;x++,selected++)
                                  document.getElementById('agrovoc').options[x] =new Option(firstBox.options[selected].value);
                                  i=oc.length;
                   </script>
    <html:select> code<div align="left" id="hopt">     
                   <td valign="top">
                   <logic:present name="hcount">
                        <html:select property="agrovocbuffer" size="15" styleId="agrovoc" multiple="true" style="width:200px;" >
                        <html:option value="" ></html:option>
                        </html:select><html:button property="button" onclick="del()"> DEL</html:button>
                   </logic:present>
                   </td>
                   </div>
    And all the above code is in <html:form> tag & i have written a custom pagination page
    Now i want  all terms which are in <html:option> remain  in options when i goto 2 nd page..
    how to do this? In the DOM inspector i'm getting the options, but when see the source HTML there are no <html:options>.. when click on the 2 page link the terms which are in <html:option> are not going to the "Action" class ..  :(
    how to do this .. any idea plz..?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem with HTML viewer

    Dear All ,
    I am facing a problem with HTML Viewer . My senario is as follows :
    1. I have created one HTML page . On that page there are 4 Images
    2. I imported that HTML page in SAP with the help of transaction SMW0
    3. I Called that HTML page in my ABAP program using the method "load_html_document" of class cl_gui_html_viewer
    4. This is happening perfectly ok on the machine on which all this developement was done.
    But the issue is when I execute my ABAP program on a different machine , those Images on that HTML page are not displaying.
    Can you please guide me how to remove that machine dependancy?
    Regards,
    Nikhil

    Hi Nikhil,
    Please check if the image is properly imported properly. Also check if there is any option which you might have forgotten while imported like dependeency.
    Regards
    Abhii...

  • Problems with Html in Report in different browsers

    Hi all!
    I4m doin4a Sql query Report with it will be used as a menu with linked option with htp.anchor and in the display html options I use html to create an style that shows the lines in white and not underlined, it works ok, but only in Iexplorer, in Netscape is shows me not underlined, but colored blue
    I4m going insane
    Any help will be appreciated, (better as faster as possible ;P )
    Thks all
    Chema

    Hi All,
    It seems like this problem is specific to the "Narrative View". If I try the following in the "Static View" it works like expected;
    <hr size="15" width="100%" shade align="right">
    In the "Narrative View" I did not get it to work yet.
    Cheers,
    Daan Bakboord
    http://obibb.wordpress.com

  • List of Map objects with html:options collection

    Hello All,
    I'm trying to get an arraylist of map objects to display dynamically as a dropdown select with html:options collection. I've spent hours on this and I haven't been able to get it working. Any ideas as to how this is done?
    Thanks,
    James

    An arraylist of Map objects?
    What is it that you want to show up in the dropdown box - all the name value pairs included in all the maps of the list?
    Assuming with a Map the "key" is what you want submitted and the "value" is what to display to the user
    Definitely sounds like a double loop structure is required. One to loop through all the maps. Another to generate all the options in each map.
    This one does it at the basic level of things
    <c:forEach var="map" items="${listOfMaps}">
      <c:forEach var="entry" items="${map}">
        <html:option value="${entry.key}">${entry.value}</html:option>
      </c:forEach>
    </c:forEach>The following might also work.
    <c:forEach var="map" items="${listOfMaps}">
      <html:options collection="map" property="key" labelProperty="value"/>
    </c:forEach>Cheers,
    evnafets

  • Problems with html content in box

    Hi! I have a problem with html content. For example photoswipe. If I import the folder with the index.html of photoswipe as an article all works fine. If I link it trough the folio overlay creator/webcontent) into a box in indesign dps, it stays empty. Seems like it doesnt find the images/paths??
    Klaus

    This sounds familiar. PhotoSwipe doesn't seem to like working in a web content overlay unless the JavaScript and other source files are uploaded within HTMLResources. This means editing your local HTML file so that paths to the JavaScript, images and CSS files begin by pointing to HTMLResources virtual folder (../../../HTMLResources/) before their subfolder and filenames. It's worth a try.

  • Overwriting the value of an html:hidden tag using javascript

    Hi!
    Can somebody help me with my problem?
    I need to overwrite the value of my html:hidden tag using javascript, but I dont know how?
    Any help?
    Thanks

    what are you talking about :x
    thats a webapplication question, wrong forum..
    But you are using STRUTS I would say...
    <html:hidden property="hiddenfield"/>This is the proper way of doing it.. but overrighting it
    I don't think you understand why we use that?
    It is only for forms.... we use that for hidden input ... It is common sence not to overrde that value.

  • I had a problem with my itunes so i had went on itunes website and reinstall itunes for windows and after it complete it said that the feature yoy are trying to use is on a network resource that is unavailable i need help please!!!!!!!!!

    had a problem with my itunes so i had went on itunes website and reinstall itunes for windows and after it complete it said that the feature yoy are trying to use is on a network resource that is unavailable i need help please!!!!!!!!!

    first, head into your Add/Remove programs and uninstall your QuickTime. if it goes, good. if it doesn't, we'll just attend to it when we attend to itunes.
    next, download and install the revo uninstaller http://http://www.revouninstaller.com/revo_uninstaller_free_download.html. use it to clear any existing itunes and/or QuickTime installation configuration information from the PC.
           next download itunes. it worked for me hope this is helpful!!
        oonce you get into the revo uninstallergo thru to delete itunes hit uninstall on the itunes icon then you will go thru to it will tell u the same nmessage about the feature and network hit cancell then go thru and hit scan (make sure bthe advance scan button is pushed) this will take awhile but go thru the list and hit everything associated with itunes. hit delete then install itunes again. it worked for me hope it works for you!

  • "there is a problem with adobe acrobat/reader. if it is running please exit and try again. (523.523)

    We are getting the following error "there is a problem with adobe acrobat/reader. if it is running please exit and try again. (523.523)" and a gray screen appears (Image not viewable) with multiple users. We are using Adobe Reader XI (11.0.05) and (11.0.06). The current workaround is to log off the website and log back in. Once the user logs back in, the pdf will appear. However it occurs anywhere from 2-8 times in a day. Anyone else having this issue or know of another workaround? Any suggestion with how to fix? Please help!!

    Hi Valerie,
    Please let me know the version of Adobe Acrobat/Reader & operating system installed on your computer?
    Also, try this:-
    Launch Adobe Reader/Acrobat.
    From the menu, choose Edit -> preferences -> General
    Uncheck the option for "Enable Protected Mode at startup"
    Restart the Adobe Reader and web browser.
    Regards,
    Aadesh

  • I have a problem with wifi in my iphone 4s, i already try everything and download latest version 7.1(11D167) but wifi switch is not working, its my humble request to Apple support team that pls resolve this problem as soon as possible because

    I have a problem with wifi in my iphone 4s, i already try everything and download latest version 7.1(11D167) but wifi switch is not working, its my humble request to Apple support team that pls resolve this problem as soon as possible because its a prestiage of Apple Company.
    Pls inform me how can i resolve the problem of wifi.

    You have to go to autherized iPhone agent.

  • Problems with iTunes/ipad2  I'm trying to buy FREE apps and I'm being told my card is declined but I also have more then enough credit on my account! Anyone having this problem?

    Problems with iTunes/ipad2  I'm trying to buy FREE apps and I'm being told my card is declined but I also have more then enough credit on my account! Anyone having this problem?

    Part of the validation for credit cards is that they need to be registered to exactly the same name and address that you have on your iTunes account, which prepaid cards tend not to be. Do you have a proper credit card that you could use ? Or are iTunes gift cards available in your country so that you could try using them as your payment method ?
    Until you have a valid payment method on your account and what you owe iTunes has been paid off then you won't be able to download any item from the store, including free apps (and updates to apps).

  • I have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

    i have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

    i have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

Maybe you are looking for

  • IE7 and Web control panel

    is anyone running win xp pro with IE7 and having problems getting to the control panel? all i should be doing is putting in http://192.168.1.1  right? it just thinks about it and then gives me a google search result.. yes i put this in the address ba

  • Best way to have only one  instance of an object in web application.

    Hello, I defined a class that provides services to my web application: subscribes user, check if user already subscrubed etc. The objects don't need to save any session information. So it is like a Stateless Session Bean (from what I've read about Se

  • Iphoto(9.1.1) crashes

    iphoto crashes 3 times repeatedly and the report comes like this: PIDi:             1156 Event:           hang Duration:        21.91s (sampling started after 2 seconds) Steps:           179 (100ms sampling interval) Pageins:         0 Pageouts:     

  • Program too large error

    Hello Friends I am using oracle forms 6. I write code on button's WHEN-BUTTON-PRESSED event and then compile that trigger at that time i am getting error "program too large" Ofcourse on that event coding is large but what i have to do to avoid that c

  • Permissions problems with PS CS5

    I just installed the PS CS5 trial. It opens fine, but when I attempt to switch workspaces I get this message: Could not apply the workspace because the file is locked or you do not have the necessary access privileges. Use the 'Get Info' command in t