D delphi_learn Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-12 #1 在JSP中如何比较字符串?如何知道字符串中字符串A是否包含有字符B?
K kevinfu Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-12 #2 用 indexOf String str1="abc"; String str2="a"; if (str1.indexOf(str2) != -1) { System.out.print(str1 + " contain " str2); }
用 indexOf String str1="abc"; String str2="a"; if (str1.indexOf(str2) != -1) { System.out.print(str1 + " contain " str2); }
G goddy Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-12 #3 String A; if A.equal("test") { 相等; }
D delphi_learn Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-15 #5 为什么这样写else if(session.getValue("productlist").indexOf(request.getParameter("item"))!=-1) 会提示出错?找不到方法。我已加入了:<%@page import="java.lang.*" %> <%@page import="java.util.*" %> <%@page import="java.io.*" %>
为什么这样写else if(session.getValue("productlist").indexOf(request.getParameter("item"))!=-1) 会提示出错?找不到方法。我已加入了:<%@page import="java.lang.*" %> <%@page import="java.util.*" %> <%@page import="java.io.*" %>
E eguy Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-21 #6 把session.getValue换成session.getAttribute