displaying resultset in jsp(view) from Action(model)?

2006-10-18 Thread Mallik

HI friends
i  new to this struts and now i come to presenting the data in view 
how to present the data in view?
can i use my  ActionForm to create ArrayList or i need to code another
simple bean.
how to pass that ArrayList to View or it defaultly available to View?
what are the meaings of attributes of logic tag? 
let me know all these and give me some sample code or example
ur's
Mallik
-- 
View this message in context: 
http://www.nabble.com/displaying-resultset-in-jsp%28view%29-from-Action%28model%29--tf2464788.html#a6870990
Sent from the Struts - User mailing list archive at Nabble.com.


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



[tiles] Re: Tiles put page using tiles:insert

2006-10-18 Thread Antonio Petrelli

Irv Salisbury ha scritto:
First, is this the appropriate list for tiles questions?  If not, 
sorry, and

can someone tell me a better one...


Yes it is! But just a note: next time put a [tiles] prefix in your
subject field.


I have the following two defintions in my tiles-def.xml file:

   definition name=.tiles.basePage path=/pages/tiles/basePage.jsp
   put name=additionalHead value=/pages/tiles/empty.jsp /
   put name=body   value=/pages/tiles/empty.jsp /
   put name=footer   value=/pages/tiles/footer.jsp /
   put name=pageName value=This will be your page name/
   /definition

   definition name=.tiles.index extends=.tiles.basePage
   put name=pageName value=index/
   put name=additionalHead value=/pages/indexHead.jsp /
   put name=body value=/pages/indexBody.jsp/
   /definition

In the first definition, I have a footer attribute I am using.  However,
inside the /pages/indexBody.jsp of the second definition (which 
extends the
first) I want to do a tiles:insert attribute=footer/  It is 
complaining

that it can't find it.


First of all you can put attributes only in the first level. See this
thread:
http://www.mail-archive.com/user%40struts.apache.org/msg51618.html
Anyway, why don't you put tiles:insert attribute=footer / in your
basePage.jsp?

Ciao
Antonio



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



[tiles] Re: Tiles put page using tiles:insert

2006-10-18 Thread Antonio Petrelli

Irv Salisbury ha scritto:
First, is this the appropriate list for tiles questions?  If not, 
sorry, and

can someone tell me a better one...


Yes it is! But just a note: next time put a [tiles] prefix in your 
subject field.



I have the following two defintions in my tiles-def.xml file:

   definition name=.tiles.basePage path=/pages/tiles/basePage.jsp
   put name=additionalHead value=/pages/tiles/empty.jsp /
   put name=body   value=/pages/tiles/empty.jsp /
   put name=footer   value=/pages/tiles/footer.jsp /
   put name=pageName value=This will be your page name/
   /definition

   definition name=.tiles.index extends=.tiles.basePage
   put name=pageName value=index/
   put name=additionalHead value=/pages/indexHead.jsp /
   put name=body value=/pages/indexBody.jsp/
   /definition

In the first definition, I have a footer attribute I am using.  However,
inside the /pages/indexBody.jsp of the second definition (which 
extends the
first) I want to do a tiles:insert attribute=footer/  It is 
complaining

that it can't find it.


First of all you can put attributes only in the first level. See this 
thread:

http://www.mail-archive.com/user%40struts.apache.org/msg51618.html
Anyway, why don't you put tiles:insert attribute=footer / in your 
basePage.jsp?


Ciao
Antonio


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



Re: R: UTF-8 encoding bean:message tag problem

2006-10-18 Thread navin mca
Hi Marcello,
   
  Thanks for ur suggestion it's really helpful for me.
   
  My all property file text were genereted using IS0-8859 char set  now I had 
convereted it to UTF-8 in editor setting of my eclipse.
   
  Aftre doing that few of the special symbols got wiered.
   
  Wht should I do should I write a programe to convert from IS0-8859 to UTF-8 
all those test?.
   
  Will this work?
   
   
  regards,
  Novin
   
  Marcello Savino [EMAIL PROTECTED] wrote:
  
You said you pasted UTF-8 Characters in the application resource but what kind 
of editor are you using ?
For Instance if you're workin' whith Eclipse you must be sure to set the utf-8 
coding in the editor properties.
HIH 
Ciao, marcello

-Messaggio originale-
Da: navin mca [mailto:[EMAIL PROTECTED] 
Inviato: martedì ±7 ottobre 2006 16.06
A: struts user group
Oggetto: UTF-8 encoding  tag problem

Hi Team,

My current project is supporting charachter encoding IS0-8859 and now we have 
to support UTF-8.

for that I had made following changes

1) in all jsp files


2) in all html 



Now I had pasted some UTF-8 charachters in application resources file.

But In JSP page I m getting problem where text is picking up from resource 
bundle.

I m using 
Wht should I do?

Help me.

I know that there should be some machanism needed to make the 
Do I need to save the application properties file with Encoding UTF-8?...wht 
else?

Hope you undersand my problem.

regards,
Novin



Thanks and Regards,
Novin Jaiswal 
+919890089443(M)
+912026901306(O) direct
+912026982424 Extn:1306

-
Stay in the know. Pulse on the new Yahoo.com. Check it out. 

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




Thanks and Regards, 
Novin Jaiswal 
+919890089443(M) 
+912026901306(O) direct 
+912026982424 Extn:1306

-
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small 
Business.

RE: test -- ignore me

2006-10-18 Thread Pillay, Kiren KN
Hi Antonio,
Your unsubscribe facility doesn't work, I tried about 3 times, are you
aware of this?

Regards

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Sent: 18 October 2006 09:37 AM
To: Struts Users Mailing List
Subject: test -- ignore me

This is a test... Please ignore

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

__

Standard Bank Disclaimer and Confidentiality Note

This e-mail, its attachments and any rights attaching hereto are, unless the 
context clearly indicates otherwise, the property of Standard Bank Group Limited
and/or its subsidiaries (the Group). It is confidential, private and intended 
for the addressee only. Should you not be the addressee and receive this e-mail 
by
mistake, kindly notify the sender, and delete this e-mail, immediately and do 
not disclose or use same in any manner whatsoever. Views and opinions
expressed in this e-mail are those of the sender unless clearly stated as those 
of the Group. The Group accepts no liability whatsoever for any loss or
damages whatsoever and howsoever incurred, or suffered, resulting, or arising, 
from the use of this email or its attachments. The Group does not warrant the 
integrity
of this e-mail nor that it is free of errors, viruses, interception or 
interference. Licensed divisions of the Standard Bank Group are authorised 
financial services providers
in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 
(FAIS).
For information about the Standard Bank Group Limited visit our website 
http://www.standardbank.co.za
___

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



Re: R: UTF-8 encoding bean:message tag problem

2006-10-18 Thread Philippe Schober

Hi,

navin mca schrieb:

  Wht should I do should I write a programe to convert from IS0-8859 to UTF-8 
all those test?.


The application resources shouldn't be anything else than Latin-1.
Use a simple editor like Notepad and paste your UTF-8 stuff into that 
file. Be sure to save it as UTF-8 encoded.


Then run the native2ascii-tool that comes with Java.
native2ascii --encoding=UTF8 input.txt output.properties

You will get a resource-file with encoded utf-characters. It will look 
something like \u0934 or whatever. Those are your unicode characters.


That's it.

Cheers,
 Philippe Schober

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



Re: [shale] extending clay

2006-10-18 Thread Ted Husted

Shale has its own list now:

* http://shale.apache.org/mail-lists.html

Along with a spiffy new logo :)

-T.

On 10/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi

Did you ever do this Gary?

Hermod

-Original Message-
From: Opstvedt, Hermod
Sent: Monday, June 12, 2006 7:39 AM
To: user@struts.apache.org
Subject: RE: [shale] extending clay


Hi

Sounds like a great plugin. I guess one should wait until it is at a V1 stage 
before commiting (At least that is what I have done when committing to 
opensource), but if you someone to help you test it I would be more than 
willing.

Hermod

-Original Message-
From: Ryan Wynn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 7:07 PM
To: Struts Users Mailing List
Subject: Re: [shale] extending clay


On 6/7/06, Gary VanMatre [EMAIL PROTECTED] wrote:
 From: [EMAIL PROTECTED]
 
  Hi
 
  What would be really nice is if you would make the plugin publically 
available.
 

I was intending to make it available.  I had intended to get some
basic functionality working before I did so.  Right now it is at the
stage where it visits your eclipse project and parses all the clay
config files.  It attempts every xml file even those that are included
in jars.  If it is not a clay xml it just keeps chugging along.  The
reason I chose this approach over having to have the user point to
clay configs is that I wanted it to 'just work'.  Based on what it
find it creates a tree view that mimics the inheritance of the
components.  Each node has an icon and a label (the jsfid) which have
some pretty stock images (folder, resource) next to them.  I was
hoping to be able to incorporate more descriptive images, but images
are not my speciality unfortunately.  Maybe after I donate a graphic
oriented person could enhance them.

When you click a node the description from the clay xml is show below
the tree.  You can drag a component from the tree into a clay xml.  At
this point you enter a wizard that asks whether you want to create a
new component extending the one that you dragged or whether you want
to use the dragged component as a child element.  You can also edit
the description - the text area defaults to the description of the
component you dragged.  The wizard is not finished yet and I wanted it
to be able to optionally run through the gamet of adding children,
adding listeners, validators, etc.  When you finish the wizard the
component is dropped as xml into your config file.  Eclipse resource
change listeners are registered to make sure that when you save,
delete, etc the visual component tree is updated.

I also have an xml editor that supports auto complete based on the
available clay components in your workspace.  However, currently this
has yet to be completely incorporated.

I am fairly new to contributing to open source projects.  Should I
contribute the code in it's non-working state or wait until I get
basic working plugin before I donate?

Thanks,
Ryan

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



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email.

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *




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



RE: On Error repopulating the data entered by user on the screen....! how.?

2006-10-18 Thread Anil Kumar T

Hi All,

As you guys asked me here are the details. The TIMForm and TIMAction are
the super classes. Apart from this we have some other forms and actions
which works fine. If you need more details let me know.  Below are he
action mapping and the form bean definition in struts config file.

action path=/tech/createBD
type=com.ics.tim.web.pm.actions.IMJPA00_CreateBreakdownAction
name=CreateNewBreakdown  validate=true
input=/jsp/IMDP00_Create_Breakdown.jsp
forward name=success path=/tech/ViewBD.do redirect=true/
forward name=failure
path=/jsp/IMDP00_Create_Breakdown.jsp/
/action


form-bean name=CreateNewBreakdown
type=com.ics.tim.web.pm.forms.IMJPF00_CreateBreakdownForm/



Regards,
Anil.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 17, 2006 5:30 PM
To: Struts Users Mailing List
Subject: RE: On Error repopulating the data entered by user on the
screen! how.?

From: Anil Kumar T [mailto:[EMAIL PROTECTED]
 But in one particular form the data is not been shown to
 the user.  [...] This application is developed by 4
 people and only one is creating this problem.

Seems like to problem is clear, then! ;)

Without configs it's hard to say; I'd guess it's not configured right.

Dave


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



Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

bean:write problem?

2006-10-18 Thread Mallik

Hi friends
 i have a problem with bean:write..., i am not getting where i am going
worng
this is my code ...
this is action class
--
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception
{
BlocksForm block = null;
try
{

ds = getDataSource(request);
conn = ds.getConnection();
stmt = conn.createStatement();
String query = SELECT
BLOCKID,COLLEGEID,ADDRESS,SHORTDESCRIPTION,PHONE,CREATEDBY,CREATEDDATE FROM
BLOCKS ORDER BY BLOCKID;
rs = stmt.executeQuery(query);

while(rs.next())
{
block = new BlocksForm();
block.setBlockId(rs.getString(BLOCKID));
block.setCollegeId(rs.getString(COLLEGEID));
block.setLocation(rs.getString(ADDRESS));

block.setShortDesc(rs.getString(SHORTDESCRIPTION));
block.setPhoneNo(rs.getString(PHONE));
block.setCreatedBy(rs.getString(CREATEDBY));

block.setCreatedDate(rs.getString(CREATEDDATE));

blocksDetails.add(block);
}

}catch(SQLException e)
{
e.printStackTrace();
}
request.setAttribute(blocksDetails,blocksDetails);
return mapping.findForward(continue);

}

this is by jsp

logic:iterate name=blocksDetails  id=blocks 
tr

td  class=tdborder2bean:write name=blocks
property=blockId//td

td  class=tdborder2bean:write name=blocks
property=shortDesc//td

td  class=tdborder2bean:write name=blocks
property=location//td

td  class=tdborder2bean:write name=blocks
property=phoneNo//td

td  class=tdborder2--/td
/tr

/logic:iterate
---
this is my form bean 
-
public class BlocksForm extends DynaValidatorForm
{
private String blockId;
private String collegeId;
private String location;
private String shortDesc;
private String phoneNo;
private String createdBy;
private String createdDate;

public void setBlockId(String blockId){this.blockId = blockId;}
public void setCollegeId(String collegeId){this.collegeId = collegeId;}
public void setLocation(String location){this.location = location;}
public void setShortDesc(String shortDesc){this.shortDesc = shortDesc;}
public void setPhoneNo(String phoneNo){this.phoneNo = phoneNo;}
public void setCreatedBy(String createdBy){this.createdBy = createdBy;}
public void setCreatedDate(String createdDate){this.createdDate =
createdDate;}

public String getBlockId(){ return this.blockId;}
public String getCollegeId(){ return this.collegeId;}
public String getLocation(){ return this.location;}
public String getShortDesc(){ return this.shortDesc;}
public String getPhoneNo(){ return this.phoneNo;}
public String getcreatedBy(){ return this.createdBy;}
public String getCreatedDate(){ return this.createdDate;}


}
---
let me know where i went worng

ur's
Mallik

-- 
View this message in context: 
http://www.nabble.com/%3Cbean%3Awrite%3E-problem--tf2465683.html#a6873390
Sent from the Struts - User mailing list archive at Nabble.com.


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



RE: bean:write problem?

2006-10-18 Thread Dave Newton
From: Mallik [mailto:[EMAIL PROTECTED]
 i have a problem with bean:write..., i am not getting where i am
 going worng

Um... you neglected to mention what the problem was.

Dave


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



RE: On Error repopulating the data entered by user on the screen....! how.?

2006-10-18 Thread Dave Newton
From: Anil Kumar T [mailto:[EMAIL PROTECTED]
 As you guys asked me here are the details.

Need the JSP; might even need the form classes.

Dave

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



[ANN] security component 1.0-beta (incl struts integration)

2006-10-18 Thread Nathan Coast

Hi,

The codeczar team is pleased to announce the 1.0-beta release of the 
codeczar security component. This component enables db-resident 
user/role/group security within your webapps. This release includes:


* admin webapp to manage users, roles  groups.
* client jars to integrate with your web-apps.
* tomcat realm jar.
* struts integration instructions.
* group  role based jsp taglibs.
* client api for programmatic security.
* sql installation scripts.
* struts demo application.
* servlet demo application.

All documentation can be found here:
http://wiki.codeczar.com/index.php/security

the demo admin interface and demo client apps can be accessed from here:
http://wiki.codeczar.com/index.php/security/Demonstration

Please post any questions, suggestions and comments to the security forum:
http://forum.codeczar.com/viewforum.php?f=3

Please report bugs with bugzilla:
http://bugzilla.codeczar.com/buglist.cgi?product=security

cheers
Nathan


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



Unable to forward to anything but a jsp

2006-10-18 Thread Darren Hall
I'm having two issues -

1)   I cannot forward (or map) to an individual file - only to a path.
I'd like to find a way to be able to forward to a specific file (html, pdf,
etc.). Is this a configuration issue?

2)   When I execute a forward action in struts config, I can only
forward to a jsp file and have it display successfully. I can't forward to
any other type of file (html, pdf, etc.)

 

I need to be able to have the user click a link to a pdf file and have the
file display in a new browser. Unfortunately, all requests to my domain go
through my struts application, so I can't simply do this through apache
httpd server - and the pdfs need to exist in my application's domain so they
will be crawled by our search functionality and show up in search results.
I'm not sure how I can accomplish clicking a link and displaying a pdf file
directly given the above two constraints.

I'm using struts 1.2.9 apache 2.2 and tomcat 5.5.  Can someone please tell
me what I'm doing wrong and point me towards a solution?

 

Thanks,

 

Darren



Struts Workflow

2006-10-18 Thread Roger Varley

Hi

I'm looking at the possibilty of using Struts for my next project,
which is to replace an internal intranet application that uses an
applet with a servlet based framework. Among the many challenges is
the need, because the applet is basically a multi-screen data entry
program, to have absolute control over the sequence flow of the
application - ignore browser back/forward, bookmarking etc and I
probably need some way of telling if a user navigates away/closes the
browser mid-session.

Can I do this with Struts (and if so, how) or do I need a more generic
worklfow type of framework?

Sorry if this all sounds a bit vague, but I'm just at the start of
trying to sort all this out.

Regards

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



Cannot get errors to display to screen

2006-10-18 Thread Perry Minchew
Hi all. 

 

Struts newb reporting. I have been working on a new web app for our company
to streamline registration, and am still stumbling through the basic
building blocks of struts. I am using Struts 1.3.5 on Tomcat v5.5. I am
trying to add error handling into my process now.

 

The current problem is, I cannot use the ActionErrors functionality to
display errors on the jsp page.

 

Here's what I have:

 

Struts-config.xml:

global-forwards

forward name=error path=/error.jsp/

/global-forwards

 

action-mappings   

action path=/Register2

 
type=mil.navy.spawar.registration.action.RegisterAction

forward name=register2
path=/register2.jsp /

forward name=existingUser
path=/existingUser.jsp /

/action  

/action-mappings  





RegisterAction.java:

public class RegisterAction extends Action {



public ActionForward execute(

ActionMapping mapping,

ActionForm form,

HttpServletRequest request,

HttpServletResponse response) throws
Exception {





if(request.getParameter(portal) == null) {

MessageResources messageResources =
getResources(request);

ActionErrors errors = new
ActionErrors();

errors.add(portalNotFound, new
ActionMessage(messageResources.getMessage(errors.portal.not.supplied)));

saveErrors(request, errors);

return mapping.findForward(error);

}

.

return mapping.findForward(register2);



error.jsp:

body

logic:messagesPresent

html:errors/

/logic:messagesPresent

/body

 

I've even tried

body

html:errors/

/body

 

and in my messageResources properties:

 

errors.portal.not.supplied=You must access the registration page supplying a
portal parameter.

 

 

I get redirected to the errors page correctly if I neglect to put the portal
parameter on the action call, but the ActionError does not display on the
screen. Does anyone have any idea why this is failing to display the errors?

 

Thanks much,

 

 

Perry Minchew

Systems Integrator

SPAWAR Systems Charleston

Office : (843) 218.7031

Cell : (843) 822.1555

 



Want to make a IS0-8859-1 compliant application to UTF-8

2006-10-18 Thread navin mca
Hi Friends,

Problem Description : I am working on a web application(3 tier) which is 
IS0-8859-1 compliant. Want to convert it to UTF-8 for cyrillic language support.

Application architecture: Jsp , Strurts , I18N,JSTL.

I had performed following steps to make it UTF-8.

1) JSP pg/ html pg : 

[EMAIL PROTECTED] pageEncoding=UTF-8 contentType=text/html; charset=UTF-8%

META http-equiv=Content-Type content=text/html; charset=UTF-8


Application properties are picking up by struts based on locale. for ex. in 
Euro market en_EUR is the locale then a

ApplicationResources_en_EUR.properties

Should I change the properties encoding type to UTF-8?

Please let me know the exact steps to convert the existing web application from 
IS0-8859-1 compliant application to UTF-8.
This application is working fine for french and spanish language.

Now I want to give support for cyrillic or UTF-8.

Thanks
Novin. 


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

Re: Struts 1.3 + Tiles + Chain config

2006-10-18 Thread Michael Rush

   chain name=process-view
 ...
 !--
 If you want to use Tiles, uncomment this command, and the one  
in the

 'servlet-exception' chain below, and make sure you have the
 struts-tiles JAR included in your web application.

 command
  
className=org.apache.struts.tiles.commands.TilesPreProcessor/


 --
 ...
   /chain


Related to this, is there a way to specify the tiles-defs file to  
use? For example, my application has 3 modules, each with its own  
tiles-defs file.


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



Struts2 Showcase Example and Eclipse

2006-10-18 Thread Jim Reynolds

I have downloaded and deployed the showcase examples for Struts2 as a
learning tool. I have been going through the code file by file, and
was wondering if there was a better way to handle this. I have Eclipse
IDE and was wondering if the project could be imported into Eclipse,
so I can walk the classes easier. I am new with Eclipse and also
Struts2. So I am looking for advice on how I could configure this and
also be able to make changes and see the changes within the web app.

Make sense? Thanks,

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



Re: Struts Workflow

2006-10-18 Thread Jim Reynolds

Hello Roger,

I know for sure that Spring has a wizard-like approach for
multi-screen data entry. I believe it is called Spring Web Flow. Now,
I am getting a feeling that  Struts2 supports portions of Spring
(Still trying to figure this out) and also appears to include WebWork.
So to the point of your question  if someone on this list knows if
Web Flow is part of Struts2, then this would be a valid solution if
you do not want to use Spring. I know there is no work-flow in Struts
1.x unless you roll your own.

HTH



On 10/18/06, Roger Varley [EMAIL PROTECTED] wrote:

Hi

I'm looking at the possibilty of using Struts for my next project,
which is to replace an internal intranet application that uses an
applet with a servlet based framework. Among the many challenges is
the need, because the applet is basically a multi-screen data entry
program, to have absolute control over the sequence flow of the
application - ignore browser back/forward, bookmarking etc and I
probably need some way of telling if a user navigates away/closes the
browser mid-session.

Can I do this with Struts (and if so, how) or do I need a more generic
worklfow type of framework?

Sorry if this all sounds a bit vague, but I'm just at the start of
trying to sort all this out.

Regards

-
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: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Don Brown

Simply type, from the command line, mvn eclipse:eclipse and Maven
will generate all the Eclipse-related project files.  Add the
'-Dwtpversion=1.0' flag to also generate Web Tools Project files.

For running the thing, I've had good experiences using the Jetty Maven
2 plugin.  See our Bootstrap tutorial -
http://cwiki.apache.org/confluence/display/WW/Bootstrap

I also found this useful:
http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse

Don

On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:

I have downloaded and deployed the showcase examples for Struts2 as a
learning tool. I have been going through the code file by file, and
was wondering if there was a better way to handle this. I have Eclipse
IDE and was wondering if the project could be imported into Eclipse,
so I can walk the classes easier. I am new with Eclipse and also
Struts2. So I am looking for advice on how I could configure this and
also be able to make changes and see the changes within the web app.

Make sense? Thanks,

-
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: Struts Workflow

2006-10-18 Thread Dave Newton
From: Jim Reynolds [mailto:[EMAIL PROTECTED]
 [...] also appears to include WebWork.

Struts2 *is* WebWork.

Dave

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



why hardcode the path of web.xml?

2006-10-18 Thread Christopher Cheng
I am using version 1.3.5 and found out that that path of web.xml is hard 
coded at line 1723

InputStream input = 
getServletContext().getResourceAsStream(/WEB-INF/web.xml);

In resin, I use config-file to change the path of web.xml for example 
config-filemyapp-web.xml/config-file. As I start the application, the 
servlet crashes of course.
In the mean time, I have added the following to ActionServlet to get around:

String configWebXml = getServletConfig().getInitParameter(configWebXml);

if (input == null) {
input = getServletContext().getResourceAsStream(configWebXml);
}

Could anybody fix this or everybody is already using Struts2?





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



Re: Struts Workflow

2006-10-18 Thread Jim Reynolds

If Struts2 is WebWork, is Spring Configured anywhere for its IOC? When
working with it a while back, I really liked the fact that you could
create the datasource, and inject the datasource into DAOs. Or does
WebWork have an IOC that mimicks Spring?

Thanks,

On 10/18/06, Dave Newton [EMAIL PROTECTED] wrote:

From: Jim Reynolds [mailto:[EMAIL PROTECTED]
 [...] also appears to include WebWork.

Struts2 *is* WebWork.

Dave

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



ValidatorForm vs. ValidatorActionForm

2006-10-18 Thread Jennifer Jacobs

Hello,

I'm in the process of writing all the Java standards for my company right
now, and I'm making my way through our Struts standards and I realized we
have some projects that are using ValidatorForm and some that are using
ValidatorActionForm. I understand the difference between them, and it seems
to me that there would be no harm in making ValidatorActionForm our
standard.  There are reasons to use ValidatorActionForm over ValidatorForm,
but none that I can think of to use ValidatorForm over ValidatorActionForm. 
Am I missing something?  Can anyone think of a reason why I would not want
to use this as our standard?

Thanks,
Jennifer
-- 
View this message in context: 
http://www.nabble.com/ValidatorForm-vs.-ValidatorActionForm-tf2468323.html#a6881780
Sent from the Struts - User mailing list archive at Nabble.com.


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



RE: why hardcode the path of web.xml?

2006-10-18 Thread Wesley Wannemacher
A quick search of the servlet spec doesn't mention web.xml as being
configurable. In fact, page 70 suggests that the contents of 'WEB-INF/'
should include it. If you choose not to call it 'web.xml' and place it
in 'WEB-INF/' that's really your choice, but I wouldn't expect
portability. 

-Wes 

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Cheng
 Sent: Wednesday, October 18, 2006 1:22 PM
 To: user@struts.apache.org
 Subject: why hardcode the path of web.xml?
 
 I am using version 1.3.5 and found out that that path of 
 web.xml is hard 
 coded at line 1723
 
 InputStream input = 
 getServletContext().getResourceAsStream(/WEB-INF/web.xml);
 
 In resin, I use config-file to change the path of web.xml 
 for example 
 config-filemyapp-web.xml/config-file. As I start the 
 application, the 
 servlet crashes of course.
 In the mean time, I have added the following to ActionServlet 
 to get around:
 
 String configWebXml = 
 getServletConfig().getInitParameter(configWebXml);
 
 if (input == null) {
 input = 
 getServletContext().getResourceAsStream(configWebXml);
 }
 
 Could anybody fix this or everybody is already using Struts2?
 
 
 
 
 
 -
 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: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Jim Reynolds

Don,
Where do I run the mvn command from? From the exploded code in Tomcat?
Or from the download? Sorry, a bit lost here.

Thanks,

On 10/18/06, Don Brown [EMAIL PROTECTED] wrote:

Simply type, from the command line, mvn eclipse:eclipse and Maven
will generate all the Eclipse-related project files.  Add the
'-Dwtpversion=1.0' flag to also generate Web Tools Project files.

For running the thing, I've had good experiences using the Jetty Maven
2 plugin.  See our Bootstrap tutorial -
http://cwiki.apache.org/confluence/display/WW/Bootstrap

I also found this useful:
http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse

Don

On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:
 I have downloaded and deployed the showcase examples for Struts2 as a
 learning tool. I have been going through the code file by file, and
 was wondering if there was a better way to handle this. I have Eclipse
 IDE and was wondering if the project could be imported into Eclipse,
 so I can walk the classes easier. I am new with Eclipse and also
 Struts2. So I am looking for advice on how I could configure this and
 also be able to make changes and see the changes within the web app.

 Make sense? Thanks,

 -
 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: Struts Workflow

2006-10-18 Thread Don Brown

Struts 2 doesn't have a specific workflow engine built in, per se, but
you do have several options:
1. Spring's Web Flow
2. Continuations

For point 2, Struts 2 has built in support for RIFE's continuations
library.  A good example can be found in the showcase.  It basically
lets you code a workflow in a single method, adding 'pause'  calls for
when a page should be sent back to the user.  Use with care, however,
as this is still in an experimental stage.

Another framework to look at is Apache Shale - http://shale.apache.org
- which builds on JSF and adds a Dialog scope framework for this
sort of thing.

Don

On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:

Hello Roger,

I know for sure that Spring has a wizard-like approach for
multi-screen data entry. I believe it is called Spring Web Flow. Now,
I am getting a feeling that  Struts2 supports portions of Spring
(Still trying to figure this out) and also appears to include WebWork.
So to the point of your question  if someone on this list knows if
Web Flow is part of Struts2, then this would be a valid solution if
you do not want to use Spring. I know there is no work-flow in Struts
1.x unless you roll your own.

HTH



On 10/18/06, Roger Varley [EMAIL PROTECTED] wrote:
 Hi

 I'm looking at the possibilty of using Struts for my next project,
 which is to replace an internal intranet application that uses an
 applet with a servlet based framework. Among the many challenges is
 the need, because the applet is basically a multi-screen data entry
 program, to have absolute control over the sequence flow of the
 application - ignore browser back/forward, bookmarking etc and I
 probably need some way of telling if a user navigates away/closes the
 browser mid-session.

 Can I do this with Struts (and if so, how) or do I need a more generic
 worklfow type of framework?

 Sorry if this all sounds a bit vague, but I'm just at the start of
 trying to sort all this out.

 Regards

 -
 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: ValidatorForm vs. ValidatorActionForm

2006-10-18 Thread Dave Newton
From: Jennifer Jacobs [mailto:[EMAIL PROTECTED]
 There are reasons to use ValidatorActionForm over ValidatorForm,
 but none that I can think of to use ValidatorForm over
 ValidatorActionForm. Am I missing something?  Can anyone think of a 
 reason why I would not want to use this as our standard?

I see no need to codify this decision as a standard, but: 

Sure; if you used a ValidatorForm across Actions and didn't want to
define a validation for the form in each action. Much quicker and
cleaner to just define it once.

Dave


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



Re: why hardcode the path of web.xml?

2006-10-18 Thread Larry Meadors

Why in the name of all that is right in the universe would you name
your web.xml something else? Obfuscation?

Larry


On 10/18/06, Christopher Cheng [EMAIL PROTECTED] wrote:

I am using version 1.3.5 and found out that that path of web.xml is hard
coded at line 1723

InputStream input =
getServletContext().getResourceAsStream(/WEB-INF/web.xml);

In resin, I use config-file to change the path of web.xml for example
config-filemyapp-web.xml/config-file. As I start the application, the
servlet crashes of course.


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



Re: Struts Workflow

2006-10-18 Thread Don Brown

Struts 2 has built-in Spring support.  This means if you choose the
spring object factory (by changing struts.properties), your actions
will be autowired by name with Spring.  In addition, you can have your
Action class itself be created and wired by Spring, simply by using
the spring id where you would normally put the full class name in
struts.xml.

For more information, see http://cwiki.apache.org/confluence/display/WW/Spring

Don

On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:

If Struts2 is WebWork, is Spring Configured anywhere for its IOC? When
working with it a while back, I really liked the fact that you could
create the datasource, and inject the datasource into DAOs. Or does
WebWork have an IOC that mimicks Spring?

Thanks,

On 10/18/06, Dave Newton [EMAIL PROTECTED] wrote:
 From: Jim Reynolds [mailto:[EMAIL PROTECTED]
  [...] also appears to include WebWork.

 Struts2 *is* WebWork.

 Dave

 -
 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: Struts Workflow

2006-10-18 Thread Dave Newton
From: Jim Reynolds [mailto:[EMAIL PROTECTED]
 If Struts2 is WebWork, is Spring Configured anywhere for its IOC?

Spring is its IoC container...

Have you looked at the documentation pages at all? It talks about all
this stuff like validation, IoC, Spring Actions (if you want to, but
don't need to), auto-wiring, tag libraries, etc. or points to the WW
wiki and the docs there.

The starting links I used the most often were:

http://cwiki.apache.org/S2WIKI/home.html
http://cwiki.apache.org/WW/home.html

The most useful links I used to get a complete application (except for a
Hibernate transaction interceptor) going were:

http://cwiki.apache.org/WW/tutorials.html
http://cwiki.apache.org/WW/guides.html
http://cwiki.apache.org/WW/faqs.html
http://cwiki.apache.org/WW/hello-world.html
http://cwiki.apache.org/WW/ready-set-go.html

In particular the guides were most enlightening.

Dave


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



RE: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Wesslan
Try http://maven.apache.org/.
http://maven.apache.org/download.html#installation for installation
instructions.

Hth,
Peter

-Original Message-
From: Jim Reynolds [mailto:[EMAIL PROTECTED] 
Sent: den 18 oktober 2006 19:49
To: Struts Users Mailing List
Subject: Re: Struts2 Showcase Example and Eclipse

Don,
Where do I run the mvn command from? From the exploded code in Tomcat?
Or from the download? Sorry, a bit lost here.

Thanks,

On 10/18/06, Don Brown [EMAIL PROTECTED] wrote:
 Simply type, from the command line, mvn eclipse:eclipse and Maven
 will generate all the Eclipse-related project files.  Add the
 '-Dwtpversion=1.0' flag to also generate Web Tools Project files.

 For running the thing, I've had good experiences using the Jetty Maven
 2 plugin.  See our Bootstrap tutorial -
 http://cwiki.apache.org/confluence/display/WW/Bootstrap

 I also found this useful:

http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin
+inside+Eclipse

 Don

 On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:
  I have downloaded and deployed the showcase examples for Struts2 as a
  learning tool. I have been going through the code file by file, and
  was wondering if there was a better way to handle this. I have Eclipse
  IDE and was wondering if the project could be imported into Eclipse,
  so I can walk the classes easier. I am new with Eclipse and also
  Struts2. So I am looking for advice on how I could configure this and
  also be able to make changes and see the changes within the web app.
 
  Make sense? Thanks,
 
  -
  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: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Wesslan
Maybe I should add that the excellent Maven has support for creating
project-files for IDEA IntelliJ also.

Cheers,
Peter

-Original Message-
From: Wesslan [mailto:[EMAIL PROTECTED] 
Sent: den 18 oktober 2006 20:02
To: 'Struts Users Mailing List'
Subject: RE: Struts2 Showcase Example and Eclipse

Try http://maven.apache.org/.
http://maven.apache.org/download.html#installation for installation
instructions.

Hth,
Peter

-Original Message-
From: Jim Reynolds [mailto:[EMAIL PROTECTED] 
Sent: den 18 oktober 2006 19:49
To: Struts Users Mailing List
Subject: Re: Struts2 Showcase Example and Eclipse

Don,
Where do I run the mvn command from? From the exploded code in Tomcat?
Or from the download? Sorry, a bit lost here.

Thanks,

On 10/18/06, Don Brown [EMAIL PROTECTED] wrote:
 Simply type, from the command line, mvn eclipse:eclipse and Maven
 will generate all the Eclipse-related project files.  Add the
 '-Dwtpversion=1.0' flag to also generate Web Tools Project files.

 For running the thing, I've had good experiences using the Jetty Maven
 2 plugin.  See our Bootstrap tutorial -
 http://cwiki.apache.org/confluence/display/WW/Bootstrap

 I also found this useful:

http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin
+inside+Eclipse

 Don

 On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:
  I have downloaded and deployed the showcase examples for Struts2 as a
  learning tool. I have been going through the code file by file, and
  was wondering if there was a better way to handle this. I have Eclipse
  IDE and was wondering if the project could be imported into Eclipse,
  so I can walk the classes easier. I am new with Eclipse and also
  Struts2. So I am looking for advice on how I could configure this and
  also be able to make changes and see the changes within the web app.
 
  Make sense? Thanks,
 
  -
  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: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Ted Husted

The Maven command reads the pom.xml files to obtain the dependencies
and basic project structure. I don't think there are POM files in the
exploded WAR, so you would have to work from the source distribution
or checkout.

Starting from the root of the struts2 source distribution (you see all
folders and a single pom.xml), with Maven 2 installed, you can run

$  mvn eclipse:eclipse

and the Maven eclipse plugin will generate all the Eclipse setup
files. Likewise for IDEA

$  mvn idea:idea

For more than you wanted to know, see also

* http://cwiki.apache.org/WW/building-with-maven.html

-Ted.


On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:

Don,
Where do I run the mvn command from? From the exploded code in Tomcat?
Or from the download? Sorry, a bit lost here.

Thanks,

On 10/18/06, Don Brown [EMAIL PROTECTED] wrote:
 Simply type, from the command line, mvn eclipse:eclipse and Maven
 will generate all the Eclipse-related project files.  Add the
 '-Dwtpversion=1.0' flag to also generate Web Tools Project files.

 For running the thing, I've had good experiences using the Jetty Maven
 2 plugin.  See our Bootstrap tutorial -
 http://cwiki.apache.org/confluence/display/WW/Bootstrap

 I also found this useful:
 
http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse

 Don

 On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:
  I have downloaded and deployed the showcase examples for Struts2 as a
  learning tool. I have been going through the code file by file, and
  was wondering if there was a better way to handle this. I have Eclipse
  IDE and was wondering if the project could be imported into Eclipse,
  so I can walk the classes easier. I am new with Eclipse and also
  Struts2. So I am looking for advice on how I could configure this and
  also be able to make changes and see the changes within the web app.
 
  Make sense? Thanks,
 
  -
  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]





--
HTH, Ted.
* http://www.husted.com/struts/

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



Re: Struts2 Showcase Example and Eclipse

2006-10-18 Thread Don Brown

If you want to tweak the showcase app, the easiest way to run it is
from the source code.  In the source distribution of 2.0.1 or a
checked out trunk, change to the apps/showcase directory.  From there,
you can run the eclipse and jetty maven plugins.

Don

On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:

Don,
Where do I run the mvn command from? From the exploded code in Tomcat?
Or from the download? Sorry, a bit lost here.

Thanks,

On 10/18/06, Don Brown [EMAIL PROTECTED] wrote:
 Simply type, from the command line, mvn eclipse:eclipse and Maven
 will generate all the Eclipse-related project files.  Add the
 '-Dwtpversion=1.0' flag to also generate Web Tools Project files.

 For running the thing, I've had good experiences using the Jetty Maven
 2 plugin.  See our Bootstrap tutorial -
 http://cwiki.apache.org/confluence/display/WW/Bootstrap

 I also found this useful:
 
http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse

 Don

 On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:
  I have downloaded and deployed the showcase examples for Struts2 as a
  learning tool. I have been going through the code file by file, and
  was wondering if there was a better way to handle this. I have Eclipse
  IDE and was wondering if the project could be imported into Eclipse,
  so I can walk the classes easier. I am new with Eclipse and also
  Struts2. So I am looking for advice on how I could configure this and
  also be able to make changes and see the changes within the web app.
 
  Make sense? Thanks,
 
  -
  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: Struts Workflow

2006-10-18 Thread Rahul Akolkar

On 10/18/06, Don Brown [EMAIL PROTECTED] wrote:

Struts 2 doesn't have a specific workflow engine built in, per se, but
you do have several options:
 1. Spring's Web Flow
 2. Continuations


snip/

And then there is Commons SCXML [1], which is a generic state machine
/ workflow engine that can tie into many environments (though there is
nothing ATM in the Struts1/2 space, AFAIK).

One of the benefits is leveraging a W3C standard (in the making, so it
has a decent chance of paying off in the long run from various
standpoints -- tooling, runtimes, multiple impls to choose from).

Its possible to pick the expression language for expressions within
the workflow definition (JSP 2.0 EL, Commons JEXL are supported, there
is concrete evidence of ability to use pnuts and ECMA, and anecdotal
evidence for using XPath via the tiger APIs).

Its also possible to add domain-specific XML vocabularies (namespaces)
that allows the Commons SCXML engine to carry out domain-specific
actions.

One of the working examples is an impl for Shale dialogs [2] (which
were mentioned below).

-Rahul

[1] http://jakarta.apache.org/commons/scxml/
[2] http://shale.apache.org/shale-dialog/



For point 2, Struts 2 has built in support for RIFE's continuations
library.  A good example can be found in the showcase.  It basically
lets you code a workflow in a single method, adding 'pause'  calls for
when a page should be sent back to the user.  Use with care, however,
as this is still in an experimental stage.

Another framework to look at is Apache Shale - http://shale.apache.org
- which builds on JSF and adds a Dialog scope framework for this
sort of thing.

Don

On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:
 Hello Roger,

 I know for sure that Spring has a wizard-like approach for
 multi-screen data entry. I believe it is called Spring Web Flow. Now,
 I am getting a feeling that  Struts2 supports portions of Spring
 (Still trying to figure this out) and also appears to include WebWork.
 So to the point of your question  if someone on this list knows if
 Web Flow is part of Struts2, then this would be a valid solution if
 you do not want to use Spring. I know there is no work-flow in Struts
 1.x unless you roll your own.

 HTH



 On 10/18/06, Roger Varley [EMAIL PROTECTED] wrote:
  Hi
 
  I'm looking at the possibilty of using Struts for my next project,
  which is to replace an internal intranet application that uses an
  applet with a servlet based framework. Among the many challenges is
  the need, because the applet is basically a multi-screen data entry
  program, to have absolute control over the sequence flow of the
  application - ignore browser back/forward, bookmarking etc and I
  probably need some way of telling if a user navigates away/closes the
  browser mid-session.
 
  Can I do this with Struts (and if so, how) or do I need a more generic
  worklfow type of framework?
 
  Sorry if this all sounds a bit vague, but I'm just at the start of
  trying to sort all this out.
 
  Regards
 


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



MailReader Example Struts2

2006-10-18 Thread Jim Reynolds

I am trying to figure out how Struts2 works, so I am going through the
docs at http://planetstruts.org/struts2-mailreader/Tour.do#Welcome
and walking the code.

Problem: I cannot figure out how the Welcome.java which subclasses
MailreaderSupport gets the data to and from the xml? I see the
database.xml file getting written to ... but sadly, I cannot figure
how how the file gets loaded?

I do not see any IOC going on unless I am missing it. If anyone
understands how this code works and could give me any pointers, I
would appreciate.

Thanks,

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



[s2] s:action issue

2006-10-18 Thread Mark Menard
I have an action /quadran/menu/menu.action that I can go to directly. I want
to include this in my site wide template using s:action. I've put the
following in my JSP to include the action:

s:action name=menu namespace=/menu executeResult=true /

This throws the following exception:

java.lang.NullPointerException
at 
org.apache.struts2.components.ActionComponent.executeAction(ActionComponent.
java:230)
at 
org.apache.struts2.components.ActionComponent.end(ActionComponent.java:137)
at 
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSuppor
t.java:35)
at 
org.apache.jsp.WEB_002dINF.decorators.main_jsp._jspx_meth_s_action_0(main_js
p.java:157)
at 
org.apache.jsp.WEB_002dINF.decorators.main_jsp._jspService(main_jsp.java:90)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
32)

It looks to me like it can't find the action, but yet I can navigate to it
directly...

Any help would be appreciated,

Mark

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



Re: Struts 1.3 + Tiles + Chain config

2006-10-18 Thread Niall Pemberton

On 10/18/06, Michael Rush [EMAIL PROTECTED] wrote:

chain name=process-view
  ...
  !--
  If you want to use Tiles, uncomment this command, and the one
 in the
  'servlet-exception' chain below, and make sure you have the
  struts-tiles JAR included in your web application.

  command

 className=org.apache.struts.tiles.commands.TilesPreProcessor/

  --
  ...
/chain

Related to this, is there a way to specify the tiles-defs file to
use? For example, my application has 3 modules, each with its own
tiles-defs file.


In the normal way - using the tiles plugin in your struts-config.xml(s)

Niall

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



Re: Cannot get errors to display to screen

2006-10-18 Thread Niall Pemberton

You should see something - probably an error - have you checked the
logs? Also have you configured your message resources in the
struts-config.xml?

message-resource parameter=myPackage.ApplicationResources null=false /

Also, you're resolving the message in your action - theres no need
to do that, thats what the htmll:errors tag does (and
html:messages), so you should have something like the following:

   if (request.getParameter(portal) == null) {
   ActionErrors errors = new ActionErrors();
   errors.add(portal, new ActionMessage(errors.portal.not.supplied));
   saveErrors(request, errors);
   return mapping.findForward(error);
   }

More info here:

http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html

Niall

On 10/18/06, Perry Minchew [EMAIL PROTECTED] wrote:

Hi all.

Struts newb reporting. I have been working on a new web app for our company
to streamline registration, and am still stumbling through the basic
building blocks of struts. I am using Struts 1.3.5 on Tomcat v5.5. I am
trying to add error handling into my process now.

The current problem is, I cannot use the ActionErrors functionality to
display errors on the jsp page.

Here's what I have:

Struts-config.xml:
global-forwards
forward name=error path=/error.jsp/
/global-forwards

action-mappings
action path=/Register2
type=mil.navy.spawar.registration.action.RegisterAction
forward name=register2
path=/register2.jsp /
forward name=existingUser
path=/existingUser.jsp /

/action

/action-mappings


RegisterAction.java:

public class RegisterAction extends Action {

public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws
Exception {



if(request.getParameter(portal) == null) {

MessageResources messageResources =
getResources(request);

ActionErrors errors = new
ActionErrors();

errors.add(portalNotFound, new
ActionMessage(messageResources.getMessage(errors.portal.not.supplied)));

saveErrors(request, errors);

return mapping.findForward(error);

}

.

return mapping.findForward(register2);

error.jsp:

body

logic:messagesPresent

html:errors/

/logic:messagesPresent

/body



I've even tried

body
html:errors/
/body


and in my messageResources properties:

errors.portal.not.supplied=You must access the registration page supplying a
portal parameter.


I get redirected to the errors page correctly if I neglect to put the portal
parameter on the action call, but the ActionError does not display on the
screen. Does anyone have any idea why this is failing to display the errors?


Thanks much,

Perry Minchew


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



Re: why hardcode the path of web.xml?

2006-10-18 Thread Jerome Gagner

If you are using the resin-specific configuration options, you should
just separate that out into a resin-conf.xml.


What larry said, why do you want to do that?

On 10/18/06, Christopher Cheng [EMAIL PROTECTED] wrote:

I am using version 1.3.5 and found out that that path of web.xml is hard
coded at line 1723

InputStream input =
getServletContext().getResourceAsStream(/WEB-INF/web.xml);

In resin, I use config-file to change the path of web.xml for example
config-filemyapp-web.xml/config-file. As I start the application, the
servlet crashes of course.
In the mean time, I have added the following to ActionServlet to get around:

String configWebXml = getServletConfig().getInitParameter(configWebXml);

if (input == null) {
input = getServletContext().getResourceAsStream(configWebXml);
}

Could anybody fix this or everybody is already using Struts2?





-
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: [s2] s:action issue

2006-10-18 Thread Ted Husted

If you are using the Menu action site-wide, you might want to put it
in the default empty namespace, which is always checked, so you
would not need to specify the namespace.

* http://cwiki.apache.org/WW/namespace-configuration.html

-Ted.

On 10/18/06, Mark Menard [EMAIL PROTECTED] wrote:

I have an action /quadran/menu/menu.action that I can go to directly. I want
to include this in my site wide template using s:action. I've put the
following in my JSP to include the action:

s:action name=menu namespace=/menu executeResult=true /

This throws the following exception:

java.lang.NullPointerException
at
org.apache.struts2.components.ActionComponent.executeAction(ActionComponent.
java:230)
at
org.apache.struts2.components.ActionComponent.end(ActionComponent.java:137)
at
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSuppor
t.java:35)
at
org.apache.jsp.WEB_002dINF.decorators.main_jsp._jspx_meth_s_action_0(main_js
p.java:157)
at
org.apache.jsp.WEB_002dINF.decorators.main_jsp._jspService(main_jsp.java:90)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
32)

It looks to me like it can't find the action, but yet I can navigate to it
directly...

Any help would be appreciated,

Mark


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



Re: MailReader Example Struts2

2006-10-18 Thread Ted Husted

The MailReader database is loaded through a listerner in the web.xml,
which injects it into application scope. The data is not coming from
the XML. The listerner parses the XML and creates a database object.
The MailReader then addresses the database object, oblivious as to how
it is loaded or where it is saved.

Of course, that part has nothing to do with Struts 2 per se :) Struts
1 and Shale use the same MailReader DAO bits as Strus 2.

The nifty Struts 2 part is that MailReader support class doesn't need
to import the HTTP API. The framework injects a Map into the Action
that proxies application scope, but all the Action sees is a plain old
Map.

-Ted.

On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:

I am trying to figure out how Struts2 works, so I am going through the
docs at http://planetstruts.org/struts2-mailreader/Tour.do#Welcome
and walking the code.

Problem: I cannot figure out how the Welcome.java which subclasses
MailreaderSupport gets the data to and from the xml? I see the
database.xml file getting written to ... but sadly, I cannot figure
how how the file gets loaded?

I do not see any IOC going on unless I am missing it. If anyone
understands how this code works and could give me any pointers, I
would appreciate.

Thanks,

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





--
HTH, Ted.
* http://www.husted.com/struts/

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



Re: [shale] extending clay

2006-10-18 Thread James Mitchell

Ha!  Ya just had to throw that in didn't ya?!?!  ;)


--
James Mitchell
678.910.8017




On Oct 18, 2006, at 5:43 AM, Ted Husted wrote:


Shale has its own list now:

* http://shale.apache.org/mail-lists.html

Along with a spiffy new logo :)

-T.

On 10/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED]  
wrote:

Hi

Did you ever do this Gary?

Hermod

-Original Message-
From: Opstvedt, Hermod
Sent: Monday, June 12, 2006 7:39 AM
To: user@struts.apache.org
Subject: RE: [shale] extending clay


Hi

Sounds like a great plugin. I guess one should wait until it is at  
a V1 stage before commiting (At least that is what I have done  
when committing to opensource), but if you someone to help you  
test it I would be more than willing.


Hermod

-Original Message-
From: Ryan Wynn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 7:07 PM
To: Struts Users Mailing List
Subject: Re: [shale] extending clay


On 6/7/06, Gary VanMatre [EMAIL PROTECTED] wrote:
 From: [EMAIL PROTECTED]
 
  Hi
 
  What would be really nice is if you would make the plugin  
publically available.

 

I was intending to make it available.  I had intended to get some
basic functionality working before I did so.  Right now it is at the
stage where it visits your eclipse project and parses all the clay
config files.  It attempts every xml file even those that are  
included

in jars.  If it is not a clay xml it just keeps chugging along.  The
reason I chose this approach over having to have the user point to
clay configs is that I wanted it to 'just work'.  Based on what it
find it creates a tree view that mimics the inheritance of the
components.  Each node has an icon and a label (the jsfid) which have
some pretty stock images (folder, resource) next to them.  I was
hoping to be able to incorporate more descriptive images, but images
are not my speciality unfortunately.  Maybe after I donate a graphic
oriented person could enhance them.

When you click a node the description from the clay xml is show below
the tree.  You can drag a component from the tree into a clay  
xml.  At

this point you enter a wizard that asks whether you want to create a
new component extending the one that you dragged or whether you want
to use the dragged component as a child element.  You can also edit
the description - the text area defaults to the description of the
component you dragged.  The wizard is not finished yet and I  
wanted it

to be able to optionally run through the gamet of adding children,
adding listeners, validators, etc.  When you finish the wizard the
component is dropped as xml into your config file.  Eclipse resource
change listeners are registered to make sure that when you save,
delete, etc the visual component tree is updated.

I also have an xml editor that supports auto complete based on the
available clay components in your workspace.  However, currently this
has yet to be completely incorporated.

I am fairly new to contributing to open source projects.  Should I
contribute the code in it's non-working state or wait until I get
basic working plugin before I donate?

Thanks,
Ryan

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



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
* * * * *


This email with attachments is solely for the use of the  
individual or
entity to whom it is addressed. Please also be aware that DnB NOR  
cannot
accept any payment orders or other legally binding correspondence  
with

customers as a part of an email.

This email message has been virus checked by the anti virus  
programs used

in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  
* * * * *





-
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: Struts2 Showcase Example and Eclipse

2006-10-18 Thread James Mitchell
Don't forget to add the profiles switch (-Papps,plugins) that will  
gen your eclipse files under apps and plugins...


 $ cd svn/struts/struts2
 $ mvn eclipse:eclipse -Dwtpversion=1.0 -Papps,plugins




--
James Mitchell
678.910.8017




On Oct 18, 2006, at 1:57 PM, Don Brown wrote:


If you want to tweak the showcase app, the easiest way to run it is
from the source code.  In the source distribution of 2.0.1 or a
checked out trunk, change to the apps/showcase directory.  From there,
you can run the eclipse and jetty maven plugins.

Don

On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:

Don,
Where do I run the mvn command from? From the exploded code in  
Tomcat?

Or from the download? Sorry, a bit lost here.

Thanks,

On 10/18/06, Don Brown [EMAIL PROTECTED] wrote:
 Simply type, from the command line, mvn eclipse:eclipse and Maven
 will generate all the Eclipse-related project files.  Add the
 '-Dwtpversion=1.0' flag to also generate Web Tools Project files.

 For running the thing, I've had good experiences using the Jetty  
Maven

 2 plugin.  See our Bootstrap tutorial -
 http://cwiki.apache.org/confluence/display/WW/Bootstrap

 I also found this useful:
 http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven 
+Jetty+Plugin+inside+Eclipse


 Don

 On 10/18/06, Jim Reynolds [EMAIL PROTECTED] wrote:
  I have downloaded and deployed the showcase examples for  
Struts2 as a
  learning tool. I have been going through the code file by  
file, and
  was wondering if there was a better way to handle this. I have  
Eclipse
  IDE and was wondering if the project could be imported into  
Eclipse,

  so I can walk the classes easier. I am new with Eclipse and also
  Struts2. So I am looking for advice on how I could configure  
this and
  also be able to make changes and see the changes within the  
web app.

 
  Make sense? Thanks,
 
   
-

  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]



[ANNOUNCE] Add Swap control between two list into JSControlsTags

2006-10-18 Thread Angelo zerr

Hello,
I announce that there is a new Swap control between two list into
JSControlsTags.
This control is able to manage swap items between two list with 2 button 
 and/or with drag/drop.
It's based on scriptaculous and prototype.js.

You can found a demo of swap at
http://jscontrolstags.sourceforge.net/demo/swap/swap.html#

Regards Angelo


RE: Cannot get errors to display to screen

2006-10-18 Thread Chetan Pandey
I have had this problem.

Erroneous pages are validated. You are correctly diverted to the JSP Page
where Errors occurred but you do not see the Errors.

One Line simple Solution.

Add 
html:errors somewhere in the JSP and they will start showing exactly at
this point.

Chetan 

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 19, 2006 7:30 AM
To: Struts Users Mailing List
Subject: Re: Cannot get errors to display to screen

You should see something - probably an error - have you checked the
logs? Also have you configured your message resources in the
struts-config.xml?

message-resource parameter=myPackage.ApplicationResources null=false /

Also, you're resolving the message in your action - theres no need
to do that, thats what the htmll:errors tag does (and
html:messages), so you should have something like the following:

if (request.getParameter(portal) == null) {
ActionErrors errors = new ActionErrors();
errors.add(portal, new
ActionMessage(errors.portal.not.supplied));
saveErrors(request, errors);
return mapping.findForward(error);
}

More info here:

http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html

Niall

On 10/18/06, Perry Minchew [EMAIL PROTECTED] wrote:
 Hi all.

 Struts newb reporting. I have been working on a new web app for our
company
 to streamline registration, and am still stumbling through the basic
 building blocks of struts. I am using Struts 1.3.5 on Tomcat v5.5. I am
 trying to add error handling into my process now.

 The current problem is, I cannot use the ActionErrors functionality to
 display errors on the jsp page.

 Here's what I have:

 Struts-config.xml:
 global-forwards
 forward name=error path=/error.jsp/
 /global-forwards

 action-mappings
 action path=/Register2
 type=mil.navy.spawar.registration.action.RegisterAction
 forward name=register2
 path=/register2.jsp /
 forward name=existingUser
 path=/existingUser.jsp /

 /action

 /action-mappings


 RegisterAction.java:

 public class RegisterAction extends Action {

 public ActionForward execute(
 ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response) throws
 Exception {

 

 if(request.getParameter(portal) == null) {

 MessageResources messageResources =
 getResources(request);

 ActionErrors errors = new
 ActionErrors();

 errors.add(portalNotFound, new
 ActionMessage(messageResources.getMessage(errors.portal.not.supplied)));

 saveErrors(request, errors);

 return mapping.findForward(error);

 }

 .

 return mapping.findForward(register2);

 error.jsp:

 body

 logic:messagesPresent

 html:errors/

 /logic:messagesPresent

 /body



 I've even tried

 body
 html:errors/
 /body


 and in my messageResources properties:

 errors.portal.not.supplied=You must access the registration page supplying
a
 portal parameter.


 I get redirected to the errors page correctly if I neglect to put the
portal
 parameter on the action call, but the ActionError does not display on the
 screen. Does anyone have any idea why this is failing to display the
errors?


 Thanks much,

 Perry Minchew

-
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: [s2] s:action issue

2006-10-18 Thread Mark Menard
On 10/18/06 8:16 PM, Ted Husted [EMAIL PROTECTED] wrote:

 If you are using the Menu action site-wide, you might want to put it
 in the default empty namespace, which is always checked, so you
 would not need to specify the namespace.
 
 * http://cwiki.apache.org/WW/namespace-configuration.html

That did not work.

I tried declaring the package without a namespace, with namespace=/. I
can reach the action directly, but the action tag still fails with the
NullPointerException.

Mark

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



Re: [s2] s:action issue

2006-10-18 Thread Ted Husted

(ActionComponent.java:137)

is

writer.flush();

which implies a problem with the result rather than the action.

Does the exception go away if executeResult is false?

-Ted.

On 10/18/06, Mark Menard [EMAIL PROTECTED] wrote:

On 10/18/06 8:16 PM, Ted Husted [EMAIL PROTECTED] wrote:

 If you are using the Menu action site-wide, you might want to put it
 in the default empty namespace, which is always checked, so you
 would not need to specify the namespace.

 * http://cwiki.apache.org/WW/namespace-configuration.html

That did not work.

I tried declaring the package without a namespace, with namespace=/. I
can reach the action directly, but the action tag still fails with the
NullPointerException.

Mark

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





--
HTH, Ted.
* http://www.husted.com/struts/

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



Struts2 Tiles Integration

2006-10-18 Thread Dean Crothers

Hi,

I've got Struts 1 and Struts 2.0.1 working side by side, and have Tiles 
working with Struts  1. However, I cant get Tiiles to work with Struts 2.  
What I'd like to know is how do I configure Struts2 to find the 
tiles-def.xml?


Heres what I have configured so far:
!-- in web.xml --
listener
 
listener-classorg.apache.struts2.tiles.StrutsTilesListener/listener-class

/listener

!-- in struts.xml --
result-types
 result-type name=tiles 
class=org.apache.struts2.views.tiles.TilesResult/

/result-types


many thanks,

Dean

_
Stay in touch with old friends and meet new ones with Windows Live Spaces 
http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us



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



Access ApplicationResource from java code

2006-10-18 Thread Puneet Lakhina

Hi ,
I want to obtain the value of a key from ApplicationResource.properties file
in my java code. Should i access the properties file directly or can i use
some classes in the struts package to do the same??

--
Puneet