My requirement is that we have to upload the file (like .txt , .pdf etc ..) . Normally in JBoss , we are creating one folder called "X" under the ROOTWAR , in which folder we are uploading file and while searching the file using the keyword with the help lucene search engine, we are finding the file , location and displaying the filename in jsp , Moreover for user friendly , we are providing href link to the file name like following ,
Test.txt
while click the link the file will display in new window . This is the case in JBoss . (Note : /docs/Test.txt this is from root war )
Our application it will be deployed in was 6.1 also, so where is the context root ?
where i have create the "X" folder to upload the file ? how to get the context root ?
plz help me ..... thanks in advance ....
Regards ,
Thangavel.L
Cranes Software International Limited,
Bangalore , India.
My requirement is that we have to upload the file (like .txt , .pdf etc ..) . Normally in JBoss , we are creating one folder called "X" under the ROOTWAR , in which folder we are uploading file and while searching the file using the keyword with the help lucene search engine, we are finding the file , location and displaying the filename in jsp , Moreover for user friendly , we are providing href link to the file name like following ,
a href= "/docs/Test.txt" target= "_blank" Test.txt
Here the context root is the first point to reach the application, you
need to prefix the file name after the context root to invoke the
file, the best location would be the docroot of the appserver, where
you can host the files
Thanx
Gautam Reddy
But in case you really want to do this...
<wasInstallRoot>/profiles/<profilename>/installedApps/<cellname>/<earfilename>/<warfilename>
Ken
+1
I also wonder to what extends it's even legal and portable.
I can imagine the implementer of a J2EE Container can choose how it deploys
the EAR and if it even needs to expand the EAR on the file system, in which
case it breaks this design.
Context Root is a J2EE Web Application Specification and it is same whether it is JBOSS or WebSphere or WebLogic.
Context Root is specified in application.xml Deployment Descriptor and it must be present in the META-INF directory in your EAR file.
So, all you are doing is just porting the App to WebSphere, you shouldn't have to do anything extra.
Karun