Win a copy of Fixing your Scrum this week in the Agile forum!

Ichiro Takeshita

Greenhorn
+ Follow
since May 29, 2007
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 Ichiro Takeshita

(Sorry posted this in an inappropriate area a few moments ago)

When creating a web application project I started with File->New Project->Java Web->Java Web Application.

I've developed the application, tested it locally, built it into a war file and deployed it on a number of different servers without any pain.

Now I am being asked to provide not a war file, but a jar file.

Try as I might I can not find an option in Netbeans to build a jar file for my web application. Clean and Build will output nothing other than a war file for this project.

Any pointers?
11 years ago
When creating a web application project I started with File->New Project->Java Web->Java Web Application.

I've developed the application, tested it locally, built it into a war file and deployed it on a number of different servers without any pain.

Now I am being asked to provide not a war file, but a jar file.

Try as I might I can not find an option in Netbeans to build a jar file for my web application. Clean and Build will output nothing other than a war file for this project.

Any pointers?
Thanks for the fast responses.

I checked the url provided below but have another question.

http://download-uk.oracle.com/docs/cd/A97329_03/web.902/a95878/filters.htm#998358
Check the last example.



With this example the name of the called JSP file has to be know in advance in order to set up the filter in the web.xml file. Is this correct?

Unfortunately the JSP's to be called by my program are comming from a database so there is no way to set up web.xml in advance.

Therefore this solution may not eb right for me, but the article was informative so thank you.
11 years ago
Hi there,

I have a servlet that uses the following code to include the output from a JSP script:



Which works as expected.

But what I need is for my servlet to be able to access the actual html returned by "CallMe.jsp". Is this possible? If so how?

Thanks!
11 years ago
Jan,

Thanks for your prompt replies.

I would have been up and converting dates like a pro if I could just import java.text.SimpleDateFormat.

It turned out to be a problem with my BuildPath in Eclipse. By adding the system libraries to the build path I was able to import SimpleDateFormat without any troubles.

Thanks again for taking the time to help.
13 years ago
Just to add some extra information.

When I attempt to import java.text.DateFormat, or java.text.SimpleDateFormat (which would really help me out) Eclipse tells me that "java.text can not be resolved".

That seems odd since they are both documented in the 1.4.2 reference. I tried the import statement on a workmates machine which resulted in the same problem.
13 years ago
I've always hated date manipulation.

I have a list of objects all of which contain a string in the following format:

yyyy/MM/dd HH:mm

e.g. 2007/10/03 10:12

I'm looping through the list (no problem there) and plan on comparing each date to todays date to determine the oldest item in the list.

My question is - How do I convert this string to a date and compare it to the current date?

Just to keep things interesting I am limited to using 1.4.2 of the Java SDK.

I really should devote some time to learning all about date manipulation one day. In the meantime your help is much appreciated.
13 years ago
Ernest,

Thanks for such a fast reply.

As an experienced programmer, yet Java beginner I often find myself able to write some amazing code in no time at all, only to be stumped for eternity on a simple problem such as this.

Thanks for saving me from further frustration.

I.
14 years ago
Hi,

This is my first post here at Java Ranch. I'm wondering if someone can educate me.

I have a vector (fileDataList). Within a loop I am adding arrays of bytes (the return value from readFile(filename)) thus:




As you can see from the second line of the example above I am comfortable with casting object back to their original type when reading them from a vector.

But how do I get my byte arrays back out of the fileDataList? What cast can I use? The code below won't work because we can't convert from Object to byte[]



Is there a simple answer?

I.
14 years ago