Maggie Ling

Greenhorn
+ Follow
since Sep 06, 2006
Merit badge: grant badges
For More
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 Maggie Ling

Hi everyone,

I would like to know what the difference is between Java Servlets and JSP? Since JSP gets compiled into a Servlet, why don't we just write a servlet to begin with? Why do you prefer JSP over Servlets? Thank you.
17 years ago
Hi Guys, I have one small question with the following code:

1. class Banana {
2. int x = 1;
3. public static void main(String [] args) {
4. int x = 2;
5. Banana b = new Banana();
6. b.go();
7. }
8. { x += x; } // What is this?
9. void go() {
10. ++x;
11. System.out.println(x);
12. }
13. }


What is the result?
but what is the advantage for choosing JSP? Can I also incorporate Struts?
17 years ago
JSP
Sorry for my bad wording earlier. Say your client is a publishing company and they want to go online to publish their articles and news for the first time. Their requirement is that they need to publish these articles in different presentation layouts on their website for viewing. What Java-related technology would you suggest? And what is the advantage with choosing this technology? Thank you.
17 years ago
JSP
Hi,

Does any one have experience implement a SSO (Single Sign-On system) for Web applications in Java? Can you please explain to me the concept and roughly how/what technology I should use? Thank you!
17 years ago
I need to design a content management system for a company to post their news in different presentation layouts. Is JSP a good technology to use in this situation? What is the benefit of using JSP in this situation? Thank you!
17 years ago
JSP
Thank you Thank you!! You don't know how much I appreciate your help.
I need help with the following code:

1. public class Test242 {
2. public static void main (String [] args) {
3. try {
4. foo();
5. System.out.println("rock ");
6. }
7. catch(Exception e) {
8. System.out.println("paper ");
9. }
10. finally {
11. System.out.println("scissors ");
12. }
13. System.out.println("wins ");
14. }
15. static void foo() { }
16. }

The answer says the output would be: rock scissors wins. However, I though we are never supposed to write a catch block for exceptions that would never be thrown in te try block. This will generate a compiler error. I don't see the try block throwing any exceptions since neither foo() nor the print statement throw any exceptions. Why doesn't the code generate a compile-time error? Can someone explain this to me? Thank you!
[ September 06, 2006: Message edited by: Maggie Ling ]