softoxy
18-01-2008, 10:36
E' possibile passare ad un custom tag una servlet ed eseguirla?
per esempio il mio custom tag:
public class CTag extends SimpleTagSupport {
private Servelt;
public void doTag() throws JspException, IOException {
try {
JspWriter out = getJspContext().getOut();
--> out.print(servlet?id=1);
richiamare una servlet che in uscita mi fornisce un risultato in base ad un parametro
out.print("");
}
catch (Throwable t) {
t.printStackTrace();
throw new JspException(t);
}
}
????????
grazie
}
per esempio il mio custom tag:
public class CTag extends SimpleTagSupport {
private Servelt;
public void doTag() throws JspException, IOException {
try {
JspWriter out = getJspContext().getOut();
--> out.print(servlet?id=1);
richiamare una servlet che in uscita mi fornisce un risultato in base ad un parametro
out.print("");
}
catch (Throwable t) {
t.printStackTrace();
throw new JspException(t);
}
}
????????
grazie
}