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
About Question com.enthuware.ets.scwcd.v5.2.113 :
Moderators: Site Manager, fjwalraven
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scwcd.v5.2.113 :
String does have a no args constructor. Integer doesn't.
HTH,
Paul.
HTH,
Paul.
-
- Posts: 60
- Joined: Wed Apr 23, 2014 6:38 pm
- Contact:
Re: About Question com.enthuware.ets.scwcd.v5.2.113 :
I think the author meant "mystring" above, and pasted "myint" from another question.myint = (java.lang.String) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "java.lang.String");
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scwcd.v5.2.113 :
Fixed. thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 14 guests