网站的前台和后台要分开两个项目写吗,新手求解答

比如我现在要做一个电子商务的系统,这个系统有前台和后台,前台主要是商品的展示,以及用户下订单什么的。后台是商品的发布,就是增删改查等,那么我这个系统要把前台和后台分开成两个项目下吗,这两个项目操作同一个数据库。如果是分开成两个项目的话,那我在后台发布商品的时候,图片上传的是在后台这个项目的某个文件夹下面,前台又该怎么去访问到这些图片呢,而且我的前台和后台是不是要用两个不同的域名?这两个域名分别指向同一个IP地址同一个端口的两个不同的工程?新手求解答,麻烦各位大虾解决下,小弟在此谢谢了!!!

3个回答

不少网站方面的项目前后台都是分开的,也就是说两个不同的web应用。我们以前做过的电子商务网站的架构就是多项目的。至于图片,一般都有专门的图片服务器。在两边的应用中只是存相对于文件服务器的路径。展示时拼装连接显示图片。
如path属性为/file/pic/test.jpg 文件服务器上的相对路径
展示时:http://图片服务器ip+商品.path

结贴吧,哈哈。

[img][/img] :o :lol: :wink: :arrow: :idea:

可以用nginx

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
网站 前台+ 后台
网站 前台+ 后台 合适初学 帮助掌握简单的网站制作过程!
python实现网站的前台与后台
包括整个网站的前台与后台,通过对后台数据的修改,实现对新数据的前台展示。主要运用tornado框架,分页那里就别看了 ,写的贼复杂,啊哈哈哈哈
网站创建前台后台
asp.net做网站rn怎样创建前台和后台rn创建后是放在一个项目中的两个文件夹中rn还是放在一个解决方案的两个项目中rn如果这样 数据库放在哪里呢rn之后又怎样上传rn请大师指教
网站开放,前台后台
小弟做的网站再次开放,rn网址:http://www.hnxhtx.com/hyrn后台:http://www.hnxhtx.com/hy/admin_sys.asprnrn注要是让大家看下安全性,rnrn进入后台者给50分,你的ip会被记录下来,rnrn最后能在后台删一记录,(后台只有删管用,OK)rnrn写出你的ip马上给分,
电子商务网站(前台+后台)
自己做的一个网站,基本功能都实现了。
GAT项目前台到后台
1.将前台代码放到 2.修改IP地址,设置为自己本地的IP地址 3.测试库配置 4.浏览器访问地址:http://localhost:8080/sgat/login.action superuser jsecode@123
前台写 ,后台找不到!
前台写 ,后台找不到!rn后台写this.oHead就提示没有声明啥的,以前一直好好的,今天不知道咋回事儿,
ASP.NET MVC 如何将前台后台分开?
我是ASP.NET MVC新手, 正在学习ASP.NETMVC.rn做网站一般都分离了前台后台, 但是asp.net mvc中不知如何分离.
博客系统一个前台一个后台分开的
这是一个博客系统的文件 需要用AppServ打开
网站后台和前台是分开的,前台怎么显示后台的图片
现在我用asp.net做了一个网站后台和前台,两个是分开相当于两个网站,但是有一个问题是,后台上传的图片,数据库里面都是绝对路径,如果域名一变从后台上传的图片前台就显示不出来了,我想换成相对路径,那前台怎么读取这个图片呢?有什么好方法?
一个jsp网站,前台和后台
jsp做的网站,包括前台和后台。这是一个很实用的网站。希望大家能从此学到东西。
asp 网站 后台 前台 模板
这是我给一个小口腔门诊开发的一个网站<br><br>支持后台功能, 后台支持word复制修改前台页面 样式保留不会丢失<br><br>本代码拿来就可以直接使用<br><br>希望各位朋友看完后多给点建议<br><br>
asp.net后台系统+前台网站
asp.net网站开发基本过程,有利于小白开发,通过本源码可知开发全过程。
可以使用PHP写前台c#写后台吗
听说很多大型项目都是PHP前台,Java写后台,但是可以使用PHP写前台c#写后台吗
又是后台转前台。后台的SQL在前台怎么写呢??
这个是后台写的按键,主要是红字那部分不知道在前台JS中该怎么写~试过很多都抓不到数值rnprotected void Button3_Click(object sender, EventArgs e)rn rn string cbl = " ";rn string sqlSelect="";rn string sqlFrom="";rnrn for (int i = 0; i < cblCust_id.Items.Count; i++)rn rn if (cblCust_id.Items[i].Selected == true)rn rn rn [color=#FF00FF]cbl = cblCust_id.Items[i].Value;rn sqlSelect += "P" + cbl + ".Stock P" + cbl + ", S" + cbl + ".tr_qty S" + cbl +"";rn sqlFrom += " left join pd120 P" + cbl + " on P" + cbl + ".item_id=P1.item_id and P" + cbl + ".hou_no='" + cbl + "'"rn + " left join (select item_id,sum(tr_qty)tr_qty from sa395 "rn + " where tr_date>='2011/01/01' and tr_date<'2011/01/01' and substring(sale_id,1,6)='" + cbl + "' "rn + " group by item_id) S"+cbl+" on S"+cbl+".item_id=P1.item_id ";[/color]rn rn rn if (cbl != "")rn rn cbl = cbl.Substring(0, cbl.Length - 1);rn Response.Redirect("SaRight.aspx?SelectSql=" + sqlSelect+"&FromSql=" +sqlFrom);rn rn elsern rn cbl = "空";rn Response.Write(" ");rn rn
vi写sh,新手求解答
not found报错是为什么?[img=https://img-bbs.csdn.net/upload/201704/18/1492497755_79890.jpg][/img][img=https://img-bbs.csdn.net/upload/201704/18/1492497771_725898.jpg][/img]
初做项目,两个小问题求解答
1。日期的年、月、日分别存入数据库的三个字段rn查询时用DATAGRID显示的话,能不能将这三个字段并在一起,就是在DATAGRID里用一个格子显示出完整日期rnrn2。在查询的时候用DROPDOWNLIST控件来选择日期,想设计一个button的事件使DROPDOWNLIST控件里面的内容为空,该怎么写?rn我写的ddl.selectitem.text="",会出现把当时所选项清空的情况rn
如果在Delphi里我要控制两个Button按钮,那两个单源程序要分开写吗?
rn rn 把两程序写一起出现报错,不解。 求详细答案(新手上路。)。
有谁了解Unity3D吗?能否解答一个前台后台问题?
如果unity生成网页方式的项目,怎样能使java后台接收到前台的数据?rn谢谢了~~
后台要上传吗?
用asp.net做好一个网站,那么后台要上传吗,会不会不安全 ,如果不上传后台,那我要怎么快速访问后台呢(不是在项目中打开)???
.net 后台调用前台的js代码出现麻烦,求解答
rn string vCode = Request["CodeTxt"].ToString().Trim();//用户输入的验证码rn string sCode = String.Empty;//初始化变量rn if (Session["vCode"]!=null)rn rn sCode = Session["vCode"].ToString();rn if (vCode.Equals(sCode,StringComparison.OrdinalIgnoreCase))rn rn //验证码正确rn return true;rn rn elsern rn //Response.Write(" ");rn Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), [color=#FF0000]"wrongCode();"[/color], true);rn //验证码错误rn return false;rn rn rn elsern rn return false;rn rnrn前台的js代码有wrongcode这个函数rn rnrn我直接在前台调用这个函数能够输出,但是在后台用Page.ClientScript.RegisterClientScriptBlock 不能输出asdf,为什么呀。我Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), [color=#FF0000]"alert('asdf');"[/color], true);
新手求解答
用asp.net写程序的时候,连接数据库是默认用ado.net吗?(我服务器端的语言是Jscript)如果是的,那么我如果不用ado.net而用ado连接数据要怎么做呢?急急啊
新手求大神解答!!
最近学习javaweb的servlet,做了一个查询 跳转完了总是空白页rnconsole里是这样的rn严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.ArrayIndexOutOfBoundsException: -1rn at org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.addStackItem(StackMapFrame.java:92)rn at org.eclipse.jdt.internal.compiler.ClassFile.traverse(ClassFile.java:5586)rn at org.eclipse.jdt.internal.compiler.ClassFile.generateStackMapTableAttribute(ClassFile.java:4303)rn at org.eclipse.jdt.internal.compiler.ClassFile.completeCodeAttribute(ClassFile.java:1378)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:338)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:270)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:566)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:635)rn at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:368)rn at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:781)rn at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)rn at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:436)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)rn at servlets.Update1.doGet(Update1.java:32)rn at servlets.Update1.doPost(Update1.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)rn at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Unknown Source)rnrnorg.apache.jasper.JasperException: Unable to compile class for JSPrn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:579)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)rn at servlets.Update1.doGet(Update1.java:32)rn at servlets.Update1.doPost(Update1.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)rn at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.ArrayIndexOutOfBoundsException: -1rn at org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.addStackItem(StackMapFrame.java:92)rn at org.eclipse.jdt.internal.compiler.ClassFile.traverse(ClassFile.java:5586)rn at org.eclipse.jdt.internal.compiler.ClassFile.generateStackMapTableAttribute(ClassFile.java:4303)rn at org.eclipse.jdt.internal.compiler.ClassFile.completeCodeAttribute(ClassFile.java:1378)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:338)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:270)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:566)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:635)rn at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:368)rn at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:781)rn at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)rn at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:436)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)rn ... 39 morern
新手,求解答>-<
有个题目是判断其是否为素数,可是我写了运行的结果却不对。rn#includern#includernvoid main()rnrn long m;rn cin>>m;rn double sqrtm=sqrt(m);rn int i;rn for(i=2;i<=sqrtm;i++)rn rn if(m%i==0)rn rn break;rn rn if(i>sqrtm)rn rn cout<
新手求解答。。
这个是我照着《c priemr plus》抄的:rn#includernint main(void)rnrn float aboat = 32000.0;rn double abet = 2.14e9;rn long double dip = 5.23e-5;rn rn printf("%f can be written %e\n", aboat, aboat);rn printf("%f can be written %e\n", abet, abet);rn printf("%f can be written %e\n", dip, dip);rn rn return 0;rnrnrn编译查出的错误是这么说的[Error] ld returned 1 exit statusrn但是又可以运行:rn[img=https://img-bbs.csdn.net/upload/201407/25/1406299361_633471.png][/img]rnrn但是树上的输出结果是rn32000.000000 can be written 3.200000e+04rn2140000000.000000 can be written 2.140000e+09rn0.000053 can be written 5.320000e-05rnrn这是怎么回事呢?新手求解答,,谢谢万能的网友!!
新手,求达人解答
严重: Dispatcher initialization failedrnUnable to load configuration. - action - file:/D:/apache-tomcat-6.0.29/webapps/Struts/WEB-INF/classes/struts.xml:7:52rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)rn at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: Error building results for action login in namespace - action - file:/D:/apache-tomcat-6.0.29/webapps/Struts/WEB-INF/classes/struts.xml:7:52rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:367)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:468)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:264)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:193)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn ... 30 morernCaused by: No result type specified for result named 'success', perhaps the parent package does not specify the result type? - result - file:/D:/apache-tomcat-6.0.29/webapps/Struts/WEB-INF/classes/struts.xml:8:24rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:612)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)rn ... 35 morern2010-12-10 21:57:13 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - action - file:/D:/apache-tomcat-6.0.29/webapps/Struts/WEB-INF/classes/struts.xml:7:52rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)rn at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: Unable to load configuration. - action - file:/D:/apache-tomcat-6.0.29/webapps/Struts/WEB-INF/classes/struts.xml:7:52rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)rn ... 28 morernCaused by: Error building results for action login in namespace - action - file:/D:/apache-tomcat-6.0.29/webapps/Struts/WEB-INF/classes/struts.xml:7:52rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:367)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:468)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:264)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:193)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn ... 30 morernCaused by: No result type specified for result named 'success', perhaps the parent package does not specify the result type? - result - file:/D:/apache-tomcat-6.0.29/webapps/Struts/WEB-INF/classes/struts.xml:8:24rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:612)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)rn ... 35 morern2010-12-10 21:57:13 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2010-12-10 21:57:13 org.apache.catalina.core.StandardContext startrn严重: Context [/Struts] startup failed due to previous errorsrn2010-12-10 21:57:13 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: The web application [/Struts] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1f94884]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1080876]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.rn2010-12-10 21:57:13 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: The web application [/Struts] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@63b2e6]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1762fc7]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.rn当我把Tomcat webapp下的struts.xml删掉再启动服务器就没有问题,但再restart一次就又有问题了
directx 新手求解答
#include rn#pragma comment(lib,"d3d9.lib")rnrnLPDIRECT3D9 g_direct=NULL;rnLPDIRECT3DDEVICE9 g_device=NULL;rnLPDIRECT3DVERTEXBUFFER9 g_vertexbuffer=NULL;rnLPDIRECT3DINDEXBUFFER9 g_indexbuffer=NULL;rnstruct VERTEXrnrn float x,y,z,pi;rn DWORD color;rn;rnbool g_fangjuchi=true;rn#define VERTEXFVF (D3DFVF_DIFFUSE|D3DFVF_XYZRHW)rnrnbool InitD3d(HWND hwnd)rnrn if (NULL==(g_direct=Direct3DCreate9(D3D_SDK_VERSION)))rn rn return false;rn rn D3DPRESENT_PARAMETERS d3dpp;rn ZeroMemory(&d3dpp,sizeof(D3DPRESENT_PARAMETERS));rn D3DDISPLAYMODE display;rn d3dpp.Windowed=FALSE;rn d3dpp.SwapEffect=D3DSWAPEFFECT_DISCARD;rn d3dpp.MultiSampleType=D3DMULTISAMPLE_4_SAMPLES;rn g_direct->GetAdapterDisplayMode(D3DADAPTER_DEFAULT,&display);rn d3dpp.BackBufferHeight=display.Height;rn d3dpp.BackBufferWidth=display.Width;rn d3dpp.BackBufferFormat=display.Format;rn if (FAILED(g_direct->CheckDeviceMultiSampleType(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,D3DFMT_X8R8G8B8,FALSE,D3DMULTISAMPLE_4_SAMPLES,NULL)))rn rn MessageBox(hwnd,_T("硬件不支持图形反锯齿!\n采用参考设备!"),L"AntiAlisa",0);rn if (FAILED(g_direct->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_REF,hwnd,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&d3dpp,&g_device)))rn rn return false;rn rn rn elsern rn if (FAILED(g_direct->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,hwnd,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&d3dpp,&g_device)))rn rn return false;rn rn rn return true;rnrnbool InitBuffer()rnrn VERTEX dian[]=rn rn 100.0f,50.0f,0.5f,1.0f,0xffff00ff,rn 200.0f,400.0f,0.5f,1.0f,0xff00ff00,rn 300.0f,50.0f,0.5f,1.0f,0xff0000ff,rn 400.0f,400.0f,0.5f,1.0f,0xffffffffrn ;rn [b]WORD index[]=2,1,0,1,2,3;// 为什么0,1,2,1,2,3不行 [/b][color=#FF0000][/color]rn if (FAILED(g_device->CreateVertexBuffer(4*sizeof(VERTEX),0,VERTEXFVF,D3DPOOL_DEFAULT,&g_vertexbuffer,NULL)))rn rn return false;rn rn void *buffer;rn if (SUCCEEDED(g_vertexbuffer->Lock(0,sizeof(dian),&buffer,0)))rn rn memcpy(buffer,dian,sizeof(dian));rn g_vertexbuffer->Unlock();rn rn elsern rn return false;rn rn if (FAILED(g_device->CreateIndexBuffer(6*sizeof(WORD),0,D3DFMT_INDEX16,D3DPOOL_DEFAULT,&g_indexbuffer,NULL)))rn rn return false;rn rn if (SUCCEEDED(g_indexbuffer->Lock(0,sizeof(index),&buffer,0)))rn rn memcpy(buffer,index,sizeof(index));rn g_indexbuffer->Unlock();rn rn elsern return false;rn return true;rnrnvoid render()rnrn g_device->Clear(0,NULL,D3DCLEAR_TARGET,D3DCOLOR_XRGB(0,0,0),1.0f,0);rn if (SUCCEEDED(g_device->BeginScene()))rn rn g_device->SetStreamSource(0,g_vertexbuffer,0,sizeof(VERTEX));rn g_device->SetRenderState(D3DRS_SHADEMODE,D3DSHADE_GOURAUD);rn g_device->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);rn if (g_fangjuchi)rn rn g_device->SetRenderState(D3DRS_MULTISAMPLEANTIALIAS,TRUE);//启用多重取样rn rn elsern rn g_device->SetRenderState(D3DRS_MULTISAMPLEANTIALIAS,FALSE);rn rn g_device->SetFVF(VERTEXFVF);rn g_device->SetIndices(g_indexbuffer);rn g_device->DrawIndexedPrimitive(D3DPT_TRIANGLELIST,0,0,4,0,2);rn g_device->EndScene();rn rn g_device->Present(NULL,NULL,NULL,NULL);rnrnvoid clear()rnrn if (g_indexbuffer!=NULL)rn rn g_indexbuffer->Release();rn rn if (g_vertexbuffer!=NULL)rn rn g_vertexbuffer->Release();rn rn if (g_device!=NULL)rn rn g_device->Release();rn rn if (g_direct!=NULL)rn rn g_direct->Release();rn rnrnint APIENTRY _tWinMain(HINSTANCE hInstance,rn HINSTANCE hPrevInstance,rn LPTSTR lpCmdLine,rn int nCmdShow)rnrn UNREFERENCED_PARAMETER(hPrevInstance);rn UNREFERENCED_PARAMETER(lpCmdLine);rnrn // TODO: 在此放置代码。rn MSG msg;rn HACCEL hAccelTable;rnrn // 初始化全局字符串rn LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);rn LoadString(hInstance, IDC_DUOCHONGCAIYANG, szWindowClass, MAX_LOADSTRING);rn MyRegisterClass(hInstance);rnrn // 执行应用程序初始化:rn if (!InitInstance (hInstance, nCmdShow))rn rn return FALSE;rn rnrn hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_DUOCHONGCAIYANG));rnrn ZeroMemory(&msg,sizeof(MSG));rn while(msg.message!=WM_QUIT)rn rn if (PeekMessage(&msg,NULL,0,0,PM_REMOVE))rn rn TranslateMessage(&msg);rn DispatchMessage(&msg);rn rn elsern render();rn rn return (int) msg.wParam;rnrnrnrnrnLRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)rnrn int wmId, wmEvent;rn PAINTSTRUCT ps;rn HDC hdc;rnrn switch (message)rn rn case WM_COMMAND:rn wmId = LOWORD(wParam);rn wmEvent = HIWORD(wParam);rn // 分析菜单选择:rn switch (wmId)rn rn case WM_DESTROY:rn rn PostQuitMessage(0);rn clear();rn rn break;rn case WM_LBUTTONDOWN:rn g_fangjuchi=!g_fangjuchi;rn break;rn default:rn return DefWindowProc(hWnd, message, wParam, lParam);rn rn return 0;rnrn自动生成的我都删了 就是WORD index[]=2,1,0,1,2,3;这一行 太坑了 开始写的是0,1,2,1,2,3 结果只能输出后面的那个三角形 改为2 1 0才能输出前面的 这是什么状况 快疯了
c++新手求解答
#include rnusing namespace std;rnvoid nchar_(char,int);rn int main()rn char ch;rn int time;rn cout<<"enter a character:";rn ch=cin.get();rn while(ch!='q')rn cout<<"enter a integer: ";rn cin.get();rn time=cin.get();rn nchar_(ch,time );rn cout<<"enter another ch or quit:";rn cin >>ch;rn rnreturn 0;rnrn void nchar_(char c, int n)rn while(n-->0)rn cout<
后台添加一个栏目,前台要显示吗?
是手工加还是自动加上,自动加上的风格不是想要的,手工加的每次都要改模板,跟栏目自动生成的想法相悖。大网站怎么做?
新手,求解答~~
#include rnusing namespace std;rnclass Arnrnpublic:rn A()rn rn static int i=1;rn //cout<<"construct "<
asp新手,求解答
错误类型:rnMicrosoft JET Database Engine (0x80040E10)rn至少一个参数没有被指定值。rn/order.asp, 第 276 行rnrnrn rn rn 请选择rn <%rnset rs=server.createObject("adodb.recordset")rnrnrs.Open "select top 10 * from t_catalog where q_id<>0 order by q_id",conn3,1,3(这句是276行)rnrnif not(rs.bof and rs.eof) thenrnwhile not rs.eofrn%>rn"><%=rs("catalogname")%>rnrn<%rni=i+1rnrs.movenextrnwend%>rn<%rnend ifrnrs.closernset rs=nothingrn%>rn rn
新手求解答!
#include "stdio.h"rnrnint max(int x,int y)rnrn return ((x>y)?x:y);rnrnvoid main()rnrn int a[10],i,m;rn printf("请输入10个数字:\n");rn for(i=0;i<10;i++)rn scanf("%d",&a[i]);rn m=a[0];rn for(i=1;i<10;i++);rn m=max(m,a[i]);rn printf("the max is %d",m);rn printf("\n");rnrn10个数,求最大值出来!rn输入1-10,10个数字!rn运行出来结果是“the max is 1245120",和输入数据完全不同,郁闷!看了半天,不知道哪里错了!
新手的问题。求解答
请问下。我现在刚学SQL。我想在sql sever 2000上自己新建一个数据库,可是里面怎么添加内容呢?有没有这样的教程??表,还有视图,还那些东西都不知道怎么建立!
汇编新手求解答
add128: push axrn push cxrn push sirn push di rnrn sub ax,axrn mov cx,8rns:mov ax,[si]rn adc ax,[di]rn mov [si],axrninc sirninc sirninc dirninc dirnloop srnpop dirnpop sirnpop cxrnpop axrnretrnrnrn上面的子程序是对两个128位数据进行相加rn并把运算结果存储在第一个数的存储空间中。rn上面的程序能不能把rn4个INC指令用rnadd si,2rnadd di,2rn代替?为什么?求解答rnrn
新手问题,求解答。
1、cxbuttonedit的点击省略号的事件是哪个,就是点击这个控件后面的…触发事件,现在我都当成edit用了……rn2、操作数据库,删除、修改、更新的时候用adoquery与用adocommand有什么区别?以前我都是用adoquery的才知道,原来应该用adocommand,不过没看出来有什么不一样。
新手问题,求解答
数据表:rn编号 数量 日期 rn 5 100 2015/11/01 rn 5 100 2015/11/07rn 5 100 2015/11/10 rn 6 100 2015/11/01 rn 6 100 2015/11/05rn 6 -50 2015/11/10rnrn需要结果rn编号 数量 开始日期 结束日期 rn 5 100 2015/11/01 2015/11/06rn 5 200 2015/11/07 2015/11/09rn 5 300 2015/11/10 2015/11/31rn 6 100 2015/11/01 2015/11/04rn 6 200 2015/11/05 2015/11/09rn 6 150 2015/11/10 2015/11/31rnrnrnrnrnrn
新手问题 求解答
数据表:rn编号 数量 日期 rn 5 100 2015/11/01 rn 5 100 2015/11/07rn 5 100 2015/11/10 rn 6 100 2015/11/01 rn 6 100 2015/11/05rn 6 -50 2015/11/10rnrn需要结果rn编号 数量 开始日期 结束日期 rn 5 100 2015/11/01 2015/11/06rn 5 200 2015/11/07 2015/11/09rn 5 300 2015/11/10 2015/11/31rn 6 100 2015/11/01 2015/11/04rn 6 200 2015/11/05 2015/11/09rn 6 150 2015/11/10 2015/11/31rnrnrn结果的数量 是累加的 结束日期 是下一条数据的日期 减1
Java新手,求解答
public class PersonTest1rnrn public static Person f1(Person p)rn rn p = new Person();rn p.setAge(5);rn return p;rn rnrn public static void main(String[] args)rn rn Person p1 = new Person();rn p1.setAge(10);rn f1(p1);rn p1.sayHello();rnrn rnrnrnrn为什么sayHello输出的年龄不是10,如果我想输出10怎么办?
Java新手求解答
背景:在跟着视频学习类的继承和函数重写:代码如下rnclass Personrn private String name;rn private int age;rn public void setName(String name)rn this.name= name;rn rn public void setAge(int age)rn this.age = age;rn rn public String getName()rn return name;rn rn public int getAge()rn return age; rn rn public String getInfo()rn return "name:"+name+"\n"+"age:"+age;rn rn rn rn class Student extends Personrn private String school;rn public String getSchool()rn return school; rn rn public void setSchool(String school)rn this.school = school;rn rn public String getInfo()rn return "name:"+name+"\n"+"age:"+age+"\n"+"school"+school;rn rn rn rn public class TestPersonrn public static void main(String[] args)rn Student student = new Student();rn Person person = new Person();rn person.setName("none");rn person.setAge(11);rn student.setName("jolin");rn student.setAge(21);rn student.setSchool("SCH");rn System.out.println(person.getInfo());rn System.out.println(student.getInfo());rn System.out.println(student.getSchool());rn rn rn[img=https://img-bbs.csdn.net/upload/201503/12/1426143388_743609.png][/img]rn根据对比 我发现要将30行的name 改成getName,age改成getAge代码可以成功编译rn 问题1 :与17行对比 我就很疑惑。既然是继承就包括继承了成员变量name和age 为什么这里就不可以直接调用了?rn 问题2 : 还有我试了下如果把30行的name 改成student.name 还是不行rn 同样的改成this.name还是出错。rn这里问题比较杂 求大神解答rn
新手 求大神解答
[img=https://img-bbs.csdn.net/upload/201612/22/1482372220_679957.png][/img] 这个问题怎么解决 就一个c#登陆界面密码验证的问题 用mysql 这里就是不行为什么啊 求大神详细解答下 万分感谢rn
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview