Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Serious need

Serious need

2007-08-16       - By meisam sarabadani

 Back
dude,

Let me try then I let you know quickly. :), but before that would you answer
my questions :

>That needs some plug-ins to support,you can try "Lomboz"
how to install Lomboz ? should i only get it and put it in a eclipse plugins
dir ?

>thirdly,configure the web.xml , below  is a sample configure
can i just copy and paste your sample ? or should i modify it? based on what
i need to modify my web.xml ?

>then,create a struts.xml in the src forder (src/struts.xml) and configure
it,below is a sample.

based on what I need to modify the sample xml files you sent to me ?!? im
confused here and i think here is where im making the mistakes.

I try to have a look at the docs .

thank you very much

On 8/16/07, Andvar Woo <andvar2008@(protected)> wrote:
>
> Firstly,create a empty dynamic web project. That needs some plug-ins to
> support,you can try "Lomboz"
> sencondly,copy/import the following 5 essential jars to the /WEB-INF/lib
> folder
> struts2-core.jar
> xwork.jar
> ognl.jar
> freemarker.jar
> commons-logging.jar
> you can find these jars in the strtus pack you downloaded.
>
> thirdly,configure the web.xml , below  is a sample configure
> -- ---- ---- ---- ---- ----
> web.xmlstart-- ---- ---- ---- ---- ---- ---- ---- -----
> <?xml version="1.0" encoding="UTF-8 (See http://UTF-8.ora-code.com)"?>
> <web-app version="2.5"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
>
> <display-name>Struts2 configure sample</display-name>
>
>   <filter-name>struts2</filter-name>
>   <filter-class>
>     org.apache.struts2.dispatcher.FilterDispatcher
>   </filter-class>
> </filter>
>
> <filter-mapping>
>   <filter-name>struts2</filter-name>
>   <url-pattern>/*</url-pattern>
> </filter-mapping>
>   <welcome-file-list>
>     <welcome-file>index.jsp</welcome-file>
>   </welcome-file-list>
> </web-app>
>
> -- ---- ---- ---- ---- ----web.xml end
> -- ---- ---- ---- ---- ---- ---- ---- ---- --
> then,create a struts.xml in the src forder (src/struts.xml) and configure
> it,below is a sample.
> you can refer the struts-doc 's guildes for how to configure "package
> ","action" and "result" elements
>
> -- ---- ---- ---- ---- ----
> struts.xmlstart-- ---- ---- ---- ---- ---- ---- ---- -----
> <!DOCTYPE struts
> PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> "http://struts.apache.org/dtds/struts-2 (See http://uts-2.ora-code.com).0.dtd">
> <struts>
>   <include file="struts-default.xml" />
>   <package name="struts_OGNL" extends="struts-default">
>     <action name="Ognl" class="tutorial.action.OgnlAction">
>       <result>/Ognl.jsp</result>
>     </action>
>   </package>
> </struts>
> -- ---- ---- ---- ---- ----struts.xml end
> -- ---- ---- ---- ---- ---- ---- ---- -----
> I suggust you follow struts-doc's "Getting Started" to be familar with
> struts2 step by step.
> these docs are all contained in the full pack.
> besides, the struts's "Big-picture" may help to understand struts2's
> architecture
> http://struts.apache.org/2.x/docs/big-picture.html
> you can also find the doc in the full pack.
> Hope the above helps.
> Good luck.
>
> 2007/8/16, meisam sarabadani <meisam.sarabadani@(protected)>:
> >
> > I have downloaded the full pack of struts and the all exampels, and also
> i
> > have deployed it manually by putting it into my container (tomcat), but
> > when
> > im going to use the eclipse as IDE to develop and start a struts
> > everything
> > messes and I can`t continue, actually it is not working, I have seen so
> > many
> > tutorials but none of is 100% sure about what they are saying, can you
> > help
> > me with this ?
> >
> > On 8/16/07, meisam sarabadani <meisam.sarabadani@(protected)> wrote:
> > >
> > > hey
> > >
> > > thanks for your help but the thing is that it does not work like that
> in
> > > eclipse, yeah I have downloaded the full pack of struts and the all
> > > exampels, and also i have deployed it manually by putting it into my
> > > container (tomcat), but when im going to use the eclipse as IDE to
> > develop
> > > and start a struts everything messes and I can`t continue, actually it
> > is
> > > not working, I have seen so many tutorials but none of is 100% sure
> > about
> > > what they are saying, can you help me with this ?
> > >
> > >
> > > On 8/16/07, Andvar Woo <andvar2008@(protected)> wrote:
> > > >
> > > > You can refer to the Struts doc.
> > > > The easiest way is  to use the struts2-blank-2 (See http://ank-2.ora-code.com).0.9.war as a start.
> > > > you can find it  from the http://struts.apache.org
> > > > You'd better download a struts-2 (See http://uts-2.ora-code.com).x.all.zip from the download pages.
> > > > Hope that helps,good luck.
> > > > 2007/8/16, meisam sarabadani <meisam.sarabadani@(protected)>:
> > > > >
> > > > > Does anybody know how to configure struts on eclipse and build
> anew
> > > > > project
> > > > > by struts in eclipse ?
> > > > >
> > > > > On 8/16/07, red phoenix <rodphoenix@(protected)> wrote:
> > > > > >
> > > > > > For general Java class,we can make construction function,like
> > this:
> > > > > > public class test{
> > > > > >   String a;
> > > > > >   public test(String a){
> > > > > >      this.a=a;
> > > > > >   }
> > > > > > }
> > > > > >
> > > > > > I don't know if I can do it like above code under struts2
> > action,for
> > > >
> > > > > some
> > > > > > reason,I want to initialize some variable and assign some value
> to
> > > > > it,like
> > > > > > follows:
> > > > > > public class MyClass extends ActionSupport{
> > > > > >     private ....;
> > > > > >     public MyClass(SomeType s){
> > > > > >        //make some common operaction,such get session and so
> > > > on,because
> > > > > I
> > > > > > want to run them only once
> > > > > >     }
> > > > > >     public String execute() throws Exception {
> > > > > >       ....
> > > > > >     }
> > > > > >     public String .....{
> > > > > >     }
> > > > > >    ...
> > > > > > }
> > > > > >
> > > > > > I can successly compile above code,but when I run above code,it
> > will
> > > > say
> > > > > > error:
> > > > > > 1)MyClass action error
> > > > > > 2)java.lang.NullException because some code in MyClass(SomeType
> s)
> > > > > >
> > > > > > When I remove the code in the MyClass(SomeType s) into execute()
> > > > > > function,it
> > > > > > can run well.  I am puzzle with it! Anybody could tell me how to
> > do
> > > > > > it?  An
> > > > > > example is better.
> > > > > >
> > > > > > Thanks,
> > > > > > phoenix
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Appreciated much,
> > > > >
> > > > > Meisam Sarabadani
> > > > > IBM Student Ambassador
> > > > > Vice president II, IT Society
> > > > > Multimedia University, Cyberjaya Capmus
> > > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
> > > > > "The day the Lord created hope was probably the same day he
> created
> > > > > Spring."              Bern Williams.
> > > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Appreciated much,
> > >
> > > Meisam Sarabadani
> > > IBM Student Ambassador
> > > Vice president II, IT Society
> > > Multimedia University, Cyberjaya Capmus
> > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
> > > "The day the Lord created hope was probably the same day he created
> > > Spring."              Bern Williams.
> > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
> > >
> >
> >
> >
> > --
> > Appreciated much,
> >
> > Meisam Sarabadani
> > IBM Student Ambassador
> > Vice president II, IT Society
> > Multimedia University, Cyberjaya Capmus
> > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
> > "The day the Lord created hope was probably the same day he created
> > Spring."              Bern Williams.
> > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
> >
>



--
Appreciated much,

Meisam Sarabadani
IBM Student Ambassador
Vice president II, IT Society
Multimedia University, Cyberjaya Capmus
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
"The day the Lord created hope was probably the same day he created
Spring."              Bern Williams.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---

©2008 junlu.com - Jax Systems, LLC, U.S.A.