Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp

Sunitha Mudidani

Greenhorn
+ Follow
since Apr 25, 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 Sunitha Mudidani

Hi,

I have a VO (say, SourceVO) that has the Date values stored in DATE type variable.
As I need to change the format and display that in the front end, i am suggested to create another VO(say, DestVO) that will hold the values in the required format and use PropertyUtils.copyProperties(destVo, sourceVo) to copy the values. But I have to set the values in the String format after conversions, explicitly by calling the Setter method. Similarly If any of the values are null, I have to put a '--' string in those fields, by calling the setter methods explicitly after checking for null.

1) Can the entire thing be done in a easy manner rather than above ?

2)If Iam using the original VO itself, then all these modifications need to be done in the jsp itself using scriptlets and expressions (These can be avoided using struts tags to some extent but not entirely.. )
Is the above approach correct to avoid this situation ?

Pls suggest.

Thanks
Sunitha
12 years ago
Thanks for the replies.. had gone through ajax (an overview).. not sure how complex it will be to implement unless i try to run some examples. I need to try the frame approach as well. but can you point to some j2ee examples using any of the above so that i can start right away.

Thanks a lot!!
Hi,
I am working on an app which has the following requirements

The info on the page is divided into sections and display only. To update the info on the sections we will have popup windows and when saved, only this section on the main page gets refreshed. But in few cases more than one section needs to be refreshed.

1) Using Ajax allows to refresh only that section? Shd each section be implemented as frames ? I have no idea on ajax.

2) Is it possible to refresh more than one section(not the entire page) based on the changes in one section?

3) The app uses struts framework. Pls point to the relevant examples and resources.

Thanks
Hi,

I need to know the table names that end with some expression like "_EXP" in a schema.

what is the query for that ?

Thanks
Sunitha
12 years ago
I have to use a button instead of a link .. it is according to the design.
Any suggestions pls.
Can it be worked out using a java script function?
12 years ago
Hi ,

I have a jsp where a list of customers will be displayed in table. Each row in the table has a button that enables to view the customer details.
The table rows are displyed by iterating through a list which holds each customer row information(different from the customer details to be displayed).

My problem is how do I pass the customer id to the next action which gets invoked when the button is pressed. The customer id values are available as a bean property.

I need to work on this soon.. so pls respond asap.

Thanks
Sunitha
12 years ago
No.. I didnot use property attribute in <html:cancel>
12 years ago
The struts version being used in JdeveloperStudioVersion 10.1.3 is struts 1.1 So I removed the cancellable property and the exception is gone.

But the clear button implementation is not getting invoked.

Waiting for suggestions...
12 years ago
Thanks for your reply.

But iam stuck in using the <html:cancel> button.
Iam using jdeveloper studioo version 10.1.3
Iam not sure which version of struts it is using.

When iam clicking on the CANCEL button no effect is taking place.
These are the changes that i have done.

1) In the JSP



2)In the struts-config.xml, added the below line in <action..> tag



3) In the Action class, the corresponding code is,

Also Iam getting an exception :





Pls let me know how to proceed

Thanks,
Sunitha
12 years ago
Hi all,
I have a jsp where some of the fields like "submitted date" have default values populated in the jsp. When the user clicks on the CLEAR button all the fields shd be cleared and the default fields shd be populated with teh default values.

I understand this can be implemented using a javascript function. But a session variable also has to be removed from the session scope on clicking this CLEAR button. Pls let me know how this can be implemented.
12 years ago
Hi,

Please tell me how to implement the search functionality in java web applications.
As this is a common functionality in many applications, pls suggest me the different ways of implementation also.

Thanks in advance
Sunitha
12 years ago
Hi all,

Iam using tomcat 5.0.28 version, jdk 1.4.2_12,eclipse 3.2 ,struts 1.2.9

I have installed the sysdeo plugin and tomcat is starting properly.But when i execute a simple struts project (struts blank.war)

I am getting the following error . the same error is obtained when i run by starting tomcat outside eclipse.




When I load struts-blank.war directly into webapps dir and exceute I am able to run properly. What cud be the problem?

Thanks
Sunitha
12 years ago
Hi

We have the ns ior file of the corba server.
and the client is implemented as folowing


we are getting CORBA BAD PARAM error at
Notify objref = NotifyHelper.narrow(obj);

We are checking if the connection to the server exists using obj._non_existent() method which returns false

Can the prob be due to the Helper classes not generated correctly i.e not in the same package structure as that of the server.

Also how to establish secured connections to the server ?

Thanks
Sunitha
13 years ago
Hi,
We are using corba to communicate with the server
How to establish secured connections with the server?
Is it related to corba in specific or how it can be done?

Thanks
Deepthi
13 years ago
Hi

i am using sequence numbers to uniquely identify the rows in a table.
But the numbers of rows that will be inserted daily will be in the order of thousands .. (1000-3000). So it is possible that the sequence nos get used quickly and the prev data will be overrriden (assuming that all the data is required for some time)

Is there any alternative to using sequences??
Also performance wise will there be any problem in using sequences in this case
(I am no goood in DB pls suggest!!)

Thanks
Sunitha
13 years ago