Hi,
Plz help me answer the following query:
Consider the code for a
java bean
(public class TicketBean
{
int price;
String name;
// assume usual getters and setters.
}
):
Also consider the following code for ticketview.jsp:
<html>
<head></head>
<body>
<
jsp:useBean id="ticket" class="TicketBean"/>
<jsp:setProperty name="ticket" property="*"/>
Name : <%=ticket.getName()%>
Price : <%=ticket.getPrice()%>
</body>
<html>
Which of the following lines will be in the output of the jsp page, if it is accessed through URL:
http://servername/ticketview.jsp?name=AAA Do you think Since Price is not set It will give Error? If now what will happen when value is accessed.