shalaka wadekar

Ranch Hand
+ Follow
since Mar 21, 2008
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 shalaka wadekar

That works!! Thanks
12 years ago
JSP
Yes, item refers to a map in jsp.
12 years ago
JSP
Hi All,

I need to create a java class from a jsp file code. I am aware of the regular conventions. But I came across a particular line where I am stuck. Its some like this:

someBean.someProduct[item.key].priceTotal

So far what I know is:
someBean is an instance of a bean object and getSomeProduct is a method in it, so I will have someBean.getSomeProducts()
getSomeProducts() returns a map with its keys and values as some objects.

Can anyone help me on how should I write an equivalent java code for the above.

Thanks in advance,
Shalaka


12 years ago
JSP
Hi,

I tried out the code. So it looks like below. After clicking the link that invokes my jsp page, it redirects me to the given url... But it doesnt end my session in the application. What do I do? Any idea?


15 years ago
JSP


Thanks buddy!!

Will check this out
15 years ago
JSP
Hi All,


I have got a task to perform in my jsp page. My jsp page gets called on click of a link in my application. What I need to do is My jsp page should check if the current session is still valid & if it is then invalidate the session & redirect to another page outside the application. I know how to do the redirection part.
Please let me know how to check, if the sesion is valid & invaidate it if it is valid.

Thanks in advance,
Shalaka
15 years ago
JSP
Hi,

Thanks for the response!
I guess I am aware of this cause. I am using jdk1.4. What do you suggest I should do now? It was working fine with the same version earlier. How come suddenly it started giving out this error?

Regards,
Shalaka
15 years ago
Hi All,

I am using Apache Tomcat 5.5
I get the following error when I try to load the Tomcat homepage using http://localhost/
Default port is set to 80.

javax.servlet.ServletException: org/apache/jsp/index_jsp (Unsupported major.minor version 49.0)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

I was working on this same Tomcat setup a couple of months back... & it was working fine
Tomcat homepage was loading. I have not made any changes to the tomcat configuration since then. I had set some classpath for another application some time back but I removed that from the enviroment variables. Now in the classpath there are only things that Tomcat would need.
Am I missing something? Kindly help on this.
15 years ago
Hi All,

I am in a sorrowful state. Please help me.

I am developing a sample code for my application. In my handler class, I have an object of another class. Now using this object I made a call on its method. This method returned an an abstract class. Now what I actually want is to call a method of a subclass of this abstract class. What do I do? Please suggest.

To quote an example, its something like this:


This is what I have so far. Now what I want is to call a method of the subclass of absclass from my handler class. How do I achieve this. Please help.



Regards,
Shalaka
15 years ago
Hi,

My application has 2 JCheckboxes ch1 & ch2.

My requirement is that when I check 'ch1', action1 should be performed & when I check 'ch2', action2 should be performed.
Now I have written the following code for the itemStateChanged(ItemEvent e) method:

When I run my application & check 'ch1' Action1 is performed as expected .
Now the issue is that when I check 'ch2' (keeping 'ch1' checked), the entire method will be executed resulting in Action1 to be performed twice, which is undesirable.
I want both my checkboxes to be checked & both the Action methods to be executed only once.
Can anyone please suggest a way of doing this.

Please help..
Thanks in advance,
Shalaka
15 years ago
Thanks.. Issue resolved!
15 years ago
Hi,

I do not know how to change that. Can someone help me with that?

Regards,
Shalaka
15 years ago
Hi friends,

I am badly stuck. can you help?
My machine has jre 1.5... & the oracle client installed on my machine has jre 1.3...
I have set the proper version in the Registry as well as copied the required file in my windows/system32..
Still when i load my DOS window & type java -version, it gives jre 1.3...
This is what I get:

java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

while I want it to take the server version which is jre1.5...


Regards,
Shalaka
15 years ago
Right..

So, how do I do that? Any Idea?

Regards,
Shalaka
15 years ago
Thanks a lot.

Regards,
Shalaka
15 years ago