Aruna Ponaka

Greenhorn
+ Follow
since Dec 08, 2009
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 Aruna Ponaka

I have File1.csv, with the columns id,name,age. File2.csv has the columns id,designation. In both the files ID refers to same value and is unique.

File1.csv


File2.csv


Spring batch should read the files simultaneously, combine the data and write to DB as below



How to read 2 files simultaneously in spring batch?
5 years ago
I need to read csv files from a folder and write to DB, also archive the files. Below is the job described in xml

multiResourceReader bean definition

   

The code is working fine, but instead of providing the "resources" property value in xml, i need to get it from "validateFileStep" step, as the reader should read only those csv files which are formatted properly. I should pass the same to archiveFileStep also, so that name the files can be appended with completed or failed in the archive accordingly.

Below is the reader bean def

5 years ago
I have created a bar chart along x axis. I need to label the x axis with the provided min, max numbers. For ex: if [min,max] are [0, 1000] and 5 ticks. suppose the width of the chart is 500 px. So i would have to arrange 0,200,400,600,800,1000 in 500 px width. But if the [min,max] changes, example [0,100], 5 ticks, 500 px width, the alignment and spacing between the labels should be appropriate. I have seen many javascipt codes, but they they are very long with many features and it was difficult to segregate the part i need, that is just to space the labes labels based on [min,max], number of labels and width of chart.

could anyone provide the javascript for creating labels when the width of chart, min and max points, number of labels on chart are provided.(no jquery)
I have followed http://krams915.blogspot.sg/2011/01/spring-mvc-3-hibernate-annotations.html to create a Spring and hibernate project.

Below is the code:

web.xml


HelloWeb-servlet.xml



applicationContext.xml



hibernate-context.xml


hibernate-cfg.xml



MainController.java




PersonService.java


Below is the error description


below are the jars files i have included
antlr-2.7.7.jar
commons-logging-1.1.1.jar
dom4j-1.6.1.jar
hibernate-commons-annotations-4.0.1.Final.jar
hibernate-core-4.1.2.Final.jar
hibernate-ehcache-4.1.2.Final.jar
hibernate-jpa-2.0-api-1.0.1.Final.jar
javassist-3.15.0-GA.jar
jstl-1.2.jar
jta-1.1.jar
log4j-1.2.17.jar
org.springframework.asm-3.1.4.RELEASE.jar
org.springframework.beans-3.1.4.RELEASE.jar
org.springframework.context-3.1.4.RELEASE.jar
org.springframework.core-3.1.4.RELEASE.jar
org.springframework.expression-3.1.4.RELEASE.jar
org.springframework.jdbc-3.1.4.RELEASE.jar
org.springframework.orm-3.1.4.RELEASE.jar
org.springframework.transaction-3.1.4.RELEASE.jar
org.springframework.web.servlet-3.1.4.RELEASE.jar
org.springframework.web-3.1.4.RELEASE.jar
9 years ago
i have enabled "show_sql" to true and can see the following hibernate query

Hibernate: insert into defaultschema.rca_param (param_val_t, param_remk_t, defunct_f, param_t) values (?, ?, ?, ?)

but i get the SEVERE: ORA-00942: table or view does not exist.

The database has the rca_param table and the columns.

When i run the same sql removing the defaultschema from the query, i.e.

insert into rca_param (param_val_t, param_remk_t, defunct_f, param_t) values ('T','T',"Y','Y');

the query executes in TOAD, but when i run the code, i get the table or view not found exception.

In HTML, to go to a specific section of the page,<a name="name1"> and <a href="page.html#name1"> is used.
But in struts <a href="someaction"> is used, how to go to a specific section of a page in struts?
11 years ago
Hi,

Is there a "simple" theme in Struts which has action error message showing capability. The "simple" theme does not create tr and td for a textfield, while others themes do. I need the same functionality but be able to show the error messages. Is there such a theme with anyone?

Thanks,
Aruna
11 years ago

I have a struts form, in the form depending on the select option the textfields should show/hide. Am using jquery for show/hide textfields. When I keep the theme as "simple", The textfields hide and on option selection they show up but the label of the textfield does not show up and the alignment is bad. If the Theme is "ajax" or "qxhtml" or "xhtml", the textfields hide/show properly but the labels of textfields do not hide. Is there a good compromise between the layout and the hide/show functionality?


My html:




jquery script:




I tried to change theme on the fly using jquery, but even that didnt work out. The hiding of content is working fine for me , but not the textfields.

Thanks,
-Aruna
11 years ago
I have a struts form, depending on the select option the div should show/hide and the div contains textfields. Am using jquery for show/hide div. The textfields within div are not behaving right. When I keep the theme as "simple", The textfields hide and on option selection they show up but the label to the textfield does not show up and the alignment is bad. If the Theme is "ajax" or "qxhtml" or "xhtml", the textfields hide/show properly but the labels of textfields do not hide. Is there a good compromise between the layout and the hide/show functionality?
11 years ago
Hi,

am building an application using struts 2 and tiles. The image rendering example is not working for me. The application is not throwing an error but not displaying the image. Instead of <img src="/myWebAppContext/myAction.do" /> if I use <img src="<s:url action="myAction"/>" />, it throws an error saying

No result defined for action com.action.MyAction and result success.

Did you write any myImageResult.jsp. My result must go to books.jsp but it is tiles page, if I change <result name="myImageResult" type="myBytesResult" /> to
<result type="myBytesResult" > books </result>, it does not work as my books page is defined in type="tiles".

If interested will give more details of the code.

Thanks,
Aruna
12 years ago
Hi,

I am developing an application in struts 2. The application allows the user to upload image and it is saved as blob in mysql database. How can I retrieve the image using image tag so that I could be able to display other text also.

Thanks,
Aruna
12 years ago
JSP