P.Praveen Jesudhas

Greenhorn
+ Follow
since Jul 23, 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 P.Praveen Jesudhas

Hi,

Is there a way to read, files present in a folder iteratively in a particular logic using any predefined classes in java api.

Thanks in advance
15 years ago
we have been assigned a project in which files on a remote unix os is to be used like a database for a jsp front end application.Are there any packages or classes in java which would enable easy access of the file, and to extract and insert data effectively into the unix files from the jsp front end application.
1'm sorry, i didn't communicate effectively.
we have been assigned a project in which files on a remote unix os is to be used like a database for a jsp front end application.Are there any packages or classes in java which would enable easy access of the file, and to extract and insert data effectively into the unix files from the jsp front end application.
15 years ago
JSP
how to use unix files on remote systems as backend for web application using java

thanks in advance
15 years ago
JSP
This is the code i wrote.(it works properly for server to one client communication)
public class server
{
Socket s;
JFrame fr;
JTextArea ta;
JTextArea tb;
JButton b;
JPanel p;
BufferedReader br;
PrintWriter pw;
ServerSocket ss;
server()
{

fr=new JFrame("Client Window");
p=new JPanel();
b=new JButton("Send Data");
ta=new JTextArea(3,50);
tb=new JTextArea(30,50);
b.addActionListener(new sending());
p.add(ta);
p.add(b);
p.add(tb);
(fr.getContentPane()).add(p);
fr.setSize(400,300);
fr.setVisible(true);
}




public static void main(String a[])throws Exception
{
server x=new server();
x.makeCon();
x.createProcess();
Thread.currentThread().sleep(500);
}

void createProcess()
{
Thread t=new Thread(new clientread());
t.start();
}


void makeCon()
{
try
{
ss=new ServerSocket(3500);
s=ss.accept();
br=new BufferedReader(new InputStreamReader(s.getInputStream()));
pw=new PrintWriter(s.getOutputStream());
System.out.println("Connection Established With client");
}
catch(Exception e)
{
}

}

class sending implements ActionListener
{
public void actionPerformed(ActionEvent ae)
{
try
{
pw.println(ta.getText());
pw.flush();
ta.setText("");
ta.requestFocus();
}
catch(Exception e)
{
}

}
}



class clientread implements Runnable
{
public void run()
{
String s;
try
{

while((s=br.readLine())!=null)
{
tb.append(s+"\n");
}

}
catch(Exception e)
{
}

}

}



}
hi,
i created an application which communicates between a server and one client using serversocket class.is there any way to find the instant at which a client connects and then assign a seperate socket for it. thanks in advance
i'm doin a project on image processing in java.

are there any predefined functions to convert an image into a two dimensional array

and to find the the intensity of pixel in the image
16 years ago
thanks for the reply.But i actually meant the difference between struts 1.1 and 1.2.9 for using tiles .not struts 1.x and 2
16 years ago
hi,
What are the changes that has to be done in the config files ,while moving moving from struts 1.1 to struts 1.2.9 to use tiles.

thanks in advance
16 years ago
hi,
i've been working with tiles framework for designing an application.i defined the definitions in tiles-defs.xml .i'm getting errors while mapping a global forward to a definition.can someone please help me on this

tiles-defs.xml:
<tiles-definition>

<definition name="base.definition" path="/tiles/template.jsp">
<put name="title" value="LIBRARY MEMBERSHIP FORM"/>
<put name="header" value="/tiles/top.jsp"/>
<put name="bottom" value="/tiles/bottom.jsp"/>
<put name="menu" value="/tiles/left.jsp"/>
<put name="body" value=""/>
</definition>

<definition name="/content.page" extends="base.definition">
<put name="title" vlaue="LIBRARY FORM"/>
<put name="body" value="/tiles/content.jsp"/>
</definition>


<definition name="/adduser.page" extends="base.definition">
<put name="title" vlaue="ADDING USER"/>
<put name="body" value="/tiles/adduser.jsp"/>
</definition>

<definition name="/deleteuser.page" extends="base.definition">
<put name="title" vlaue="DELETING USER"/>
<put name="body" value="/tiles/deleteuser.jsp"/>
</definition>
<definition name="/editdetail.page" extends="base.definition">
<put name="title" value="EDITING DETAILS"/>
<put name="body" value="/tiles/editdetails.jsp"/>
</definition>

<definition name="/search.page" extends="base.definition">
<put name="title" value="SEARCH USER"/>
<put name="body" value="/tiles/search.jsp"/>
</definition>

</tiles-definition>



struts-config.xml:
<global-forwards>
<forward name="adduser" path="adduser.page"/>
<forward name="deleteuser" path="deleteuser.page"/>
<forward name="editdetails" path="editdetail.page"/>
<forward name="search" path="search.page"/>
</global-forwards>
16 years ago
thank you guyz
17 years ago
can you please tell me the basic purpose of servlet's and ejb.
17 years ago
Thanks for the info i'm a bit relieved
17 years ago
Congratulations




------------------------------------
SCJP 5.0
17 years ago