About Question com.enthuware.ets.scwcd.v5.2.113 :

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
ETS User

About Question com.enthuware.ets.scwcd.v5.2.113 :

Post by ETS User »

Why this statement (<jsp:useBean id="mystring" class="java.lang.String" />) compiles and runs properly and this other (<jsp:useBean id="myint" class="java.lang.Integer" />, Question 10) NOT?

Neither has not a public no-args constructor. ¿Why the behavior is diferent?

Best regards

Jose

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

Re: About Question com.enthuware.ets.scwcd.v5.2.113 :

Post by admin »

String does have a no args constructor. Integer doesn't.

HTH,
Paul.

bluster
Posts: 60
Joined: Wed Apr 23, 2014 6:38 pm
Contact:

Re: About Question com.enthuware.ets.scwcd.v5.2.113 :

Post by bluster »

myint = (java.lang.String) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "java.lang.String");
I think the author meant "mystring" above, and pasted "myint" from another question.

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

Re: About Question com.enthuware.ets.scwcd.v5.2.113 :

Post by admin »

Fixed. thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest