setting cookies from an action?

2004-03-16 Thread Menke, John
i'm trying this in my action and it's not working:


Cookie myCookie = new Cookie(name, value);
 response.addCookie(myCookie); 



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



RE: setting cookies from an action?

2004-03-16 Thread Menke, John
it appears the setting maxAge to -1 was the problem.  cookie does not get
set with this.  set to (24*60*60) and it works

  


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 10:39 AM
To: Struts Users Mailing List
Subject: RE: setting cookies from an action?


 From: Menke, John [mailto:[EMAIL PROTECTED] 

 i'm trying this in my action and it's not working:
 Cookie myCookie = new Cookie(name, value);
  response.addCookie(myCookie); 

I think you have to set an age, or else it's a memory-only cookie and
will disappear when you close the browser.  Is that what you wanted?

Here's what I use:
   myCookie.setMaxAge( 2592000 );
(I think it's the number of seconds... Check the API.)

If that's not the problem, can you be more specific about what's not
working?

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

-
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: What is the best way to pass a parameter to a forward?

2004-03-16 Thread Menke, John
i found this class a while ago on this list it works great, just create a
parameter action forward and then add
params

forward.addParameter(name, value);
return forward;



import java.util.HashMap;
import java.util.Iterator;



public final class ParameterActionForward extends ActionForward {

private static final String questionMark = ?;
private static final String ampersand = ;
private static final String equals = =;
private HashMap parameters = new HashMap();
private String path;


public ParameterActionForward(ActionForward forward) {
setName(forward.getName());
setPath(forward.getPath());
setRedirect(forward.getRedirect());

}


public void setPath(String path) {
this.path = path;

}



public String getPath() {

StringBuffer sb = new StringBuffer();

sb.append(path);

boolean firstTimeThrough = true;

if (parameters != null  !parameters.isEmpty()) {
sb.append(questionMark);

Iterator it = parameters.keySet()
.iterator();

while (it.hasNext()) {

String paramName = (String)it.next();
String paramValue = (String)parameters.get(paramName);

if (firstTimeThrough) {
firstTimeThrough = false;
} else {
sb.append(ampersand);
}

sb.append(paramName);
sb.append(equals);
sb.append(paramValue);

}
}

return sb.toString();
}


   
public void addParameter(String paramName, Object paramValue) {
addParameter(
paramName,
paramValue.toString());

}

public void addParameter(String paramName, String paramValue) {
parameters.put(paramName, paramValue);

}
}

-Original Message-
From: Jay Glanville [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 2:12 PM
To: 'Struts Users Mailing List'
Subject: RE: What is the best way to pass a parameter to a forward?


Latest stable release: 1.1

--
Jay Glanville


 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Martin Cooper
 Sent: Tuesday, March 16, 2004 1:33 PM
 To: [EMAIL PROTECTED]
 Subject: Re: What is the best way to pass a parameter to a forward?
 
 
 
 Jay Glanville [EMAIL PROTECTED] wrote 
 in message
 news:[EMAIL PROTECTED]
  It's funny that you say that it will not work, because it 
 does for me,
  and without throwing any exceptions.
 
 What version of Struts are you using? It's not supposed to 
 work, at least
 with the latest code, so I'd like to find out whether we have 
 a bug, or
 you're using a version prior to the forwards being frozen.
 
 --
 Martin Cooper
 
 
 
  That being said, your point about modifying an action 
 mappings forwards
  is a good one.  It is unfortunate that the ActionForward 
 class doesn't
  have a copy constructor 
 
  --
  Jay Glanville
 


-
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]



replacing messages tag with fmt tag - can both exist at 1x?

2004-03-01 Thread Menke, John
does anyone have the messages tag working in the same application as the fmt
tag using the fmt tag for displaying messages in some pages and messages for
other pages?  can you implement both at once?



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



is there any way to include HTML in message properties file?

2004-02-29 Thread Menke, John
I would like to do something like this:

key.name= b my message in bold /b

is there any way to get the messages tag to output escaped hmtl?

-john


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



RE: is there any way to include HTML in message properties file?

2004-02-29 Thread Menke, John
so you can't do something like 

my.message=this part not bold b this part bold/b this part not bold ...

can you do it with the fmt tag?



-Original Message-
From: David Adelson [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 29, 2004 7:56 PM
To: Struts Users Mailing List
Subject: RE: is there any way to include HTML in message properties
file?


If its just for messages,
We do the following
This defines the header and footer for a message, IE, we set
the color and an unordered list

!-- error HTML header and footer (note: errors. is required by struts) --
errors.header=p align=centerbfont color=redSystem
Message/bbrul
errors.footer=/ul/font

Then each message is done as:
validation.city=lip align=centerCity cannot be empty/li

I would think just doing:
key.name= b my message in bold /b 
would work??

but what I have shown you above works for us




-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 29, 2004 7:49 PM
To: Struts (E-mail)
Subject: is there any way to include HTML in message properties file?


I would like to do something like this:

key.name= b my message in bold /b

is there any way to get the messages tag to output escaped hmtl?

-john


-
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: how to output html symbol to jsp page from user-defined tagli b?

2004-02-09 Thread Menke, John
there is an escapeXML attribute on the core:out tag set it to true

-Original Message-
From: Ricky Lee [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 07, 2004 9:42 AM
To: [EMAIL PROTECTED]
Subject: how to output html symbol to jsp page from user-defined taglib?


hi, thanks for reading..

i have a problem about output a html symbol from
taglib

if i in a jsp page, use the code below:

%
String abc=gt;;
out.println(abc);
%

it can show the symbol ;

if in my taglib class, i use code below:

pageContext.setAttribute(symbal, gt;);

and in the jsp page, i use code below to output the
page context attrubite.

c:out value=${symbal} /

it doesn't show me the  symbol, it still show me
gt;

please help methanks! 



__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.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]



static variables in actions

2004-02-03 Thread Menke, John
if I have a collection of state names and I don't want to have to retrieve
it over and over again can i
do something like this in my action?


static Collection _collection;

if (collection == null ){
   _collection = getCollectionFromDB();
}

form.setCollection = _collection









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



formatting messages

2003-12-19 Thread Menke, John
Can I format messages with html in my message resources file?  I have a
message that i would certain parts of displayed bold.  Can I do this?

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



RE: formatting messages

2003-12-19 Thread Menke, John
it seems that when i do this

custom.message=value I want bold b{0}/b 

i don't get the tags written correctly.  I also tried entering the tags in
url-encoded form... and it ends up 
outputting exactly what i write in message resources

-jm

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Friday, December 19, 2003 11:16 AM
To: Struts Users Mailing List
Subject: RE: formatting messages


 From: Menke, John [mailto:[EMAIL PROTECTED] 
 Can I format messages with html in my message resources file? 
  I have a
 message that i would certain parts of displayed bold.  Can I do this?

Sure, look at the struts-example webapp, specifically the error
messages:

error.username.required=liUsername is required/li
error.username.unique=liThat username is already in use - please
select another/li
errors.footer=/ulhr
errors.header=h3font color=redValidation Error/font/h3You must
correct the following error(s) before proceeding:ul

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

-
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: formatting messages

2003-12-19 Thread Menke, John
this is my test
 
custom.message=value I want bold b{0}/b

and it outputs: value I want bold b7/b

I am using the ActionMessages not ActionErrors does this make a difference?


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Friday, December 19, 2003 11:25 AM
To: Struts Users Mailing List
Subject: RE: formatting messages


 From: Menke, John [mailto:[EMAIL PROTECTED] 
 it seems that when i do this
 custom.message=value I want bold b{0}/b 
 i don't get the tags written correctly.

I use this with no problems:
error.record.locked=liUnfortunately, {0} record {1} is locked by
another user, and the system was unable to save your changes./li

Can you post exactly what's in your .properties file along with the
generated HTML?  Maybe another set of eyes will see what's wrong.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

-
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]



NJ User Group to Study Struts / JSF

2003-11-11 Thread Menke, John

The NJMVCOpenSource Group meets in Morristown NJ every 4th Saturday of every
month.  We are just starting to discuss JSF / Struts.  Anyone that wants to
join please see:

http://groups.yahoo.com/group/njmvcopensource/

We welcome new members :) 

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



OT: Formatting Negative Numbers

2003-11-04 Thread Menke, John
I have asked this question on the TagLib list with no luck.  

Hoping this is not too annoying asking here :)

I have a requirement in my application that states that negative numbers
should be formatted in parenthesis in red without the negative sign.  

Is there any way to do this in JSTL without coding it with c:choose and
c:when???  

If not I'm thinking my best option would be to write my own taglib.
Comments would be appreciated.

-jm

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



RE: Forwards with parameters

2003-10-08 Thread Menke, John
I found this class on this list a while ago.  It works great:


package yourpackage;

import org.apache.struts.action.ActionForward;

import java.util.HashMap;
import java.util.Iterator;



public final class ParameterActionForward extends ActionForward {

private static final String questionMark = ?;
private static final String ampersand = ;
private static final String equals = =;
private HashMap parameters = new HashMap();
private String path;

/**
 * Creates a new ParameterActionForward object.
 *
 * @param forward DOCUMENT ME!
 */
public ParameterActionForward(ActionForward forward) {
setName(forward.getName());
setPath(forward.getPath());
setRedirect(forward.getRedirect());

}

/**
 * DOCUMENT ME!
 *
 * @param path DOCUMENT ME!
 */
public void setPath(String path) {
this.path = path;

}


/**
 * DOCUMENT ME!
 *
 * @return DOCUMENT ME!
 */
public String getPath() {

StringBuffer sb = new StringBuffer();

sb.append(path);

boolean firstTimeThrough = true;

if (parameters != null  !parameters.isEmpty()) {
sb.append(questionMark);

Iterator it = parameters.keySet()
.iterator();

while (it.hasNext()) {

String paramName = (String)it.next();
String paramValue = (String)parameters.get(paramName);

if (firstTimeThrough) {
firstTimeThrough = false;
} else {
sb.append(ampersand);
}

sb.append(paramName);
sb.append(equals);
sb.append(paramValue);

}
}

return sb.toString();
}


 
public void addParameter(String paramName, Object paramValue) {
addParameter(
paramName,
paramValue.toString());

}


   
public void addParameter(String paramName, String paramValue) {
parameters.put(paramName, paramValue);

}
}


Example Usage:

ParameterActionForward forward = new ParameterActionForward(
mapping.findForward(myforward));

forward.addParameter(myParam, myValue);  

return forward;




-Original Message-
From: Jason Meredith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 7:23 AM
To: Struts Users Mailing List
Subject: Forwards with parameters



Chaps

I have a link with some parameters that a user selects to update a specific
record, something like this -

action/names?action=PageEditparamOne=101paramTwo=BOBparamThree=Joe

When a user updates the record, I want them to be able to go back to that
record with those parameters (this will have changed because the field
would have been updated)

To return a basic forward would be something like -

return mapping.findForward(success);

which would map to another action or possibly a JSP page.

How do get the mapping to forward to that url with those parameters
(remember that the params would be dynamic depending on the record
selected)

Regards

Jason




***
The e-mail and any attachments are confidential. They may contain
privileged information and are intended for the named addressee(s)
only. If you are not the intended recipient, please notify us
immediately and do not disclose, distribute, or retain this e-mail
or any part of it.

Unless expressly stated, opinions in this e-mail are those of the
individual sender and not of the FIMAT Group. We believe but do not
warrant that this e-mail and any attachments are virus free. 
You must therefore take full responsibility for virus checking. 
The FIMAT Group reserve the right to monitor e-mail communications
through its networks. 

Where this communication constitutes a financial promotion it is issued
and approved by Fimat International Banque S.A. (UK Branch) and is 
only intended for persons of a kind described in article 19(5) of the
Financial Services and Markets Act 2000 (Financial Promotion) Order
2001.  This information is not intended to be distributed to UK Private
Customers (as defined by the Financial Services Authority).

Fimat International Banque S.A. (UK Branch) whose registered branch
in England is at SG House, 41 Tower Hill, London EC3N 4SG is authorised
by the Commission Bancaire in France and by the UK Financial Services
Authority; regulated by the Financial Services Authority for the conduct of
UK Business and is entered in the Financial Services Authority's register
(Register Number 183415), access to which can be gained via the following
link: www.fsa.gov.uk/register/

Member and a SETS Participant of the London Stock Exchange (LSE).
Where this communication is confirming an on exchange transaction
(as defined by the LSE),the transaction is subject to the rules of the LSE.
Any information, 

RE: newbie: Best Practice Struts/Value-Objects?

2003-10-02 Thread Menke, John
you could use hidden variables on your jsp page to store the VO attributes
you are not changing and keep your VO intact only changing the 5 fields

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 11:05 AM
To: 'Struts Users Mailing List'
Subject: RE: newbie: Best Practice Struts/Value-Objects?


Hi Darren,
I was under the impression that it works exactly the way you hope it
does.
Actually I'm pretty sure it does.
Also what might be worth looking at ( I have to look at it myself ), is 
Light-value-objects where you only populate the initial value object
with the 5 fields rather than the whole 20. This is obviously more
optimal in 
terms of db queries.

This is all pre-supposing you are using xdoclet and EJBs and xdoclet,
which
perhaps you are not.

HTH,
Brian

-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED] 
Sent: 02 October 2003 13:41
To: [EMAIL PROTECTED]
Subject: newbie: Best Practice Struts/Value-Objects?

Hi all!
Been working with struts and value-objects, and I am beginning to
understand the power of these two in combination. I did however run into
a snag that may be either on purpose or just ignorance on my part.

If I pass a 20-field value-object to an ActionForm (let's say an
EmployeeVO), and I only show the employee's name and address for editing
(only 5 or so fields).  They make the necessary changes and submit the
form.  What I understand is the form will populate a NEW EmployeeVO and
not make the changes to the original EmployeeVO, thereby creating an
EmployeeVO populated only from the 5 fields on the form and nulling the
other 15 fields.

I was hoping to take an existing Value-Object, only make necessary
changes from the submitted form (i.e. 0-5 changed fields and the other
15 stay the way they are), and then re-submit the Value-Object for
updating the DB, but that does not seem possible.  Am I doing something
wrong and/or mis-understanding the best utilization of Value-Objects
with Struts?  Again, I'm a newbie so any pointers, help, or examples
would be great!

thanky in advance!
-D

-
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: how to output value in text field?

2003-10-02 Thread Menke, John
Use JSTL: 

%@ taglib prefix=core uri=/WEB-INF/c.tld % 
html:form action=/myaction.do
core:set var=form value=${myActionForm}/ --mapped in struts-config.xml

core:out value=${form.attributeToDisplay}/

-Original Message-
From: Rick Col [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 12:27 PM
To: [EMAIL PROTECTED]
Subject: how to output value in text field?


Hi,

I am trying to output a default value in a textfield.
I did something like this:
html:text property=myValuebean:write
name=myValue//html:text

It should work, but it does not seem to work. What did
I do wrong?

regards,

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
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: How can I place a parameter back on the URL

2003-10-02 Thread Menke, John
Use JSTL:

core:url var=myUrl value=/myaction.do
core:param name=myKey value=${key}/

/core:url 

a href=core:out value=${myUrl}/
Link Text
/a


-Original Message-
From: John Habbouche [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 12:51 PM
To: Struts Users Mailing List
Subject: How can I place a parameter back on the URL


I have invoking a JSP with a parameter appended to the jsp name (i.e.
jsname.jsp?from=main) using Struts and Tag  libraries.  This parameter is
specified as part of the struts-config.xml forward element.  When I enter my
jsp, I check to see if my parameter is there by invoking:

req:equalsParameter name=from match=main

This statement evaluates to true.  When I click on my submit button, my
form's validate method gets called which is what I expect since I have
requested validation in my action in struts-config.xml file.  Now if the
form fails to validate, the same JSP is invoked since this is what is
specified as part of my input element in my action.  The
question is:

How can I place the parameter back on the URL (i.e. from=main) in my JSP
prior to pressing the submit button using an elegant way (i.e. Tags) without
using scriplets.  I am using a form:

html:form action=/editUser.do 

and I need to be able to append a parameter to the action value
(/editUser.do) except the parameter  must be dynamic (i.e. the from must
be dynamic, extrated from the request with request.getParameter(from).
The value can change depending on where I am coming from.   The end result
should look like this:

html:form action=/editUser.do?from=main 

Any help would be greatly appreciated.



-
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: newbie: Best Practice Struts/Value-Objects?

2003-10-02 Thread Menke, John
Maybe make what we call a displayBean in our app.  It is not a VO as we view
VO's to be more domain oriented.  It's just for the front end.  In your
action create the display bean and set it on the form.   Then in your action
have logic to take values from displayBean and set them in the VO.   We
don't want our API to get crowded with view oriented objects so the
displayBean is kept in the same package as the actions.  VO's are more
domain oriented and can go into API package.

-jm

-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 2:20 PM
To: Struts Users Mailing List
Subject: RE: newbie: Best Practice Struts/Value-Objects?


Hi John,
Yeah, that is one (messy) solution to my problem. My concern is I would have
to do add those 15 fields in every JSP page that sends the VO back, and if I
have to make a change to the DB/VO, then go back over every JSP page again
to make more changes.

I'm trying to get to as low-maintanence as possible initially, even if it
means sacrificing some performance by not using light-value-objects in the
beginning.  Can always make it faster after it is working correctly, right?
;-)

I'm still lost as to how to handle Struts with Value Objects though
-D

-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 12:16 PM
To: 'Struts Users Mailing List'
Subject: RE: newbie: Best Practice Struts/Value-Objects?


you could use hidden variables on your jsp page to store the VO attributes
you are not changing and keep your VO intact only changing the 5 fields

-Original Message-
From: Brian McSweeney [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 11:05 AM
To: 'Struts Users Mailing List'
Subject: RE: newbie: Best Practice Struts/Value-Objects?


Hi Darren,
I was under the impression that it works exactly the way you hope it
does.
Actually I'm pretty sure it does.
Also what might be worth looking at ( I have to look at it myself ), is 
Light-value-objects where you only populate the initial value object
with the 5 fields rather than the whole 20. This is obviously more
optimal in 
terms of db queries.

This is all pre-supposing you are using xdoclet and EJBs and xdoclet,
which
perhaps you are not.

HTH,
Brian

-Original Message-
From: Darren Hartford [mailto:[EMAIL PROTECTED] 
Sent: 02 October 2003 13:41
To: [EMAIL PROTECTED]
Subject: newbie: Best Practice Struts/Value-Objects?

Hi all!
Been working with struts and value-objects, and I am beginning to
understand the power of these two in combination. I did however run into
a snag that may be either on purpose or just ignorance on my part.

If I pass a 20-field value-object to an ActionForm (let's say an
EmployeeVO), and I only show the employee's name and address for editing
(only 5 or so fields).  They make the necessary changes and submit the
form.  What I understand is the form will populate a NEW EmployeeVO and
not make the changes to the original EmployeeVO, thereby creating an
EmployeeVO populated only from the 5 fields on the form and nulling the
other 15 fields.

I was hoping to take an existing Value-Object, only make necessary
changes from the submitted form (i.e. 0-5 changed fields and the other
15 stay the way they are), and then re-submit the Value-Object for
updating the DB, but that does not seem possible.  Am I doing something
wrong and/or mis-understanding the best utilization of Value-Objects
with Struts?  Again, I'm a newbie so any pointers, help, or examples
would be great!

thanky in advance!
-D

-
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]



OT: NJMVCOpensource SIG study group for Struts/JSF

2003-10-01 Thread Menke, John
The NJMVCOpenSource group will be beginning an intensive study into JSF and
it's integration with Struts at it's next meeting.  The study plan is being
formulated now if anyone would like to attend please see
http://groups.yahoo.com/group/njmvcopensource  

Comments should be directed to the list on Yahoo groups.  Directions and
information on the meetings is available at this site also.



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



RE: Editorial on Struts' Long Term Future

2003-10-01 Thread Menke, John
He seems to infer that Struts and JSF will not be compatable... this is not
true right???  

Sadly, JSF is not backward compatible with Struts.

I seem to remember Craig stating that Struts and JSF will be able to
coexist. 

-jm

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 10:09 AM
To: Struts Users Mailing List
Subject: Editorial on Struts' Long Term Future







You may find this editorial on J2EE/JSF/Struts interesting.
http://www.sdtimes.com/opinions/guestview_087.htm


-
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: .do as welcome-file

2003-09-23 Thread Menke, John
Here's a trick to get an action to execute as home page in your webapp
without having to 
do the jsp redirect.

Put a file called webapp.launch in the root directory of your webapp

Then configure these settings in your web.xml


servlet
servlet-nameredirector/servlet-name
servlet-classyourpackage.Redirector/servlet-class
/servlet

servlet-mapping
servlet-nameredirector/servlet-name
url-pattern*.launch/url-pattern
/servlet-mapping

package yourpackage;

import javax.servlet.*;
import javax.servlet.http.*;

import java.io.*;
import java.util.*;


/**
 *  Redirector to start application on browse to root url
 *
 
 */
public class Redirector extends HttpServlet {

/**
 *  Stub method
 */
public void destroy() {
}


/**
 *  Forward the user to start page of webapp
 *
 [EMAIL PROTECTED]  request
 [EMAIL PROTECTED]  response
 [EMAIL PROTECTED]  ServletException
 [EMAIL PROTECTED]  IOException
 */
public void doGet(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
response.sendRedirect(home.do);
  
}


/**
 *  Description of the Method
 */
public void init() throws ServletException {
}
}

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 9:05 AM
To: Struts Users Mailing List
Subject: Re: .do as welcome-file


I can confirm that this hack works for tomcat. Create the dummy file 
start/start.do and tomcat will be happy, and you will still get the 
actual struts mapping.

On 09/23/2003 02:06 PM Mainguy, Mike wrote:
 I haven't tried it, but I've been told that, in tomcat, if you create a
file
 with that exact name it will work properly.  Evidently you cannot specify
a
 servlet path as a welcome file.
 
 -Original Message-
 From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 23, 2003 7:00 AM
 To: [EMAIL PROTECTED]
 Subject: .do as welcome-file
 
 
 Does anyone has figured out how to do this?
 
   welcome-file-list
   welcome-file/start/start.do/welcome-file
   /welcome-file-list
 
 I am not able to make it work.
 
 TIA,
 
 Adolfo.
 
 _
 Protect your PC - get McAfee.com VirusScan Online 
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 This message and its contents (to include attachments) are the property of
Kmart Corporation (Kmart) and may contain confidential and proprietary
information. You are hereby notified that any disclosure, copying, or
distribution of this message, or the taking of any action based on
information contained herein is strictly prohibited. Unauthorized use of
information contained herein may subject you to civil and criminal
prosecution and penalties. If you are not the intended recipient, you should
delete this message immediately.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


-
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: .do as welcome-file

2003-09-23 Thread Menke, John
I guess it's all the same as long as it works.  You solution might be
simpler actually no web.xml configs for the servlet

-Original Message-
From: Christian Bollmeyer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 9:52 AM
To: Struts Users Mailing List
Subject: Re: .do as welcome-file


I usually just put s/th like this in my index.jsp

jsp:forward page=/main.do /

and that's it. Whats the possible advantage
of using a redirect or other solutions that
also require a physical file in the root dir?

-- Chris

- Original Message -
From: Menke, John [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 3:28 PM
Subject: RE: .do as welcome-file


 Here's a trick to get an action to execute as home page in your webapp
 without having to
 do the jsp redirect.

 Put a file called webapp.launch in the root directory of your webapp

 Then configure these settings in your web.xml


 servlet
 servlet-nameredirector/servlet-name
 servlet-classyourpackage.Redirector/servlet-class
 /servlet

 servlet-mapping
 servlet-nameredirector/servlet-name
 url-pattern*.launch/url-pattern
 /servlet-mapping

 package yourpackage;

 import javax.servlet.*;
 import javax.servlet.http.*;

 import java.io.*;
 import java.util.*;


 /**
  *  Redirector to start application on browse to root url
  *

  */
 public class Redirector extends HttpServlet {

 /**
  *  Stub method
  */
 public void destroy() {
 }


 /**
  *  Forward the user to start page of webapp
  *
  [EMAIL PROTECTED]  request
  [EMAIL PROTECTED]  response
  [EMAIL PROTECTED]  ServletException
  [EMAIL PROTECTED]  IOException
  */
 public void doGet(HttpServletRequest request, HttpServletResponse
 response)
   throws ServletException, IOException {
 response.sendRedirect(home.do);

 }


 /**
  *  Description of the Method
  */
 public void init() throws ServletException {
 }
 }

 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 23, 2003 9:05 AM
 To: Struts Users Mailing List
 Subject: Re: .do as welcome-file


 I can confirm that this hack works for tomcat. Create the dummy file
 start/start.do and tomcat will be happy, and you will still get the
 actual struts mapping.

 On 09/23/2003 02:06 PM Mainguy, Mike wrote:
  I haven't tried it, but I've been told that, in tomcat, if you create a
 file
  with that exact name it will work properly.  Evidently you cannot
specify
 a
  servlet path as a welcome file.
 
  -Original Message-
  From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, September 23, 2003 7:00 AM
  To: [EMAIL PROTECTED]
  Subject: .do as welcome-file
 
 
  Does anyone has figured out how to do this?
 
  welcome-file-list
  welcome-file/start/start.do/welcome-file
  /welcome-file-list
 
  I am not able to make it work.
 
  TIA,
 
  Adolfo.
 
  _
  Protect your PC - get McAfee.com VirusScan Online
  http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  This message and its contents (to include attachments) are the property
of
 Kmart Corporation (Kmart) and may contain confidential and proprietary
 information. You are hereby notified that any disclosure, copying, or
 distribution of this message, or the taking of any action based on
 information contained herein is strictly prohibited. Unauthorized use of
 information contained herein may subject you to civil and criminal
 prosecution and penalties. If you are not the intended recipient, you
should
 delete this message immediately.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 --
 struts 1.1 + tomcat 4.1.27 + java 1.4.2
 Linux 2.4.20 RH9


 -
 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]



getting the current thread inside an action

2003-09-23 Thread Menke, John
Is there a way to get reference to the current thread from within an Action?

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



RE: getting the current thread inside an action

2003-09-23 Thread Menke, John
I have a servlet that writes it's output as PDF via the response and a
BufferedOutputStream.  This code need to use a temporary directory to create
the PDF via FO transform.  I don't want to just have one temp directory for
all users each user should get his own directory.  I was going to use
Thread.toString() for a unique identifier to name the directory.

  

-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 10:59 AM
To: Struts Users Mailing List
Subject: RE: getting the current thread inside an action


 -Original Message-
 From: Menke, John [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 23, 2003 9:49 AM
 To: Struts (E-mail)
 Subject: getting the current thread inside an action
 
 
 Is there a way to get reference to the current thread from 
 within an Action?

Yes: Thread.currentThread().

The question I would ask is: Why? The servlet container should isolate you
from having to deal with individual threads. What are you trying to do?

-= J

-
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]



Writing to output in an Action??

2003-09-23 Thread Menke, John

I have never written directly to the response in an Action are there any
known issues related to doing this?  Currently I have an action that calls a
servlet that writes to the response to do this.  Can I do directly from my
Action?  (Write to the output??)  What would be considered best practice??

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



Forwarding to existing servlet from Struts??

2003-09-17 Thread Menke, John
I need to forward from a struts action to a servlet.  How can this be done?

-john

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



RE: Forwarding to existing servlet from Struts??

2003-09-17 Thread Menke, John
that would be a good start I guess.  :)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 3:11 PM
To: Struts Users Mailing List
Subject: RE: Forwarding to existing servlet from Struts??


Have you tried using an ActionForward? (duh)

-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 September 2003 03:06
To: Struts (E-mail)
Subject: Forwarding to existing servlet from Struts??


I need to forward from a struts action to a servlet.  How can this be done?

-john

-
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: Forwarding to existing servlet from Struts??

2003-09-17 Thread Menke, John
That worked perfectly thanks :)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 3:27 PM
To: Struts Users Mailing List
Subject: RE: Forwarding to existing servlet from Struts??


Umm.. if its in a different webapp the Im not sure what you need to do ( it
would need to be redirecting in that case and I think you have to set the
'absolute' property??? hmmm), but for a servlet in the same webapp its not a
problem, just define the forward to the appropriate path (or more
specifically to the path you mapped for that servlet in web.xml) just like
you would for a jsp (which is in fact really a servlet in disguise!)

-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 September 2003 03:19
To: 'Struts Users Mailing List'
Subject: RE: Forwarding to existing servlet from Struts??


that would be a good start I guess.  :)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 3:11 PM
To: Struts Users Mailing List
Subject: RE: Forwarding to existing servlet from Struts??


Have you tried using an ActionForward? (duh)

-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 September 2003 03:06
To: Struts (E-mail)
Subject: Forwarding to existing servlet from Struts??


I need to forward from a struts action to a servlet.  How can this be done?

-john

-
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]



Does Struts Menu work with subapps?

2003-08-20 Thread Menke, John
Will the menu be able to handle links to subapps correctly?  

-jm



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



Struts 1.1 questions

2003-07-28 Thread Menke, John
We have an app that is broken down into sub-apps.
Within the struts-config.xml file (defined in the web.xml as being the
default app) I have this entry:
message-resources parameter=com.acs.cfs.kidstar.web.KidstarResources/
Within a sub-app's config file I have the following entries:
message-resources parameter=com.acs.cfs.kidstar.web.KidstarResources/
message-resources
parameter=com.acs.cfs.kidstar.web.casemgmt.CasemgmtResources /
message-resources key=MESSAGE
parameter=com.acs.cfs.kidstar.web.casemgmt.CasemgmtMessages /
Questions are this.
1) While in a jsp of a sub-app, if someone looks up a message WITHOUT using
the bundle attribute and it is not found in the sub-app's default resource
bundle (ie: html:messages id=message message=true
header=messages.header footer=messages.footer )
will Struts look to the applications default msg-resource's file for that
key? (For example with what I've defined above if key foomsg isn't found
in the com.acs.cfs.kidstar.web.casemgmt.CasemgmtResources file, will it go
to the com.acs.cfs.kidstar.web.KidstarResources file to look for it?
It appears to not be the case.
2) Is it possible to have what I've got in the sub-app config file - that
being 2 default resources (both without the key attribute)? It seems
that Struts does not complain about this but it only takes the last entry in
the list for the default resource. What I really want to happen is, look in
KidstarResources and if not found look in CasemgmtResources. (Of course if 2
files contain the same key there'd need to be a pecking order of who is used
first, in my case I don't have msgkeys that are contained in both files).
Thanks for any info on this.



Cannot find bean message in any scope

2003-07-26 Thread Menke, John
I am trying to use the message tag to output messages and I am getting this
error:

 javax.servlet.jsp.JspException: Cannot find bean message in any scope 
 at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938) 




 


New Jersey MVC Open Source Meeting on SAT 7/26

2003-07-24 Thread Menke, John
New Members are welcome :)

http://groups.yahoo.com/group/njmvcopensource/

-jm


New Jersey User Group meeting this Saturday - NJMVCOpenSource

2003-06-24 Thread Menke, John
The New Jersey Model View Controller / Open Source User group is having it's
meeting this Saturday at 2:00pm at the Morris County Library in Whippany NJ
just off rt. 287

See Our web site at:

http://groups.yahoo.com/group/njmvcopensource/


Directions to the meeting:

http://www.gti.net/mocolib1/compass.html


Presentations will include.

1. Vic Ceknevich - author of Struts FastTrack and lead developer on 
the BasicPortal Project is going to do a presentation on 
BasicPortal. Vic has added many new features including some really 
cool stuff he does to create UI's in Flash. It should be a great 
demo. 

2. John Menke - JSF Tutorial Presentation and Struts-Layout 
Navigator tag update

Others are welcome to present also. 

I will be posting to the Struts group for more members so maybe we 
can get even more participants now. Last month we had 10 attendees 
and 3 presentations. This month should be even better!

-jm




RE: Problem with ExpressionEvaluatorManager in a custom jstl tag

2003-06-10 Thread Menke, John
Did you implement the tag by following the EL examples in the struts-contrib
source code?



-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 7:33 AM
To: [EMAIL PROTECTED]
Subject: Re: Problem with ExpressionEvaluatorManager in a custom jstl
tag


Please post on another mail list, JSPTags or JSP.
.V

Dom wrote:

Hi

I've created a tag using rt expression without trouble.

I 've created the same tag using jstl : in doEndTag(), I call
ExpressionEvaluatorManager.evaluate with the right parameters, but running
it, i get (in a try catch):

2003-06-10 11:19:59,963 ERROR [org.jboss.web.localhost.Engine]
ApplicationDispatcher[/wassWEB] Servlet.service() pour la servlet jsp a
lancé une exception
org.apache.jasper.JasperException:
org/apache/taglibs/standard/lang/support/ExpressionEvaluatorManager
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
2
54)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher
.
java:684)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatc
h
er.java:432)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatche
r
..java:356)
 at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1
0
69)
...
2003-06-10 11:20:00,213 ERROR [org.jboss.web.localhost.Engine] - Root
Cause -
javax.servlet.ServletException:
org/apache/taglibs/standard/lang/support/ExpressionEvaluatorManager
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextIm
p
l.java:536)
 at org.apache.jsp.client_jsp._jspService(client_jsp.java:323)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
2
10)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher
.
java:684)


I can't debug it, the exception is not catched.

I'm using other standard jstl tags (c, html-el, etc) without problem

What's happening there ?

Dom
  


-- 
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA

Advanced a href =baseBeans.comStruts Training/a and project recovery
in North East.
Open Source a href =baseBeans.comContent Management/a  basicPortal
sofware
Best practicea href =baseBeans.comStruts Support/a v.1.1 helper
ScafflodingXPress




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


RE: new sample best practice Struts data driven web app for Tomcat 5/Resin 3

2003-03-21 Thread Menke, John
very cool Vic!!  I need tomcat 5 to download?  I will do it.  Want to
check it out.  

-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 4:14 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: new sample best practice Struts data driven web app for
Tomcat 5/Resin 3


I released a new basicPortal implementation called bP v0.8k available 
for download on basicPortal.sf.net.

- The new version is same simple bean has a dao helper design, but it 
uses ibatis.com db layer. (the older design used RowSet) Ibatis db 
layer is very nice.

- It now works fine and is tested with MYSQL. (and pgSQL)

- It is build for JSP 2.0 containers, like a late build of resin 3 and 
tomcat 5, tested to work with both (but could be converted to JSP 1.2 
with addition of the c tag)

- It now has a list of maps backed beans for more flexibility. (old 
design was rows of columns), aka list backed bean.

- It uses display tag (struts menu, JSP2, JSTL, tiles, etc.)

- Like before, the base action dispatches, DAO is a interface (so you do 
not have to use iBatis db layer) and beans knows how to CRUD, via very 
nice OO.

Of course... still more to do

.V



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


[ANN] NJ MVC Open Source Meeting (njmvcopensource)

2003-03-19 Thread Menke, John
The NJMVCOPENSOURCE group will be having it's monthly meeting this Sunday at
the Morristown Public Library in Morristown NJ at 2:30

New members are welcome!!!

We are scheduled to talk about using JDeveloper / BC4J and PostgreSQL with
Struts to develop web applications.  Other topics may include the Struts
Menu.  


For directions and information see

http://groups.yahoo.com/group/njmvcopensource

http://www.gti.net/mocolib1/compass.html


RE: Opinions on Struts code generator - A zipped version

2003-03-18 Thread Menke, John
JDeveloper from oracle can generate a fully functioning Struts webapp (CRUD
and Search pages) just by pointing to a schema and using the wizards. It
even works with PostgreSQL.  I think you have to use BC4J though for your
persistence layer.  BC4J is free just not open Source.

-Original Message-
From: James Higginbotham [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 16, 2003 11:55 AM
To: Struts Users Mailing List
Subject: RE: Opinions on Struts code generator - A zipped version


Nice! Wow, hadn't seen that before, only knew of JasperReports.. Thanks
for link Vic!

Here are some screenshots (thanks Google) of NetDynamics, which will
give you a feel for how it allowed a project to define datasources and
pages:

http://www.exa-corp.co.jp/aps/websolution/images/nd5Studio.gif

http://developer.netscape.com/software/tools/listing/application/databas
e/NetDynamics/nd_scr_1_small.gif

(will need a magnifier for that one!)

And, here are some visual interdev shots:

http://msdn.microsoft.com/library/en-us/vidref98/html/vi54xk1.gif

http://www.microsoft.com/mspress/books/sampchap/1607/vi52fd7x.gif

And the VB-style of event navigation:

http://msdn.microsoft.com/library/en-us/dncomg/html/vbscriptcom01.gif

Put it all together and use J2EE and Struts as the foundation, and you
have a worthy .Net adversary with excellence in engineering!

James

 -Original Message-
 From: Vic Cekvenich [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, March 16, 2003 8:53 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Opinions on Struts code generator - A zipped version
 
 
 Like this (but it's read only): 
 http://ireport.sourceforge.net/images/screenshot6.gif
 It even has a wizzard from SQL.
 .V
 
 
 James Higginbotham wrote:
  Interesting.. How about taking this to the next level, which all 
  struts generators have failed to do (except a BEA tool that 
 requires 
  you to buy into them):
  
  1) Offer the ability to define the concept of a page, which has 
  associated to it the action and an JSP page
  2) Define the fields that will be managed within the JSP page, 
  including the types of fields (text, textarea, drop down), 
 datasources 
  for drop downs, and validation rules
  3) Allow the user to define events that occur when the user submits 
  the page. This would include things like Save, Update, 
 Delete, Create, 
  Cancel, Next, Previous, etc.
  4) Allow the user to select a custom event handler or a default one 
  such as Cancel, which would have a wizard to allow the user 
 to select 
  the page it flows to and do any logic like strip out 
 session beans if 
  the action's form is session scoped
  5) Optionally, you could extend the concept of the fields to allow 
  them to be mapped to datasources, by which I mean an EJB, JDBC 
  Datasource, etc. So, your tools allows for the definition of 
  dataobjects, pages, and fields that are all tied together 
 using some 
  configuration file and optionally generated source.
  
  Note that some of this could be done with a state diagramming tool 
  within the app, and some of it would be more event driven. What I'm 
  proposing is something that operates like VB or Visual 
 Interdev, and 
  allows either rapid prototyping, rapid web tier 
 integration, and rapid 
  business tier integration. Add in a little NetDynamics for 
 spice, and 
  you have a really interesting tool that is beyond just code 
  generation. I've been wanting to do this for several years 
 but I've 
  had 0 time to put into it. I've been hoping that someone 
 else catches 
  the vision and can help me run with it, as I firmly believe this is 
  what is missing from J2EE and has rarely been filled in by code 
  generators. My guess is that Eclipse or some other IDE 
 would allow for 
  the GUI of this tool to be built and integrated quickly, benefiting 
  from the IDE's class parsing rules, Add new source 
 capabilities, and 
  other Java semantics that tend to slow tools down when they 
 reach this 
  point.
  
  Thoughts?
  James
  
  
 -Original Message-
 From: james logsdon [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 8:54 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Opinions on Struts code generator - A zipped version
 
 
 
 Hopefully this works...
 
 
 
 
 
 
 From: Robert McIntosh [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 
 [EMAIL PROTECTED]
 
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Opinions on Struts code generator
 Date: Tue, 11 Mar 2003 17:25:06 -0600
 
 how about zipping it up?
 
 james logsdon wrote:
 
 
 I was not able to attach my pdf file. The mail server
 
 either said that
 
 it
 was too big or it just did not attach it.
 
 I created a group on yahoo and added the file there. It can be
 retrieved
 by following the link:
 
 http://groups.yahoo.com/group/quickStartCodeGenerator/files/
 
 QuickStart
 
 .doc
 
 but if you do not have a yahoo id you will have to create
 
 one. Sorry
 
 for
 any inconvenience.
 James
 
 
 
 
 From: james