hiii everyone,

I'm novice to this technology. I'm facing a problem in project development, in which I'v to collect the data temporarily during a form fill up which need to contain different details about a person which will be classified as personal details, academics details, project and internship details, achievements details etc in a tabbed format.

Different tabs will contain its corresponding details with a button named as NEXT. At the click of NEXT button the next tab will be visible and the same process will carry on....

At the final tab..there will be a SUBMIT button and hence the information of all the tabs will finally be inserted in the database...

The problem wch i'm facing are:-
1) how to create a tabbed panel in a webpage
2) how to temporarily store data at the click of NEXT button from the diff tabs and finally inserting t to d/b at the click of SUBMIT button n final tab panel...

Its the request to everyone, please suggest some idea to proceed with the above problems...

Session is the answer.
page1.jsp

<form method="post" action="page2.jsp">
    No <input type="text" name="no"/>
   <input type="submit" name="cmd" value="Next"/>
 </form>

page2.jsp

<%
    String cmd=request.getParameter("cmd");
    if(cmd!=null){
    String ar[]=new String[3];
    ar[0]=request.getParameter("no");
    session.setAttribute("ar",ar);
    }
%>
<form method="post" action="page3.jsp">
    Name <input type="text" name="name"/>
   <input type="submit" name="cmd1" value="submit"/>
 </form>

page3.jsp

<%
    String cmd=request.getParameter("cmd1");
    if(cmd!=null){
    String ar[]=(String [])session.getAttribute("ar");
    ar[1]=request.getParameter("name");
   }
%>
<form method="post" action="page4.jsp">
    Address <input type="text" name="address"/>
   <input type="submit" name="cmd3" value="submit"/>
 </form>

page4.jsp

String ar[]=(String [])session.getAttribute("ar");
    ar[2]=request.getParameter("address");

    for(int i=0;i<ar.length;i++) {
        out.println(ar[i]);
   }

PS:I have not test this code.

thanx adatapost...the code s working...but still the tabbed pane problem s not solved....is there any tool by which i can embed t n the webpage???

n addition i wanna add one more query....can this problem be solved using beans??

@OP : how to create a tabbed panel in a webpage?
Use Html & CSS.
@OP:can this problem be solved using beans??
Yes. The scope of beans must be session.

thanx adatpost.....the problem s solved using bean.....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.