0

jsp include does not work in zk 2.4.0

asked 2007-06-13 04:50:27 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4359665

By: zk_newbie

Hi,

I have been using zk since version 2.0. Recently, I upgraded it to 2.4 and the include does not working in jsp pages(I include a header file admin.zul in jsp
pages.)

<jsp:include page="/resources/header/admin.zul" flush="true" >

It work with version 2.0, 2.2, and 2.3. I'm not sure why it doesn't work with 2.4. It doesn't through any exception. I would appreciate any help or suggestions.
Thanks



delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2007-06-13 12:21:30 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4360140

By: henrichen

Please provide example codes that we can test here. Thanks.

/henri

link publish delete flag offensive edit

answered 2007-06-13 15:58:17 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4360538

By: zk_newbie

Here are the example code. The test.jsp include test.zul

test.jsp
----------------------------------------------------------------------
<table cellspacing="1" border="1" width="100%">
<tr>
<td align="center"><jsp:include page="test.zul" flush="true"/></td>
</tr>
</table>

test.zul
----------------------------------------------------------------------
<window title="groupbox demo" border="normal">
<vbox>
Which kind of fruit do you want?
<groupbox width="300px">
<caption label="fruits"/>
<radiogroup onCheck="fruit.value = self.selectedItem.label">
<radio label="Apple"/>
<radio label="Orange"/>
<radio label="Banana"/>
</radiogroup>
</groupbox>
<hbox>You have selected :<label id="fruit"/></hbox>
</vbox>
</window>
------------------------------------------------------------------------

I can display test.zul but I can't see anything on test.jsp

Thanks



link publish delete flag offensive edit

answered 2007-06-15 03:43:54 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4363521

By: zk_newbie

Hi Henri,

Do you have any idea? I rollback to 2.3 and it work fine. If I remove <table>, <tr>, <td> it work.

test.jsp
----------------------------------------------------------------------
<jsp:include page="test.zul" flush="true"/>

Does anyone have the same problem with 2.4? Please help. Thanks



link publish delete flag offensive edit

answered 2007-06-16 13:31:02 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4365917

By: tomyeh

There is a lot of content before jsp:include, right?

I think it is a bug (and just fixed):
https://sourceforge.net/tracker/index.php?func=detail&aid=1738343&group_id=15276
2&atid=785191

Tom

link publish delete flag offensive edit

answered 2007-06-16 14:47:06 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4365999

By: zk_newbie

Thanks Tom

Do you know when is the next release? Thanks again

link publish delete flag offensive edit

answered 2007-06-17 06:44:21 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4366507

By: henrichen

You can try the latest fresh build.

http://sourceforge.net/project/showfiles.php?group_id=152762&package_id=218698

/henri

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2007-06-13 04:50:27 +0800

Seen: 162 times

Last updated: Jun 17 '07

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More