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

Similar Messages

  • 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.

  • Using taglibs to generate html select tag

    Hello,
    I'm using taglibs to generate html select statements like this:
    <input:select ... options="<%= optionsMap %> </input:select>
    However I would like each option element to be assigned a
    "onclick" attribute. Is that possible?
    Thanks!

    >
    <input:select ... options="<%= optionsMap %> </input:select>
    Probably u meant ...
    <html:select ..>
    <html:option value="all">All</html:option>
    </html:select>
    You cannot add an onclick event on the "option" element. Its an incorrect tag.
    However you may add an onClick or rather onChange event of html:select
    Cheers
    -Rohit

  • The use of id attribute in html tags

    Hi
    I use http://java.sun.com/jsf/html as follows:
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <h:form id="myid">
    <h:panelGrid id="mypanelgrid" columns="1">
    </h:panelGrid>
    </ht:form>When I don't use the id attribute with the UI components, the components are not displayed.
    I would like to confirm that id attribute is MUST in jsf.
    Your kind response is appreciated.
    Thanks
    Murthy

    Actually I see an exception thrown on Windows XP
    10:24:45,717 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute
            at org.apache.catalina.session.StandardSession.setAttribute(StandardSess
    ion.java:1233)
            at org.apache.catalina.session.StandardSessionFacade.setAttribute(Standa
    rdSessionFacade.java:129)
            at com.sun.faces.context.SessionMap.put(ExternalContextImpl.java:556)
            at com.sun.faces.application.StateManagerImpl.saveSerializedView(StateMa
    nagerImpl.java:88)
            at net.sourceforge.myfaces.taglib.core.ViewTag.doEndTag(ViewTag.java:138
            at org.apache.jsp.pages.template.TemplateRightPane_jsp._jspx_meth_f
    _view_0(org.apache.jsp.pages.template.TemplateRightPane_jsp:246)
            at org.apache.jsp.pages.template.TemplateRightPane_jsp._jspService(
    org.apache.jsp.pages.template.TemplateRightPane_jsp:121)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:322)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    14)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
    atcher.java:672)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
    tionDispatcher.java:463)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
    ispatcher.java:398)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
    patcher.java:301)
            at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImp
    l.java:322)
            at net.sourceforge.myfaces.application.jsp.JspTilesViewHandlerImpl.rende
    rView(JspTilesViewHandlerImpl.java:178)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha
    se.java:87)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
            at com.xyz.framework.security.authorization.AuthorizationFilter.doFilter
    (Unknown Source)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
    lter.java:81)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
            at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
    ipalValve.java:39)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
    yAssociationValve.java:153)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
    e.java:59)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :856)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ssConnection(Http11Protocol.java:744)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
    int.java:527)
            at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
    kerThread.java:112)
            at java.lang.Thread.run(Unknown Source)
    10:24:45,748 INFO  [STDOUT] org.apache.jasper.JasperException: setAttribute: Non
    -serializable attribute
    10:24:45,748 INFO  [STDOUT]     at org.apache.jasper.servlet.JspServletWrapper.s
    ervice(JspServletWrapper.java:370)
    10:24:45,748 INFO  [STDOUT]     at org.apache.jasper.servlet.JspServlet.serviceJ
    spFile(JspServlet.java:314)
    10:24:45,748 INFO  [STDOUT]     at org.apache.jasper.servlet.JspServlet.service(
    JspServlet.java:264)
    10:24:45,748 INFO  [STDOUT]     at javax.servlet.http.HttpServlet.service(HttpSe
    rvlet.java:810)
    10:24:45,748 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
    in.internalDoFilter(ApplicationFilterChain.java:252)
    10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
    in.doFilter(ApplicationFilterChain.java:173)
    10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationDispatche
    r.invoke(ApplicationDispatcher.java:672)
    10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationDispatche
    r.processRequest(ApplicationDispatcher.java:463)
    10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationDispatche
    r.doForward(ApplicationDispatcher.java:398)
    10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationDispatche
    r.forward(ApplicationDispatcher.java:301)
    10:24:45,764 INFO  [STDOUT]     at com.sun.faces.context.ExternalContextImpl.dis
    patch(ExternalContextImpl.java:322)
    10:24:45,764 INFO  [STDOUT]     at net.sourceforge.myfaces.application.jsp.JspTi
    lesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:178)
    10:24:45,764 INFO  [STDOUT]     at com.sun.faces.lifecycle.RenderResponsePhase.e
    xecute(RenderResponsePhase.java:87)
    10:24:45,764 INFO  [STDOUT]     at com.sun.faces.lifecycle.LifecycleImpl.phase(L
    ifecycleImpl.java:200)
    10:24:45,764 INFO  [STDOUT]     at com.sun.faces.lifecycle.LifecycleImpl.render(
    LifecycleImpl.java:117)
    10:24:45,764 INFO  [STDOUT]     at javax.faces.webapp.FacesServlet.service(Faces
    Servlet.java:198)
    10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
    in.internalDoFilter(ApplicationFilterChain.java:252)
    10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
    in.doFilter(ApplicationFilterChain.java:173)
    10:24:45,764 INFO  [STDOUT]     at com.xyz.framework.security.authorization.Auth
    orizationFilter.doFilter(Unknown Source)
    10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
    in.internalDoFilter(ApplicationFilterChain.java:202)
    10:24:45,764 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
    in.doFilter(ApplicationFilterChain.java:173)
    10:24:45,764 INFO  [STDOUT]     at org.jboss.web.tomcat.filters.ReplyHeaderFilte
    r.doFilter(ReplyHeaderFilter.java:81)
    10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
    in.internalDoFilter(ApplicationFilterChain.java:202)
    10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
    in.doFilter(ApplicationFilterChain.java:173)
    10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.core.StandardWrapperValve
    .invoke(StandardWrapperValve.java:213)
    10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.core.StandardContextValve
    .invoke(StandardContextValve.java:178)
    10:24:45,779 INFO  [STDOUT]     at org.jboss.web.tomcat.security.CustomPrincipal
    Valve.invoke(CustomPrincipalValve.java:39)
    10:24:45,779 INFO  [STDOUT]     at org.jboss.web.tomcat.security.SecurityAssocia
    tionValve.invoke(SecurityAssociationValve.java:153)
    10:24:45,779 INFO  [STDOUT]     at org.jboss.web.tomcat.security.JaccContextValv
    e.invoke(JaccContextValve.java:59)
    10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.core.StandardHostValve.in
    voke(StandardHostValve.java:126)
    10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.valves.ErrorReportValve.i
    nvoke(ErrorReportValve.java:105)
    10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.core.StandardEngineValve.
    invoke(StandardEngineValve.java:107)
    10:24:45,779 INFO  [STDOUT]     at org.apache.catalina.connector.CoyoteAdapter.s
    ervice(CoyoteAdapter.java:148)
    10:24:45,779 INFO  [STDOUT]     at org.apache.coyote.http11.Http11Processor.proc
    ess(Http11Processor.java:856)
    10:24:45,779 INFO  [STDOUT]     at org.apache.coyote.http11.Http11Protocol$Http1
    1ConnectionHandler.processConnection(Http11Protocol.java:744)
    10:24:45,779 INFO  [STDOUT]     at org.apache.tomcat.util.net.PoolTcpEndpoint.pr
    ocessSocket(PoolTcpEndpoint.java:527)
    10:24:45,779 INFO  [STDOUT]     at org.apache.tomcat.util.net.MasterSlaveWorkerT
    hread.run(MasterSlaveWorkerThread.java:112)
    10:24:45,779 INFO  [STDOUT]     at java.lang.Thread.run(Unknown Source)
    10:24:45,779 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet
    threw exception
    java.lang.IllegalStateException
            at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFac
    ade.java:423)
            at com.xyz.framework.security.authorization.AuthorizationFilter.doFilter
    (Unknown Source)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
    lter.java:81)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:178)
            at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
    ipalValve.java:39)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
    yAssociationValve.java:153)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
    e.java:59)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :856)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ssConnection(Http11Protocol.java:744)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoI'd appreciate your kind help.
    Thanks
    Murthy

  • Html select tag issue.

    Hi All,
    I created a new project using EB3 to develop a photoshop extension. In that panel, I added the drop down box as follows,
    <body onLoad="onLoaded()">
         <select>
                <option value="">1</option>
                <option value="">2</option>
                <option value="">3</option>
                <option value="">4</option>
         </select>
    </body>
    I am seeing an issue, following are the steps to reproduce it,
    - Open the panel.
    - Click on the drop down. (Drop down opens)
    - Now loose the focus from the panel by clicking outside the panel.
    - Now click on the drop down. (Here comes the issue)
    Drop down doesn't open but it comes into the focus and when I clicked second time it will open.
    So every time when focus loosed the panel and I clicked on the drop down nothing happens on first time.
    And the strange thing is that I am seeing this issue on windows only.
    Anyone have any idea why it behave like this or is it a select tag bug in html panel?
    Thanks for any help..

    Yep, I second that. Combos take two clicks to be activated. Seems like yet another bug from a long, long list of issues with this CEP.

  • How to make  struts html:select tag readOnly....!!!!

    Hi All,
    In my below code I want to make <html:select> as readonly like I did for <html:text>
    I don't want to make it disabled as it is graying out that field.
    My requirement is that it should be visible and also it shouldn't be editable.
    I am using Struts...!!!
    <html:text property="paramName" size="20" maxlength="50" readonly="true"/>                                
    <html:select property="paramTypeId" disabled="true"> // I dont want to use this--- disabled="true"
         <html:options collection="queryReturnType" property="value" labelProperty="label"/>
    </html:select>Thanks in advance....!!

    Can some one tell me in the below code
    *1. what is test="${controlEnabled}"....wha is this controlEnabled variable*
    *2. do I need to create an attribute for paramTypeId_Label in my form bean ??*
    I just wanna to make my <html:select> readonly..pls see my first post in this thread....!!
    <c:choose>
         <c:when test="${controlEnabled}">
           <html:select property="paramTypeId" >
                <html:options collection="queryReturnType" property="value" labelProperty="label"/>
           </html:select>
         </c:when>
         <c:otherwise
           <html:text property="paramTypeId_Label" value="${queryReturnType[paramTypeId].label}" readonly="true"/>
           <html:hidden property="paramTypeId"/>
         </c:otherwise>
    </c:choose>--Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • 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

  • 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

  • HTML select tag on irpt page - update database from options

    Hi all,
    I have an irpt page with two selects.  It is the traditional move stuff from one select to the other, then set the order of the options in the configured select.  (Admin page to specify an ordered list of items)
    After the user gets the list how they want it, I would like to send the options to an MII transaction (iCommand?) to update the database table that backs this admin data.
    I can do a comma delimited string to hold the select tag's option values, but would like to know if there is a more elegant way!
    Ideas?
    Thanks,
    --Amy Smith
    --Haworth

    It sounds elegant already - a pretty simple javascript loop to build your csv and Param.1 to your iCommand applet query should work like a charm.
    If you need to run it to a TRX, then the StringListToXML action makes turning your csv into linkable properties a simple effort.

  • On iOS7.0.3 html select tag with attribute 'multiple' crashes Safari

    Try loading an HTML page on Safari that has:
    <div>Multi-Select Picklist- tap on this to crash the iOS app
    <select id="12121" title="Available" multiple="multiple" size="3" style="width: 120px;">
    <optgroup label="Available">
    <option value="1">AAAAAA</option>
    <option value="2">BBBBBB</option>
    <option value="3">CCCCCC</option>
    <option value="4">DDDDDD</option>
    </optgroup>
    </select>
    </div>
    Safari will crash once you tap on the picklist. If I remove the attribute 'multiple' or if you have set it as multiple="multiple" it will work, but then it will offcourse not allow multiple selection. At least need to know a workaround.

    You might be better of asking this in the Developer forum. They might know more information about that, or at least in the Safari forum. I'll ask the moderators to move this for you.

  • JSF equivalent of HTML select Tag

    Can any one please tell me how to achieve this in JSF.
    <select>
      <option selected="selected" value="volvo">Volvo</option>
      <option value="saab">Saab</option>
      <option value="mercedes">Mercedes</option>
      <option value="audi">Audi</option>
    </select>I have tried this but its not working:
    I want the "Volvo" option to be the default selected one.
    <tr:selectOneChoice label="Car" required="true"
                              value="#{myBean.car}">
            <f:selectItem value="A" itemValue="A" itemLabel="Volvo"/>
            <f:selectItem value="B" itemValue="B" itemLabel="Saab"/>
            <f:selectItem value="C" itemValue="C" itemLabel="Mercedes"/>
            <f:selectItem value="D" itemValue="D" itemLabel="Audi"/>
      </tr:selectOneChoice>With the HTML code the VOLVO value comes as default selected, but with the JSF Code the default value is blank in the drop down. I want the first value to be selected in the drop down.
    Some one please help.

    You need to set the 'value' attribute of the selectOneChoice to the desired value as it is in f:selectItem's 'itemValue' attribute.
    That said, the 'value' attribute of the f:selectItem should point to a javax.faces.model.SelectItem property, not a plain vanilla String. Also, you should either use that only, OR the itemValue and the itemLabel.

  • Can I use Struts Validator Plugin's html:javascript tag?

    Hi:
    Is it possible to incorporate the client-side validation using Struts Validator
    Plugin's tag <html:javascript>?
    i.e.
    1) Insert the following tag to A.jsp and define a taglib:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <html:javascript formName="aForm" staticJavascript="true"/>
    2) Define validation.xml as follows:
    <form-validation>
    <formset>
    <form name="aForm">
    <field property="aField"
    depends="required">
    <msg name="required" key="FieldMissingError"/>
    </field>
    </form>
    </formset>
    </form-validation>
    3) Insert the onSubmit event in aForm:
    <netui:form action="SubmitAForm" style="border-width:1px;" onSubmit="validateAForm(this)">

    Instead of writing something like this -
    <p class="logos">Logo1<a href="...></a></p>
    <p class="logos">Logo2<a href="...></a></p>
    <p class="logos">Logo3<a href="...></a></p>
    <p class="logos">Logo4<a href="...></a></p>
    <p class="logos">Logo5<a href="...></a></p>
    <p class="logos">Logo6<a href="...></a></p>
    Why not have something like this -
    <div id="logodiv">
    <p>Logo1<a href="...></a></p>
    <p>Logo2<a href="...></a></p>
    <p>Logo3<a href="...></a></p>
    <p>Logo4<a href="...></a></p>
    <p>Logo5<a href="...></a></p>
    <p>Logo6<a href="...></a></p>
    </div>
    with CSS like this -
    #logodiv p { ... }

  • Struts html:select tag

    Hi All,
    I am using struts. I want a dropdown single select menu option on my Jsp page.
    Basically, the options would be a dropdown either US or CA (meaning USA or CANADA). Html selectoptions is easy. How to do it in struts ?
    Once page is displayed, US will be selected by default. Then user may select either of the value from dropdown.
    Then, I have a state option dropdown, which should get populated, depending upon the first selection. Meaning, if user selects US in first dropdown, then all USA states show up in this second single select options.
    If user selects CA in first dropdown, then CANADA states show up in this second dropdown. I have the states list with me for both US and Canada.
    Can anyone send me a snippet of code for first dropdown. and then how in struts can I populate the second single select states dropdown (depending on whether user selected US or CA in first dropdown)
    Any help highly appreciated.
    thanks,
    pp

    Thanks Shanu.
    Nope. I am populating states in both cases in the ActionForm constructor. in other words, they are not coming from database. Folowing is short snippet how I am populating. So, I am able to display those states on the Jsp page dropdown.
    Onlything, i am stuck at is "that determination switch" as I quoted in previous post like
    If (US) then showUsStates else show CanadaStates on the Jsp thinggy ......... I am stuck here.
    And it has to happen on client side, cause if I sybmit the form, its gonna complain about other mandatory textfields like city , zip , phone NOT found as a result of Submit to ActionForm validation -- Even when user has yet to input rest of values and submit the entire form. Thats the reason why I say "On selection of country dropdown, population of appropriate states has to happen on client side"
    Any idea ?
      public CreateServiceRequestForm() {
             countrybean = new CountryBean[2];
             for (int i = 0; i < 2; i++) {
                 countrybean[i] = new CountryBean();
                 countrybean.setCountry(i);
    countrybean[0].setCountryName("US");
    countrybean[1].setCountryName("CA");
    statebean = new StateBean[54];
    for (int i = 0; i < 54; i++) {
    statebean[i] = new StateBean();
    statebean[i].setStateId(i);
    statebean[0].setName("AK");
    statebean[1].setName("AL");
    statebean[2].setName("AR");
    statebean[3].setName("AZ");
    statebean[4].setName("CA");                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I uploaded a mp4, but I can't use the URL in a HTML video-tag

    I uploaded a mp4 video via the portal to my trial version Azure account.  I then published it.  I then encoded it.  This produced an output file.  I then published that output file.  Then I copied the URL, and tried to play it in
    my browser by pasting it in the address bar.  I got an error that I can't explain - can you?:
    <?xml version="1.0" encoding="UTF-8"?>
    -<Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:1190a24a-860d-4c26-9948-6334393e4e9a Time:2013-10-07T19:41:29.5702692Z</Message><AuthenticationErrorDetail>Signature fields not well formed.</AuthenticationErrorDetail></Error>

    I found out what is happening.  When my website asks the user for his URL, which can be a YouTube URL, or a URL of a video / audio on a server, it checks that the URL is valid, and there really is a video or audio at that address.   This does
    not work with Azure. 
    Public Function UrlExists(ByVal url As String, ByRef Explanation As String) As Boolean
    Dim URLReq As HttpWebRequest
    Dim URLRes As HttpWebResponse
    Explanation = ""
    Try
    URLReq = CType(WebRequest.Create(url), HttpWebRequest)
    URLRes = CType(URLReq.GetResponse(), HttpWebResponse)
    If (URLRes.StatusCode = HttpStatusCode.OK) Then
    Return True
    End If
    Catch ex As Exception
    Explanation = ex.Message
    Return False
    End Try
    Return (False)
    End Function
    The code gives the (403) forbidden error in that case. I can suppress this test whenever the input is an Azure URL, but it does raise a question - is there any way to test that the azure URL that the user is using is real?
    On another topic, my website also plays audio mp3 files, but Azure Media Services doesn't seem to be able to cope with those.
    Thanks,
    Gideon

  • Html:select border issue.

    Hi,
    I am trying to put a border on a dropdownlist. For the dropdown, I am using html:select tag. I tried giving the border using the style attribute in html:select.(<html:select style="border:1px solid red"). It does not seem to be working. Could someone help me out and guide me in the proper direction. Thanks.

    Are we talking java here? Or is this javascript? If javascript, you know that this is a java forum, and that the two languages are vastly different. If you're asking about java, then sorry, but I'm at a loss to help you as I've never heard of these before.

Maybe you are looking for

  • Logon with non-English language LSMW donot display character

    hi,When I Logon with non-english language , When I use LSMW , But the screen donot display character, and in smlt , i setting supplementation language is english , who can help me ,thanks.

  • How do I remove Canon " My Image Garden" from the desktop when turning on my computer ?

    How do I remove Canon " My Image Garden" from the desktop when turning on my computer ?  I have the icon but the program starts up and I have to delete it manually  from the desktop to clear my screen for other work...

  • Cables for Video Transfer

    Hi I want to transfer Video from an old Sony Camcorder Hi8 that uses a DV 4 Pin Firewire to a Macbook Pro Retina with Thunderport 2. I understand i would have to use a Firewire 400 to Firewire 800 cable connected to a Firewire to Thunderport Adaptor

  • Cash Manasgement logistics

    Hi  SAP expert/ Venkat I am working on cash mangement and liquidity forecast. Integration of MM covers PO , PR and scheduling agreement. I would like to know whether it is possible to separately show Goods received but not yet invoiced as separate it

  • How can read & write .ncd files?

    I need to create / modify a .ncd file (used in Max 3.0.2) for can channel configuration. How can I do that in C or VB?