narayana Ega

Greenhorn
+ Follow
since Aug 23, 2012
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 narayana Ega

No I am Reading the INI file as .txt file...

DataInputStream br = new DataInputStream(new FileInputStream (inifilepath));
line = br.readLine();
11 years ago
when I am Reading and printing INI files with java the out put of the java program is as shown below attached image file.

The out put contains some box symbols.



any body help me to remove the box symbols...


Thanks.........
11 years ago
Hi All,

I tried the below code to open word document from browser ,it is ok in Internet Explorer but it is not working in Firefox and Chrome.


<html>
<head>
<script type="text/javascript">



function openWordDocPath()
{
var objWord;
objWord = new ActiveXObject("Word.Application");
objWord.Visible = true;
objWord.Documents.Open("\\\\sinhyd800\\SCM\\PeerReview\\SCMWebsiteUserDocumentation\\UserDocumentationForSCMReleaseWebsiteRev-3.doc");
}
</script>
</head>
<body>
<form onSubmit="openWordDocPath()">
<input type="submit" value="submit">
</form>
</body>
</html>

Can any body help me to get out of this problem............
Is it possible to generate a bar chart in excel by using POI or any other java technology?

Thanks,
11 years ago
Thank You Very much now the problem is solved.......
11 years ago
I have access to the shared folder. I am able to access it generally...where i am not from tomcat...

if it is necessary to provide credentials, where i have to provide the credentials?

please reply......

Thanks.............
11 years ago
Shared folder not accessible when running tomcat as a service



I am running tomcat as a service. I have deployed webservice for my application. The web service implementation

needs to access shared folder on remote PC. Using NetUse I have already mapped the network drive for the shared

folder. I am able to open that shared folder using the network drive on windows explorer.

when running tomcat as a service my webservice is not able to access the shared folder. However if I don't run

tomcat as a service and run it from batch file it is able to access the same shared folder.

Is there specific settings to be done for tomcat when it is executed as a service?
11 years ago
I used this eventhough it is not working

String batFile ="C:\\Program Files\\Apache Software Foundation\\Tomcat 7.0\\webapps\\scmf\\Schedule.bat";
Process p = Runtime.getRuntime().exec("cmd /c start "+batFile);

can any one help me ........

thanks..........
11 years ago
JSP
when i executed a background program to scan the folders in a directory the tomcat server is getting off............
the following is the jsp code,,....where i am getting problem

try{

Agg agobject=new Agg();

Com cmobject=new Com();

}


in the above code the agg( ) and Com() is for scanning the folders in side a directory...
executed this jsp code i am getting problem
11 years ago
JSP
I want to close a message box after a particular time interval .i am using this but it is not working well.

SetTimeOut("alert("Aggregates Updated.........").close()",2000);

can any one help me to do this.........?
problem with executing bat file from jsp....

i wrote like this....

Process proc = Runtime.getRuntime().exec("cmd.exe /c start C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/bscm/Schedule.bat");
proc.waitFor();

but it is not working............

can any one help me to get solution.......
11 years ago
JSP
I have textfile like abc.txt
I want to add that text file to an excel spreadsheet.......


File f6=new File("c:/Change Details.txt");

Sheet sheet6=workbook.createSheet("Change Details ");

Here i want to add textfile f6 to sheet6 directly...
can any body reply me........

Thank You....
11 years ago
If You want to open a file then simply you can execute a command from your java program to open that file.

if you want to get the file abc.pdf opened, You can use the following command...

String command = "abc.pdf";
Process child = Runtime.getRuntime().exec(command);

Before you are using this command set the path of the file....in command line with your java program like

if the file is in "c:/My Files/abc.pdf" then
String command = "cd c:/My Files";
Process child = Runtime.getRuntime().exec(command);

declare a static variable inside of your class constructor and make sure that it is increasing its value by 1 for every call of that constructor....

while processing you may destroy some objects for that in finalize() decrease that static variable...

then you will get the count of active instances............
11 years ago
Her I want to transfer the variable "s" from the first jsp file to second jsp file

first.jsp:

s="hi";
<form action="Button.jsp" method="get" name="value">
<button type="submit" >Older Versions</button>
</form></center>

Second.jsp:

<%
String s=(String)request.getAttribute("value");
%>

<br><br><br><br><br>
<center><h1>The Older Version Of Aggregate are:
<%out.println(" "+s);%>
</h1></center>

can any one help me to transfer the "S" to second jsp and printing that....

11 years ago
JSP