|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Member
Iscritto dal: Aug 2004
Messaggi: 83
|
[JAVA]Si può avere una servlet come parametro di un custom tag?
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 }
__________________
SoftOXY!2004 |
|
|
|
|
|
#2 |
|
Member
Iscritto dal: Aug 2004
Messaggi: 83
|
......
non so se si può avere, ma ho risolto facendo stampare al custom tag un javascript che richiama la servlet (AJAX per intenderci).
se qualcuno è interessato me lo faccia sapere e lo spiego in dettaglio.
__________________
SoftOXY!2004 |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 12:16.



















