madhuri akhi

Greenhorn
+ Follow
since Sep 18, 2006
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 madhuri akhi

hi
we install the software in our system is very easy.
i need install a software in ftp. if it is possible then how it is.
we need to install j2sdk1.4.2_13 in ftp.

Actually our requirement is to install some open source softwares into
virtually hosted website at godaddy.com.
Is there any way to do this? if so please let me know how?
give me suggetion to me it may be command or java code or another way.........

Waiting for your warm response.


With Regards
Madhuri.A
17 years ago
HI,
Thanks for your reply. Actually our requirement is to install some open source softwares into virtually hosted website at godaddy.com.
Is there any way to do this? if so please let me know how?

Waiting for your warm response.

Thanks once again.

Regards,
madhuri.
17 years ago
hi friends

we install the software in our system is very easy.
i need install a software in ftp. if it is possible then how it is.
we need to install oracle 10g in ftp.

Regards
madhuri
17 years ago
Please if it know the solution replay to me
this is my context.html

<bean id="Connectmail" class="com.nanna.ConnectMail">
<property name="sessionForm"><value>true</value></property>
<property name="commandName"><value>formbean</value></property>
<property name="commandClass"><value>com.nanna.FormBean</value></property>
<property name="mailSender"><ref bean="mailSender"/></property>
<property name="message"><ref bean="mailMessage"/></property>
<property name="formView"><value>Home</value></property>
</bean>

<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host" value="64.79.170.116"/>
</bean>

<bean id="mailMessage" class="org.springframework.mail.SimpleMailMessage">
<property name="from" value="support@easyuploader.com"/>
</bean>

ConnectMail.java
public class ConnectMail extends SimpleFormController{
private MailSender mailSender;
private SimpleMailMessage message;
String to_user="";
String content="";


public ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
throws ServletException,Exception {

to_user=((FormBean)command).getUserid();
content=((FormBean)command).getContent();
System.out.println("to_user"+to_user);
System.out.println("content"+content);
//to_user ="user";
//content = "content";
Map myModel = new HashMap();
myModel.put("to_user", to_user);
myModel.put("content", content);
boolean temp=sendMail(to_user,content);
System.out.println(temp);
return new ModelAndView("show");
}





public boolean sendMail(final String to_user,final String content) throws MessagingException {



MimeMessagePreparator preparator = new MimeMessagePreparator() {
public void prepare(MimeMessage mimeMessage) throws MessagingException {
mimeMessage.setRecipient(Message.RecipientType.TO,
new InternetAddress(to_user));
mimeMessage.setFrom(new InternetAddress("support@easyuploader.com"));
mimeMessage.setText(content);
}
};
try{

mailSender.send((SimpleMailMessage) preparator);
}
catch(MailException ex) {
//log it and go on
System.err.println(ex.getMessage());
}

return true;
}
public MailSender getMailSender() {
return mailSender;
}


public void setMailSender(MailSender mailSender) {
this.mailSender = mailSender;
}


public SimpleMailMessage getMessage() {
return message;
}


public void setMessage(SimpleMailMessage message) {
this.message = message;
}
}

at the time of running am getting java.lang.ClassCastException

if it know how can it solve

from
madhuri
this is my context.html

<bean id="Connectmail" class="com.nanna.ConnectMail">
<property name="sessionForm"><value>true</value></property>
<property name="commandName"><value>formbean</value></property>
<property name="commandClass"><value>com.nanna.FormBean</value></property>
<property name="mailSender"><ref bean="mailSender"/></property>
<property name="message"><ref bean="mailMessage"/></property>
<property name="formView"><value>Home</value></property>
</bean>

<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host" value="64.79.170.116"/>
</bean>

<bean id="mailMessage" class="org.springframework.mail.SimpleMailMessage">
<property name="from" value="support@easyuploader.com"/>
</bean>

ConnectMail.java
public class ConnectMail extends SimpleFormController{
private MailSender mailSender;
private SimpleMailMessage message;
String to_user="";
String content="";


public ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
throws ServletException,Exception {

to_user=((FormBean)command).getUserid();
content=((FormBean)command).getContent();
System.out.println("to_user"+to_user);
System.out.println("content"+content);
//to_user ="user";
//content = "content";
Map myModel = new HashMap();
myModel.put("to_user", to_user);
myModel.put("content", content);
boolean temp=sendMail(to_user,content);
System.out.println(temp);
return new ModelAndView("show");
}





public boolean sendMail(final String to_user,final String content) throws MessagingException {



MimeMessagePreparator preparator = new MimeMessagePreparator() {
public void prepare(MimeMessage mimeMessage) throws MessagingException {
mimeMessage.setRecipient(Message.RecipientType.TO,
new InternetAddress(to_user));
mimeMessage.setFrom(new InternetAddress("support@easyuploader.com"));
mimeMessage.setText(content);
}
};
try{

mailSender.send((SimpleMailMessage) preparator);
}
catch(MailException ex) {
//log it and go on
System.err.println(ex.getMessage());
}

return true;
}
public MailSender getMailSender() {
return mailSender;
}


public void setMailSender(MailSender mailSender) {
this.mailSender = mailSender;
}


public SimpleMailMessage getMessage() {
return message;
}


public void setMessage(SimpleMailMessage message) {
this.message = message;
}
}

at the time of running am getting java.lang.ClassCastException

if it know how can it solve

from
madhuri
Hi to all
In my application i done, the email send to another. has done normal java program
but i need sping mail abstract.Is it possible through spring mail or not?
if it is possible give me some guidence
hi khan,every time you are asking to kajol


khan if it is possible send me the link of software
17 years ago
hi to all,
Am newly to the web services. How to create the web service in java, through eclipse? Shall I need to install any software in the system? What is beginning process of creating web service?

am waiting for your replay
17 years ago


what is tha my problkm is
the above code is woking for single table
but how to retrive the values at time from two table
any body is know the solution forword to me


[Edited to include code tags - Paul Sturrock]
[ October 11, 2006: Message edited by: Paul Sturrock ]
gupta
am not understood.Please clear
17 years ago
hi
Acutually
if( osName.equals( "Windows XP" ) )
{
cmd[0] = "cmd.exe" ;
cmd[1] = "/C" ;
}
so
what is the name of macthosh operating system name?
17 years ago
at the time of uploading a file through web application we need to convet a file format. i done the upload file.

but i need converting file format.like doc pdf,pdf to doc ......

is it possible or not ?
i used CD.Exe tool but this tool is not supported fully

if their is any another solution is their give me reply as soon as possible
17 years ago
i need convertion of file one format to another format
like pdf to doc
doc to pdf
so i got one result through one tool and it is working
but is their any possible is their without tool
or any winbatch script is their
it will be working on web application

am waiting for your reply
17 years ago
am running the winbach commands through sevlet with help of convert doctool.
i worte the below code.but am not getting any result.


package com.nanna;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ServletEx extends HttpServlet {

public ServletEx() {
super();
}
public void destroy() {
super.destroy();
}
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {

response.setContentType("text/html");
PrintWriter out = response.getWriter();
String name=(String)request.getParameter("file1");

try
{
String osName = System.getProperty("os.name" );

String[] cmd = new String[3];

int j=name.length();

String name1=name.substring(0,j-3);



if( osName.equals( "Windows XP" ) )
{
cmd[0] = "cmd.exe" ;
cmd[1] = "/C" ;
cmd[2] = "ConvertDoc /S"+name+" /F9 /T "+ name1+"TXT /C12";

}
else if( osName.equals( "Windows 95" ) )
{
cmd[0] = "command.com" ;
cmd[1] = "/C" ;
cmd[2] = name;
}

Runtime rt = Runtime.getRuntime();
out.println("Execing " + cmd[0] + " " + cmd[1]
+ " " + cmd[2]);
Process proc = rt.exec(cmd);
// any error message?
StreamGobbler errorGobbler = new
StreamGobbler(proc.getErrorStream(), "ERROR");

// any output?
StreamGobbler outputGobbler = new
StreamGobbler(proc.getInputStream(), "OUTPUT");

// kick them off
errorGobbler.start();
outputGobbler.start();

// any error???
int exitVal = proc.waitFor();
out.println("ExitValue: " + exitVal);
} catch (Throwable t)
{
t.printStackTrace();
}
out.flush();
out.close();
}

private String subString(String name, String string) {
return null;
}

public void init() throws ServletException {
// Put your code here
}

}
/*
* Created on Sep 25, 2006
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.nanna;

import java.io.*;
public class StreamGobbler extends Thread{
InputStream is;
String type;

StreamGobbler(InputStream is, String type)
{
this.is = is;
this.type = type;
}

public void run()
{
try
{
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String line=null;
while ( (line = br.readLine()) != null)
System.out.println(type + ">" + line);
} catch (IOException ioe)
{
ioe.printStackTrace();
}
}
}
i got this below out put but not any result


Execing cmd.exe /C ConvertDoc /SD:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\BEL.doc /F9 /T D:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\BEL.TXT /C12 ExitValue: 1

is their any modifications require.giveme replay to me
17 years ago
hi
is The above code runing in the sevelt or not?
17 years ago