Eddie Lee

Greenhorn
+ Follow
since Apr 27, 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 Eddie Lee

Also consider YahooUI
14 years ago
I'm not sure of any sample projects but a real world example you could consider toying around with these:

Sun Glassfish
Struts front controller
Spring Framework
Hibernate - DAO
Axis2 Web Service Engine
JSP

You could also look into EJBs and JMS for more J2ee exposure.

[ June 03, 2008: Message edited by: Eddie Lee ]
[ June 03, 2008: Message edited by: Eddie Lee ]
You could try to get Sun Certifications in Web. Otherwise, you would probably need to be assigned a project that uses those technologies or build one yourself at home during your spare time.

The first thing you would need is a Sun Certified J2ee Application Server like IBM Websphere or Sun Glassfish. From there you would just add the J2ee components you would like to use. I guess that sounds too simple. But I guess it's a start.
As Raj said. It's browser dependent and is set by the user in his/her own browser.
If you already know Java or other OOP language.

You should familiarize yourself with design patterns if you don't already know them.

You should familiarize yourself about J2ee architecture (Servlets, EJB, JMS, JSP, JSF, Portlets, etc) which are based on design paradigms.

You should also familiarize yourself with related J2ee technologies such as Struts, Hibernate, Spring..
I too would like to know how to create specifically Crystal Reports with Java.

Thanks
15 years ago
1: class MyClass
2: {
3: static int maxElements;
4:
5: MyClass(int maxElements)
6: {
7: this.maxElements = maxElements;
8: }
9:
10: }
11:
12: public class Q19
13: {
14: public static void main(String[] args)
15: {
16:
17: MyClass a = new MyClass(100);
18: MyClass b = new MyClass(100);
19:
20: if(a==b)
21: System.out.println("Objects have the same values");
22: else
23: System.out.println("Objects have different values");
24: }
25: }


What would be the result of this?
I keep getting confused when to use .equals and the == operator.
Can someone clear this up for me?
[ October 26, 2005: Message edited by: Eddie Lee ]
What is the output of the following code?

1: class MyClass
2: {
3: static int maxElements;
4:
5: MyClass(int maxElements)
6: {
7: this.maxElements = maxElements;
8: }
9:
10: }
11:
12: public class Q19
13: {
14: public static void main(String[] args)
15: {
16:
17: MyClass a = new MyClass(100);
18: MyClass b = new MyClass(100);
19:
20: if(a.equals(b))
21: System.out.println("Objects have the same values");
22: else
23: System.out.println("Objects have different values");
24: }
25: }

A) Compilation error at line 20. equals() method was not defined.
B) Compiles fine, runtime exception at line 20.
C) Prints "Objects have the same values".
D) Prints "Objects have different values".

Explanation : equals() method was available in base class Object. So it won't give any compilation error. Here MyClass is a user-defined class, so the user has to implement equals() method according to his/her requirments.
Why is the answer "D"? This makes absolutely no sense to me.
[ October 26, 2005: Message edited by: Eddie Lee ]
We are developing content managing portlet and I would like suggestions on how to view items in folder collections in portlet view.

Currently we have numerous documents stored in our database. We would like to have the users be able to organize these documents into folder groups (with the "folder" reference objects collected and stored in the same database)

When the portal is initially viewed I would like the collection of folders to be listed first, and as I click on each folder I would like to have them expand like a tree view.

In addition, I would like to have the ablility to have folders within folders. And when a folder is destroyed I would like it to destroy the actual documents in the folder and not just the reference object.
=============================================

I know this is pretty tall order to be able to explain in such a short space. I have an idea of where to go, I'm wonering if there are any references I could use as I develop this project. (Design patterns, framework, etc..)

Thanks for the help

[ May 23, 2005: Message edited by: Eddie Lee ]
[ May 23, 2005: Message edited by: Eddie Lee ]
I'll check it out.

Thanks for the help. =)
17 years ago
I need a doGet method?

Please explain.

Thank you for repsonding.
17 years ago
I have the following code:

=================================================================

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class SessionCheckServlet extends Httpservlet{

public SessionCheckServlet() {
super();
// TODO Auto-generated constructor stub
}

public void performTask(HttpServletRequest request,
HttpServletResponse response){
}

public static String checkServlet(HttpServletRequest request,
HttpServletResponse response) {
String reqUrl = request.getRequestURL().toString();
String queryString = request.getQueryString();
if (queryString != null) {
return "SUCCESS";
}else{
return "INVALID REQUEST";
}
}
}

=================================================================

I recieve the following error:

405 Method Not Allowed
HTTP method GET is not supported by this URL

Can anyone explain what's wrong? Thank you
[ May 12, 2005: Message edited by: Eddie Lee ]
17 years ago
J2EE is for Web services.

If you want to learn basic Java you should Download J2SE which is contained in the JDSK.
class homer {

public static void homer(int n)
{
System.out.print(n);

System.out.print("," + n);
}

public static void main(String[] args)
{
int num = Integer.parseInt(args[0]);
new homer(num);
}

}


I get error:

==============================

C:\Homer.java:15: cannot resolve symbol
symbol : constructor homer (int)
location: class homer
new homer(num);
^
1 error

Tool completed with exit code 1

===============================
17 years ago