How to create a directory in JSP
I want to create a subdirectory in the server side by running a JavaServer Page. I don't know if it is possible. Can anybody tell me how to do that? thanks.
Thanks for your message. I was thinking the same way. However, I think the user should logon the remote server first, then create a directory over there. Otherwise, who will own that directory?
Here bring up another question. How can I logon a remote server in JSP?
Can anybody help me? Thanks.
Similar Messages
-
How to create a directory for JSPs under infrastructure "root"?
Hi,
I'm not very familiar with Oracle 10gAS, but someone else got it configured and running on a Solaris 9 system, so my terminology may not be correct...
We now have an "infrastructure" website (at port 7777) and an "ias" website (at port 8000).
Right now, under the "infrastructure" website, we have the following applications:
- sso
- oiddas
These all are "under" an OC4J instance called "OC4J_SECURITY".
I need to somehow configure things so that I have a directory directly under the "root" of the "infrastructure" website (e.g., at http://<host>:7777/myjspdirectory) where I can run some JSPs. For example, I want to be able to put a JSP named "foo.jsp" and be able to access it at http://<host>:7777/myjspdirectory/foo.jsp.
Is there a SIMPLE way to do this? If there is, can someone provide the specific steps (e.g., which directories, and files I need to create/modify)?
It's not a "full" web application, so I don't want to have to create a WAR, etc.
So far, I think that I need to add some "MountOc4j" lines to the mod_oc4j.conf file:
Oc4jMount /myjspdirectory OC4J_SECURITY
Oc4jMount /myjspdirectory/* OC4J_SECURITY
But, after that I'm kind of lost :(...
Is the only way to create a full WAR and then try to deploy it?
Sorry if my question is somewhat confused, but I guess I am :(...
Thanks in advance,
Jimqlin,
Ok, thanks.
I've been working on creating a WAR the last several hours. I don't have 10g AS here at home, so I've been testing the deployment of the WAR on Tomcat.
If the WAR deploys all right in something like Tomcat, will it deploy correctly in 10g AS also?
Are there any "gotchas" that I should be aware of ahead of deploying the WAR on 10g AS?
Also, I have a bunch of JSPs, but in the the web.xml that I'm using in my testing, it seems to work even though I don't list all of the JSPs. Here's what I have:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>foo1</servlet-name>
<jsp-file>foo1.jsp</jsp-file>
</servlet>
<display-name>WhatEverNameYouWantDisplayed</display-name>
<description>replace this with a short description</description>
<welcome-file-list>
<welcome-file>foo.html</welcome-file>
</welcome-file-list>
</web-app>
Is that (only including one pair of <servlet-name> and <jsp-file> tags all right, or do I have to include a pair of tags for EACH JSP?
Other than the above, hopefully things will go all right tomorrow... I'm going to have to undo the edits that I did manually on mod_oc4j.conf (the Mount...) and in server.xml before I try the WAR deploy, I think, right?
Jim -
Can any one give me hint how to create(dsplay) calendar in jsp 1.2
can any one give me hint how to create(dsplay) calendar in jsp 1.2
friends
i wants to display calendar (not the date) in tabular way please give me hint how to create itHi,
i would just add my question cos it looks similar , how can i add calendar of the whole year and let the user browse and select it
thanX in advance -
How to create a directory in application server
Hi all,
How to create a directory in application server through Progaram??
eg:\tmp - is already existing
I want to create \tmp\fi
Within \tmp\fi - i should able to store my file,,,
Kindly help me urgent...Hello San,
Either contact Basis guys at ur end for the same or u can do it dynamically via a piece of ABAP code, i hope it wll help u.
call function 'GUI_CREATE_DIRECTORY'
exporting
dirname = '//<ip_address>/qfilesvr400/<host>/usr/sap/TST/SYS/Folder1'
exceptions
failed = 1
others = 2.
Reward If Helpful.
Regards
Sasidhar Reddy Matli. -
How to create a directory or Folder using java program?
Hi all,
Can any one know, how to create a directory(new folder) in java.
can any give me some idea, on creating a directory using java program dynamically.
thanx in advancehi thanks for your answer,
sorry, actual i know this technique(its my fault i didnt mentioned it)
i am looking for some what different technique.
bye
ram -
How to create /home directory in a diferent disk ?
I installed Solaris 11-11-11 on a x4640 with 4 disks:
How to create /home directory in a diferent disk ?
Edited by: user1502 on Apr 25, 2012 1:51 PMI'm confused. It looks like you already have /home configured:
<pre># zpool status
pool: home
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
home ONLINE 0 0 0
c4t3d0 ONLINE 0 0 0
errors: No known data errors
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
home 86K 134G 32K /home
...</pre>
What is the problem? Looks like you already have /home configured. Are you sure automounter is not running?
Try this:
<pre>zfs set mountpoint=none home
rm -rf /home
zfs set mountpoint=/home home</pre> -
How to create OA Frame Work Jsp through JDeveloper9i
Hi,
any one can help me,
how to create OA Frame Work Jsp through JDeveloper9i.
and how to depoy that jsp page into oracle application server.
plse help me,
Regards
raviI am also having the same problem.
can anyone help me out......? -
How to create, deploy and test JSP program in Netweaver developer studio?
Hi Experts,
I am trying to integrate a JSP program with SAP function module (RFC) via XI using Java proxy. I am using Netweaver Developer studio for Java programming.
Can somebody send me the steps or user guide on how to create, deploy and test JSP program in Netweaver developer studio?
I will be greatful to you.
Please help!
Thanks
GopalHi Gopal,
Which version of NetWeaver are you using?
Here the links for --
SAP NetWeaver CE 7.1
[Developing JSP Pages|http://help.sap.com/saphelp_nwce10/helpdata/en/f7/f7bc3d8af79633e10000000a11405a/frameset.htm]
[Deploying Applications|http://help.sap.com/saphelp_nwce10/helpdata/en/3c/52413e7bcd561ee10000000a114084/frameset.htm]
NetWeaver 7.0 (2004s) and 2004
[Developing JSP Pages|http://help.sap.com/saphelp_nw70/helpdata/en/f7/f7bc3d8af79633e10000000a11405a/frameset.htm]
[Deploying EARs|http://help.sap.com/saphelp_nw70/helpdata/en/f0/122abf61d4974eaea6b5d9c314cff1/frameset.htm]
Testing is very straightforward - just access the web application by its alias,
e.g. http://<host>:<post>/<context-root>/myJSP.jsp
HTH!
\-- Vladimir -
How to create and deploy a JSP which calls a BPEL process in JDEVELOPER
Hi Gurus,
I don't know how to create a JSP in JDEVELOPER which call a BPEL process. I have gone through the tutorials. Since, I am new to JDEVELOPER I need some help.
1. How to create a JSP (I know creating application and project, also I know JSP coding)
2. How to deploy this JSP?
3. For the Synchronos BPEL project, the build.xml is created automatically, in this forum, I see people talking about ear war .deploy etc. How do we get them automatically created. Or do we need to create them manually. If it has to be manual some sample scripts would be of great help.
Any help in this regard would be really great.
Thanks in advance,
Sankar.I found the following tutorial which clearly explains how to deploy J2EE apps.
http://www.oracle.com/technology/obe/obe1013jdev/deployment/deployment.htm
I created a simple jsp file in a project, followed the steps in the tutorial and it got deployed onto: http://localhost:9700
For invoking BPEL process through JSP, I have reused the jsp files available in : 102.InvokingProcesses\jsp and changed the processes and input accordingly.
Please post me a query in this thread, if any of you want any specific details. -
How to Create Listbox in a JSP Application
Hi.
I'm new to JDeveloper. Can someone show me how to create a Listbox (that gets it's values from a database table) in a *.jsp form? This listbox is linked to a database table field. I'm not using BC4J nor EJB. I've created a JSP application with ADF using a Model1 (or MVC pattern) architecture -- which I based on the JDeveloper10i tutorial (http://otn.oracle.com/obe/obe9051jdev/ADFmodel1/ADFmodel1.htm). I've tried using render on the field in the view object entity, refresh the Data Control Palette and then drag the table view entity to a *.jsp page as input form. But I can't see the field in the form being displayed as a list box.
Please help.
thanks,
christinaHi Shay.
Thanks for the quick reply. Sorry for the misuderstanding but I have no clue on terminology used in JDeveloper. The "view object" entity I was referring to is the "<TableName>View" view object (e.g. EmpView) under the Model->Application Sources->Mypackage folder where the "<TableName>" entity object file also resides. I think I'm using the Business Component bec. I have this step in the tutorial that I based my application on.
I have trouble following the tutorial link you gave me (for the ADF Business Component Popup list) bec. when I select the table field in the "Data Control Palette" Panel, the only values I see in the "Drag and Drop As" poplist are "Value","Label","RenderValue" and "Input Render". I can't see the type "Single Select List". Do you why is that?
thanks,
christina -
Creating a directory in JSP?
Is it possible to create a directory on the webserver using JSP?
I basically have different users that login to the website, and at one point, they can upload certain files. I would like to put the files they upload in directories specific to each user.
For example, user1 will have a directory in the web app called uploads/user1/ , while user2 will have a dir called uploads/user2/ , etc...
Thanks.
PS: I'm using jakarta commons fileupload to upload the files. I tried changing the upload target to a non-existent directory in hopes that it will just create it, but it didn't. :(As long as you have write permission on the server, you should be able to create directories as well as files.
Just use the standard java.io package.
File dir = new File("uploads/user1");
dir.mkdirs();I don't know if you would want to store these uploads under your web app, or some other place on disk (presumably configured with a property) thats up to you.
The ServletContext.getRealPath() method is useful for storing it relative to your web application. -
How to create Site Directory in Sharepoint 2013
Hi All
I have a requirement to create Site Directory in SP-2013 , It should list all the sites available in Farm. Can you please Guide me how to do this. It will be a great help
Thanks in Adavnce
Manoj Gangwar
Manoj Gangwar | Sharepoint 2010 MCPD | Sharepoint 2010 MCTSHi Manoj,
You can check if the following article could work for your requirement with using the PowerShell script code to loop and list all sites' URLs,
Thanks
Daniel Yang
TechNet Community Support -
How to create a "Forum" in JSP?
Dear members,
I am a new member here.
Can any one help me providing info- How to create a online Forum using JSP where user can post msg, read archive & send e-mail.
Specifically I need to know: what r the technologies to be used, where should I get details help/references/examples etc.
THANKS IN ADVANCE.
MamunYou can download one for free called "Yazd"
http://yazd.yasna.com/download.jsp
--Treefrog
But, to answer your question:
1. A database (Oracle/MySQL/Access/UDB)
2. A webserver that supports sendmail (*nix) or SMTP (windows)
3. A webserver that support JSP/Servlets (Tomcat/iPlanet/WebSphere) -
How to create payment mode in jsp and its process
How to create payment mode and validate creditcard number
plz anyone tel the process?can you be more specific
-
I want to create an HTML form using jsp.
It has a couple of selection boxes. The options for the selection box needs to be read from a file.
As I understand it can create the form in HTML. And somhow uses jsp to read a file on the server get, the data and create selection box. I can have a class on the server side that does the actual read - forexample
SelData.class.
Would appreciate it if some one can outline how this is done.
- thanks* Pass the data used to populate the select options to the JSP page in the form of a bean.
* In the JSP page, iterate through the bean, using the data to "fill in" the attributes and body of the option tag.
This tutorial should help a great deal with these concepts: http://java.sun.com/webservices/docs/1.1/tutorial/doc/JSPIntro.html#wp69778
Maybe you are looking for
-
FCP 2 doesn't recognize Canon XL1s
Hello. I have Final Cut Express 2.0.3 installed on an iMac G5 10.4.5. FCP will not recognize my Canon XL1s. Not a faulty cable - I've tried two, one brand new. I've tried various Easy Set ups modes. Tried rebooting with all devices unlugged, etc. Nut
-
2 Gateways Sharing One Subnet - How to route traffic in and see each other?
Hello, First, thanks for your feedback in advance. I am rolling over from CheckPoint Security Gateways to Fortinet Gateways so I have set up one of each within my datacenter subnet as I wanted to keep the same subnet 192.168.10.0/24 and just roll ove
-
Flash Player wrong size in HTML
I've been exporting flvs into my html and can't seem to get them the proper size. I make sure to export them at 460 by 270 pix but everytime i publish and copy the html it appears as a small banner in Safari. The weird thing is it works fine in Googl
-
I'm trying to figure out how I can add catagories to my blog in BC. I would like to add catagories and then put the blog posts into certain catagories. For example, in this person's blog, you can click on a catagory to the right and view all of her b
-
Hyperion IR BQY job run successful few month but recently failed to export pdf and sending email
Anyone have encountered the problem that the BQY jobs which are running more than 3 years successfully. But recently no one update the report, but the job export keep failing to send result pdf to receivers intermittently. It shouldn't be BQY job its