Hai to all..
im new to struts..
i developed one struts application..
for just getting username,lastname and to print it..
after tat i thought to create one servlet class for some purpose..
in this servlet i would like to access the bean(DetailsForm) to get username, lastname fields..

package Java.strutsex1;

import Java.strutsex1.DetailsForm;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import javax.servlet.http.*;
import java.io.*;
import javax.servlet.*;
import java.sql.*;

public class DataBase extends HttpServlet
{
public void doGet(HttpServletRequest request, HttpServletResponse res)throws IOException,ServletException
{

PrintWriter out=res.getWriter();
out.println("Added");
DetailsForm detailform=new DetailsForm();
String fs=detailform.getFirstName();
out.println("hai"+fs);



}
}
here im getting
Added
hai (here firstname has to get print after hai..)

as result...that is i couldnt get firstname..wats wrong with this code...?
is it correct wat i did...?
or is there any other ways..?

is it possible to access the bean in the servlet..? if so how..?
help me please..