In your first post you mention that you receive a blank page when you call
https://localhost/app_name/UpdateData.htm?id=1. In a subsequent email you
mention that you have a velocity object defined as $msg. Does the value for
$msg print out on the page, or is the page really blank?
Can you place other Click controls in the Page and have them display when
called? For example, add the following to the Page constructor, then call the
.htm page and verify if it gets rendered:
public ThisPage() {
Radio radio = new Radio("value", "A radio button", "radioName");
this.add(radio);
}
You might also do something like this to see if you can grab the 'id' request
parameter. Ie, place this somewhere in the constructor:
System.out.println(Context.getThreadLocalContext().getRequest().getParameter("id"));
Good luck,
Nick.
-----Original Message-----
From: mkgolfer [mailto:[email protected]]
Sent: Tuesday, October 04, 2011 12:23 PM
To: [email protected]
Subject: RE: Cannot call Click Standalone Servlet
Hi Nicholas,
UpdateDataPage is extending the Page Class and the click.xml has the Page
packages all mapped correctly. I have about a dozen Click servlets/Pages and
all work fine. The only difference is I am not invoking these from a straight
HTTP request...they are all invoked either by redirects or forwards via Action
Links or Page Links.
I have another of this type of Click Servlet called ExportDataPage where I
export data to and Excel file. The difference is I invoke the ExportDataPage
from an ActionLink on my home page.
So again, I am at a loss.
Thanks for the info,
Mark K.
--
View this message in context:
http://click.1134972.n2.nabble.com/Cannot-call-Click-Standalone-Servlet-tp6859177p6859829.html
Sent from the click-user mailing list archive at Nabble.com.