For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 17 replies, 2 voices, and was last updated 19 years, 1 month ago by
Riyad Kalla.
-
AuthorPosts
-
killazyMemberi use eclipse 3.2 and myeclipse 5.0
when i read the <<struts development demo>>,and then do step by step follow the demo,there are two warnings:
1.The local variable userLoginForm is never read
2.The serializable class UserLoginForm does not declare a static final serialVersionUID field of type long
help!
as a beginner,i really don’t why.because others do follow the demo,they success,but i can’t.
[maybe u dont understand what i mean,but i hope u can help me.][/img]October 17, 2006 at 12:40 pm #260579
Riyad KallaMemberThese are just compiler warnings, not errors. There is nothing wrong with the code, the warnings are only hinting potential areas for you to address.
October 17, 2006 at 8:13 pm #260609
killazyMemberthanks.
i know,but i found my tomcat can’t use suddenly.
why?yesterday it is ok.October 17, 2006 at 11:03 pm #260610
Riyad KallaMemberIt’s hard to say from the description. What exactly is happening? Is it not starting? Not stopping? Are you getting a 404 or some other error? Is the app server showing any errors on startup?
October 18, 2006 at 2:34 am #260614
killazyMemberthe problem is solved,because the port 80 is used by other application.
but i create Form,Action and JSP follow the guide,but struts-config.xml design view isnot display in the design window.
in addition,after deploy in tomcat ,the application runs successfully.
i want to know why there is undisplay?thanksOctober 18, 2006 at 9:06 am #260622
Riyad KallaMemberBe sure you have the design view selected at the bottom of the editor, there should be two small tabs, they are easy to miss.
October 19, 2006 at 2:21 am #260683
killazyMemberi’m sure i select the design tab.
so i am so puzzled.October 19, 2006 at 10:05 am #260695
Riyad KallaMemberVery strange, so you ran the wizard, created the new artifacts and you see them in the source view, but you don’t see them in the design view, is that correct?
October 19, 2006 at 10:32 pm #260726
killazyMemberyes
October 20, 2006 at 12:40 am #260733
Riyad KallaMemberCan you try saving the file, switching to the navigator view, erasing the .mex file if one exists, then reopening the file in thee designer?
October 20, 2006 at 1:41 am #260734
killazyMembersorry
tell me how to switching to the navigator view,i can’t find the .mex file?October 20, 2006 at 2:04 am #260735
killazyMemberi find the .mex file.i delete it ,and then reopen the filein the designer.
the system says:”unable to locate struts model entension file . struts-config.mex a new file will be created to retain graphical layout date between modeling sessions”,then i click ok.but the design view is blank also.October 20, 2006 at 9:51 am #260742
Riyad KallaMemberCan you paste the contents of your struts-config.xml file for me?
October 20, 2006 at 8:00 pm #260780
killazyMember<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE struts-config PUBLIC “-//Apache Software Foundation//DTD Struts Configuration 1.2//EN” “http://struts.apache.org/dtds/struts-config_1_2.dtd”><struts-config>
<data-sources />
<form-beans >
<form-bean name=”userLoginForm” type=”com.yourcompany.struts.form.UserLoginForm” /></form-beans>
<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute=”userLoginForm”
input=”/userLogin.jsp”
name=”userLoginForm”
path=”/userLogin”
scope=”request”
type=”com.yourcompany.struts.action.UserLoginAction”
validate=”false”>
<forward name=”success” path=”/userLoginSuccess.jsp” />
<forward name=”failure” path=”/userLogin.jsp” />
</action></action-mappings>
<message-resources parameter=”com.yourcompany.struts.ApplicationResources” />
</struts-config>October 20, 2006 at 8:02 pm #260781
killazyMemberweb.xml
<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app xmlns=”http://java.sun.com/xml/ns/j2ee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
</web-app> -
AuthorPosts
