Rahul Siddharth

Ranch Hand
+ Follow
since Feb 17, 2007
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 Rahul Siddharth

I'm validating two drop downs.One is a State and the other one Country.Both are mandatory and are passed to Action Errors.The validation works fine but the problem is that when I select a value for State(country is not selected) and submit, the validation errors are displayed and both the drop downs are reset to their initial values(like please select).
I'm not sure how to let the JSP remember the other drop down value that was selected.Could some one please give an idea?.

Thanks.
13 years ago
Hello Ranchers!

I was working on the examples in "Developing Java Web services "2003, which were implemented on Weblogic 7.0.The examples in the book included ant scripts where certain components of the server(7.0) were invoked.Now that weblogic 7.0 is not available anymore i'm hit with many configuration issues when trying to run the examples on weblogic 10g.I'm having hard time configuring weblogic 7.0 examples to work with weblogic 10g.

Could some one let me know if they have weblogic 7.0 version?.It is not available from BEA or Oracle.
13 years ago
Hello Ranchers.I'm looking forward to prepare for scbcd 5.0(ejb 3.0).I was wondering if I have to read ejb 2.0 and 2.1 before I start preparing for 3.0.My doubt is,if I pass the exam for ejb 3.0,would I be gaining enough knowledge to work in a ejb 2.0 environment?.
Hi.I had hard time understanding the concept of a Dependency matrix.From what I understand if I have two jsp's(in a matrix),first jsp a "search.jsp" and the second one "display.jsp" ,the second jsp is DEPENDENT on the first.If the first jsp throws an error,the second jsp doesnt display.

Could someone tell me if my interpretation is correct?.My peers seems to disagree.
Hello everyone.

I'm new to UML but basically a developer.I have a jsp in which I had 2 functions, one to add and the other to modify an account.Do I need to write two use cases(1.add,2.modify) or just one use case that describes both the functions?.

Thanks in advance.
Hello Everyone.I want to display some text like "Processing"(along with the form contents) once the user hits the submit button on a page.I want to hide the "Processing" text before the user hits the submit and display it along with the form once submit button is hit.

Any idea would be greatly appreciated.

Thanks.
Bello............Thanks a ton man!!.It's working with Mozilla.
14 years ago
Hello Everyone.I had a similar problem.

My index page(index.jsp) was:
----------------------------------------------------------

-----------------------------------------------------------

I tried to post to formHandler.jsp which throws an exception.

formHandler.jsp
-----------------------------------------------------------

---------------------------------------------------------------
The ExceptionHandler is

exceptionHandler.jsp
---------------------------------------------------------------

---------------------------------------------------------------
when I run this application I could see the debugging statement "im here at the exception handler" printed on the log.But my JSP is not displayed with the welcome statement.I see the Internal Server Error.

Could someone please tell me if i'm missing something.

Thanks in Advance.
[ June 19, 2008: Message edited by: Rahul Siddharth ]
14 years ago
Hi All.

I have found my answer to the above question.

The include action is used when you have a piece of code that changes often.The include directive is used for static content.

Any other answers are welcome.
Hi Everyone.

I have a doubt regarding jsp include action and jsp include directive.To my knowledge I know that jsp directive is used to include the code at translation time and jsp action is used to include the response of the included code at translation.

Could someone tell me ,given a scenario when would you use one and when would you use the another?.
Hello Ranchers.

Could someone suggest me a good book for Spring Framework?.I'm new to Spring and was confused as to which book to choose.Please help.


Thanks.
Divya:

Integer i is in the Wrapper class Integer.If it were equals your assumption would have been correct.

Remember:

== always compares the bit pattern and whether the two references refer to the same object.
equals compares the content(If two Wrapper classes are same and the content is similar it will result in true).
eg: Integer I = new Integer("4");
Integer f = new Integer("4");
I.equals(f) is true (same contents ,same class)
I==f is false (I and f donot refer to the same Object)
I'm sorry the code is this.
------------------------------------------------------------
class Ant implements Runnable {
int i;
public void run () {
try {
Thread.sleep(1000);
i= 10;
} catch(InterruptedException e) {}
}
}

public class Testing {
public static void main (String args[]) {
try {
Ant a = new Ant();
Thread t = new Thread (a);
t.start();
//line 17
int j= a.i;
//line 19
} catch (Exception e) {}
}
}
-------------------------------------------------------------------
Hi Friends.I have a doubt with the following question.

code:
------------------------------------------------------------------
class Ant implements Runnable {
int i;
public void run () {
try {
Thread.sleep(1000);
i= 10;
} catch(InterruptedException e) {}
}
}

public class Testing {
public static void main (String args[]) {
try {
Ant a = new Ant();
Thread t = new Thread (a);
t.start();
//line 17
int j= a.i;
} catch (Exception e) {}
}
}
------------------------------------------------------------------------
Which statement at line 17 will ensure that j=10 at line 19?
A. a.wait();
B. t.wait();
C. t.join();
D. t.yield();
E. t.notify();
F. a.notify();
G. t.interrupt();
----------------------------------------------------------------------
The answer is C(Not sure if its correct).
When I run the code with C ,no output is produced.Which could be the correct answer and why?.Somebody help please!!
Thanks Priyam.Appreciate it.