Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!

William Brogden

Author and all-around good cowpoke
Rancher
+ Follow
since Mar 22, 2000
Cows and Likes
Cows
Total received
6
In last 30 days
0
Total given
0
Likes
Total received
221
Received in last 30 days
0
Total given
380
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by William Brogden

the rest controller of spring boot framework could not find the image file.

Why do you think it can't find the image file?
A reply status of 404 to me indicates it could not find the service. Are you sure it is finding the controller service?

Bill
1 year ago


Note that by using contains, line a could be longer than b by any arbitrary amount or could contain leading characters without returning false.

If you want equality, use uquals.
1 year ago
Actually, the file comparison problem can get very tricky and has consumed a lot of programmer time over the years.

Consider:

Suppose the first line is missing from file b - a typical comparison program will show differences for all records - is that what is wanted?
1 year ago
If this was my problem I would be printing both "a" and "b" - you would quickly discover why it doesn't work.
1 year ago
Random thought - are you sure you closed the unzipped file?
1 year ago
Why do you think you need a JSP inside a JSP?

What is this inner JSP supposed to do?

Bill
1 year ago
JSP
The java.io.SequenceInputStream class would let you combine a stream with the missing declaration with a stream from your XML file
to produce a stream readable by your parser combining the two.

Bill
.
1 year ago
If this was my problem I would ensure that the contents of all those exceptions was correctly logged instead of ignored.
1 year ago
The points I have not seen raised (sorry if I missed it) are:

1. How much does this list change and how long would a sorted list be valid?

2. What changes the list and how many items are changed at one time?

Bill
1 year ago
You need to proceed in a methodical step by step fashion - trying to go directly to the final product will result in chaos.

Without knowing more about your working environment and background, I can only suggest:

1. Get a Tomcat server working on your system.

2. Compile and run some of the servlet and JSP examples provided with Tomcat. Try modifying some of the simple examples to see what happens.

3. Try creating HTML pages with the elements you need - form, list, etc - as static HTML if you are not already comfortable with HTML.

4. Get an example of the database retrieval you need as a stand alone program - possibly with command line input.

5. With all that as a base you can think about organizing your final product.

6. This is just my opinion but - I would avoid trying to use something like Eclipse  to organize the project, IDEs tend to do stuff behind your back. See the forums here for problems people have had.

Bill
1 year ago
Looking at the JavaDocs, it appears that the next() method "finds and returns the next complete token" where nextLine() looks for everything up to a line separator.

I think that next() saw two tokens - a typed word and a cr character.  The cr character triggered the not an option branch.

Bill
1 year ago
I would say the first step is developing code to accept and validate the various input types separately.

Next test code to generate JSON for each type in a separate page.

Only try to combine when you have mastered the separate types.

Bill
1 year ago
JSP

It sounds like you want to grab all of the inputs in a single Form submit - but there is no obvious way to carry the order of entry.

Seems to me you need to make each entry of an input item a separate request/response cycle.

This would have the advantage of letting you check each entry separately for validity.

Also, each time you regenerate the entry form you can show all the items that have been accepted so far - good user feedback.

Bill

1 year ago
JSP
Now I am not up to speed with the latest Java SDK - when did Thread get a cancel() method?  I see there is one in Timer.

Java 1.2 had lots of Thread methods that were determined to be dangerous because they could leave the JVM in an undefined state. See the JavaDocs for discussion of why destroy, suspend, stop, and resume are deprecated.

Bill
1 year ago
I suspect this error is thrown very early in the SOAP process, way before your SOAP code has any chance to catch it.
2 years ago