Vinayak patil

Ranch Hand
+ Follow
since Aug 30, 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 Vinayak patil

Hi,

Have you specified the taglibrary information in the jsp?

Hi,
I am using Display tag in JSP using Spring.
I have a use case in which I want to use Display Tag's partial list display solution in some cases and normal display (non-partial list) in some other case while displaying the same table.

Further, I want to change the page size depending on what type of display I will be using.

The problem is that once I go to the partial page display, the display of the normal way has issues.

Ex: Partial list page size = 10, Normal page size = 20.
If the no of results is 20, then in the normal way it shows all results in a single page but at the bottom it shows page 1 of 2 (which it somehow retains from the partial list display).

Also attempts to sort on any field fail.

This problem is not visible if I go to the normal display the first time.



where report.PAGESIZE is populated in the controller depending on the case.
Thanks in advance,
Vinayak
Building on Rob's reply:

If you do not specify any constructor in your code, a default no args constructor will be created for you. But if you specify a constructor that takes arguments, no default constructor is created. You have to specify one explicitly.

Since you have not done so and by default the extended class constructor calls the default super class constructor, the error is thrown.
14 years ago
Hi,

I have the following code in my JSP:


i.e there is no space immediately after "<". In this case, I only get a partial output i.e till (var i=0;i only.

However if I put a space after <, i< test then I get the full display

(var i=0;i< test;i++)

I guess it is because when there is no space it is treated as a opening tag and so the display stops.
Is is due to the above? Or is there another explanation.

Thanks in advance for any light you can shed on this.

-Vinayak
14 years ago
JSP
Hi,

I am using DOM parsing to parse an XML .

I using the following code:



This would return all the elements having the tagName specified going down to all the children of the element el.
I would like to get only the immediate child elements of el having the tagName specified.
Is there a way to do in DOM parsing?

I cannot change it to SAX parsing since the above code is a part of a pretty large project.

- Vinayak
To the best that I know this is not possible. Due to polymorphism, when you override the base class method, it the arguments cannot be of a sub class as the base class method can be passed the generic type arguments.

One way to achieve this would be to check the type at run time and then process accordingly.
14 years ago
Please ignore this topic... the problem was in the logic implementation ...

It is working fine now..

-Vinayak
14 years ago
Hi,

I have a simple application to write/read data to/from a database.

In my implementation I am using the same Connection in a program run to write as well as read data. I.e once the Connection is open, it is closed only when the program exits.

The problem I am facing is that if I write some data and try to read it in the same session (ie. program execution) I am unable to find the data I inserted recently.

The data is however visible in subsequent runs of the program.

I found from the java docs that Connections are by default auto commit. So I am expecting that search on data inserted in the same program run should return the data.

Any information on how to avoid this problem ?

Thanks,

Vinayak
14 years ago
Hi,
I am running an application on oc4j server. I get the following error when I run it

server.rmi.OrionRemoteException: Transaction was rolled back: Error in ejbCreate: java.lang.NoClassDefFoundError

I checked the code where the exception was raised and found that all the classes required are present.

Please let me know if there is another reason for the error

Thanks in advance,
Vinayak
Thanks Keith for your response. Has helped me understand String comparison

-Vinayak
15 years ago
Hi,
I have a doubt about String comparison. I know that we have to use "equals" to check if two strings are same. But I tried the following code :


And I am getting the output as "Both are equal".
I was under the impression that When str= "<some content> is given, a new String object is created and I was expecting the comparison to fail.
Please let me know why I am getting the result.
15 years ago
I checked the workspace folder and changed the permissions so I am able to write to it. It is still not working.
Hi Checked the .log file in .metadata folder. This is the exception that is logged: