Problem in embedd ing calendar in jsp using struts framework

hi
i am working on one application which needs date as ainput and have to store in database. i have embedd one calendar coming in popup but it is working with mozila not in internet explorer. plz give me some suggestion to put this calendar on my jsp.
thanx
Gyan

gyan.poddar wrote:
but it is working with mozila not in internet explorerSounds like a Javascript problem rather than JSP/Java problem.
If this Javascript is generated by some JSP tag, then I would report it at the website/forum/mailinglist of the taglibrary in question. If this Javascript is just customized or some other 3rd party script, then either fix it or report it at their own website.

Similar Messages

  • How to assign bean value to a local variable in JSP using struts.

    Hi everybody!
    I've a problem that puzzled me on how to assign a bean value to a local variable like String in JSP using struts.
    we can have someting like this to display the value
    <bean:write name="detailService" property="status" />or
    <bean:define id="theStatus" name="detailService" property="status"/>
         This is country: <%=theStatus%>but an error occured when I tried like this:
    String currentStatus = "<bean:define id="theStatus" name="detailService" property="status"/>";
    or
    String currentStatus = "<bean:write name="detailService" property="status" />";Is there a way to do this?.....
    Any help pretty much appreciated

    Java != JSP.
    The <bean:define> and <bean:write> tags are custom tags meant to appear in the HTML section of a JSP file, as opposed to the scriptlet section. They actually get turned into java code as part of the translation process.
    The <bean:write> tag naturally just writes out what you tell it to.
    The <bean:define> tag defines a local variable, and gives it a value.
    this should do it.
    <bean:define id="theStatus" name="detailService" property="status" type="java.lang.String"/>
    <%
      String currentStatus = theStatus;
    %>With the advent of JSTL, you shouldn't really need to use scriptlet code anymore. Personally I am for 0% scriptlet code in any jsp I write.

  • [b]Data Grid in jsp using Struts [/b]

    I need to develop a data grid in JSP using struts .
    I am using Tomcat web server , Intellij IDEA IDE.
    If any one has code, please sent it.
    Thanks in Advance.

    hi,
    Use Struts-Layout datagrid framework to full fill your needs
    Related Topic link
    here is the clear documentation for your topic
    http://struts.application-servers.com/datagrid/index.html
    here is the download link
    (Struts-Layout datagrid framework)
    http://deltha.uh.cu/java/docs/struts-layout-1.0-docs/download.html
    related discuss
    http://forum.java.sun.com/thread.jspa?threadID=5202989&messageID=9811082

  • Displaying Hashmap values in JSP using struts taglib

    Please can any one provide me the solution for the below query,
    I have stored hasmap key as string and value as arraylist, can any one suggest how to display the hashmap values(arraylist) in table format in jsp using struts taglib.
                             HashMap hsMap=new HashMap();
                             ArrayList arrList = new ArrayList();
                             arrList.add("filesize");
                             arrList.add("filelength");
                              hsMap.put("filename",arrList);
               In jsp i want to display filename and filesize in table format.

    Read this documentation:
    http://struts.apache.org/struts-doc-1.2.x/userGuide/struts-logic.html#iterate

  • Dynamic Textboxes in JSP using struts

    Hi all
    I'm using JSP and Struts framework. I have two buttons Add row and delete row.(not submit buttons) on click i need to either generate or delete a row of textboxes. I able to do the same using javascript but the tag in that case is <input..>(normal HTML) and not <html:text> tag of struts.. Can i use the struts tag in jsp?? I tried but err... So any suggestions?
    A sample code would be of great help.. Im still a beginner in this ocean of Java!
    cya

    If the add/delete row buttons run in javascript, then you have to use the standard <input> tags.
    The struts <html:text> tag is a JSP tag that just generates an <input> at the end of the day anyway (filling in the attributes automatically though)
    As long as you name the controls consistent with what would have been produced by the struts tag, it should work perfectly well.

  • Displaying  list of  items , in  a jsp , using STRUTS--Correct approach

    I have a requiremnet tht on click of a button , a list of items should be displayed on a jsp page , so tht a user can select items from tht list.
    But the problem is tht , the list is very large(Conatins 1500 record).
    So wht approach should i adopt.
    One approach is tht , i have a link on my main.jsp , where user has a link (addItems) , and on clicking this link , another page(Items.jsp), opens up , where i dispaly the list of users , and user here can select multiple items , and then those items will be shown in Main.jsp.
    Is this appraoch correct,
    also plz tell me how can i incorporate previous and next functionality , so tht 20 records per page are shown
    Can anyone tell me how 2 go abt it.
    I m using STRUTS , and weblogic.

    Hiiii
    When u want2 add textboxes dynamically,
    then declare ur proprerty in action form as of type String[]
    <form-bean
    name="userForm"
    type="org.apache.struts.validator.DynaValidatorForm">
    <form-property name="name" type="java.lang.String[]"/>
    <form-bean>
    When u add textboxes dynamically , and if the textboxes name is same as that in form bean,
    then automatically this form bean property gets populated.
    If u require further assistance do tell me

  • Display date in jsp. using struts, JSTL

    want to display today's date in format October 18, 2006
    how to get today's date and how to display it in jsp?
    I am using struts framwork and JSTL tags in my JSP.
    Thanks.

    rizza_99 wrote:
    The page underlines {<fmt:formatDate value="${now}" type="both" dateStyle="long" />} says
    attributte value doesn't accept any expressionsWait, you said "the page underlines"?? So you're using an IDE? Are you sure that it a JSTL problem and not an IDE problem? Ignore the IDE and just execute the code. Does it work without any compilation errors or runtime exceptions? If so, then there's a problem in the IDE.

  • Approaches for Prepopulating dropdowns in Jsp using struts.

    Hi,
    I'm having a functionality working of pre-populating dropdowns using struts like:
    ArrayList list = getRoles(); //This method will return list of roles
    request.setAttribute("roles", list);
    By setting this collection in the request it will be availbel to <html:select and <html:options> tags for pre-populating. My question here is do we need to set the list (that is to be displayed in the JSP) in request scope deliberately, or there are other better approaches as well to do the same, like using expression language and accessing the method directly.
    Thanks,
    Prashant.

    Why dont you use ActionForm.
    declare a private variable
    //variable
    private List roles=null;
    //methods
    public List getRoles();
    public void setRoles(List roles);and in ActionClass
    ArrayList list = getRoles(); //This method will return list of roles
    form.setRoles(list);This collection object will be available in the jsp forwarded from that action in the scope specified in the struts-config.
    then use
    <html:select>
    <html:options collection="roles" labelProperty="name"     property="id" />
    </html:select>

  • Multi forms from different action in one jsp using struts?

    In user home page i am using 3 tabs in that 1 tab is for personal , 2 tab is for resume details etc.. but i crated for personal form1 and resumes for form2. when i click in the resume tab i have to show resumes list using same jsp. when click that tab it is showing Null pointer exception. How to solve please help.......

    Read the stacktrace. The 1st line points to the class/method/linenumber where this exception is caused. Lookup this line in your code and fix it accordingly. I.e. either make sure that the object reference in question is NOT null when it is been accessed/invoked, or add a nullcheck on this object reference (e.g. if (object != null) { object.doSomething();} ) so that you can skip the action when it is null.

  • Dynamic Tree Creation using JSP, Struts framework

    I urgently require tips/information/code snippet for creating a Dynamic Tree structure.
    Tree is the hierarchical folder structure that we see in windows operating system.
    Dynamic tree in the sense that all nodes shall be populated from database & a radio button shall be present at each node that can be selected & submitted to form.
    Tree should be done using JSP (& if required Javascript).
    I am using Struts framework .
    [email protected]

    u need to know quite a few java technologies to make archieve your dream.
    JDBC, dynamic array and JSP.
    after reading tutorial regarding to these 3 materials, you should be able to get your job done.

  • Oracle portal using JSF, JSP, Struts framework

    Hi ,
    Can anyone tell me how to build an oracle portal using JSF,Jsp and Struts Framework.
    Also please provide any manual or documentation for developing oracle portal.
    Thanks in Advance,
    Raghav

    At present, i think the best thing to do is to look at the example provided with the struts-faces integration taglib. I don't know any documentation about it.
    http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/

  • How to take input in arraylist in jsp using spring Frawork tags

    hi all i am using this code in my jsp using spring framework ..n in this code i am finding difficulties to take input in arraylist...can any one suggest me proper method for it
    <core:forEach items="${addUpcModel.resultList}" var="result">
    <td width="4%" class="normal"><core:out value="${result.vendorSize}"/></td>
    </core:forEach>
    </tr>
    <tr class="white">
         <td class="normal">Quantity</td>
    <core:forEach items="${addUpcModel.resultList}" var="result">
    <spring:bind path="addUpcModel.upcDO.quantityOrder">
              <td class="normal"><span class="normallink">
              <input name="<core:out value="${status.expression}"/>" type="text" size="10" maxlength="10"
              onKeyPress="return numbersonly(this, event)"
              value="<core:out value="${status.value}"/>"/>
              </span></td>
         </spring:bind>          
    </core:forEach>     
    i want to take quantity order in array format..as how many columns .it will be decide by database ...in arraylist

    af:outputText has an attribute escape which you can set try.
    You should try af:outputTextFormatted too.
    Timo

  • How to get parameter and add it to hyperlink using struts tag?

    Hi everyone:
    There is a.jsp pass a parameter to b.jsp.How to get the parameter in b.jsp using struts Tag?I also want to add the parameter to a hyperlink in b.jsp.For example in b.jsp <html:link forward=.....>cxxxx</html:link>.How to add the parameter(get from a.jsp) to cXXXX in b.jsp?

    Try this:
    Copy A Request Parameter - You can create a new bean containing the value of a parameter included in this request. If no parameter of the specified name was included, a request time exception will be thrown - therefore, it is common to nest the use of this tag inside a <logic:present parameter="xxx"> tag to ensure that the parameter was really included. If there is the possibility that more than one parameter of the same name was included, specify the "multiple" attribute (and the resulting value bean will be an array of String values, instead of a single String).
    <bean:parameter id="name" name="name"/>
    And then just use <html:link> with paramId. No java code at all.

  • Using Struts with Oracle Portal

    Hello,
    I am trying to run my applications developed using Struts Framework in Oracle Portal.Though Oracle Portal uses jpdk api's is there any way I can try to integrate Struts with Oracle Portal so that I can work test my application on any server and then develop portlet and run them on Oracle Portal as well?

    Check out these other discussions:
    Portletizing a struts JSP application
    Urgent: Portletizing an struts JSP application
    Similar but different detail:
    struts

  • Want to show errors to user using struts !!

    Hi, I am working on a application which is using struts framework., If any errors / exceptions occur, then they are forwarded to Fail.jsp.
    if (!errors.isEmpty()) {
                   saveErrors(request, errors);
                   // Forward control to the appropriate 'failure' URI (change name as desired)
                        forward = mapping.findForward("fail");I want to show to the user. the error/exception that occured. How can i send these errors to Fail.jsp. Please advice. thanks !!

    Then maybe you should go learn Struts before you come to a Java (not to be confused with Struts) forum and post unrelated questions. No go and get before I take a switch to ya! Ya bes simma!

Maybe you are looking for