Praveen Reddy

Ranch Hand
+ Follow
since Jul 12, 2006
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 Praveen Reddy

In my website I am ussing Spring Web Flow depend on an 'execution' request parameter in the URL? It's making our application rather brittle. SWF appends ?execution=(some flow execution key).

for example:
http://www.mywebsite.com/swf/booking.do?execution=e2s2
http://www.mywebsite.com/swf/reservation.do?execution=e3s2


I am having two issues

1) When user bookmark the above url and try to acesses later its going to 404 page because its not able to get execution key e2s2. Can someone guide me how to handle this for diffrent pages.

2) If user leaves the browser unused for 5 to 8 min its not able to get the flow execution key and goes to 404 page.
We're getting way too many exceptions along the lines of:
org.springframework.webflow.execution.repository.F lowExecutionRestorationFailureException: A problem occurred restoring the flow execution with key...


Can I either suppress the flow id completely or hide it via a hidden form field?


Can someone please suggest me something.

Thanks in advance,
Praveen
14 years ago
Thanks Kees.

Can you please guide me with some examples as i don't have much knowledge on jboss message queue.



Thanks
Praveen
14 years ago
I my Controller class I have a method which needs to be asynchronous can any one please guide me with proper example.
In project i am using Spring framework and Jboss server. We should not use threads in my project.



Thanks in Advance

Praveen
14 years ago
Thanks for the Suggestion i am using hibernate i want to validate my text area
Hi

Can any one please let me know how to do validations for text area in order to prevent SQL Injections.

i dont want any one to inject some SQL statements to update my database.

Thanks
Praveen
From Struts Action class i will get Dynamic response to the java script through java script i need to modify the Content

let us Assume in my "o.responseText" i am having the below content now please suggest me how can i read and mark checked for radio button "radio-1-2"



Thanks
Praveen
Hi

I am using Yahoo User Interface
my flow is when i click on link the YUI call goes to Action class and gets the response HTML Content.
Now i need to modify the response Html Content, In my response content i am having some radio buttons with id's, i need to compare this id's and mark radio buttons as checked.

Can any please suggest me how to achieve this.

Thanks
Praveen
I need to parse the HTML document in java can any one help me which parser will be simple if you have any examples of HTML Parsing please send me.

my work is need to get the ID's of radio buttons and should mark as checked/Unchecked.

if you have any relavent example please help me or at least guide me how to do this.

Thanks
Praveen
Flow is here

1) from my JSP page when i click on a link a java script method is called, In this method a ajax request to struts action ( this Ajax call handles Success and Failure cases and catches the response text)

2) My struts action performs
a) A call to eclipse BIRT Engine which access a report "test.rptdesign" and as a response it sends HTML Content

Below code is responsible to run and render the report



This Code is responsible to create a HTML File with the response from above code


I can create a HTML page but instead of creating a page i need to send this HTML response directly to my ajax call



In struts i need to return this response to the Ajax call.

Please let me know if you have any questions i need to solve this problem this is very important to me.

Thanks
Praveen
16 years ago
my response contains html content which is dynamically generated this response i need to send to existing popup dialog.



this response i need to forward to the ajax call from struts
16 years ago
I've got a case where i will get Dynamic html response in my struts action i need to embed this response to a existing popup dialog.

instead of forwarding a success page i need to forward this response (Dynamically generated) can any one please tell me how can i forward this response.

i can only use Struts 2 (i cant use Servlets).



Thanks
Praveen
16 years ago
Hi All,

please help me i have a scenario based on first dropdown menu all the remaining fields should be populated(Same page)

In Detail here i am having

1) Dropdown menu ( on selecting this values 2 to 5 to be refreshed)
2) provider Id
3) Locations (again this will be a dropdown menu of different locations)
4) Email
5) xyz

In my project i am Using Free marker, struts2,hibernate


Thanks
Praveen
Hi All,

Can any one please help me by solving this problem.

Implement public Node GetLeastCommonAncenstor (Node m, Node n) such that it returns the node which has both m and n as a child. In the figure on the following page, passing the method nodes a and b will return node c because it is the first (least) node which contains both a and b. Please feel free to make any changes to the classes you feel are necessary; please document the changes and your reasons for making them. Note: the tree is a binary search tree, meaning that the nodes are sorted, with all the nodes on the left of each node being smaller than the nodes on the right.
public class Tree
{
public int GetNodeCount(Node n)
{
// return number of nodes
}
public Node GetLeastCommonAncenstor (Node m, Node n)
{
// return the least common ancenstor
}
}
public class Node
{
Node m_Left;
Node m_Right;
String m_Word;
}

Please check the below Sendspace link for Sample Binary Tree:



Thanks in Advance
Praveen
16 years ago
thanks "ankur rathi" and "Raghavan Muthu" i hope what you suggested will solve my problem. let me think of it, i will try to work on it and let you know status.

once again thanks a lot for your suggestion

thanks
praveen
17 years ago