How can i restrict the selecting file type to XML and TXT in file upload..

Hi,
I am using Struts Upload Bean. I am also using html:file tag in the JSP. Now when i click on the browse button, A file dialogue window appears. The problem id the i want to show only text and xml files in the dialog box. Now the files of type combo box in the dialogue box is showing *.*, *.html, *.pictures (jpg/gif) options. In place of this i need to show only txt and xml files. How can i restrict the file type to XML and TXT
Regards,
Sudheesh...

Hi,
the demo doesn't keep track of this. If you want then this feature isn't implemented. You will also see that the document is uploaded in a directory without changing the file name (e.g. adding the SR number). This however can be done and would be the way to do it
Frank

Similar Messages

  • How can i restrict the Expenditure Type values at a specific OU ?

    Dear Guys,
    I would like to ask about the Expenditure Types,
    I have implemented two projects for different Operating Units ,
    when navigating to any Projects responsibilty,and navigating the Expenditure Type field
    the values exist are all the values implemented across the OU not the values entered at this OU
    How can i restrict the Expenditure Type values at a specific OU
    Regards
    Amr Hussien

    Hello
    When you set up a project there is an option called Transaction Control.
    This option allow you to list the allowed or restricted elements of costs for the project.
    You may enter the transaction control on a project template and that will be copied to any new project.
    The cost elements may be expenditure types, expenditures categories, suppliers, employees, etc.
    In your case, I suggest to set up specific project templates for each operating units. On each template enter the list of allowed expenditures types for that OU.
    Doing so, the system restricts users from entering any expenditure item, supplier invoice, purchase cost etc, against an expenditure type, which is not allowed.
    Dina

  • How can we restrict the type of components that can be dragged and dropped from the sidekick CQ

    how can we restrict the type of components that can be dragged and dropped from the sidekick CQ

    Generally drop the components at parasys. The components allowed on the parsys is control via the design mode of the page.So restrict components at the design of the parsys. http://dev.day.com/docs/en/cq/current/wcm/working_with_cq_wcm/using_edit_designandpreviewm odes.html#Design%20Mode

  • How can I restrict the total no. of recs. per physical page

    Hi !
    I have created a report and I am saving that in a text file. The
    problem is that when I try to take the output on the printer
    then the total no of records overflows to the next pages and the
    next page heading comes much below to it's designated place.
    Max.no of records property in the repaeting frame is for the
    logical page.
    How can I restrict the max. number of records per physical page ?
    Any pointer will be welcome,
    Thanks in advance,
    Shobhit
    null

    Just for fun (and in case this wasn't done to death in the other thread), the rule posted here states:
    Most years have 365 days, but a leap year has 366 days. That adds up to 52 weeks (where each week is exactly 7 days) PLUS 1 or 2 additional days. The year 2012 has exactly 366 days.Now if the year starts on a Sunday in a non-leap year, you end up with 53 Sundays. Or if either of the first two days lands on a Sunday during a leap year, then you can also get 53 Sundays.>
    which allows a calculation like this:
    with test_data as
         ( select rownum + 1999 as test_year from dual
           connect by rownum <= 15 )
    select test_year
         , case
              when first_day = 'SUN'
              or ( first_day = 'SAT' and leap_year = 'Y' )
                 then 53
              else 52
           end as sundays
    from   ( select test_year
                  , to_char(to_date(d.test_year||'-01-01','YYYY-MM-DD'),'DY', 'NLS_DATE_LANGUAGE=ENGLISH') first_day
                  , case extract(day from last_day(to_date(d.test_year||'-02','YYYY-MM'))) when 29 then 'Y' else 'N' end as leap_year
             from   test_data d );
    TEST_YEAR    SUNDAYS
          2000         53
          2001         52
          2002         52
          2003         52
          2004         52
          2005         52
          2006         53
          2007         52
          2008         52
          2009         52
          2010         52
          2011         52
          2012         53
          2013         52
          2014         52
    15 rows selected.

  • How can I see the selected tags in the tag bar clearly

    How can I see the selected tags in the tag bar clearly (they used to be in black, now they do not change color; a highlight or Bold would help)

    The History menu lets you revisit the page where you can drag any page element from it.
    How would you sort through thousands (tens of thousands) of files found in a cache?

  • How can we pass the select-option value to modulepool program?

    hi,
      how can we pass the select-option value to modulepool program ?
      Because if i declared select-options in executable program and i used SSCRFIELDS to define push buttons in selection screen.
               My requirement if enter the values to select-options and press UPDATE pussbotton then i want call screen which contains tablecontrol.
               How i get select-option values to PAI of call screen for getting the data from database table to my internal table?

    Oh I thought that you have selection-screen and again you are working on dialog programming.
    if you want to use select-option directly in module pool then it is not possible.
    but you can do other way.
    create two varaiables
    data : v_kun_low like kna1-kunnr,
             v_kun_high like kna1-kunnr.
    use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
    and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
    use can enter only low value and high value.
    when you come to program point of view
    declare one range
    ranges r_kunnr for kna1-kunnr.
    do the coding like
    r_kunnr-low = v_kun_low.
    r_kunnr-high = v_kun_high.
    r_kunnr-options = 'BT'.
    r_kunnr-sign = 'I'.
    append r_kunnr.
    now you can use r_kunnr in select query ,it will work like select-option.
    other than this there is no option.
    Thanks
    Seshu

  • How can i restrict the qty/value at the time of invoice

    Hi,
    Can you plesae tell me at the time of MIRO how can i restrict the user not to enter the qty more than in MIGO & PO
    Thanx

    You cannot restrict the qty in MIRO. because it is used for partial invoice receipt.
    E.g  in some cases 100 nos of qty might have received in one GR. But the supplier may give 3 invoices for this. that is the reason u cant restict this
    reward if useful
    SK

  • How can I access the selected element of a DropDownByIndex-box?

    Hi,
    I want to create a WebDynpro with two web services. I created the first request with the first web service and the results are displayed in a DropDownByIndex-Box. Now the user should choose one of the results and I would like to use this for the request with my second web service. How can I access the selected Element of a DropDownByIndexBox in the Code?
    Thank you!!
    Julia

    Hi Julia,
    when user select one element in drop down it automatically set lead selection of node binded to dropdown.
    For example if you bind a dropdown to node myNode with value attribute myAttribute the lead selection of node myNode is set in the position of element choose from user.
    So to take this chooised element use this code:
    wdContext.currentMyNodeElement.getmyAttribute()
    bye
    Andrea

  • How can I restrict the usage of a iPhone 5c?  I would only like my daughter to be able to use her phone between 7am and 10pm central.  Any ideas how to do this or an app to use?

    How can I restrict the usage of a iPhone 5c?  I would only like my daughter to be able to use her phone between 7am and 10pm central.  Any ideas how to do this or an app to use?

    Hi! i believe there is no preinstalled app than can do that for you, however you can use a third party software, such as this: http://www.bitworks-engineering.co.uk/Apps/TimeLock_App/Welcome.html or this https://itunes.apple.com/us/app/parental-timelock-time-limit/id689577280?mt=8

  • How Can I Restrict the times my BT Homehub 2.0 is ...

    How Can I Restrict the times my BT Homehub 2.0 is used?
    i want to make sure that the kids dont go back online on their wireless laptops after i have gone to bed!!!
    how can i restrict the useage times (say 11am - 11pm) for the hub/individual users - WITHOUT taking the plug out when I go to bed!!!
    thanks in advance
    Paul

    belial wrote:
    @meaga-byte: the second of those two options can be achieved by using the "BT Powersave" function. This does mean that *everyone* will lose wifi accessibility, so no watching iPlayer be for _you_ drift off! PowerSave will turn all your wifi off and back on between particular times.
    This seems a more user friendly option for thoes who are not ofay with IP addresses etc.
    Unless Paul wants to use wifi while in bed
    If I've helped, just click the Star - Every little bit helps
    If you can't fix it with a hammer, you've got an electrical problem.

  • How can we make the selected Debug User Agent Netscape 7.0 stick?

    To get into http://gap.com I have to go to the Debug menu, choose User Agent and choose Netscape 7.0.
    It works Ok.
    Then I quit Safari. Get back into Safari. User Agent is back to Automatically Chosen, and gap.com to not working.
    How can we make the selected User Agent stick?
    Thanks,
    Roberto

    Unfortunately, I don't think there is an automated way of going about this. To begin with, the 'Debug' menu was never meant to be user accessible in the most common context.
    However, that said, you could lessen the pain by assigning a keyboard shortcut to the 'Netscape 7.0' menu-item in the 'Keyboard & Mouse' preference pane (under the 'Keyboard Shortcuts' tab). Hope that helps, somewhat.
    Yang

  • How can we get the selected line number from JTextArea ?

    how can we get the selected line number from JTextArea ? and want to insert line/string given line number into JTextArea??? is it possible ?

    Praitheesh wrote:
    how can we get the selected line number from JTextArea ?
    textArea.getLineOfOffset(textArea.getCaretPosition());
    and want to insert line/string given line number into JTextArea??? is it possible ?
    int lineToInsertAt = 5; // Whatever you want.
    int offs = textArea.getLineStartOffset(lineToInsertAt);
    textArea.insert("Text to insert", offs);

  • How can we restrict the objects..?

    Hi it was a question asked in an interview.
    How can we restrict the object..?
    is it with RSSM and PFCG settings..?
    Correct me if I am wrong..!
    Cheers,
    Vasu

    hi Vasu,
    if the question is restriction in reporting by authorization, then you are right. take a look some bw authorization docs
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/adeac294-0501-0010-5a97-9ac5d562b1be
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1b439590-0201-0010-ea8e-cba686f21f06
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/39f29890-0201-0010-1197-f0ed3a0d279f
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a6329790-0201-0010-b4a1-fdd384045fdb
    hope this helps.

  • How can we restrict the other user to add their user id's to the user group created in SQ03?

    Hello All,
    How can we restrict the other user to add their user id's to the user group created in SQ03?
    When we enter the user group name and click on "Assign users and Infosets" button in the attached pic "User Group" .
    I was able to enter my user id in other user groups. How to Grey out the other rows in the attached pic "User Group 1".

    How strange I answered (or at least helped) this very same question earlier today. Here the link to my previous answer then:
    http://scn.sap.com/thread/3536135

  • How can we restrict the users/planners for a planning book?

    Hi experts,
    How can we restrict the users/planners for a planning book?
    Thanks,
    Naga.

    Hi Naga,
    we describe this in our SAP Demand and Supply Network Planning rapid-deployment solution.
    Access this area directly via
    http://service.sap.com
    /rds-dpa
    In the configuration guide Demand Planning Settings, Macros and Chart
    Engine (DP3) read Appendix: Setting up Roles and
    Authorizations.
    BR Frank

Maybe you are looking for

  • Standard Nokia Files On Memory Card

    Hi I was just wondering whether there was any way of me getting the standard files that nokia put on your memory card? The reason is, is that i lost my memory card and have jsut bought a new one, which obviously doesnt come with the nokia files i nee

  • EQ on Built-in Audio?

    Is there a way to apply an EQ setting to all audio output? (i.e. everything that comes out of my PB speakers or phone jack, not just iTunes) Perhaps some sort of alt. audio device software (like soundflower.. but w/ different powers).

  • Oracle 8i is not installing

    Dear Sir, Oracle 8i is not installing in my system. The setup comes within a fraction of seconds without raising any error . I have PIV 1.5 GHZ with 128 MB RAM. I tried with Win NT,Win 2000, Win 2000 Advanced Server, Win XP but i faced the same probl

  • Chart Possibilites with JDeveloper

    Hi, I want to develop an application that draws charts with these properties. 1 - Dynamic, soft real time update of data on the charts. 2 - X axis, almost always with respect to time, lowest level of granularity usually in minutes. 3 - Possible to Zo

  • Auto Benefit enrollment Program

    Our employees are enrolled for new year benefits changes. My issue is there are few hundred employees they don't have any changes for 2008 enrollment. I can auto enroll them for 2008 by runnning program e.g. CAT. Can any one give me some inputs how t