Change

After open the page console error: userName always be resolved to a variable
/com/a. sp code

y.j sp

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Try to put the & lt; % @ the include file="/com/a. sp "% & gt; Replace
Will report the same error, JSP compile loading sequence might be the problem?
CodePudding user response:
The JSP now nobody use, & lt; % %=userName & gt; For this kind of writing try ${userName}, check the userName parameter from anyway, have a definition?CodePudding user response:
Can you send the complete code?CodePudding user response: