jspä¸è¶
é¾æ¥ä¼ å¼ä½¿ç¨é®å¼å¯¹æ ¼å¼ï¼å¤ä¸ªé®å¼å¯¹ä¹é´ç¨&åéï¼å³
<a href="show.jsp?name=tom&pass=123&score=78,5">è¿æ¥</a>
åå¼å使ç¨request对象å³å¯
<%
String username=request.getParameter("name");
String userpass=request.getParameter("pass");
String score=request.getParameter("score");
%>
注æï¼
1ãè¶
é¾æ¥ä¼ å¼ä¼ éçé½æ¯Stringç±»åï¼å¦æéè¦å
¶ä»ç±»åï¼åéè¦è¿è¡ç±»å转æ¢
2ãè¶
é¾æ¥ä¼ å¼æé¿åº¦éå¶ï¼æé¿ä¸è½è¶
è¿255个å符ï¼ä»?åå¼å§ç®èµ·
温馨提示:内容为网友见解,仅供参考