About Question enthuware.jwpv6.2.997 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
wilkericeri
Posts: 1
Joined: Fri Mar 29, 2013 5:13 pm
Contact:

About Question enthuware.jwpv6.2.997 :

Post by wilkericeri »

The attribute class no need a fully qualified name?

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.997 :

Post by admin »

Not if it is imported. Or if it is in default package.
-Paul.
If you like our products and services, please help us by posting your review here.

tanzwud
Posts: 19
Joined: Mon Sep 01, 2014 9:45 pm
Contact:

Re: About Question enthuware.jwpv6.2.997 :

Post by tanzwud »

Why 2 and 5 are valid?
To be visible for Jsp servlet Java Bean should have a package otherwise the page will not compile. I cannot navigate where I read about probaly is related to how compileer is looking for classes. If bean is in default package the compiller will try to find the class in same package as generated servlet class. But the problem is that the generated jsp class is in its own package which is not default.
When code is tested there is a compilattion error.

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.997 :

Post by admin »

I couldn't find anywhere where such requirement is mentioned. Anyway, the question is not really about this so I have added a package statement to avoid this confusion altogether.

thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests