Sharad Agarwal

Ranch Hand
+ Follow
since Sep 11, 2002
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 Sharad Agarwal

All/Tim,

This is very useful. I have a similar usecase. These are the salient features:

1. WebLogic is configured to start in debug mode, a port has also been specified.
2. Eclipse is configured to Remotely Debug the WL application on the specified port

However, the code is compiled using an ant script (on the same machine that has eclipse). Eclipse has all the source, and uses a different compiler from the one that the ant script uses.

You made a note about going down a road with a different map. Would it be fair to say that, even though the source is exactly the same, having different compilers for what is running in WebLogic and what Eclipse is using might cause a mismatch when debugging?

Thanks!
Sharad
This is very useful. Eclipse is the hammer of choice. Is there some way to get these tools to search JSPs as well?
Hi,

Is there any tool that can help me generate a complete reference tree for any element in Java? What I mean by that is as follows:
Lets say there is a variable myVariable in class MyClass. I want to get a list of all the functions that reference myVariable (both in Java code and JSP code). And to do it recursively until I get, for example, a Servlet method that initiates the chain of events leading up to myVariable being referenced.

Thanks,
Sharad
[ November 20, 2006: Message edited by: Sharad Agarwal ]
Hi,

We have three tables A, B and C which represent a tree like structure. Each row in A can have zero or more children, each represented by rows in B. Similarly each row in B can have zero or more children, each represented by rows in C.

To illustrate, here is an example. There are three nodes (rows) in A - A1, A2 and A3. A1 has two child nodes in B - B1 and B2. A2 has no children. A3 had children B3 and B4. B1 has two children C1 and C2. B2 has children C3, C4 and C5. B3 has no children. B4 has 3 children - C6, C7 and C8.

Now we need a stored procedure that, given the primary key for a row in A, returns the sub-tree for that node. So, for example, if you are given A1, you need to return the subtree under that node.

I was looking for suggestions for the data structure returned. A simple data structure could be one that flattens out the tree:

A1 B1 C1
A1 B1 C2
A1 B2 C3
A1 B2 C4
A1 B2 C5

It leads to some redundancy. But if there are not too many siblings and the data is small, it is a simple solution. Or I could return three structures with only the needed attributes.

Other ideas?

(Note - the situation and example presented here are simplifications that focus on the issue I am struggling with.)
18 years ago

Originally posted by Jeanne Boyarsky:

That's the same link as I posted. Good to know it was useful.



I apologize, I meant to post this.
18 years ago
Hi,

This must be a very basic question. Lets say we have a stored procedure:


Now we want the procedure to be able to take a dummy value which tells the sp that it needs to handle the request differently from when an integer 'someId' is passed in. How is this kind of situation normally handled?

Is it usually handled by passing in a 'null'?
18 years ago
Thank you, Jeanne. This is useful. Most of my google searches led to articles by Steven Feuerstein, who seems to be amongst the few who are pretty big on having consistency in style.

Here is an interesting link I found: PL/SQL Standards
18 years ago
Are there any 'standard' coding conventions for authoring PLSQL code? While Java has a slew of conventions, most of them are very similar. Most Java IDE's will offer features to help follow a standard of choice, within the limits of what can be done automatically (code formatting, parts of the naming convention, etc).

I did search the forum, but did not find anything relevant. I also used Google, but could not find anything promising.

Thanks in advance.
18 years ago
VAJ is Visual Age for Java. Maybe the 'IDEs, Version Control and other tools' forum may be more appropriate, but the question might get a better response here.

Satya - the question is a difficult one to answer with the information provided. You might want to try to narrow down the problem. Does your webapp use any libraries provided by VAJ? What is the target application server you use?
18 years ago
Aruneesh - please search the forum, there was a recent thread that covered some tools.
18 years ago
You should get most of your answers here:
http://groups.google.com/support?hl=en
18 years ago
Only links which have been encoded using the encodeURL() API will, when clicked, show jsessionid in the address bar (I am assuming that cookies are disabled/unavailable). I am not aware, though, how Struts handles this under the covers or how it picks and chooses to encode the URL.
18 years ago
It is the URL that gets re-written and not the HTML. So, yes, if you have disabled cookies and then click on an encoded URL, you should see jsessionid in the address bar.
18 years ago

Originally posted by ramya jp:

In my web.xml



In my url
http://localhost:8080/MyProject/MyServlet.
where MyProject is my Project name.



You need a URL mapping in your web.xml, something like this:


Not wanting to open a can of worms, suffice it to say that some containers allow using the servlet's class in the URL. But such practice is strongly discouraged. Stick with the spec which requires an explicit URL mapping.
18 years ago
Can you share what it is that you were trying to do when you got this error?

I mean do you own the code, what is the servlet, is it in the appropriate path, can any other servlets be loaded, what have you tried to resolve the issue, etc.
[ July 29, 2005: Message edited by: Sharad Agarwal ]
18 years ago