Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to extends one jsp page to another jsp page with realtime
example?

Answer Posted / shravankumar prajapati

TEST1.jsp

<html>
<Body>
Befor InClusion

Enter Your Name
<Input Type="TextBox" Name="User"
Value="Prakash"/>
<%
<Jsp:include page="TEST2.jsp"/>
%>

After Inclusion
</Body>
</Html>

TEST2.jsp
<html>
<Body>
<%
String user=request.getParameter("User");
out.println("Welcome To Java"+user);

%>
</Body>
</html>

Is This Answer Correct ?    15 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types scripting elements in jsp?

927


Can we use javascript in jsp?

949


Which tags are used for bean development?

877


What do you know about jsp tags? Explain how you understand the action tag and jsp action elements.

986


What are action tags?

892


What is jsp servlet?

1049


What are jsp elements?

948


Differentiate between response.sendredirect(url) and ?

1030


Mention the implicit objects in a jsp.

1008


How session is achieved in JSP?(once user logs out,if he press back button of browser he should not be allowed to same page)

2441


Can you override jspinit() method? If yes, in which cases?

964


How to use jsp el to get http method name?

939


What is iselignored in jsp?

970


What are the jsp tag?

958


Can you make use of a servletoutputstream object from within a jsp page?

980