Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!

sandeep Talari

Ranch Hand
+ Follow
since Dec 24, 2007
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 sandeep Talari

there was a question like this, what is the difference between struts 1.2 to 1.3

how many methods are there in request processor please name it.
12 years ago
how many implicit objects are there in jsp?
how can we get exception implicit object in jsp?
12 years ago
JSP
One thing is confirm that for every web application there can be one servlet context, there was a question like this, can we manually create another servletcontext for a web application. Indirectly can a web application can contain two contexts

regards
sandy
12 years ago
what is the difference between wait() and sleep()?

regards sandy
12 years ago
can somebody clarify me , threadsaftey means class is non-synchronized or synchronized. give details please

if methods of a class are non-synchronized means the class is theardsafe?
12 years ago
hi, i had one year experience in java/j2ee . A month back i got trained in struts framework, now looking for a change in my job. If any placements in South India and other parts of India let me know.
Kindly help.
12 years ago
hi, this is sandeep. I need berief points about Class and ClassLoader classes in java.lang package. Tell the purpose and where i can make use of these classes.
Please don't refer some other resource.
kindly explain me.
thank you.
12 years ago
hello,

abstract class Person
{
String getName(){}
void setName(String){}
}

class Employee extends Person
{
int getEmpId()
{}
void setEmpId(int)
{}
}
servlet

Employee p = new Employee)_;
p.setName("evan");
request.setAttribute("person", p);

<jsp:useBean id ="person" type="Employee" >
<jsp: setProperty name ="person" property ="name" value="fred"/>
</jsp:useBean>

<jsp:getProperty name="person" property ="name"/>

how this will work since the set attribute in request scope and here in jsp the default scope we specified is page... explain me
12 years ago
JSP
you mean the source code of the counter class, if i import like you, what you told mypackage.counter where the container look it for
12 years ago
JSP
my counter class

public class Counter
{
private static int count;
public static synchronized int getCount()
{
count++;
return count;
}
}

this is the source file

in jsp

<html>
<body>
your visiting no : <%= Counter.getCount() %>
</body>
</html>

i placed the class file of counter in classes folder of web-inf
and jsp file in the context root of the web application and error it is giving me

is

cannot resolve symbol
probably occurred due to an error in /Counter.jsp line 6:
Your count is : <%=Counter.getCount() %>
out.print(String.valueOf(Counter.getCount() ));

please help me
12 years ago
JSP
Hello buddy, need clarification about the contextListener

1.when we are going to implement this class(explaination need)?
2.how to convert the string given by Application context to object?
3.context has to be initialized before other parts of application get intialized who will initialize it?
12 years ago
RequestDispatcher view
=getServletcontext().getRequestdispatcher("/result.jsp");

as you know this the request dispatcher for the context.But why it should and must start with "/".why there is no compulsion for the request.getRequestDispatcher("result.jsp");

i know that if we give "/" , it mean that search from the contextRoot of web application.

please explain ,
12 years ago
i found a method returning int, string, and object etc. but what is <E> return type i'm confused.

next() method in ListIterator will return next element.But it is written over
there <E>.

please explain.
12 years ago
what is the difference between the

response.sendRedirect("/foo/doStuff.html")(with forward slash)

and

response.sendRedirect("foo/doStuff.html")(without forward slash)

please explain
12 years ago
how do we get cookies from EL
this is my question?

This is found in head first book
my understanding is cookies had property named userName and userName had val,isn't it ?
${cookies.userName.val}

Im confused explain me clearly.
12 years ago
JSP