Hi Derek,

Derek Broughton wrote:
Appfuse 2.0.1, Struts basic

Can anybody suggest what I need to do to figure out why a page simply
refuses to display?  If I'm on my accountList.jsp (where the URL
is /accounts.html) page, and click on a link to edit an account
(url /editAccounts.html, page is accountForm.jsp), nothing happens - no
error message, no change of the page, only the address box changes (to the
correct link) but if I refresh the page I will get a complete blank
and "View Source" is also empty.
A very similar problem was discussed in another thread recently:

http://www.nabble.com/appfuse%3Agen---generated-list-form-works-fine%2C-edit-form-is-all-blank-tt15949459s2369.html#a15949459

That user had a specific problem with an automatically generated "many-to-one" form (in Appfuse, these are always incompletely generated - there is a comment in the JSP indicating where developer intervention is required to make the form work and there have been many threads about this issue.

As I mentioned in my response to that thread, I've found that a number coding errors can cause this problem - nothing appears in any logs. My approach to the problem is always to comment out the bulk of the form with JSP comments <%-- --%> until I get the form displaying properly and then move the comments bit by bit until I work out which bit of the JSP is causing the problem.
It appears to be a problem with velocity, as velocity.log shows a sequence
of:

Left side ($count) of addition operation has null value. \
 Operation not possible. cssHorizontalMenu.vm [line 2, column 28]
RHS of #set statement is null. Context will not be modified. \
 cssHorizontalMenu.vm [line 2, column 1]
Left side ($count) of '==' operation has null value. \
 If a reference, it may not be in the context. Operation not possible. \
 cssHorizontalMenu.vm [line 9, column 23]
Left side ($count) of '==' operation has null value. \
 If a reference, it may not be in the context. Operation not possible. \
 cssHorizontalMenu.vm [line 55, column 21]

cssHorizontalMenu.vm is greek to me, but unmodified by me.
I see those lines all the time in an application that works without any problem, so I suspect they may not be related to your issue.

HTH,

Rob Hills
Waikiki, Western Australia

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to