Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!

Maha Hassan

Ranch Hand
+ Follow
since Aug 02, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Maha Hassan

To make my question more clear.
Under WEB-INF I will have a folder containing the jsp's (Project)
a web.xml with servlets mapping
a folder underclasses with the servlets and jsps(Project).

Then I will go to the parent of WEB-INF and type the command
jar cvf Project.war WEB-INF
13 years ago
I checked the link but I do not get the

The static HTML files and JSPs are stored in the top level directory.

Does this mean directly under WEB-INF I will have all jsp Files

And also

jar cvf mywar.war WEB-INF {related top-level files or directories}

What are the related top-level files or directories. And does this example assumes that there is a folder WEB-INF/classes/mywar and when I typt this I am standing at the parent of WEB_INF ?

Thanks
13 years ago
Dear All,

I have an application with some servlets and some JSPs. My Jsps are located under C:\tomcat50-jwsdp\webapps\ROOT\FullExample and my Servelts are located under C:\tomcat50-jwsdp\webapps\ROOT\WEB-INF\classes\FullExample and the web.xml is located under C:\tomcat50-jwsdp\conf

How to generate a war file for FullExample.

Thanks a lot
13 years ago
Dear All,

I want to use Runtime.getRuntime().exec("java file"). And i have two questions.

The first, how to choose the working directory since file is on a different folder.

The second, How to check the output of the process as it is working. I tried

but It does not print anything till the file is closed but I want it to read the output as it is being printed..

Thanks

Maha
[ September 19, 2007: Message edited by: Maha Hassan ]
13 years ago
Dear All,

I want to use Runtime.getRuntime().exec("java file"). And i have two questions.

The first, how to choose the working directory since file is on a different folder.

The second, How to check the output if the process. I tried

but It keeps printing questions marks ???

Thanks

Maha
13 years ago
I tried

java -cp ".;..;%CLASSPATH%" Package.fileName


And it is working perfectly )
[ September 13, 2007: Message edited by: Maha Hassan ]
13 years ago
Dear All,

I am trying to run a file from a package but it does not run. I get the error of NoClassDefFound.
I compile the file with

But when I run it with

I get the error ..

What am I missing ??

Thanks

Maha
13 years ago
Dear All,

I want to log to Tomcat from a different PC. How can I do that? For example, my computer name is "homePC" and the url on it is "http://localhost:8080/project" how can i open this URL from a different computer.

Thanks a lot

Maha
13 years ago
Deal all,

I want to creat a program that controls a TV tuner and schedules when to download movies from chanels according to a given schedule. The problem is I can not find an opensource TV tuner and I do not know how to control it.
Any help!!.

Thanks a lot
Maha
13 years ago
Hi all,

I found that I can use to get the byte array for the file, i can then add it to a session and use it from the servlet to write the file to the server

Thanks
Dear All,
I was wondering if someone can help me with this.
When i am uploading a file, I provide the place of the file on the clients machine , how come it is saved on the server. I mean for example if we are using Jakarta Common upload. it provide you with the possibilty to "write" the file, But where does it get writtien? to the server ?!?! so the path I proved for the file item is on the server?

I am sorry, but this is very confusing and I do not understand what is happening.

Thanks a lot
Hi Srivatsa,

Thanks a lot for your reply, It was very helpful.

I was wondering if I want the content of the file as byte[] what shall I do, I know I will use the fileItem.getInputStream() but I do not know how to use it any help!!

Thanks a lot
Dear all,

I am using Jakarta Commons for uplaoding file. the files are uploaded correctly, the problem is if i have in tha same form for uploading a file other form elemenrs like a text field, whenever i use the requesti.getParameter() it returns null althoug this text field is inside hte same form as the file input?? so how to include other inpt fields with the file??

Thanks
I am now using JTidy
I want to extract the text within the tags the thing is it does not understand things like copyright sign,"-"," " and other special characters and when i change the encoding things do not get better

Anyideas??
14 years ago
this is HTMLParser
[ September 13, 2006: Message edited by: Maha Hassan ]
14 years ago