Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!

prash patil

Ranch Hand
+ Follow
since May 26, 2008
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 prash patil

Hi Rancher,

I have one scenario where I need help.

In my application I want to block the request coming from doDelet,doTrace,doOption method.
i.e allow only doGet and doPost.

I am searching in direction using ServletFilters but not able to get the method name using request object in doFilter () method..

Your help is greatly appriciate..


Regards,
PP.
9 years ago
Hi Ranchers,

I am facing one problem.
My application is being invoked through one tool called CTI.
Based on the url hit one servlet get called every time. Then in that servlet based on the the parameter
I am creating faces url. And then using response#sendRedirect() i am redirecting it to the jsf/faces page.

For first request it works perfectly fine. But
The problem is when the page is reloaded using CTI the old url i.e. URL with servlet name gets called and
and again from the flow the servlet creates faces url and using sendRedirect() it calls .faces url.
And in debuging found that after the call sendRedirect() there is not call made to FACES servlet class.

Inshort.
First url which get hited first time


The URL get conveted by MyServletServlet class to


And when clicked on RELOAD then again the

used and the control come to service method of the MyServletServlet class but
after line response.sendRedirect(queryStr.toString()); the control get vanished.

queryStr = pages/ps_corr_history.faces?PsAction=360&payhisttms_CF=&CaseId=&UserId=AGENTSP&MsgId=752009.123.123.12.


Thanks in advance.

Regards,
PP.


10 years ago
JSF
Just thought to share with you.
I found below link which helped me in my situation. It works for IE
Capturing windowclose


Regards,
PP
10 years ago
JSP
I got query.

In my project i want to capture the refresh event.
I used


But when i call callToMyMethod() where i get a new URL and i hit it again.
So even when I close my jsp page the unnacessay java code is being called.
Can anyone suggest any releveant way to capture only refresh?

Thanks in advance!!

PP.
10 years ago
JSP
Thanks Steve !!
I tried those method too.
Only thing I want to check that if I am not aware of any process/method which will help me,
As my application is being accessed from other application I was trying to figure out if I can do anythin at my side.
But it seems the application A will need to change the logic so that the URL will not have specail charcters in normal format.

Once again thanks for your reply.

PP.
10 years ago
Hi Ranchers,

I am facing one problem.
I have one application say A which is being hitted from other application say B.
When someone hits the application A from B there is one URL (my application i.e A url ) get created.
So I copies all the requestParameter and uses it for processing.

But now in one of my parameter it has value whihc is having # in value e.b ABC#xyz
The problem is when I tries to get all parameters the values after # did not come through request.

I tried below all things but i did not get the complete url and thus i am stuck


Can any one came across such issue? Any common methodology to follow in this case?

Thanks in advance!!

PP.
10 years ago
forgot to copy persistent.xml file
Hi Ranchers,
Please help to find out the root cause.

I am working on oneToOne bidirectional mapping.
But while persisting the object got exception





JAVA classes.





Help greatly appriciated.


Regards
PP
Hi Ranchers,

Facing problem while replacing \r\r (four chars - \,r,\,r) chars from a string with \r\n.

I am working with an application where I make a request to webservice it returns me a bodyText.
In the bodyText the String contains \r\r chars (4 chars) and when I tried to replace them with \r\n
2 chars using replaceAll function it does not replace it. Strange..

When tried to create string using below way then replace all does not work.



I got the solution but looking for the standard solution.
Help is higly appriciated.

Regards,
PP.
10 years ago
Hi Ranchers,

I am facing one problem while using my predefined squence in the generator.

Below are the details.

I have created a table student with column id, `sname` 'sroll`,`scourse` and PRIMARY KEY (`id`)
The persistence xml have below data


and Student class is


And the sequence student_id_seq exist in the oracle.

But when used it

Got exception


Please suggest if I am missing anything.

Thanks in Advance

PP.
Hi Ranchers,

I am at beginer level for JSF; Need help.
I am using JSF in my application in which I want to pass values in request which is being redirected using sendRedirect() method.
and also the paramerters should not be visible in URL.

Or in other words:

The line in bold; I want to pass some key-values for the above page request.

Is there any facility availabel in JSF where I can pass the key/value to the above page request which
is not visible in URL?


Thanks in advance!!

Regards,
PP

10 years ago
JSF
Hi All,

I am getting incositent behaviour for getting session values.

I have three Bean classes which does not implement Serilizable

In one of my java method I take values from session object and call the WS using it.
and in second method which is called immedialty after the above one
when i uses the session objects to get the parameters i get null values.

And this happens on clustered environment.

While googlin I got that the JSF sessions are not SeriliZable and we need to do it.
If I will implement SeriliZable for all the bean (which are at session scope) will it work?

Please suggest the pointers.


Regards,
PP.
10 years ago
JSF
Thanks Deepak!
I thing I got the problem.
My collections jar does not have any package like org/apache/commons/collections/map/ReferenceMap
but common-collections-3.1.jar do have..

regards,
PP
10 years ago
The Full stack trace is
10 years ago