Win a copy of Head First Android this week in the Android forum!

purushotham podaralla

Greenhorn
+ Follow
since Sep 12, 2007
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 purushotham podaralla

Hi,

I am new to Struts2 test cases. Please let me know how to write the test cases for Struts2, Spring and Junit testcases with anotations.
Thanks in Advance.

Regards,
Purushotham
10 years ago
Hi,

i have a scenario like to validate in one case and shouldn't do validation in another case in a single action.
suppose for example:-
When i press save button i have to do a validation.
When i press continue button shouldn't do a validation.
i have to do this one in struts 2.
Please do the needful.

Thanks in Advance.

Regards,
Purushotham
10 years ago
Hi,

i am getting the below error.

java.sql.SQLException: The total number of locks exceeds the lock table size.

The same query what it is generating at the time of the above error is.

INSERT INTO xxx (date,id,F1,F2,F3,F4,F5,F6,F7,F11,F12, COUNT) SELECT date,id,F1,F2,F3,F4,F5,F6,F7,round(avg(F11),2) F11,round(avg(F12),2) F12,COUNT(*) COUNT FROM yyy WHERE date >= ? AND date <= ? AND id = ? GROUP BY date,F1,F2,F3, F4,F5,F6,F7.

when executing the select query of insert on select. i am getting 0 rows as shown below.

mysql> select count(*) from yyy WHERE date >= '2010-08-12' AND date <= '2010-08-13' AND ID = 11;
+----------+
| count(*) |
+----------+
| 0 |
+----------+
1 row in set (0.10 sec)

Please let me know how to resolve this issue.

Thanks in Advance.

Regards,
Purushotham
Hi Jaikiran Pai,

Thanks for your reply.
i am new to this JBoss Server. Please Share the information how to migrate the existing application which is running in JBoss 4.0.2 to JBoss 4.2.3.
Regd. Servers, Schedulers, scripts and etc.,.

Thanks in Advance.
11 years ago
Hi,

MIGRATE JBOSS4.0.3 TO JBOSS4.2.3 WITH NIO CONNECTOR. After creating instance and then run the install file in Linux Environment i am getting the below error.
core Ravi$ ./install
./espinstall: line 31: /Applications/MyApps/core/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/index.html: No such file or directory
cannot3 open new file /Applications/MyApps/core/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/index.html at /Applications/MyApps/core/install/template.pl line 13.
chmod: /Applications/MyApps/core/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/index.html: No such file or directory
Ravi:core Ravi$ vi install/.config.ini

Thanks in Advance.


11 years ago
Hi,

i used the below code in my application but i am getting an error SyntaxError: Parse error at line 1 xxx.js.

provided some more .js files. but in all js files at line1 giving parse error.

please do the needful.

Thanks in Advance.
As per my requirement i want to take two pdf files to combine to one pdf and then generate that pdf in the screen without storing in any location.

But what i provided the code is storing in one location. this should not.
let me know how to generate the report without storing in any location.
i combined two pdf's into one pdf using
new PdfCopyFields().addDocument(reader1); new PdfCopyFields().addDocument(reader2);
aftter that i want to get byte[] from PdfCopyFields().
here i struggled to get the byte[]. please let me know how to get the byte[]. this byte array need to open in a pdf file as shown above.
Hi,

i want to combine multiple pdf's into a byte array.

what i have written the code:

PdfReader reader1 = new PdfReader("D:/take mails/ECM Files/from ECM/interactiveReport.pdf");
PdfReader reader2 = new PdfReader("D:/take mails/ECM Files/from ECM/interactiveReport.pdf");
PdfCopyFields copy = new PdfCopyFields(new FileOutputStream("concatenatedPDF.pdf"));
copy.addDocument(reader1);
copy.addDocument(reader2);

here i need to convert to byte array.

ServletOutputStream outputStream = response.getOutputStream();
// byte[] bytes2 = new String(bytes, "utf-8").concat(new String(bytes1, "utf-8")).getBytes();
outputStream.write(bytes2, CommonConstants.INITIALIZE_TO_ZERO, bytes2.length);
outputStream.flush();
outputStream.close();

Thanks in advance
Hi Vishwanathan,

please let me know how to get the logo for SCBCD5.0. i cleared this exam on 24th Jan 2009 with 91%. please do the needful.

thanks in advance.

Regards,
Purushotham
12 years ago
Hi,

I am using new ie 6.0 to open the generated report. I have three scenarios to open the report (PDF,XLS, and RPT). RPT will open in new IE6.0. When i select first time. again i selected XLS and submitted then i got the message like "pop-up blocked. To see this pop-up or additional options click here......" like this message is coming. This is not the correct way to open the excel. Client is asking, when i click on the Excel need to ask open, save, or close. Please do the needful to resolve this issue. I am using Struts, Jsp, js. using IE6.0

i am using the below piece of code to flush the data in the specified format.
when i click on submit button i will call on javascript method with the following.

window.open( urlContextValue+"/action.do?mode=generateReport","newwindow");

in .js i am caling generateReport action method. it will go to action method and do the rest of the work.

public ActionForward generateReport(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
if("Excel".equals(FormatType)){
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition", "attachment; filename= reprot.xls ");
}else if ("RPT".equals(FormatType)){
response.setContentType("application/x-rpt");
response.setHeader(Content-disposition", "attachment; filename= reprot.rpt");
}
byte[] backupDoc = VO.getContent();
ServletOutputStream outputStream = response.getOutputStream();
outputStream.write(backupDoc, 0, backupDoc.length);
outputStream.flush();
outputStream.close();
return null;
}

whenever i clcik on the submit button i want to open in new window if it is rpt. otherwise need to ask open, save, and close. to open PDF, Excel, and XML.

Tanks in advance

Regards,
Purushotham
12 years ago
Hi Eric,

i am using the below piece of code to flush the data in the specified format.
when i click on submit button i will call on javascript method with the following.

window.open( urlContextValue+"/action.do?mode=generateReport","newwindow");

in .js i am caling generateReport action method. it will go to action method and do the rest of the work.

public ActionForward generateReport(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
if("Excel".equals(FormatType)){
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition", "attachment; filename= reprot.xls ");
}else if ("RPT".equals(FormatType)){
response.setContentType("application/x-rpt");
response.setHeader(Content-disposition", "attachment; filename= reprot.rpt");
}
byte[] backupDoc = VO.getContent();
ServletOutputStream outputStream = response.getOutputStream();
outputStream.write(backupDoc, 0, backupDoc.length);
outputStream.flush();
outputStream.close();
return null;
}

whenever i clcik on the submit button i want to open in new window if it is rpt. otherwise need to ask open, save, and close. to open PDF, Excel, and XML.

thanks for your response Eric.

Regards,
Purushotham
Hi,

I am using new ie 6.0 to open the generated report. I have three scenarios to open the report (PDF,XLS, and RPT). RPT will open in new IE6.0. When i select first time. again i selected XLS and submitted then i got the message like "pop-up blocked. To see this pop-up or additional options click here......" like this message is coming. This is not the correct way to open the excel. Client is asking, when i click on the Excel need to ask open, save, or close. Please do the needful to resolve this issue. I am using Struts, Jsp, js. using IE6.0
Hi,

i have too many controls are there to reset the values when form loads initially. i have around fifty controls are there. when i use reset method in form bean need to set all properties to null. and then i am calling this method when form loading method. i am using struts 1.2. is there any solution to use without setting to null in the reset() method. please do thhe needful.

Thanks in Advance.

Regards
Purushotham
13 years ago
Hi All,

i am using html:select struts tags, and inside i am using html ption, html ptionsCollection....

in html ptionsCollection i am using one collection, while displaying the values from collection by using html ptionsCollection, the size of the html:select is increased, as the value from html ption is very big string, some cases, the values are small strings, so the size of html:select is getting reduced.

<html:select name="xxxxxFB" property="mindIDs" >
< html ptionsCollection property="mindId" labelProperty="mindName"/>
</html:select>

i need to attach one horizontal_scroll bar to html:select, so that if the values of mindId big, i can scroll though the values, but my size of html:select should not change for different values.

please do the needful.
Thanks in advance.

regards,
purushotham
13 years ago