How to create the folder Dynamically?
hello friends,
I want to create a folder dynamically in the tomcat. how to do that in the java class.
any ideas appreciated.
thanx in advance,
-bala
bala,
this is dheenathayalan.
Plz add ur suggestions.
Im want to upload contents (mp3, ringtones, �) on dynamically created folder which is placed inside Webcontent folder (mycontext/webcontent/contents/images..).
I did the all operations to need. But I want to create the folders Dynamically inside Web folder. For that im using File to create new Folders. Nw my question is How to get the path. When im using File it accepts like D:�/�/. I dnt want like this.
I wanna REAL Path, so im using like this..,
String realPath = getServlet().getServletContext().getRealPath("/upload/images");
File directory = new File(realPath + File.separatorChar + justFileName);
directory.mkdirs();
f1 = new FileOutputStream(contentpath);
f1.write(filedata);
f1.close();
but im getting ERROR while REALPATH. Im using STRUTS2. plz tell me how to do it.
Plz Do the needful.
Similar Messages
-
How to create a folder dynamically in KM repository
Hi All,
Could you please let me know how to create the folder dynamically in KM...
Thanks in Advance,>
Romano Bodini wrote:
> Hi,
>
> Search the forum. And the SDN. Then ask.
>
> [Creating folders in KM dynamically|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1761]
>
> Romano
Actually, "look at the API documentation" should be in that list. -
How to create the folder in presentation server through pop-up(
Hi Experts,
Can u give me the solution , how to create the folder in presentation server through pop-up(means dynamically, after executing the program , pop-up has to come to create the folderand path)
regards
ram.Use the methods -> DIRECTORY_BROWSE & DIRECTORY_CREATE of the class CL_GUI_FRONTEND_SERVICES
DATA: path TYPE string,
rc TYPE i,
dir_name TYPE string value 'HI'.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
CHANGING
SELECTED_FOLDER = path
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
concatenate path '\' dir_name into path.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_CREATE
EXPORTING
DIRECTORY = path
CHANGING
RC = rc
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Edited by: Kartik Tarla on Sep 23, 2009 5:54 PM -
How to create the folder in LabVIEW 7.1?
Dear All,
I need to create the folder in LabVIEW 7.1?.. Then if the folder exsists i need to ceate the new folder with the file name by increate by nemerical number by 1. As well as i need write the data's which i acquired in sepeate test file within that folder itseif. If the file name already exsists i need to create the same file name by increatemet by one in numerical no 1. Any one help to solve this issue?
Regards,
Srinivasan.PYou've asked this question before, and so far have shown nothing to indicate that you've made any attempt to solve the problem by using the tools available to you. Like the functions palette. Or the search tool, since this question has been asked many times before.
Have you looked in the File I/O palette? There's the New Directory function for creating directories. There the File/Directory Info function that can be used to check if the folder exists (call the function, and if you get error 7 you know the folder doesn't exist). You can also use List Directory on the parent directory.
Make an effort. -
How to create the dynamic report
Hi,
please help me, how to create the dynamic reportHi,
Try this..
DATA: p_temp(30) TYPE c DEFAULT 'ZTEST_REPORT'.
TYPES: BEGIN OF t_abapcode occurs 0,
row(72) TYPE c,
END OF t_abapcod.
T_ABAPCODE-ROW = 'REPORT ZTEST_REPORT.'.
APPEND T_ABAPCODE.
T_ABAPCODE-ROW = 'WRITE: / ''TEST REPORT''. '.
APPEND T_ABAPCODE.
INSERT REPORT p_temp FROM it_abapcode.
SUBMIT (p_temp) AND RETURN.
DELETE REPORT p_temp.
Thanks,
naren -
The updated iPhoto program is cumbersome. I am trying to create a Christmas card and can't figure out how to get the fold of the card on the left and not on the top of the card. I had no trouble with this for the past two years. Can someone help?
Click on the Layout button lower right and choose a Vertical lyout from the dropdown
-
How to create some columns dynamically in the report designer depending upon the input selection
Post Author: ekta
CA Forum: Crystal Reports
how to create some columns dynamically in the report designer depending upon the input selection
how export this dynamic report in (pdf , xls,doc and rtf format)
report format is as below:
Element Codes
1
16
14
11
19
10
2
3
Employee nos.
Employee Name
Normal
RDO
WC
Breveavement
LWOP
Sick
Carers leave
AL
O/T 1.5
O/T 2.0
Total Hours
000004
PHAN , Hanh Huynh
68.40
7.60
76.00
000010
I , Jungue
68.40
7.60
2.00
5.00
76.00
000022
GARFINKEL , Hersch
66.30
7.60
2.10
76.00
In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
Can anybody help me how do I design such report....
ThanksHi Developer life,
According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric values) in the details, add an filter to filter the data base on this column group, but if
the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
Similar threads with details steps for your reference:
https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings
If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
Any question, please feel free to let me know.
Best Regards
Vicky Liu -
Hi, i've searched without success how to create a folder (in unified folders) which contains all the messages of inboxes and outboxes (as it exists in Windows Live Mail).
For me, it would be very useful to search in only one folder when i try to find something in sent and received mails.
Thank'sThis is what Unified Folders does. I'm not sure what exactly you're trying to achieve.
http://kb.mozillazine.org/Global_Inbox#Unified_Folders
You might take a look at this article.
https://support.mozilla.org/en-US/kb/global-search -
HOW TO CREATE SEVERAL folder for the generation and READING FILE
HOW TO CREATE SEVERAL folder for the generation and READING FILE WITH THE COMMAND utl_File.
please give an example to create 3 folders or directories ...
I appreciate your attention ...
Reynel Martinez SalazarI hope this link help you.
[http://www.adp-gmbh.ch/ora/sql/create_directory.html]
create or replace directory exp_dir as '/tmp';
grant read, write on directory exp_dir to eygle;
SQL> create or replace directory UTL_FILE_DIR as '/opt/oracle/utl_file';
Directory created.
SQL> declare
2 fhandle utl_file.file_type;
3 begin
4 fhandle := utl_file.fopen('UTL_FILE_DIR', 'example.txt', 'w');
5 utl_file.put_line(fhandle , 'eygle test write one');
6 utl_file.put_line(fhandle , 'eygle test write two');
7 utl_file.fclose(fhandle);
8 end;
9 /
PL/SQL procedure successfully completed.
SQL> !
[oracle@jumper 9.2.0]$ more /opt/oracle/utl_file/example.txt
eygle test write one
eygle test write two
[oracle@jumper 9.2.0]$
SQL> declare
2 fhandle utl_file.file_type;
3 fp_buffer varchar2(4000);
4 begin
5 fhandle := utl_file.fopen ('UTL_FILE_DIR','example.txt', 'R');
6
7 utl_file.get_line (fhandle , fp_buffer );
8 dbms_output.put_line(fp_buffer );
9 utl_file.get_line (fhandle , fp_buffer );
10 dbms_output.put_line(fp_buffer );
11 utl_file.fclose(fhandle);
12 end;
13 /
eygle test write one
eygle test write two
PL/SQL procedure successfully completed.
SQL> select * from dba_directories;
OWNER DIRECTORY_NAME DIRECTORY_PATH
SYS UTL_FILE_DIR /opt/oracle/utl_file
SYS BDUMP_DIR /opt/oracle/admin/conner/bdump
SYS EXP_DIR /opt/oracle/utl_file
SQL> drop directory exp_dir;
Directory dropped
SQL> select * from dba_directories;
OWNER DIRECTORY_NAME DIRECTORY_PATH
SYS UTL_FILE_DIR /opt/oracle/utl_file
SYS BDUMP_DIR /opt/oracle/admin/conner/bdumpRegards salim.
Edited by: Salim Chelabi on Apr 4, 2009 4:33 PM -
1,How to use PS to judge the existence of a folder in the specified directory?(use javascript)
2, how to use PS in the specified directory to create to create the folder?(use javascript)
Thanks you!Thanks you!
-
I am trying to install software and am getting the following prompt.
"Installation Failed, the installer cant create the folder "var/folders/sq/2fzf3s_d2bzb21159nbwkb2r0000gn/T//install.3732dq0ogT.
How do I repair thisBack up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
Step 1
If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
Triple-click the following line on this page to select it. Copy the selected text to the Clipboard (command-C):
{ sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window (command-V). You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
Step 2 (optional)
Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
Boot into Recovery. When the OS X Utilities screen appears, select
Utilities ▹ Terminal
from the menu bar. A Terminal window will open.
In the Terminal window, type this:
res
Press the tab key. The partial command you typed will automatically be completed to this:
resetpassword
Press return. A Reset Password window will open. You’re not going to reset a password.
Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
Select your username from the menu labeled Select the user account if not already selected.
Under Reset Home Directory Permissions and ACLs, click the Reset button.
Select
▹ Restart
from the menu bar. -
How to create alv table dynamically by performing action on the button.
Hi all,
my requirement is to create alv table dynamically.
that is i will create two buttons
1) show alv table
2) close alv table
if user selects show alv table then the alv table should be displayed.
and if user selects clsoe alv table then the alv table should be closed.
to create alv table dynamically i have followed this procedure.
under view properties i have added salv_wd_table component. then under the action of showalvbutton i went to code wizard and i have selected instantiate used component component use salv_wd_table. the following code will be generated
with this code i am unable to display alv table dynamically correct me where i went wrong kindly send me the necessary steps how to create alv table dynamically
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_salv_wd_table( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
to close table i have used the following code. with this code i am able to achieve the functionality to delete the alv table
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_salv_wd_table( ).
if lo_cmp_usage->has_active_component( ) is initial.
else.
lo_cmp_usage->Delete_component( ).
endif.
Thanks & Regards,
Naveen
Edited by: naveen.webhelp on Feb 10, 2011 5:52 AMHi
ALV table will be shown in the viewcontainerUI element.
it is shown there empty if you dont fill the node bound to the data node of the interface controller of the comp usage
SALV_WD_TABLE.
and if you are not getting the table filled in the first place.
then check have you mapped the DATA node to some node in the comp controller
wht basically is your requirment is that you want to show ALV gird on click of one button and delete it on click of other button.
there are many ways to do so.
best way is control the visiblity of the viewcontainer UI element which containes the TABLE view of SALV_WD_table comp.
create an attribute of type WDUI_VISIBILITY name say VIS.
now go to the layout and bound hte visible property of the viewcontainer to this attribute VIS.
then in the showalv grid button's eventhandler write
wd_context->set_attribute(
name = 'VIS'
value = '02'
and in the wddoinit and delete alv grid button's event handler write
wd_context->set_attribute(
name = 'VIS'
value = '01'
thanks
sarbjeet singh -
How to rename the folder in KM
Hi Experts,
How to change the name of the folder in KM server.
For ex : I have a Folder called <b>Trail</b> Now i wnat to change the folder name in Training ....I have tried with right click and all......
Can anyone pls throw some light on this issue........
Thanks in Advance,
DharaniHello Dharani,
Changing the name of a folder at the root level of KM (the name of a repository) is very different than changing the name of a folder within a repository. To change the name of a repository, Ravinder's previous post explains the steps to take. However, a repository is typically something that a normal end user wouldn't be able to create, so I'm assuming this won't come up much.
To change the name of a folder within a repository, you can simply select 'Rename' from the context menu of the folder. Do you see this option when clicking on the context menu? If the user created the folder, they should have the permissions needed to see this option.
Please let me know if I've misunderstood your question. Hope this helps.
Best regards,
Fallon -
How to delete the folder from easy DMS
Hi..
How to delete the Folder once it is created in easy DMS? As i have all the access
Also how to restrict user from deleting the document from DMS? (Delete document option restriction)
I want all folder to be gets created with internal number range only.i have define the same for Doc type FOL.
But when i first log-in into easy dms system ask me do i need to create the folder i clicked on yes and while saving it shows an error that only internal number range is possible.But actually number EDIPUBLICROOTFOLDER is selected by default and unedited formatHi,
How to delete the Folder once it is created in easy DMS? As i have all the access
First delete all the DIR's inside the folder using delete button. Later you can delete the Folder.
Also how to restrict user from deleting the document from DMS? (Delete document option restriction)
You can control this using authorization objects in DMS.
Hope this helps.
Regards,
Deepak Kori -
How to create the SWF file which was included surrogate pairs.
I would like to make sure how to create the SWF file which are included surrogate pairs.
The error of outside the scope of unicode occurred when I compiled(mxmlc) the as file which was set surrogate pairs to 'Unicoderange'.
Ex, I set the ' '(UTF-16 is '20B9F') to 'Unicoderange'.
However, I cannot add the surrogate pairs.
The error of outside the scope of Unicode occurred when I compiled the AS file.
The reason of error was that the Unicode(UTF-16) of surrogate pairs is invalid.
Then, I read the following pages.
These pages are written that unicode-range supported surrogate pairs.
http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html
http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode -range
So please let me know how to create the SWF file which are included surrogate pairs.
Environment
- Flex3.5a
- TTC: meiryo(ver6.02), msgothic(ver2.50), mspgothic(ver2.50)
Thanks,
Takeshi Ishihara.I've been able to create project jar files in Eclipse by selecting Export from the File menu, then choose Java - Jar file - and provide the required information, name, destination folder etc. But when I do this, I do not export other jars on the build path this way nor do I expect to do this. I am only concerned with creating a jar file of my own work. A jar file does not "contain" other jar files. If the jar file contains the main method, and requires other jars for it's execution, then you may wish to include a reference to required jars on the class path entry of the Manifest file of the jar file you create. I'm not sure how to create a Manifest file in eclipse though..
Maybe you are looking for
-
How can I get the number of chars in a String, without countig the Spaces?
When I do String.length(), he returns the length with Spaces, but I want the number of chars and numbers. thx
-
Controlling Animation in Acrobat 3D
Need help controlling animation in Acrobat 3D. Looking to control the playback of the animation by steps, not have it playback all at once. Please help!
-
Can I connect a MKP min AKAi with my Ipad mini retina ?
Can I connect a MKP min AKAi with my Ipad mini retina ?
-
Table size is too big Performance issue.
Hi, Let us assume that we have table which has about 160 columns in it. About 120 of these columns are Varchar data type with about 100-3000 size each column. This table also has about 2 Millions Rows in it. I am not sure if these are considered as b
-
WebDynpro Application for Create Sales Order
Hi All, Can any one help me to get the right documentation on How to create a WebDynpro Application for Create Sales Order, Calling BAPI.