|
|
|
Как можно использовать redirect в tapestry?
|
|||
|---|---|---|---|
|
#18+
Как можно использовать redirect на google.com внутри моей формы в портлете, используя "submit" или другой компонент? Я пытаюсь сделать так: View.html <form jwcid="form@Form" listener="listener:doAction"> <input type="submit" value="send"/> </form> View.java public abstract class View extends BasePage{ @InjectObject("service:tapestry.portlet.ActionResponse") public abstract javax.portlet.ActionResponse getActionResponse(); public void doAction() throws PortletModeException, IOException { getActionResponse().sendRedirect("http://www.google.com"); } } Но это не работает!!! Я получаю следующую ошибку: org.apache.hivemind.ApplicationRuntimeException Property 'actionResponse' of <OuterProxy for tapestry.portlet.PortletRequestGlobals(org.apache.tapestry.portlet.PortletReque stGlobals)> is null. java.lang.NullPointerException Property 'actionResponse' of <OuterProxy for tapestry.portlet.PortletRequestGlobals(org.apache.tapestry.portlet.PortletReque stGlobals)> is null. Help me please!!! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 04.09.2006, 14:01 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=701&tid=2148236]: |
0ms |
get settings: |
7ms |
get forum list: |
12ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
62ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
21ms |
get tp. blocked users: |
1ms |
| others: | 228ms |
| total: | 344ms |

| 0 / 0 |
