Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JSPµÄÒ»¸öÎÊÌâ - Java / Web ¿ª·¢

֮ǰÎʹýÒ»¸öÎÊÌ⣬һ¸öÓÐÈý¸ö¿ò¼ÜµÄÒ³Ã棬ÔÚij¸öÒ³ÃæÀïÌí¼Ó³¬Á´½Ó£¬Ê¹Á½¸ö¿ò¼ÜͬʱÌøת
¾­¸ßÊÖÖ¸µã£¬Õâ¸öÎÊÌâ¿ÉÒÔÓÃJS½Å±¾½â¾ö
ÎҵĴúÂëÈçÏ£¬ÏÖÔÚÎÊÌâ±ä³É£¬Ã¿¸ö³¬Á´½Óµã»÷µ÷ÓÃJS½Å±¾ºóµÄµØÖ·¶¼Ò»ÑùÁË£¬¶øÎÒÏëÒªµÄÊÇÿ¸ö³¬Á´Ëùµ÷ÓõĽű¾ÀïÌøתµÄµØÖ·¶¼ÊDz»Ò»ÑùµÄ£¬Çë¸ßÊÖÖ¸µã¸ÃÔõô½â¾ö¡£¡£¡£
ÎÒ²»ÖªµÀÎÒÎÊÌâ±íÊöµÄÊDz»ÊÇÇå³þ¡£¡£¡£
Java code:

<%
String DBurl = "jdbc:mysql://localhost:3306/tss";
String sql,courseUrl="",courseNavUrl="";
//½øÐÐÊý¾Ý¿â²Ù×÷
%>

<%
try
{
Connection conn = DriverManager.getConnection(DBurl,"root","admin");
Statement stmt = conn.createStatement();
sql="select enrollment.courseId,courses.courseName,users.realName "
+"from enrollment,courses,users "
+"where enrollment.studentNumber='"+(String)session.getAttribute("userNumber")+"'"
+"and courses.courseId=enrollment.courseId and users.userNumber=courses.instructorId";

ResultSet rs = stmt.executeQuery(sql);

while(rs.next())
{

%>
<tr>
<td>
<%=rs.getString(1) %>
<%
courseUrl="/Web/Courses/"+rs.getString(1)+"/index.jsp";
courseNavUrl="/Web/Courses/"+rs.


Ïà¹ØÎÊ´ð£º

JSP/Servlet½»»¥ - Java / Web ¿ª·¢

JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
  JSPÒ³Ã潫²ÎÊýPOST¸øservlet
  
  ÒªÇóÈçÏÂ;
  1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......

¹ØÓÚAJAXºÍJSPµÄһЩСÎÊÌâ¡« - Java / Web ¿ª·¢

ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
  %>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......

java windows7 MSSQL - Java / Java SE

ʹÓÃjavaÔÚwindows7 32λÏÂÁ¬½ÓMSSQL¡£
Á½Ì¨»úÆ÷£¬windows7 32룬ÔÚ¿ØÖÆÃæ°åÀïÃæÈ«²¿ÉèÖÃÓïÑÔºÍÇøÓòÑ¡Ïenglish-unitedstates
ΨһÇø±ðÖ»ÓÐÔÚ°²×°SQL server 2008µÄʱºò Ñ¡ÔñµÄ×Ö·û¼¯²»Ò»Ñù£¬
exec sp_helpsor ......

javaÖеÄ×¢½â¿ÉÒÔÓÐÄÄЩ£¿ - Java / Java EE

È磺 @superwaring("unchecked");
Õâ¸öÀïÃ涼¿ÉÒÔÈ¡ÄÄЩֵ°¡£¬»¹ÓÐÀàËÆµÄ @superwaring±êÇ©ÓÐÄÄЩ°¡
ûÓùý¡£¡£

¿´jeeµÄapi
javax.persistenceÀï
@superwaring("unchecked");Ö»ÊǺöÂÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ