Re: html:link passing multiple parameters

2004-02-15 Thread Adam L
There's also the use of c:url.  The catch there is that if you incude the
resulting url in a html:link, it will be double contexted, which means you
should use a standard href tag and use a c:out to spit out the final url.


- Original Message -
From: "Nick Faiz" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Sunday, February 15, 2004 4:39 PM
Subject: RE: html:link passing multiple parameters


> I did something along those lines using Struts-EL.
>
>  scope="request"/>
>
> 
>
>  value="${project.projectIdentifier}" />
>
>  value="${concernType}" />
>
>
>
>  name="paramMap" >
> >>
> 
>
>
> Why bother with bean:write when you can use c:set ?
>
> Nick Faiz
>
> -Original Message-
> From: phortonpeg [mailto:[EMAIL PROTECTED]
> Sent: Monday, 16 February 2004 9:34 AM
> To: [EMAIL PROTECTED]
> Subject: html:link passing multiple parameters
>
> Hi,
> I have a situation where I need to pass several parameters in an
> html:link tag.  From what I've read, I know that I must use a HashMap
> to send as a param which would contain the values I want to send to
> the URL.  I first display the values in a table using logic:iterate
> and an arrayList onto the screen.  The user should then be able to
> select a row and send that row's parameters to an action class that
> produces a pdf.
>
> My problem is how to extract the values from bean:write properties
> and load them into a hashMap.  What would be the correct syntax to do
> this something like this? I've tried several ways to do something
> like the following without any luck :
>
> <% String docNumber =  property="documentNumber"/> ; %>
>
> Here is a portion of the jsp that I am working with:
>
>property="documents" >
>  property="docGid"/> 
>  property="revision"/> 
>  property="pgCount"/> 
>  property="statDate"/> 
>  property="itemVkey"/> 
>  property="title"/> 
>  property="autoReject"/> 
> 
> 
> 
> 
> 
> 
>  <%
>  java.util.HashMap myMap = new java.util.HashMap();
>
>  myMap.put("docGid", "How do I get the value of the property "docGid
> from the list above???");
>  myMap.put ("docNumber", documentNumber);
>  myMap.put ("order", order);
>  myMap.put ("society", "society");
>  myMap.put ("statDate", "statDate");
>  myMap.put ("vKey", "itemVkey");
>  myMap.put ("supp", "supplemenat");
>  myMap.put ("chgType", "chgType");
>  myMap.put ("revision", "revision");
>  pageContext.setAttribute("map", myMap);
>
> %>
> 
>
> altKey="action.properties"
>   width="20" height="20" border="0"/>
>
>
>
>
> Any ideas or suggestions would be very appreciated!
> Thanks for you help!
>
> Peggy
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Orkut - Done!

2004-02-09 Thread Adam L
day late, dollar short.

if someone would pass along the invitation, I'd be much obliged.

thanks!

 -- adam

- Original Message - 
From: "Vic Cekvenich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 09, 2004 10:16 AM
Subject: Re: Orkut - Done!


> I invited the people so far... and I am done. I will not invite more!
> I hope they add others after this post, so the people I added can add 
> others.
> 
> Please upload your photo or avatar and join the Struts club so we 
> can see you.
> Over time, I will put some cool things there in Orkut Struts club . 
> very cool (like a Struts Portal or a Sturts sofware for writing your own 
> socail network w/ rich UI... better than Orkut; or almost free 
> conference w/ Husted, Raible, Begin + more, or a big Stuts surprise)
> 
> .V
> 
> [EMAIL PROTECTED] wrote:
> > Hey Vic...
> > 
> > anyway you could invite me as well??!
> > 
> > tks!
> > 
> > sebastian
> > 
> > 
> > 
> > S e b a s t i e n   T r e m b l a y
> > 01 - Cryptographic Security
> > (613) 991-8394
> > 
> > [EMAIL PROTECTED]
> > 
> > 
> > -Original Message-
> > From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, February 08, 2004 11:16 PM
> > To: [EMAIL PROTECTED]
> > Subject: Orkut
> > 
> > 
> > If you want to join Struts in Orkut Social Network send me an e-mail 
> > saying so.
> > 
> > .V
> > (if you do not know what it is don't worry)
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tiles And Frames

2004-02-05 Thread Adam L
According to:  http://www.w3.org/TR/REC-html40/present/frames.html

16.2 Layout of frames
An HTML document that describes frame layout (called a frameset document)
has a different makeup than an HTML document without frames. A standard
document has one HEAD section and one BODY. A frameset document has a HEAD,
and a FRAMESET in place of the BODY.


So, it's not so much a question of doing it within tiles, so much as not
allowed by HTML.   How you generate your final html is irrelevant (tiles,
includes, ssi, tags, etc).  What is important is the final product to be
read by the browser.


- Original Message -
From: "Michael McGrady" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, February 05, 2004 5:56 PM
Subject: Re: Tiles And Frames


> For you Tiles devotees out there, I think this would be something that
> would be really helpful.  This is a recurring question.  I know!  I
> know!  If I have time, I will, after the other stuff.  Just a second of
> this need.
>
> At 10:35 AM 2/5/2004, Mutreja, Shitij wrote:
> >Is there a good place/article/sample code  to check out, for mixing
> >framesets and tiles. The App that I am working on seems to need to use
both.
> >Basically, we have to display content such that there are 2 frames, the
left
> >one showing some text, while the right one accepts user input. Both these
> >also need to be scrollable separately.
> >Am reposting this question. Sorry am desperate for an answer. Has anyone
> >ever tried using framesets from within tiles instead of the other way
> >around?
> >
> >
> >My intention is to somehow include these frames within a Body tile. The
> >other issue is that there is also a footer tile, which might need to
include
> >a frameset. The reason being the the control buttons need to always be
> >visible(without having to scroll to view them).
> >
> >
> >Here is what i tried:
> >
> >Layout used for the Body:
> > 
> > 
> > 
> > 
> >
> >quiz actually has a value in the tile-defs that points to the
> >quizcontent.jsp shown below:
> >
> > 
> > 
> > 
> >  >src="/practicequizzes/quiz.jsp">
> >  >src="/practicequizzes/quiz.jsp">
> > 
> > 
> > 
> >
> >The problem with this is that the "/practicequizzes/quiz.jsp" is never
> >actually sourced and I just see nothing in the body tile.
> >
> >Thanks,
> >
> >
> >Shitij Mutreja
> >The College Board
> >11911 Freedom Drive, Suite 300
> >Reston, VA 20190
> >571.262.5701 (Phone)
> >703.707.5596 (Fax)
> >[EMAIL PROTECTED]
> >http://www.collegeboard.com/highered/index.html
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SOLVED: Re: problems w/ logging.. again

2004-01-21 Thread Adam L
Curtis:

   Thank you very much for your insight.  Indeed, adjusting the app server
log4j.xml did the trick.  Very disconcerting, I must say, to not be able to
set it on a per-app basis, as well as having to turn a lot of stuff
explicitly off (raising its level) once I changed the logger threshold.

-- adam

- Original Message -
From: "Curtis Taylor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 20, 2004 11:47 AM
Subject: Re: problems w/ logging.. again


> Hi Adam,
>
> Insofar as I've seen it with JBoss, yes: the application-scope log4j
config
> files have no effect. If you're using ant, it'd be fairly simple to write
a task
> which copies your app's log4j.xml to the appropriate server/conf
directory.
>
> And no, you shouldn't have to bounce the app server. It should pick up
your
> config changes while it's running.
>
> Curtis
>
> Adam Levine wrote:
> > Curtis:
> >
> >  Thank you for the insight. I'll be sure to try this out this evening.
> >
> >  Am I correct to assume that app-specific log4j config files will not be
> > used (as in, to append/make use of the global config), and that anytime
> > I want to change the logging for a specific app I have to make a global
> > change and bounce the entire app server?
> >
> > Thanks again!
> >
> >
> > From: Curtis Taylor <[EMAIL PROTECTED]>
> > Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: Re: problems  w/ logging.. again
> > Date: Tue, 20 Jan 2004 08:58:25 -0800
> >
> > Hi Adam,
> >
> > If you're using JBoss you need to edit the server's log4j.xml config
> > file. For 3.2.2 it lives in
> > $JBOSS_HOME/server/all|default|minimal/conf/. Edit the one in the server
> > subdirectory you deploy your app to.
> >
> > HTH,
> >
> > Curtis
> >
> > Adam L wrote:
> >
> >>>>
> >>>> I've scoured the archives. I"ve tried a million different
> >>>> log4j.properties configurations, some with .xml, some with
> >>>> commons-logging.properties.  I've read the links to the apache
> >>>> site that seem to focus mainly on how to use logging from the
> >>>> programmatic aspect (and had no luck with the examples provided on
> >>>> the configuration aspect).
> >>>>
> >>>> in theory, these changes should take hold when i bounce the
> >>>> application (touch web.xml), rather than the entire app server..
> >>>> correct?
> >>>>
> >>>> I'm beginning to wonder if it's a configuration issue elsewhere.
> >>>>
> >>>> jdk is 1.4.2, jboss 3.0.8/jetty, struts 1.1.
> >>>>
> >>>> in my web.xml i've set the debug parm on ActionServlet to 2, 9, 99,
999
> >>>> in struts-config.xml, for the controller,  i've set debug to
2,9,99,999
> >>>>
> >>>> i cut and paste examples in the archives claiming to remove
> >>>> "00:24:09,816 INFO  [PropertyMessageResources] Initializing,
> >>>> config='org.apache.struts.taglib.html.LocalStrings',
> >>>> returnNull=true" from the logs.. and they don't.
> >>>>
> >>>> I've set my log levels to WARN, DEBUG, INFO.. and see no changes.
> >>>>
> >>>>
> >>>> What I'm trying to achieve is the debug info from the workflow
> >>>> extension controller to aid in debugging problems in my workflow,
> >>>> as well as turn off some of the extraneous struts messages.
> >>>>
> >>>> If someone would please be willing to hold my hand and guide me,
> >>>> my quickly receding hairline and I would be in great appreciation.
> >>>>
> >>>> thank you.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > _
> > Check out the new MSN 9 Dial-up — fast & reliable Internet access with
> > prime features!
http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problems w/ logging.. again

2004-01-19 Thread Adam L
Because I can't be for sure that the applications will be running in the
future on 1.3 or 1.4, so i'm attempting to keep them neutral in the logging
solution.

which still leaves me with getting log4j or whatever else working properly.

yes, I did see that the debug on the controller has been deprecated. I
recall getting the debug logging working at one point, but that might have
been on a pre 1.1 release, and I can't remember what I did to turn it on (it
was a very minor change)


- Original Message -
From: "Navjot Singh" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 19, 2004 11:40 PM
Subject: RE: problems w/ logging.. again


> if you are using jdk 1.4 then why don't you switch over to JDK logging? No
> configuration issues here as you might face with log4j.
>
> Well it's just a suggestion, as i myself use JDK logging in some projects
> and log4j in some.
>
> btw, in struts 1.1, i don't think debug param plays any role.
>
> regards
> Navjot Singh
>
> >-Original Message-
> >From: Adam L [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, January 20, 2004 11:09 AM
> >To: Struts Users Mailing List
> >Subject: problems w/ logging.. again
> >
> >
> >I've scoured the archives. I"ve tried a million different
> >log4j.properties configurations, some with .xml, some with
> >commons-logging.properties.  I've read the links to the apache
> >site that seem to focus mainly on how to use logging from the
> >programmatic aspect (and had no luck with the examples provided on
> >the configuration aspect).
> >
> >in theory, these changes should take hold when i bounce the
> >application (touch web.xml), rather than the entire app server.. correct?
> >
> >I'm beginning to wonder if it's a configuration issue elsewhere.
> >
> >jdk is 1.4.2, jboss 3.0.8/jetty, struts 1.1.
> >
> >in my web.xml i've set the debug parm on ActionServlet to 2, 9, 99, 999
> >in struts-config.xml, for the controller,  i've set debug to 2,9,99,999
> >
> >i cut and paste examples in the archives claiming to remove
> >"00:24:09,816 INFO  [PropertyMessageResources] Initializing,
> >config='org.apache.struts.taglib.html.LocalStrings',
> >returnNull=true" from the logs.. and they don't.
> >
> >I've set my log levels to WARN, DEBUG, INFO.. and see no changes.
> >
> >
> >What I'm trying to achieve is the debug info from the workflow
> >extension controller to aid in debugging problems in my workflow,
> >as well as turn off some of the extraneous struts messages.
> >
> >If someone would please be willing to hold my hand and guide me,
> >my quickly receding hairline and I would be in great appreciation.
> >
> >thank you.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problems w/ logging.. again

2004-01-19 Thread Adam L
I've scoured the archives. I"ve tried a million different log4j.properties 
configurations, some with .xml, some with commons-logging.properties.  I've read the 
links to the apache site that seem to focus mainly on how to use logging from the 
programmatic aspect (and had no luck with the examples provided on the configuration 
aspect).

in theory, these changes should take hold when i bounce the application (touch 
web.xml), rather than the entire app server.. correct?

I'm beginning to wonder if it's a configuration issue elsewhere.

jdk is 1.4.2, jboss 3.0.8/jetty, struts 1.1.

in my web.xml i've set the debug parm on ActionServlet to 2, 9, 99, 999
in struts-config.xml, for the controller,  i've set debug to 2,9,99,999

i cut and paste examples in the archives claiming to remove "00:24:09,816 INFO  
[PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true" from the logs.. 
and they don't.

I've set my log levels to WARN, DEBUG, INFO.. and see no changes.


What I'm trying to achieve is the debug info from the workflow extension controller to 
aid in debugging problems in my workflow, as well as turn off some of the extraneous 
struts messages.

If someone would please be willing to hold my hand and guide me, my quickly receding 
hairline and I would be in great appreciation.

thank you.

Workflow extension (living logic) and debug

2004-01-18 Thread Adam L
I've been plagued by the stupid virus.  I cannot find anyway to turn on the debug 
logging for the workflow extensions to get the information as shown on the bottom of 
http://www.livinglogic.de/Struts/demoApp.html   

I did it once before, recall it being a minor thing, but now... I can't find any 
reference, and I'm lost.   I'm not sure if it's a struts level thing or a webapp level 
config.

Any pointers greatly appreciated.



Re: [OT] Date problerm

2003-12-13 Thread Adam L
very basic jdbc.  as each db vendor is bound to have a different format for
their dates, especially compounded with locale, let the driver handle the
abstraction for you:

PreparedStatement pstmt = con.prepareStatement("insert into [table] values
(?)");
pstmt.setDate(1, myDateValue);

int retval = pstmt.executeUpdate();


always check the API does.  they're there to help you




- Original Message -
From: "Raj Yadav" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 13, 2003 7:06 PM
Subject: [OT] Date problerm


> Hi All,
> The dates stored in database is with full time format till seconds.
> I
> have a SQL query to give dates by every hour and I get date for
> every
> hour. Basically, I get 24 rows for each day.
>
> Now, I need to insert this into another date column in a seprate
> table
> thru a Java Program. I need to know how to set the Date format in
> JDBC
> for insert it. I tried "MM/dd/ HH" does not works.
>
>
>
> thanks in advance
>
>
>
> -raj
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ot] image file to byte array

2003-12-03 Thread Adam L
It might be your output stream.. here's my code, which does work:

File imagedata = new File(img.getImageLocation(),
img.getImageId() );

resp.setContentType( img.getImageType() );

RandomAccessFile raf = new RandomAccessFile( imagedata, "r" );

resp.setContentLength( (int) raf.length() );
ServletOutputStream out = resp.getOutputStream();

byte [] loader = new byte [ (int) raf.length() ];
while ( (raf.read( loader )) > 0 )
{
  out.write( loader );
  out.flush();
  out.close();
}



- Original Message -
From: "Mark Lowe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 03, 2003 3:32 AM
Subject: [ot] image file to byte array


>
> Although its not a struts problem as such I do happen to be using
> struts in my app..
>
> Here some code as it will say more in less words that it will take to
> explain
>
> In my action servlet I have something like this..
>
> 
> response.setContentType("image/jpeg");
> response.setHeader("Cache-Control", "no-cache");
> OutputStream ou = response.getOutputStream();
>
> String imageStr = "file:///foo/test.jpg";
> java.net.URI imgUri = new java.net.URI(imageStr);
> File imageFile = new File(imgUri);
> FileInputStream imageFileStream = new FileInputStream(imageFile);
> byte[] image = new byte[(int)
> imageFile.length()];System.out.println("imageFile.length()"+
> imageFile.length());
> ou.write(image);
>
> 
>
> Now the system out returns the correct amount of bytes so its seeing
> the image and not getting file not found exception. but it just wont
> stream back to my jsp when i run the action.
>
> This code is basically a else clause when no results are returned from
> the database.. The results from the db (via hibernate works just fine)
> but this bit doesn't..
>
> Can anyone who's done this cast their eye over it for anything
> obviously wrong. Could it be a permissions issue?
>
> Cheers Mark
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IDE

2003-11-19 Thread Adam L
I personally use Gel (www.gexperts.com).  It understand taglibs, it
understands java, it's native code for windows, it has code completion,
integrates with ant and cvs, jsp editing, has a decent xml viewer
(collapse/expand branches), validates xml (based on well formed and
completeness).   The only thing it doesn't have is direct struts
integration, beyond reading and code-completing taglibs.But, with
xdoclet, it's all good.

 my $0.04.


- Original Message -
From: ; "Sergio Eduardo" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 19, 2003 4:31 AM
Subject: IDE


Hello,
  Someone knows a good editor for Java and Struts ??  I use Jdeveloper 9.03
but I would like change it.

Thanks

Sergio.





Aquest missatge electrònic pot  contenir informació confidencial o
privilegiada.
Si vostè no és el destinatari del  missatge, o l'ha rebut per error, si us
plau
notifiqui-ho al remitent i destrueixi el missatge amb tot el seu contingut.
Està completament  prohibida  qualsevol  còpia, ús o distribució no
autoritzada
del contingut d'aquest missatge electrònic.


Este mensaje electrónico puede contener información confidencial o
privilegiada.
Si usted  no es  el destinatario de este mensaje o lo ha recibido por error,
por
favor notifíquelo al remitente y destruya el mensaje con todo su contenido.
Queda  expresamente  prohibida  cualquier  copia, utilización o
distribución no
autorizada del contenido de este mensaje electrónico.


This e-mail may contain confidential and/or privileged information.
If you  are  not the  intended recipient (or have received this e-mail in
error)
please notify the sender immediately and destroy this e-mail.
Any  unauthorized  copying,  disclosure  or distribution of the material in
this
e-mail is strictly forbidden.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Creating a bean!!!!

2003-10-07 Thread Adam L
First:you don't need to use excessive punctuation in your subject
titles.  More often than not it's bound to get your post ignored or pushed
aside.

Second:
  I don't understand from your message if you DO or DO NOT have a class
named "Book" that resides in the package "books"
   as in:

  package books;

  public class Book {}


 And, if you do:

Does the Book class extend org.apache.struts.action.ActionForm ?

 Does it have a no parameter constructor?



- Original Message -
From: "Zakaria khabot" <[EMAIL PROTECTED]>
To: "struts-user" <[EMAIL PROTECTED]>
Sent: Tuesday, October 07, 2003 7:22 AM
Subject: Creating a bean


Hi,
I have created a formBean :




But the class Book isn't known as an element of tke package books. and I
received this exception :

javax.servlet.jsp.JspException: Exception creating bean of class books.Book:
{1}

void org.apache.struts.taglib.html.FormTag.initFormBean()

FormTag.java:563

int org.apache.struts.taglib.html.FormTag.doStartTag()

FormTag.java:520

how to resolve this problem. thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wizard with a Twist

2003-10-07 Thread Adam L
For what it's worth, check out the workflow extension,
http://www.livinglogic.de/Struts
   It takes a bit of tinkering with to fully understand and appreciate its
power (check the archives for a very recent dialog between myself and its
designer, Matthias Bauer).  It's very simple in concept and design, but it's
thus far been able to handle almost every need I have for workflow
management.

 To put it very simply, you end up coding each component of your process as
a puzzle piece.  You then end up stringing them together with appropriate
actions and forwards to create your workflow process.   Component re-use has
finally been realized for me in my workflows!

-- adam


- Original Message -
From: "Bob Lee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 07, 2003 6:31 AM
Subject: Wizard with a Twist


> All,
>
> I have requirements do develop a wizard like application where you can
> have multiple questions (up to 3) on a single page.
>
> When there are multiple questions, the first appears, you select an
> answer, and the next one appears. If you change the answer to a
> previous question, all of the succeeding answers are reset and you have
> re-answer the questions.
>
> What the next question is bears on the answers to the previous
> questions (or some other factors). I've deemed it okay to go back to
> the server each time.
>
> There's also a requirement to do a bread crumb trail, but it will need
> to go back pages of questions (not one question at a time). Also, going
> forward, if questions have been answered and you don't alter the
> answers, you should be able to go forward page by page as well.
>
> I'm trying to figure out the best way to break this down (i.e. how many
> JSPs, actions, and forms to use, what scope to use for the forms,
> etc.). Key factors for maintainability will be the naming schemes (so
> you can easily follow and manipulate the flow) and the ability to move
> questions around without impacting other questions too much or making
> changes in too many places. Any tips or suggestions?
>
> Note: I started down a more generic route where I was going to build a
> tool to manage the flow, but there's so many weird requirements (things
> specific to certain questions, etc.) that I decided it would be easier
> to just start out simple for this iteration.
>
> Thanks,
> Bob
>
> P.S. I also have an option to use Blue Martini. Anyone have experience
> with this? Would it help me solve this problem more easily than just
> coding it with Struts?
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: workflow extension question

2003-10-07 Thread Adam L
Matthias:

   Thank you for the clearer explanation.

   If I understand this now, if I change all my current workflow violation
forwards to be of type ForwardNextStateViolationAction (they are all
currently just plain actions with a forward, no type specified), then the
existing workflow will work as originally designed, keeping the flow in
process, with both prev and next violations triggering and performing as
appropriate to this workflow, but an external workflow (launched from
another menu option) will be allowed to start if the user so chooses,
without being forced back into their first workflow.

  and the moral of the story is:
 a truly modal workflow process should have violations defined as:

 

 while a workflow process that can be interrupted by other workflows
will have violations defined as:

 
   

   


 I think that indeed solves my problem.   Now  I'm trying to see how I can
use this for cases where an authentication fails, for instance a user is
required to be logged in first:

   

  How would I chain them to the login (or whichever) process, and then bring
them back to the step they were trying to perform prior?   I'm currently
seeing this as having to declare several instances of the login process as
actions, some rigged to the main menu login, others rigged from each
workflow that requires this authentication.   This seems like a lot of
extraneous work, and also requires this new subflow to be defined for every
workflow where this authentication is utilized.  That, or wrap the process
in chain of Actions that pass a token along that somehow says "when you're
done with this entire flow, come back to this location".   I'm going to have
to ponder on this.   Do you have any thoughts on how this could easily be
achieved using your framework?

  Thank you again for all your help and thought!

-- adam





- Original Message -
From: "Matthias Bauer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 07, 2003 3:20 AM
Subject: Re: workflow extension question


> Adam,
>
> sorry that I obviously did not make myself clear enough. Look at the
> following definitions:
>
> global-forwards:
> workflowViolation_wiz1step1: violatedWizard1Step1
> workflowViolation_wiz1step2: violatedWizard1Step2
>
> displayWizard1Step1
> primaryWorkflow: wiz1step1
> newState: displayed
> nextState: submitted
>
> submitWizard1Step1
> primaryWorkflow: wiz1step1
> prevState: displayed
> newState: submitted
> forward=success:  displayWizard1Step2
>
> displayWizard1Step2
> secondaryWorkflow: wiz1step1
> prevState: submitted
> primaryWorkflow: wiz1step2
> newState: displayed
> nextState: submitted
>
> submitWizard1Step2
> primaryWorkflow: wiz1step2
> prevState: displayed
> newState: submitted
>
> violatedWizard1Step1
> type: ForwardNextStateViolationAction
> forward=noNextStateViolation: displayWizard1Step1
>
> violatedWizard1Step2
> type: ForwardNextStateViolationAction
> secondaryWorkflow: wiz1step1
> endWorkflow: true
> forward=noNextStateViolation: displayWizard1Step2
>
> This is what can happen: If the user has just executed
> "displayWizard1Step1" he can only execute "submitWizard1Step1" without
> causing a workflow violation. If for instance he follows a link from the
> menu, the workflow "wiz1step1" is executed, which causes the execution
> of action "violatedWizard1Step1". Upon workflow violation of
> "wiz1step1", this workflow is automatically cleaned up, so this action
> does not need to do any other cleanup work. The action class
> "ForwardNextStateViolationAction" forwards to the action the user has
> chosen from the menu after that.
>
> Upon prevState violations, i. e. if the user executes
> "submitWizard1Step1" without having executed "displayWizard1Step1"
> before, the action "violatedWizard1Step1"  causes a forward to
> "displayWizard1Step1".
>
> If a workflow violation of  "wiz1step2" happens, the action
> "violatedWizard1Step2" is executed, which also ends and cleans up the
> workflow "wiz1step1". Except the mechansims are identical to workflow
> "wiz1step1".
>
> This should meet your requirements. Or am I still missing something?
>
> Concerning your question whether this approach is better than the one to
> end all workflows: In many cases you do not want to end all workflows,
> but only these that belong to a certain process (in our example all
> workflows belonging to wizard1).
>
> Please let me know, if there are still further questions.
>
> --- Matthias
>
>
>
> Adam Levine wrote:
>
> > Matthias:
> >   I think I understand your answer.  But, I'm not sure where things
> > would go.  If I'm understanding your explanation:
> >
> > process1:wkfl1 -> process1:wkfl2 -> (violation) process2:wkfl1 landing
> > page(initializer action)
> >
> > the p2:w1 landing page would be a ForwardNextStateViolationAction
> >   the FordwardNextStateViolationAction has forwards:
> >  forward "noNextStateViolation" : goes to display page for p2:w1
> >
> > but,

workflow extension question

2003-10-02 Thread Adam L
Matthias:
Now to take you up on your offer."is something missing?"

What thoughts do you have on a "end all previous workflows" property?
The thought is this:
   - my user is working through a process, and gets bored or distracted
   - rather than using the provided "cancel" button, they use a nav link
to go elsewhere (ie, a terms and conditions or "what's new page")
   - my thought is to let them do this, perhaps they'll jump back
(browser back) to the step they were on and continue their path
   - but, if they don't ever come back, and end up starting another
workflow process, they'll be dumped right back to their first workflow.
   - being thrown back to a place you wanted to leave would be confusing

  So, the answer to this is an "initialization" page for each process
that basically says "cancel out all existing workflows and states, and start
this workflow instead".

  Yes, ideally, the user should use the opt-out mechanism provided
to them, but you can't expect that to happen. And, I'm not keen on designing
for a modal experience unless absolutely necessary.  One could go through
every possible action and add a "noWorkflowChecks" everywhere, but that
still doesn't resolve the issue of them starting a new process w/o
explicitly terminating an existing one.

  To illustrate what I'm seeing:



  
 
< new property
  
  
  




Any thoughts?

-- adam

> >>- Original Message -
> >>From: "Matthias Bauer" <[EMAIL PROTECTED]>
> >>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >>Sent: Monday, September 15, 2003 1:59 AM
> >>Subject: Re: workflow - Re: integration with other app
> >>
> >>
> >>
> >>
> >>>Fortunately I am far enough away to avoid your kiss ;-)
> >>>
> >>>Please let me know, if you believe something is missing. I am sure I
can
> >>>give you some more hints on how to solve a specific task. The Struts
> >>>Workflow Extension is a very powerful, yet low-level framework. Thus,
it
> >>>offers very much flexibility but sometimes the right way to achieve a
> >>>solution is not as apparent as desired.
> >>>
> >>>Just in case you are interested: We are also offering commercial
support
> >>>for this extension and Struts itself.
> >>>
> >>>--- Matthias
> >>>
> >>>
> >>>Adam Levine wrote:
> >>>
> >>>
> >>>
> Matthias:
>  I could kiss you!   I've been struggling with this issue and have
> been going bald over the last week doing a lot of my own engine
> work.   I can't wait to try this out and see if it doesn't work for me
> as cleanly as it looks.
> 
> 
> 
> 
> From: Matthias Bauer <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: workflow - Re: integration with other app
> Date: Fri, 12 Sep 2003 08:35:36 +0200
> 
> Martin,
> 
> the Struts Workflow Extension http://www.livinglogic.de/Struts/
> addresses some of the issues you raise. Especially the thing about a
> workflow scope. But it is also easily possible to build reusable
> action sequences: Consider for instance a confirmation dialog that
> demands the user to press a "Yes" and "No" button. You will need this
> multiple times within an application, but you normally want to code
> the necessary actions only once and reuse them in different contexts
> (i. e. with a customized question and return action).
> 
> Please let me know, when you have any questions related to the Struts
> Workflow Extension.
> 
> --- Matthias
> 
> Martin Naskovski wrote:
> 
> 
> 
> >One thing I find particularly cumbersome in Struts is web page
> >workflow. Currently, if I want to push "Cancel" for instance, or
> >"Submit" on a certain page, in the Action itself, I have to hard code
> >where to go next and/or pass any dynamically generated parameters
> >through the request scope or the query string (if doing a
> >sendRedirect). I also have to use hidden form fields to tell each
> >submission button on a form, where to go next, depending on where I
> >came from (a certain action mapping, e.g.).
> >
> >Is there a better way to do this, where the flow of the screens can
> >
> >
> >be
> >
> >
> >specified statically, or maybe if not statically at least within a
> >screen workflow module that each action will tell that module where
> >to go next, depending on what button was pushed on that form?
> >
> >Does JSF address this perhaps? Or has someone independently made a
> >Struts pluggable module that can control screen flow? It seems there
> >almost is a need for some sort of a 'workflow' scope, where when I
> >start a certain use-case from one of the menus in the application,
> >
> >
> >the
> >
> >
> >'workflow scope' is preserved throughout the use-case lifetime, and
> >
> >
> >if

Re: Still an issue: Quartz plugin shutdown problem

2003-10-02 Thread Adam L
I'm going to go out on a limb here and suggest that:

1) You haven't yet received an answer from this list after several attempts,
which is a struts list, on a component by somebody other than ASF.  Perhaps
they'd be a better route?

2) Not having used Quartz, the best guess i can suggest is that it looks
like Quartz is choking on a configuration file somewhere, and my guess is
quartz-config.xml


- Original Message -
From: "Mick Knutson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, October 02, 2003 11:52 AM
Subject: Re: Still an issue: Quartz plugin shutdown problem


> Still looking for help.
>
> Here is the Debug level trace of the startup.
>
> 09:35:18,687 ERROR [STDERR] [DEBUG] I18nFactorySet - -Factory initialized
> from file '/WEB-INF/tiles-defs.xml'.
> 09:35:18,687 ERROR [STDERR] [INFO] TilesPlugin - -Tiles definition factory
> loaded for module ''.
> 09:35:18,703 ERROR [STDERR] [DEBUG]
>
BeanUtils - -BeanUtils.populate([EMAIL PROTECTED]
> 54f3, {configPath=/WEB-INF/quartz-conf
> ig.xml})
> 09:35:18,734 ERROR [STDERR] [DEBUG] ConvertUtils - -Convert string
> '/WEB-INF/quartz-config.xml' to class 'java.lang.String'
> 09:35:18,750 ERROR [STDERR] [INFO] PlugInSupport - -Initializing
> QuartzPlugIn
> 09:35:18,875 ERROR [STDERR] [INFO] StdSchedulerFactory - -Quartz scheduler
> 'QuartzScheduler' initialized from default resource file in Quartz
package:
>  'quartz.properties'
> 09:35:18,875 ERROR [STDERR] [INFO] StdSchedulerFactory - -Quartz scheduler
> version: 1.2.2
> 09:35:18,890 ERROR [STDERR] [DEBUG] Digester - -addRuleSet() with no
> namespace URI
> 09:35:18,906 ERROR [STDERR] [DEBUG]
>
sax - -setDocumentLocator([EMAIL PROTECTED]
> bb)
> 09:35:18,906 ERROR [STDERR] [DEBUG] sax - -startDocument()
> 09:35:18,906 ERROR [STDERR] [DEBUG] sax - -startElement(,,quartz-config)
> 09:35:18,906 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text ''
> 09:35:18,921 ERROR [STDERR] [DEBUG] Digester - -  New
match='quartz-config'
> 09:35:18,921 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> ObjectCreateRule[className=com.jgsullivan.quartz.config.QuartzConfig,
> attributeName
> =null]
> 09:35:18,921 ERROR [STDERR] [DEBUG]
> Digester - -[ObjectCreateRule]{quartz-config}New
> com.jgsullivan.quartz.config.QuartzConfig
> 09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters()
> 09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters(
> )
> 09:35:18,921 ERROR [STDERR] [DEBUG] sax - -characters()
> 09:35:18,921 ERROR [STDERR] [DEBUG] sax - -startElement(,,trigger-group)
> 09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text '
> '
> 09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  New
> match='quartz-config/trigger-group'
> 09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
>
ObjectCreateRule[className=com.jgsullivan.quartz.config.TriggerGroupConfig,
> attribu
> teName=null]
> 09:35:18,984 ERROR [STDERR] [DEBUG]
> Digester - -[ObjectCreateRule]{quartz-config/trigger-group}New
> com.jgsullivan.quartz.config.TriggerGroupConfig
> 09:35:18,984 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> [EMAIL PROTECTED]
> 09:35:19,046 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> SetNextRule[methodName=addTriggerGroup, paramType=null]
> 09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters()
> 09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters(
> )
> 09:35:19,046 ERROR [STDERR] [DEBUG] sax - -characters()
> 09:35:19,046 ERROR [STDERR] [DEBUG] sax - -startElement(,,trigger)
> 09:35:19,046 ERROR [STDERR] [DEBUG] Digester - -  Pushing body text '
> '
> 09:35:19,109 ERROR [STDERR] [DEBUG] Digester - -  New
> match='quartz-config/trigger-group/trigger'
> 09:35:19,109 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> ObjectCreateRule[className=org.quartz.SimpleTrigger,
> attributeName=className]
> 09:35:19,109 ERROR [STDERR] [DEBUG]
> Digester - -[ObjectCreateRule]{quartz-config/trigger-group/trigger}New
> org.quartz.CronTrigger
> 09:35:19,125 ERROR [STDERR] [DEBUG] Digester - -  Fire begin() for
> SetPropertiesRule[]
> 09:35:19,125 ERROR [STDERR] [DEBUG]
> Digester - -[SetPropertiesRule]{quartz-config/trigger-group/trigger}
Setting
> property 'name' to 'alertSenderTrigge
> r'
> 09:35:19,125 ERROR [STDERR] [DEBUG]
> Digester - -[SetPropertiesRule]{quartz-config/trigger-group/trigger}
Setting
> property 'className' to 'org.quartz.C
> ronTrigger'
> 09:35:19,187 ERROR [STDERR] [DEBUG]
> Digester - -[SetPropertiesRule]{quartz-config/trigger-group/trigger} Set
> org.quartz.CronTrigger properties
> 09:35:19,187 ERROR [STDERR] [DEBUG]
BeanUtils - -BeanUtils.populate(Trigger
> 'null.null':  triggerClass: 'org.quartz.CronTrigger isVolatile: false cale
> ndar: 'null' misfireInstruction: 0, {className=org.quartz.CronTrigger,
> name=alertSenderTrigger})
> 09:35:19,203 ERROR [STDERR] [DEBUG] ConvertUtils - -Convert string
> 'alertSenderTrigger' to class 'java.lang.String'
> 09:35:19,234 ERROR [STDERR] [DEBUG

Re: an exception problem!!!

2003-09-30 Thread Adam L
the source of the problem is detailed in the exception you posted.


- Original Message -
From: "khabot zakaria" <[EMAIL PROTECTED]>
To: "Struts-user" <[EMAIL PROTECTED]>
Sent: Tuesday, September 30, 2003 11:54 AM
Subject: an exception problem!!!


Hi,
I have this exception message and don't know the source of the problem :
500 Internal Server Error
javax.servlet.jsp.JspException: Exception creating bean of class
mypackage5.Book: {1}
void org.apache.struts.taglib.html.FormTag.initFormBean()
FormTag.java:563
int org.apache.struts.taglib.html.FormTag.doStartTag()
FormTag.java:520
void _BookView._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
[/BookView.jsp]

can someone help me.
thanks.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Question] Problem with bean:include.

2003-09-28 Thread Adam L
Where's the connection between 'Head', 'headTemplate' and 'headTemp' ?
Perhaps it's the mismatch of names that's causing grief...


- Original Message -
From: "Rajesh M Vasudevan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, September 28, 2003 7:33 AM
Subject: [Question] Problem with bean:include.


> Hi,
>
> I am using the following code for including another jsp
> 
> This is working fine when I load a file with .jsp extension.  But, when a
> jsp page loads following an action mapping, it fails to load.  No
> exceptions, but the page doesnt appear.
>
> I've the following in the struts-config.xml
> 
>  .
>  
> 
>
> Is there something I missed?
>
> Thanks for your help,
> Regards
> Rajesh
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re:[PARTLY SOLVED] workflow - Re: integration with other app

2003-09-27 Thread Adam L
Okay.. the back button going to the prior screen.. you'd think i've never
done webapps before.. my no-cache headers were missing. that's resolved.

I've begun to grok the workflow pattern a bit more, and here's what i've
come up with

  I was picturing the overall task as a workflow.  However, if you look at
each discrete unit of work in the entire task, each unit is actually its own
workflow.  And, the pieces/steps of that unit are what you should use to
define individual "workflows" in the sense of the extension.
 Ergo, task 1 has steps 1, 2 and 3.  which gives you workflow1, workflow2,
and workflow3.
each workflow should likely have 2 steps:   display the page (enter
the workflow), and submit data from that page (end of workflow).  along with
these 2 steps, there is also a possible workflow violation, which, ideally,
should flow you to the 'display the page' step.   Each end(termination) of a
workflow's primary flow will lead into the next step's 2ndary workflow
chain.

  granted, this is a very simplistic overview, and not applicable for all
tasks.. but, it's a nice foundation step that wasn't readily obvious in the
documentation (or I was just being horribly dense).

 So, have I grokked this properly ?  Is there something else I"m missing?

-- adam



- Original Message -
From: "Adam L" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, September 27, 2003 2:58 PM
Subject: Re: workflow - Re: integration with other app


> Matthias:
>
>I've been dinking with this workflow extension for awhile, amidst other
> madness, and here's what I've come to observe.   Please let me know if my
> observations are correct, and if there's not a "better/easier" way to
> achieve my goals:
>
>I have a logical process flow for achieving the task of entering new
> data.  This requires 7 different screens on input information, as each
> subsequent entry page requires info from the prior. I originally
defined
> this as one primary "workflow".  Everything flows from one page to the
next,
> so long as I don't use the browser back button and change prior
information.
> If I do this (hit browser back, change  a form field, submit),  the next
> page ends up blank; granted, I haven't added any "back button" links to
the
> page.  This is obviously due to a workflow violation exception being
thrown.
> That's fine.However, in order for the workflow engine to redirect the
> user to the proper page,  it appears i'm going to have to break down my
one
> workflow into 7 individual "workflows", each leading to eachother using
> primary and secondary flows, and then adding in a global foward for a
> violation for each one of those new 7 segments.   Is this correct?  It
seems
> like a lot of work for a simple process, and I'm afraid I'm missing
> something.
>
>Also, back to the browser back button.  In running the demo, I can see
> that hitting the browser back from wizard page 2 will continually redirect
> me back to wizard page 2.  yet, in my application, hitting the back button
> just takes me to the prior screen.  Is this a result of not having the
> violation logic in place?  If so, why isn't there a blank screen like I
> described above?
>
>Thank you for any insight you can provide.
>
> -- adam
>
>
> - Original Message -
> From: "Matthias Bauer" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, September 15, 2003 1:59 AM
> Subject: Re: workflow - Re: integration with other app
>
>
> > Fortunately I am far enough away to avoid your kiss ;-)
> >
> > Please let me know, if you believe something is missing. I am sure I can
> > give you some more hints on how to solve a specific task. The Struts
> > Workflow Extension is a very powerful, yet low-level framework. Thus, it
> > offers very much flexibility but sometimes the right way to achieve a
> > solution is not as apparent as desired.
> >
> > Just in case you are interested: We are also offering commercial support
> > for this extension and Struts itself.
> >
> > --- Matthias
> >
> >
> > Adam Levine wrote:
> >
> > > Matthias:
> > >  I could kiss you!   I've been struggling with this issue and have
> > > been going bald over the last week doing a lot of my own engine
> > > work.   I can't wait to try this out and see if it doesn't work for me
> > > as cleanly as it looks.
> > >
> > >
> > >
> > >
> > > From: Matthias Ba

Re: workflow - Re: integration with other app

2003-09-27 Thread Adam L
Matthias:

   I've been dinking with this workflow extension for awhile, amidst other
madness, and here's what I've come to observe.   Please let me know if my
observations are correct, and if there's not a "better/easier" way to
achieve my goals:

   I have a logical process flow for achieving the task of entering new
data.  This requires 7 different screens on input information, as each
subsequent entry page requires info from the prior. I originally defined
this as one primary "workflow".  Everything flows from one page to the next,
so long as I don't use the browser back button and change prior information.
If I do this (hit browser back, change  a form field, submit),  the next
page ends up blank; granted, I haven't added any "back button" links to the
page.  This is obviously due to a workflow violation exception being thrown.
That's fine.However, in order for the workflow engine to redirect the
user to the proper page,  it appears i'm going to have to break down my one
workflow into 7 individual "workflows", each leading to eachother using
primary and secondary flows, and then adding in a global foward for a
violation for each one of those new 7 segments.   Is this correct?  It seems
like a lot of work for a simple process, and I'm afraid I'm missing
something.

   Also, back to the browser back button.  In running the demo, I can see
that hitting the browser back from wizard page 2 will continually redirect
me back to wizard page 2.  yet, in my application, hitting the back button
just takes me to the prior screen.  Is this a result of not having the
violation logic in place?  If so, why isn't there a blank screen like I
described above?

   Thank you for any insight you can provide.

-- adam


- Original Message -
From: "Matthias Bauer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, September 15, 2003 1:59 AM
Subject: Re: workflow - Re: integration with other app


> Fortunately I am far enough away to avoid your kiss ;-)
>
> Please let me know, if you believe something is missing. I am sure I can
> give you some more hints on how to solve a specific task. The Struts
> Workflow Extension is a very powerful, yet low-level framework. Thus, it
> offers very much flexibility but sometimes the right way to achieve a
> solution is not as apparent as desired.
>
> Just in case you are interested: We are also offering commercial support
> for this extension and Struts itself.
>
> --- Matthias
>
>
> Adam Levine wrote:
>
> > Matthias:
> >  I could kiss you!   I've been struggling with this issue and have
> > been going bald over the last week doing a lot of my own engine
> > work.   I can't wait to try this out and see if it doesn't work for me
> > as cleanly as it looks.
> >
> >
> >
> >
> > From: Matthias Bauer <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: Re: workflow - Re: integration with other app
> > Date: Fri, 12 Sep 2003 08:35:36 +0200
> >
> > Martin,
> >
> > the Struts Workflow Extension http://www.livinglogic.de/Struts/
> > addresses some of the issues you raise. Especially the thing about a
> > workflow scope. But it is also easily possible to build reusable
> > action sequences: Consider for instance a confirmation dialog that
> > demands the user to press a "Yes" and "No" button. You will need this
> > multiple times within an application, but you normally want to code
> > the necessary actions only once and reuse them in different contexts
> > (i. e. with a customized question and return action).
> >
> > Please let me know, when you have any questions related to the Struts
> > Workflow Extension.
> >
> > --- Matthias
> >
> > Martin Naskovski wrote:
> >
> >> One thing I find particularly cumbersome in Struts is web page
> >> workflow. Currently, if I want to push "Cancel" for instance, or
> >> "Submit" on a certain page, in the Action itself, I have to hard code
> >> where to go next and/or pass any dynamically generated parameters
> >> through the request scope or the query string (if doing a
> >> sendRedirect). I also have to use hidden form fields to tell each
> >> submission button on a form, where to go next, depending on where I
> >> came from (a certain action mapping, e.g.).
> >>
> >> Is there a better way to do this, where the flow of the screens can be
> >> specified statically, or maybe if not statically at least within a
> >> screen workflow module that each action will tell that module where
> >> to go next, depending on what button was pushed on that form?
> >>
> >> Does JSF address this perhaps? Or has someone independently made a
> >> Struts pluggable module that can control screen flow? It seems there
> >> almost is a need for some sort of a 'workflow' scope, where when I
> >> start a certain use-case from one of the menus in the application, the
> >> 'workflow scope' is preserved throughout the use-case lifetime, and if
> >>

[OT] Subject line filter tag

2003-09-16 Thread Adam L
To the powers that be:
Is there a particular reason there's no list name header in the subject lines, ie 
[struts-users], for easy filtering from all the other spam and junk mail?  I realize 
"[struts-users]" is a rather lengthy segment in the subject line, so perhaps it could 
be abbreviated.. [ASFSU]...[A-SU]... or, [MARK-FU]. (=

cheers!


Re: Validating uploaded file as an image only

2003-08-22 Thread Adam L
I do it the brute force way:

< snip ->
FormFile image;



java.awt.Image makeimg = null;

try
{
makeimg = Toolkit.getDefaultToolkit().createImage(
image.getFileData() );

//  wait for the image to be loaded/created

Canvas cv = new Canvas();
MediaTracker media_tracker = new MediaTracker( cv );

// add image to the tracker
int id = 0;
media_tracker.addImage(makeimg,id);

// try to wait for image to be loaded
// catch if loading was interrupted
media_tracker.waitForID(id);
// if we can't load it, it'll get tossed back from the catch()

// by now we should have a good image to deal with

// check on image dimensions
int imgw = makeimg.getWidth( cv );
int imgh = makeimg.getHeight( cv );

}
catch (..)




I also check for file size (ie, dont' allow anything over 1M), and then
image dimensions.   The only thing I don't do is validate the mime-type.
I haven't tried uploading images from a text browser (ie lynx or links),
yet, to see what sort of mime-type it would attach.. but the ones from IE
always seem to be fine.


cheers!

-- adam


- Original Message -
From: "Brian McSweeney" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, August 22, 2003 6:32 AM
Subject: RE: Validating uploaded file as an image only


> PS - there was a discussion recently on how to improve the
> Validator.
>
>
> Validating an uploaded file based on mime type would be cool !
>
> A quick search on the web led me to a company that does this
> With a java api
>
> http://www.oop-reserch.com/mime_prop.html
>
> It seems in jdk1.4 you can actually validate based on the
> binary pattern expected for a mime type. So if it is a gif,
> you can check that the bit pattern of the uploaded file
> matches that of a gif.
>
> This is apparently to avoid users uploading say a text file
> named mytextfile.gif
>
> Now that would be nice :-)
> Brian
>
>
> -Original Message-
> From: Brian McSweeney [mailto:[EMAIL PROTECTED]
> Sent: 22 August 2003 11:13
> To: 'Struts Users Mailing List'
> Subject: Validating uploaded file as an image only
>
> Hi everyone,
>
> I've managed to get the struts file upload working successfully,
> using the struts FormFile class and the upload example.
>
> Cool :-)
>
> However, in my app, I only want images to be uploaded.
> I'm going to store the images on disk and put the path of the
> image file into the database. So I need to validate that only images
> are getting uploaded, not other file-types.
>
> I know nothing really about how to do this. I could just check that
> string returned by:
>
> FormFile.getContentType( )
>
> is equal to image-gif, image-bnp, or image-jpeg. But is this enough?
>
>
> Also, I have noticed that when I upload an image file and the little
> Browser window pops up, if I select a gif image, but the file type
> bar says "All files" then the file isn't recognized as an image.
> It's recognized as an octet-stream. So does the browser window
> specify the file type to the browser?
>
> Anyway,
>
> Hope someone can give me some advice,
> As always,
> Thanks very much,
> Brian
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: J2EE certified

2003-08-14 Thread Adam L
J2EE encompasses a lot more than just a web application.  JMS, EJB, XML
processing/manipulation, SOAP, CORBA / IDL, JavaMail.. just to begin with.


- Original Message -
From: "Mohd Amin Mohd Din" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 9:14 PM
Subject: RE: J2EE certified


> Struts is the de facto framework for J2EE. Does this mean my app using
> Struts is J2EE certified? Or is the such a thing as J2EE certified web
> app.
>
> Plus, not all question on the list are about struts
>
> -Original Message-
> From: Shane Mingins [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 14, 2003 10:03 AM
> To: 'Struts Users Mailing List'
> Subject: RE: J2EE certified
>
> So where's the Struts question?
>
> -Original Message-
> From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 14 August 2003 2:01 p.m.
> To: 'Struts Users Mailing List'
> Subject: RE: J2EE certified
>
> I meant getting a web application certified
>
> -Original Message-
> From: Raghu.Ramakrishnan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 14, 2003 9:59 AM
> To: Struts Users Mailing List
> Subject: RE: J2EE certified
>
>
>
> Amin
>
>  You can take the SCWCD (Sun Certified Web Component Developer),
> its for JSP and Servlets. You have to have
> JCP to take this exam.
>
> Raghu
>
> -Original Message-
> From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 13, 2003 11:02 AM
> To: [EMAIL PROTECTED]
> Subject: J2EE certified
>
>
> A colleague mentioned to me something about getting J2EE certified. I
> could only find getting an application server certified not the
> application. Anyone knows how to get a web application J2EE certified or
> is there a certification for Java web apps?
>
> Amin
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting values from a Flash form

2003-08-14 Thread Adam L
You're going to have to treat it like any other outgoing post/get request
using ActionScript.   Have it sent to an Action and you should be good to
go.

There's nothing "magical" about Struts -- no panacaea.   It's just a nice
framework to handle all of the html and http stuff you should already be
familiar with.
- Original Message -
From: "yan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 14, 2003 7:19 AM
Subject: Getting values from a Flash form


I have a login panel created in Flash that allows a user to enter their
email address.  Does anyone know how I can capture the email address in my
JSP from the login panel so I can validate the user login details?

Does this have to be done in ActionScript in the Flash file or is there a
way to do it in Struts?

Many thanks
yan


KickStartESolutions - Intelligent Web Services
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: J2EE certified

2003-08-14 Thread Adam L
It's filed under "URGENT"


This list is about using Struts.  Yes, Struts is built on Java technology.
Sun is the producer of Java. They've got all the info you could ever want
about Java, and associated certifications, and forums to chat with other
java dorks about Java in general, and various technology aspects.

  cruise on over to java.sun.com  and check it out.

don't mean to be a prick or sound rude.. but, c'mon.   all these hourly
messages about nothing to do with Struts.. lots of "URGENT!!" when it's just
a simple question that could've been answered by reading the docs (and
apparently isn't THAT urgent after all).  this list is way too busy because
of all the way OT posts.   learn to read the docs, manuals, list archives.
and behold the power which is Google.com.


 


- Original Message -
From: "Shane Mingins" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 9:02 PM
Subject: RE: J2EE certified


> So where's the Struts question?
>
> -Original Message-
> From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 14 August 2003 2:01 p.m.
> To: 'Struts Users Mailing List'
> Subject: RE: J2EE certified
>
> I meant getting a web application certified
>
> -Original Message-
> From: Raghu.Ramakrishnan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 14, 2003 9:59 AM
> To: Struts Users Mailing List
> Subject: RE: J2EE certified
>
>
>
> Amin
>
>  You can take the SCWCD (Sun Certified Web Component Developer),
> its for JSP and Servlets. You have to have
> JCP to take this exam.
>
> Raghu
>
> -Original Message-
> From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 13, 2003 11:02 AM
> To: [EMAIL PROTECTED]
> Subject: J2EE certified
>
>
> A colleague mentioned to me something about getting J2EE certified. I
> could only find getting an application server certified not the
> application. Anyone knows how to get a web application J2EE certified or
> is there a certification for Java web apps?
>
> Amin
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Welcome.do;jsessionid=C36048429636E35FB1ECAA5978E23132

2003-08-04 Thread Adam L
I've seen this same issue since moving to 1.1.  I'm running JBoss 3.0.7.
Other apps I have running (non struts apps, or if they are, they must be
using an earlier version) are using cookies w/o a problem.My app was
using cookies before the upgrade.   I've tried so many things:
  -- trying to coerce with a web-inf jetty.xml
  -- setting IE to accept cookies even if they aren't P3P (there's an issue
logged in the apache bug base on this)
  -- setting and resetting my jboss-web settings (which seems silly since
other apps are using cookies just fine)
  -- all searches on the web tell me to do all that i've done, and basically
reference how to turn cookies OFF (not what I want!)

Anyone have any input on this?  I don't want to move back to 1.0, as I'm in
love with EL struts tags.

 Perhaps I should start a new post.. but, no.. this is the same.


- Original Message -
From: "Marcel Overdijk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 04, 2003 2:07 AM
Subject: Welcome.do;jsessionid=C36048429636E35FB1ECAA5978E23132


Hello,

I never noticed it but when I start my application
http://localhost:8080/overdijk
  I will be forwarded to Welcome.

Suddenly (I didn't noticed it before) I see some session information in
my url bar:
http://localhost:8080/overdijk/Welcome.do;jsessionid=C36048429636E35FB1E
CAA5978E23132

When I start struts-documentation I don't see this session information.


Can anybody explain why this information is displayed ?



Kind regards,
Marcel Overdijk



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Birthdate validation ?

2003-07-24 Thread Adam L
Are you drunk again? (=

  It does understand leap years.

2004 is a leap year.  which means 2/29/04 is a valid date. which means
2/29/03 is not.

so, with lenient(true)  2/29/03 -> 3/1/03,  2/29/04 -> 2/29/04
 with lenient(false)  2/29/03 -> exception;   2/29/04 -> 2/29/04

That's the purpose of lenient.


- Original Message -
From: "Mark Galbreath" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 7:10 AM
Subject: RE: Birthdate validation ?


I don't have time for frivolous exercises, but seeing how easy it is to
accommodate leap years, I would be shocked to find this functionality
missing from Calendar.  What is the point of setLenient() if Calendar cannot
tell the diff between leap and non-leap years?

Mark

-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 4:42 PM
To: 'Struts Users Mailing List'
Subject: RE: Birthdate validation ?


Try it and find out for yourself. It does produce 3/1/2003.

-Richard


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 1:32 PM
To: 'Struts Users Mailing List'
Subject: RE: Birthdate validation ?


What makes you say that?  Why would Calendar make 2/29 3/1?


-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 8:21 PM

Be carefull with that because if you set Feb 29, 2003 your date is going to
be March 1, 2003 and Calendar will not say a thing. You should probably fix
a birthdate validator.

> -Original Message-
> From: Adam Levine [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 23, 2003 2:18 PM
>
> Use Calendar, more than likely the concrete GregorianCalendar.
>
>   Calendar.setField(, );  x3
>
>   Calendar.getTime() -> Date
>
>
> From: Erez Efrati <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: Birthdate validation ?
> Date: Wed, 23 Jul 2003 21:03:53 +0200
>
> I have a birth date field composed of three different fields of day
> month and a year. Now, what is the best way to receive those three and
> combine them into a java.sql.Date class and performing validation
> using the validator?
>
> Hope someone been there done that..



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]