You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by bram <br...@info.nl> on 2001/01/11 15:05:42 UTC

control flow

Hy guys,

its early but here we go,

i got the following problem, it has to do with the basic implementation with struts and I like some other thougts about it. I am making a content manager using struts, but how do I programm multiple contoll flows? is there a "prefered" way to do it? I need just some pointers how to basicly tackle this kind of "tree" like controll flows (with possible "jumps")


the basic interaction is:
1 : select an node_id, (this is in case of a nea node the parent node for the new node
    depending on the action on it (eg move or copy) there are multiple followup actions

2 : in case of move or copy select an reference_node_id (the node_id where to to copy/move)
     in case of delete, perform the delete action, finished
     in case of edit, load the node and show the "edit form"
     in case of publish, perform the publish action, finished
     in case of new, select the new type of node

3 : in case of move or copy: move or copy action, and finished
     in case of edit, the save action, finished
     in case of new,  load the default node for the selected type and goto step 2 for edit

Greetz
Bram Meijboom

ps. I left some other input out of it for clearety
pps sorry for my shitty english

Re: Struts without SQL?

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Timur Mehrvarz wrote:

> Hello.
> We are not using SQL in the presentation-tier.
> All DB-access happens in the EJB-tier.
> Therefor, when building Struts we get an
> "cannot resolve symbol javax.sql.DataSource" in
>  share\org\apache\struts\action\ActionServlet.java:82
> What shall I do?
> Regards.

Although you are not using it, Struts has built-in support for creating a JDBC
DataSource.  In order to do this, you need to download and install the JDBC 2.0
Standard Extensions jar file, which you can get from
<http://java.sun.com/products/jdbc>, because the compiled code references these
classes.

I will update the install docs to make this clearer.

Craig



RE: Struts without SQL?

Posted by Johan Compagner <jc...@j-com.nl>.
Add the jdbc optional package to your classpath.
Even it you don't use jdbc you need that package.

johan


> -----Original Message-----
> From: Timur Mehrvarz [mailto:timur.mehrvarz@d2mannesmann.de]
> Sent: Thursday, January 11, 2001 2:40 PM
> To: struts-user@jakarta.apache.org
> Subject: Struts without SQL?
> 
> 
> Hello. 
> We are not using SQL in the presentation-tier. 
> All DB-access happens in the EJB-tier. 
> Therefor, when building Struts we get an 
> "cannot resolve symbol javax.sql.DataSource" in 
>  share\org\apache\struts\action\ActionServlet.java:82
> What shall I do?
> Regards.
> 
> 

Struts without SQL?

Posted by Timur Mehrvarz <ti...@d2mannesmann.de>.
Hello. 
We are not using SQL in the presentation-tier. 
All DB-access happens in the EJB-tier. 
Therefor, when building Struts we get an 
"cannot resolve symbol javax.sql.DataSource" in 
 share\org\apache\struts\action\ActionServlet.java:82
What shall I do?
Regards.