Consider the following
<%@ page language="java" import="com.mypackage.MyBean" %>
<
jsp:useBean id="myBean" class="MyBean"/>
<jsp:setProperty name="myBean" property="myProperty" value="<%=request.getParameter("sentProperty")%>"/>
MyBean.java
Package com.mypackage;
Public class MyBean
{
private
String myProperty;
public MyBean(String myProperty)
{
this.myProperty= myProperty;
}
public void setMyProperty(String myProperty)
{
this. MyProperty= myProperty;
}
public String getMyProperty()
{
return myProperty;
}
}
Will this give a compilation/translation error? (Beans cannot have constructors with arguments)