Bryan Lemmer

Greenhorn
+ Follow
since Feb 01, 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 Bryan Lemmer

Hi guys,

I am a fledgeling web app developer using ASP and sql server 2000. been in the field for about a year and a half. i am looking to start developing my web apps using jsp.

I have a whole bunch of questions:
I am unsure of which java package to use. i currently have j2se 5 with java beans IDE installed as well as j2se 6 and also j2ee. which of these packages are essential for my jsp development. i am currently reading a book that says that servlets and JSP fall into the J2ee section.

do i need all of these installed or only the j2ee?

I have also downloaded and installed apache on my local machine which i access through port 8080. i plan to install apache on our server later this week. when i access this server on a local lan, do i have to still access it using https://BladeServer:8080/uKanbanNew/default.asp or is there another way to do it without using the port, bearing in mind that the server is currently running our other apps using IIS.

I have also read that servlets can be used to control the data in/out process from a web page. how is this done? does the jsp send info to the servlet who then decides what to do with it and then send that correct info back to the client jsp or does the user interface directelly with the servlet. what would be the best configuration for this?

i need to ask all these questions before i get stuck in because i dont want to start out with bad practices.

i think this is all for now!

any help will be greatly apprecited.

Cheers
Bryan
15 years ago
JSP
thanks Guys,

placing the code in a method worked fine. my new question now is why does it have to be placed in a method? why doesn't it work the way i have written it?

if you could add to my understanding it would be greatly appreciated.

Bryan
15 years ago
Hi Guys,

what is wrong in the following code??

public class ShirtArrayTest
{

Shirt shirt1 = new Shirt(1,"nice shirt1",'R',15.00,60);
Shirt shirt2 = new Shirt(2,"nice shirt2",'R',14.00,50);
Shirt shirt3 = new Shirt(3,"nice shirt3",'R',13.00,40);

Shirt shirtArray[] = new Shirt[3];
shirtArray[0] = shirt1;
//shirtArray[1] = shirt2;
//shirtArray[2] = shirt3;
}

i get a ']' expected and a <identifier. expected. evertthing compiles fine until i put in the line shirtArray[0] = shirt1; i have tried type casting the entry shirtArray[0] = (Shirt)shirt1; but i geteven more errors.

please help i have been staring at this code for 30min and i cant seem to find the problem.

thanks
Bryan
15 years ago
Thanks Jesper,

I am an IDIOT!! when executing it from the comand prompt it prints the line. Another question while we are on the subject... why doesnt it print a line to the command prompt if i have it open and then double click on the jar file?

Bryan
15 years ago
here is the code for the class and the mainifest entry:

public class mainTest
{
public static void main(String args[])
{
System.out.println("this is the correct way to run a java app");
}
}

manifest.txt

Main-Class: mainTest
15 years ago
Hi all,

I am having a problem executing my main java class from a executable jar.

I use the standard "hello world" app to test the program. i complile the program and run it through the command prompt and it all worked fine.

I then use the following statement "jar cvfm test.jar manifest.txt *.class"
which creates the jar file but when i double click on the file nothing happens???

am i doing something wrong or is there a setting somewhere that i need to set.

HELP!!

Cheers
Bryan
15 years ago
Hi all,

It would be greatly appreciated if you could help me with this as it is going to be my first java project attempt.

I have developed a replenishment system for our company for one of our warehouses. I developed it using SQL 2000 active x controls in a DTS, moving all the data into the correct tables, and then displaying the info in an couple asp web pages.

I would like to code this whole process in java but i can seem to get my head around the Object oriented thinking behind this process.

Here are the details of the system:

the warehouse is divided into areas namelly 400 - cases, 500 - excess stock, 600 - KLT and 700 and 800 - ISO. what the users do is scan the parts that are needed for the the 600, 700 and 800 area. the scanner is then docked and a text file is dumped to the local machine with all the part numbers that have been scanned. if a part is needed say 5 times it is scanned 5 times and will appear 5 times in the txt file. this file is then FTPed to or server where the replenishment kicks in.

The logic:
The replenishment only takes place from the 400 and 500 areas to the rest of the areas(600,700,800).

each Part has a bin qty so if part A is scanned 2 times and it has a bin qty of 100 then 200 units of that part are required to satisfy the request.

the parts are broken up into 2 categories ISO and KLT. first the 500 area is checked of each ISO part. the system checks if it can replenish the whole qty out of the 500 if it can then that part is marked as done else whatever is in the 500 area of that part is picked and the part will be revisited in the next process. the same logic applies to the KLT parts in the 500 area. there can also be multiple locations for any part. once this process is complete it moves the 400 area.

the ISO parts are searched using FIFO the first iso part is selected and the caseNo is returned then all of the KLTs are searched to see if any of them are in that case. Then the rest of the ISOs are checked to see if they are in the case. once this is done, the next iso in the record set it checked. this process is done until the whole iso list has been traversed.

lastly the remaining KLTs are searched in the 400 area using the same process as in the 500 area. all parts can have many locations.

We receive a SAP dump every 10min detailing the current stock on hand. this table contains the partnumber, description, qty and area(400) the other table that is used in the system is the part master table this contains info of binQTY PLocation as so forth.

the only objects that i can see are the parts and the cases! and then its just a logic thing.

Thanks
Bryan

Please let me know if you need any additional info.
15 years ago
thanks guys!!

the jar stuff sounds great. will give it a go when i get some time. thanks for the amazing response time!!

Cheers
Bryan
15 years ago
Hi All,

I am new to java and am wondering if there is another way to run your program besides using the command prompt. i normally create a batch file and enter "java MyProgram" from the directory that the main class is in.

is there another way to do this or is there an ide that will create an exe or something along those lines??

Thanks
Bryan
15 years ago
The CD that i bought is CDJ-110A this is the CD that the lady said i should buy. she said that i shouldnt need anything else to pass the course. after checking this website i freeked out because the material covered on the cd is pretty trivial and the things that you all mention is in the exam, doesnt seem to be there. I am hoping that the rest of the cd will cover, in detail, what i need to know.

i am definatelly going to check out all the test papers and Cameron ill definatelly check out your rescources.

thanks for the help guys, you will probably hear from me quite soon.

cheers
Bryan

P.S. gona be quite pissed if the CD i purchased doesnt cover the material needed, as i forked out R3500.00 here in South Africa for it!
15 years ago
Hi Guys,

I have just purchased the learning CD from sun microsystems, which i have almost finished, and was wondering if this is all that is needed to pass the exam well. i have read most of the posts on this website and it seems as if you all have done this course self study, using your own material.

can anyone give me any advice regarding this and if this is not all i need can you give me some great books or sites that will enable me do well.

Cheers
Bryan
15 years ago