R .sourav nayak

Ranch Hand
+ Follow
since May 14, 2006
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 R .sourav nayak

hi,
thanks for the replay.on the database data's are stored in toplevel,sublevel and the leafnodes related to sublevel. In my java code i am able iterate through the node and leaf nodes. but i am having a problem string that in a list and bringing that to my jps page in a tree structure way. below is my cod e.


could you tell me how do i temporarily store it in a list after each iteration and call that on my jsp altogeter.

thanks in advance
11 years ago
[Edit: please do not repeat the same question in more than one topic.]
[ November 08, 2007: Message edited by: Bear Bibeault ]
11 years ago
JSP
[Edit: please do not repeat the same question in more than one topic]
[ November 08, 2007: Message edited by: Bear Bibeault ]
11 years ago
JSP
Hi Bear,
thanks for the immediate response. I have already created the tree structure in my html by puting the hardcoded datas and the structure looks like following :

but now i wanted to get those datas in tree structure way from the database
since my application is struts based, in my action class ,i am able to iterate though the nodes and leaf nodes. But the problem i am having is - in my action class i am not able to keep that temporarly in a tree structure way as i go through each iterator. so its being problem for me to display that on jsp page.

Could you provide me some hint

thanks in advance

[BPSouther: Added code tags]
[ November 08, 2007: Message edited by: Ben Souther ]
11 years ago
hi,
i have to write a java class to represent the data in tree structure. In database the datas are being declared in tree structure way.

could some one provide me java class. which will help me retrive those datas in structural way.

thanks in advance
11 years ago
hi,
i have to represent the data in a tree structure format in my jsp page. The datas are stored in the database in tree structure way. i just need to write a java class which can help me to display those data in tree strutcure way.

Could some one tell me how to do that or provide me some good link on this.

thanks in advance
11 years ago
thanks for the reply and its working now for me
Hi Eric,
thanks for your replay . I am able swap the image while clicking on the image itself. But i wanted to swap the image when i click on a text beside the image.Coule you tell me how to do that.

thanks in advance
hi,
i wanted you to have a look to my html code. but not able to send the html related code over this.Could you tell me how to do that. below is my function


hi ,
thanks for the response. I have created an onClick() method on my text.But could you please tell me how do i set the src attribut to the imgae.
Hi,
i need to implement the following on my page - by clicking on the text will swap the image. For example- i have a text and image1. By clicking on text my image1 will change to image2 .and again when i will click on text ,the image2 will return back to image1.

could some one provide me the javascript function or some good link,so that i can do the avobe
thanks in advance
Hi,

I have a servlet which implements some logic based on some URL parameters
passed to it. I can invoke this servlet directly from my browser, by simply
supplying the parameters thru the URL.

http://localhost:8080/myproject/myapplication?param1=value1¶m2=value2

However, I would like to set these parameters thru' the struts.xml ( using
<s aram> and thereafter link this
servlet ( the servlet simply extends HttpServlet) to the struts action so
that it is invoked the same manner as above.

any clue on how I can do this. how can get the request parameter values in
the action class ? out how to pass this to the servlet?
Should I simply call ServletActionContext.setRequest(name of the servlet
object).

Thanks for your help, I really appreciate any pointers!!
12 years ago
hi,
i have a class named ViewAction and which has a following method

protected void setupRequestHandler(HttpServletRequest request, HttpServletRequestHandler requestHandler) {
String prompt = request.getParameter("prompt"); //$NON-NLS-1$
String solutionName = request.getParameter("solution"); //$NON-NLS-1$
String actionPath = request.getParameter("path"); //$NON-NLS-1$
String actionName = request.getParameter("action"); //$NON-NLS-1$
String processId = this.getClass().getName();
String instanceId = request.getParameter("instance-id"); //$NON-NLS-1$
requestHandler.setInstanceId(instanceId);
requestHandler.setProcessId(processId);
requestHandler.setAction(actionPath, actionName);
requestHandler.setSolutionName(solutionName);
requestHandler.setForcePrompt(prompt != null && prompt.equalsIgnoreCase("yes")); //$NON-NLS-1$
}

and i have another class named showAction and i wanted to call string varibale solutionname, actionpath from the setupRequestHandler() method.

how will call thoses varibale from showAction class?

thanks in advance
12 years ago
hi,
could some one tell me if these books are available in the market:

1. Struts2 the complete reference
2. Professional Jakarta Struts for struts2

thanks
12 years ago