reset password
Author Message
aphopha
Posts: 13
Posted 12:17 Feb 19, 2016 |

Hello Dr. Sun,

I am finding error in jsp file. Although it is running perfectly.

javax.servlet.jsp.PageContext cannot be resolved to a type.

How should i solve this error in my jsp?

 

Thanks,

Anuj Phophalia

cysun
Posts: 2935
Posted 17:50 Feb 19, 2016 |

If you used JSP scripting elements and got the error, you should remove the scripting elements. If you didn't use JSP scripting elements but still got the error, you can ignore the error.

aphopha
Posts: 13
Posted 18:02 Feb 19, 2016 |

Hello Dr. Sun,

 

Is it ok to use JSP scripting element in the code?

 

Thanks,

Anuj Phophalia

cysun
Posts: 2935
Posted 18:04 Feb 19, 2016 |

It's not OK. It's OK to use JavaScript, but JSP Scripting Elements (<% %>, <%= %>, and <%! %>) are not allowed.