Classes imported in servlet is not resolved in jsp -


in web project, have class a, class b (these classes in other project,but being imported successfully)which imported in compservlet.java . , there listcomp.jsp , importing compservlet.java. problem listcomp.jsp not able see class , b. it's giving error type not resolved type.

imports not transitive. if class imports class b, , class c imports class a, class c doesn't automatically import class b.

if need use class b without typing quelified name every time (com.foo.bar.b), need import it. it's simple that.

that said, concur balusc. having java code in jsps ugly, , should avoided.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -