nand rai

Greenhorn
+ Follow
since Feb 17, 2009
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 nand rai

can we trace all the method calls for an operation with out using any logging framework.

i am working on a large application, which was written by some one else. I want to trace to all the method calls it is going through so that i can quickly understand the application,
11 years ago

Tim Moores wrote:Should be no problem as long as the we
b app is under your control; meaning - you can change the WS URL (and port) to point to your tcpmon instance, and from there to the actual WS.



I am not following the word " you can change the WS URL (and port) to point to your tcpmon instance, and from there to the actual WS". How do i do that. your help is greatly appriciated.
11 years ago
i want to monitor the soap request from webapp --> to webservice.

servlet which uses the stub class to call the web service operation.

web service is hosted on a differnet server.

i want to capture the request when this operation happens.

11 years ago
I have a web application that is running on localhost 8443.

In my application I have a webform where the user enters the data , i store this data to database using a webservice ..


How to use the tcpmon in this situation.

11 years ago
I have situation where I need to calculate the dates as follows

today
yesterday
last week
last Quarter


how do i achieve this .

say for example if today's date is 12/21/2011

i want to get "Yesterday" as 12/20/2011( this is simple) using calender class

how to achieve the last WEEK 12/11/2011 to 12/17/2011

And as far as Last quarter concerned

Q1 - January, February, and March
Q2 - April, May, and June
Q3 - July, August, and September
Q4 - October, November, December

if today's date is 12/21/2011

then last quarter would be Q3 07/01/2011 to 09/30/2011.


How do i achieve this with java date or calender class or by any other means.

Thanks In Advance.
12 years ago
I have updated the question.

12 years ago
I have situation where I need to calculate the dates as follows

today
yesterday
last week
last Quarter
quarter to date

how do i achieve this .

say for example if today's date is 12/21/2011
i want to get "Yesterday" as 12/20/2011( this is simple) using calender class

how to achieve the last WEEK and last Quarter?

Thanks In Advance.
12 years ago



<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/App/admin</param-name>
<param-value>/WEB-INF/struts-config-admin.xml</param-value>
</init-param>
<init-param>
<param-name>config/App/appointment</param-name>
<param-value>/WEB-INF/struts-config-Logic.xml</param-value>
</init-param>
<init-param>
<param-name>config/App/profiles</param-name>
<param-value>/WEB-INF/struts-config-profiles.xml</param-value>
</init-param>

</servlet>


How does the ActionServlet knows to load all the init params?
14 years ago

I have couple of drop downs in my jsp . User selects one of the option and submit the form ,which will get inserted into the database.

But when i retrieve the record for update on the JSP my drop down donot retain the previously selected option. How to code this. I am using simple JSP page.

Thanks
14 years ago
JSP
Hi

I would enable the field only if there is no data from the database(null. empty)
other wise if there is data disable the feild

can some one please send me a sample code.
14 years ago
I have problem

I have 2 jsp pages and 1 servlets

Jsp1 is is having a framset with Banner in first page , som hyperlinks in the middle frame and menu in the third frame

when we click the link,it will go to jsp2.

In Jsp2 we have 2 frames one have PDF document and the other one is a input screen.

the input screen has form tag which submits the data to the servlet

servlet insert the data into the database.

Now i want to redirect to the first jsp from the servlet.

How to do that?
14 years ago
How i can dynamically add the child components to jpanel

I have jpanel

and many lables,text feilds, check boxes, multi select and others.

How can i dynamiclly add all the elements to jpanel.

I want to avoid the following

this.add(jLabelB);
this.add(imageSeqComboBox, null);
this.add(jLabel0, null);
//this.add(txtImageLocator, null);
//this.add(jLabel3, null);
this.add(txtSerialNumber, null);
this.add(jLabel2, null);
this.add(txtAmount, null);
this.add(jLabel11, null);
this.add(txtIssueId, null);
this.add(jLabel1, null);
this.add(txtIssueDate, null);
this.add(jLabel5, null);
this.add(txtRangeBegin, null);
this.add(jLabel9, null);
this.add(txtTotalMO, null);
this.add(jLabel4, null);
//this.add(jLabel81,null);
//this.add(txtFRBProcessDate,null);
this.add(jLabel82,null);
this.add(txtMoOrigin,null);
this.add(jLabel83,null);
//this.add(txt8105A,null);
this.add(formA,null);
this.add(formB,null);
this.add(jLabel84,null);
this.add(txtUserLastName,null);


Thanks
14 years ago

Paul Sturrock wrote:Why do you want to do this? What is it you are trying to achieve? How do you want ot divide yuior application?



My application is getting bigger and bigger, so i would like break the app into multiple sub appliaction.

The flow is as follows.

1)Client log in to the applications.
user is validated

2) Based on the user's role a menu is displayed on the left.

3) When the user click the link i would like to go to a (new ear) or (a new war file with in a ear).


My question here is when i click the link and if i go to a different ear or war file, how will i maintain the security and roles of the user in the other war or ear file.

I guess we cannot Share the session between the war files or Ear files.

Thanks
I have application that i want to break into multple sub application.


Can i break one ear file into multiple ear files, if so how i can maintain the session and the security between the two.

Thanks