Raghusham Sankargal

Ranch Hand
+ Follow
since Oct 10, 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 Raghusham Sankargal

Hi Campbell,
Sorry if that was the impression that was created.
There are two things.
I dint ask the question which is implementing RandomAccess. I asked about better results in accessing ArrayList and you mentioning about Random Access is no where releated if you see your reply. What is Random Access and why you are using this in your reply isn't mentioned.
"You should atleast mention it implements Random Access and it is fast and please see the Random Access". How the hell can anyone understand if you dont mention these to the question I asked?

Second I was asking this same question. By Random Access do we get faster results? I understood this implicitly. Would you please confirm my understanding? This instead I asked.
Does ArrayList uses RandomAccess. This is my mistake.

We both did mistakes. I hope you agree to that.

I agree to you that people are coming out of their work schedule and giving us replies. But if anyone is answering they should answer appropriately which wasn't the case and it was quite confusing from your first reply.

Please read it properly. This is a forrum where I ask for information. If you don't wanna give it then don't give,
How do you know I dint go through the document?

Above some things I metioned because there were some personal remarks on the way I work. Like me enjoying and not doing anything. That is the reason I too am telling some personal remarks.

DONT MAKE PERSONAL REMARKS

I apologize once again and would like to close this personal discussion and don't wanna spoil the rapport of JAVARANCH which I respect the most. This will be a learning to you too.

Kind Regards,
Sham.
10 years ago
Hi Campbell,
Sorry for the delay and thanks for the posting. I know Random access is performant than sequential. But Is Arraylist using Random Access. I could get this fact implicitly but Would you please tell if this is the case or not?

Kind Regards, Sham.
10 years ago
Hi,
When we have an ArrayList, To loop through it either we can user iterator or we can loop just like we loop the arrays.
Which one is better. Would you please mention the advantages of one over the other?

Thanks in advance,
Sham.
10 years ago
Hi Ranchers,
I have a very basic question. Imagine I have an arrayList that has Strings

Can the arraylist guarantee accessing it through index gives me the same result all the time? In the above example if I say arrStr.get(0). Does this give "First" always???
Thanks in advance,
Sham.
10 years ago
Hi Ranchers,

We use group by option in SQL. Do we have any API that we can use to mimic this functionality?

Sorting or Arrays or List can be done using or respectively.
In the same way do we have groupBy too?
Kind Regards,
Sham.
10 years ago
Hi,
I have in a jsp that is included in another jsp using <jsp:include>. Inside I pass parameters to this included jsp using <jsp:Param>.
But this <jsp:param> had always returning String. How can I pass a Object to the included jsp?

Thanks in advance. javascript:emoticon('');

Kind Regards,
Sham.
10 years ago
JSP
Hi I have a table Employee with fields
emp_id
emp_name
emp_role
created_by
updated_by
For this I have defined classes

The reason I have a class called UserInfo is because I can use this class for all other tables. The usage of UserInfo inside employee is given below


Questions:
1. I am not sure whether I can do like this or not. Would you please tell whether I can do this way?
2. I had even problems to put the Mapping class too for the same. Would you please how I can do this?

Thanks in advance,
Sham.
Interfaces are actually to implement the specifications that is given by some one in our case it is from Sun Micro systems. For example you can take "Comaprable". Go through the specification of this and see what they mention and if you want to make sure that you implement what they are saying you need an interface that they define.

Abstract classes are used in Inheritance. As the word say it is abstract and you don't know what to do. So you tell the the child classes to do something on their own.

Example: Imagine the method

But technically spoken both of them do the same. If you drill down. Finally you say that it is one method which don't have body and you do that implementation. But from the big picture or conceptually I see that these two are different and for different purposes.
11 years ago
Hi,
Thanks for the reply.
Do you mean that the Hibernate makes sure it updates only those columns that are updated by the checking the row present in the database, takes the one that are new and then updates only them?

Kind Regards, Sham.
javascript:emoticon('');
Hi I have login table with user and password. The password can be changed more than once.
In this way I want to update only that column.
Would you please how to do that ?

Thanksin advance,
Sham
Hi Colleagues,
I am trying to use Hibernate to insert a record on the Database. I am getting the error

Could not instantiate cache implementation


I could not figure it out why. Would anyone help me in this? Below is the hibernate.cfg.xml

Hi All,

I could figure out that there are tld's missing. I added the relevant ones and I could solve the error.

I thought of sharing this.

Kind Regards,
12 years ago
JSF
Hi All,
I found out the answer for this. This error comes usually because the jsp file is not accessed. Though you have a jsp file. you should call it with .jsf or .faces.

I thought of sharing this information with you.

Kind Regards,
Sham.
12 years ago
JSF
Hi All,
I am using Eclipse and Tomcat. I tried to run the tomcat. It is giving me an error saying "Cannot Find FacesContext". I have used jsf-api.jar and jsf-impl.jar. Is there any other jars to be used. Would someone help me here please

Thanks in advance,
12 years ago
JSF
Hi All,

I am working on JSF. I have one jsp page. When I try to execute I am getting the following error.

HTTP Status 500 -

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

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
org.apache.jasper.compiler.Parser.parse(Parser.java:133)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)



The jsp that I have is

<!doctype html public "-//w3c//dtd html 4.0 transitional//en" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Login</title>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
</head>
<body>
Log in with your User ID and Password.<br/><br/>
<f:view>
<h:form>
</h:form>
</f:view>
</body>
</html>

I could not figure out what the problem. Would you please help me.

Thanks in advance,
Sham.
12 years ago
JSF