Re: Struts & UML ....

2001-08-16 Thread Rodney Smith

Hi All,

Thanks for the response, but that is not what I am asking, the question is
in a UML there are specific layers e.g. presentation layer, business layer,
data layer.
The MVC 'Model View Controller is within this UML? 
The question is where in UML is the MVC located?
I thought that it was in the presentation layer, but I am unsure if the
'Model' part of the MVC is located in the business layer?
I hope that the information I have provided is sufficient enough for a
response.
Thanks again.

Kind Regards
Rodney Smith


> Model --> Normally a Database (the schema)
> Controller-->Action Servlet
> View --> JSP
> 
> Is that what you are asking?
> 
> >From: Rodney Smith <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Struts & UML 
> >Date: Thu, 16 Aug 2001 10:38:36 +0200 (MEST)
> >
> >Hi all,
> >
> >Could some one give me a quick simple solution or a good detailed example
> 
> >of
> >the following.
> >My understanding so far of Struts is not so bad I think, but when looking
> 
> >at
> >the MVC and how it works, I would like to put that into order with UML. I
> >could image that there is a million of UML examples and MVC, but I would 
> >like a
> >simple answer on a Struts MVC and UML.
> >Now the question is after the actionservlet controller sends a perform()
> to
> >the action class. is this action class in the MODEL??? and if so,
> where
> >in the UML view is it??
> >To me it looks like most of the MVC is based in the presentation layer is
> >that correct?
> >Could someone enlighten me with a good clear answer please.
> >Thanks for everyones time and have a great day.
> >
> >Kind Regards
> >Rodney Smith
> >
> >--
> >Sent through GMX FreeMail - http://www.gmx.net
> >
> 
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 

-- 
Sent through GMX FreeMail - http://www.gmx.net



Struts Example using jdbc/odbc

2001-08-16 Thread Rodney Smith

Hi All,


Has anyone got an example of Struts web application that retreives data from
a jdbc/odbc?
I have created a .mdb 'Access' and put this into a web application, but seem
to be missing some source code.  
I have updated my web.xml and struts-config.xml, but unsure of the source
code in the action class and in the servlet and how to reference the data in
the .mdb?
That is why I would like to check with an example to compare the source code
to see what I have done wrong.
Thanks for everyones time and looking forward to your response.

Kind Regards
Rodney Smith

-- 
Sent through GMX FreeMail - http://www.gmx.net




Struts & UML ....

2001-08-16 Thread Rodney Smith

Hi all,

Could some one give me a quick simple solution or a good detailed example of
the following.
My understanding so far of Struts is not so bad I think, but when looking at
the MVC and how it works, I would like to put that into order with UML. I
could image that there is a million of UML examples and MVC, but I would like a
simple answer on a Struts MVC and UML.
Now the question is after the actionservlet controller sends a perform() to
the action class. is this action class in the MODEL??? and if so, where 
in the UML view is it??
To me it looks like most of the MVC is based in the presentation layer is
that correct?
Could someone enlighten me with a good clear answer please.
Thanks for everyones time and have a great day.

Kind Regards
Rodney Smith

-- 
Sent through GMX FreeMail - http://www.gmx.net




Struts UML

2001-08-13 Thread Rodney Smith

Hi All,


The UML is split into 3 layers in the 
http://www.husted.com/about/struts/
I have always pictured this way and the UML looks well presented.
If you where going to look at the UML in a way to see where the MVC 
is going to take part in this, would that be in the presentation and
business layer, is that correct?
Second if that is so, is the 'model' part of the MVC would be located in the
busines layer of the UML?
So what is the 'model'part of MVC the perform()'Action' to get the request
from the Data Layer of the UML e.g.EJB,DB2 etc is that correct? 

Thanks for everyones response to my questions, and Martin Cooper thankyou
for the detailed response to Model question, if you have anyother detailed
information on Struts, I will be happy to take it as well. 

Kind Regards
Rodney Smith

-- 
Sent through GMX FreeMail - http://www.gmx.net




Kick start to Struts

2001-08-09 Thread Rodney Smith

Hi all,


Which comes first the chicken or the egg?
I need to know when creating a struts web application which comes first,
creating the java component first, then build the html and convert to jsp?
that is the question I need to get started into my own web application
through struts. I would really like as much feed back as possible in the best
professional approach to this. As I have so much enthusiasm, but not enough
knowledge in this area.
This sort of information that I request is second nature to web designs and
programmers I gather, but I am new to the game.

Thanks to all those listeners and most importantly thanks to the perfect
responses from Ted and Craig.

Kind Regards
Rodney Smith

-- 
Sent through GMX FreeMail - http://www.gmx.net




Database.xml or other avenues

2001-08-08 Thread Rodney Smith

Hi All,

I have seen how database.xml works with Struts-example.war and that was
good, but I would like to test the same sort of database on Access .mdb
If I put dummy data into the .mdb, where do I put the .mdb? do I put this in
the WEB-INF section with the other .xml files?
I have created a folder in the subdirectories called DATA and I have
configured my build.xml to copy this .mdb to the main section of my web application.
I need to state an action mapping in the struts-config.xml file and also
mention that in the web.xml? and if so where?
Is there any information that could help me configure that database not only
to retreive information but also to add information into this. Or is it
better to create two .mdb one to send information to a database and the other
retreive data for logging onto the web application and have the two .mdb
communicate with each other in some way to exchange data or to update? That sounds
easy but is there any tips on doing this or any examples that could assist me
with this?

Thanks for your time and have a great day.

Kind Regards
Rodney Smith

-- 
Sent through GMX FreeMail - http://www.gmx.net




Building Web Application

2001-08-08 Thread Rodney Smith

Hi All,


I have sketched out the frame work for my web application. I have configured
my Struts .xml files and put this in my Tomcate 3.2.2 and compiled this and
this has worked. 
The question is what I am doing the correct way of building a web
application and if not which is the professional way.
I have created all my .html pages first and the links work, then I have
converted most of my html pages to .jsp, I would like now to make a login process
to my web application and that intails java files and java forms etc. Then
intergrating the java files into my web application. 
Is this the incorrect way of approaching a web application?
I would appreciate a bit of advise with that.

Thanks Craig for your information on ActionServlets it has helped, I have
read all the information on Struts-example.war and that was really good.
But the example that I got mine out of was out of a book called Profession
JSP 2nd Edition and that was called ch21.
Thanks for your time and looking forward to your response.

Kind Regards
Rodney Smith

-- 
Sent through GMX FreeMail - http://www.gmx.net




URL links & ActionServlet

2001-08-06 Thread Rodney Smith

Hallo,

Firstly I would like to thank Ted Husted for all his help with me getting a
better understanding of Struts, as I am a new to this area a lot of the
information that I have found is great but not detailed enough to understand some
of the process as what Ted has mentioned is perfect, thanks again Ted.

OK the questions are still coming as follows.
I am using Tomcate3.2.2 and runing of a localhost:
In the example I am using I have the index.jsp page and in that I have two
html links, one goes to get registered with the web application and the other
is logon to the web application. If I click on logon this takes me to the
logon.jsp page. When I client clicks on this as this is a .jsp this does not go
to the actionservlet as that is not a .do action 'is that correct'? instead
that just calls the viewer of logon.jsp??? or does this go direct to the
JAVABEAN by passing the ActionServlet to get the logonform.java???

Now if the client clicks on the registation URL link on the index.jsp it
comes back with a editregistration.do on the browser bar, in this case, as this
is displaying the .do, does that mean that actually has been to the
ActionServlet to JAVABEAN and comes back with the registration form display or does
this just go to the viewer and retreives the registration.jsp form, with out
going to the ActionServlet?? I understand that if the person sends a request
'A' to logon to the web application it needs to be a .do and needs to go to the
ActionServlet 'B' I think that it goes the same with the registration as
well. It is when they are asking for the forms to submit is where I don't know
where they are stored or if they need to be retreived from the JSP viewer etc.

Thanks for your time and I hope that can get another good response.
Many thanks Ted and have a great day.

Kind Regards
Rodney Smith

-- 
Sent through GMX FreeMail - http://www.gmx.net




Struts Fundermentals

2001-08-03 Thread Rodney Smith

Hallo,


I have a question that I should really know, but I honestly could not answer
without getting confirmation of other Struts users.
I have been asked many times about what is struts and I have responded it is
a open source framework useful for building  web applications in Java
Servlets and Java Server Pages.
But then they say what is Struts a application or what? I was lost for words
I thought it was claster of class, but unsure and I didn't think it was a
software. Could some one please enlighten me, so a can spread the correct
information on Struts and how good it is.


Kind Regards
Rodney Smith

-- 
Sent through GMX FreeMail - http://www.gmx.net




Accessing JDBC-ODBC from Struts

2001-07-25 Thread Rodney Smith

Hi

I need some direction on how to incorporate JDBC-ODBC into my struts
and where the ODBC should be stored in my application. Also how to reference
that in my Action Servlet, I am a little unsure about this area, but would
appreciate some feed back or documentation that will simplify my work.

Thanks

Rodney

-- 
Sent through GMX FreeMail - http://www.gmx.net