RE: Split web.xml into multiple files

2004-05-03 Thread Prasad, Kamakshya
Hi,

We are using the container managed security and we have lot of action
mapping and roles. Specifying them in one web.xml making it too huge. We
want it to split into separate logical files

KP

-Original Message-
From: Bill Siggelkow [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 30, 2004 10:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Split web.xml into multiple files

Prasad, Kamakshya wrote:

 Hi,
  
 Is it possible to split web.xml into multiple files?
  
 KP
 
AFAIK the web.xml cannot be split.  Most containers, however, do utilize

a container-specific web app deployment descriptor that works with the 
web.xml.  The web.xml for a Struts-based application should be 
relatively small and should not need to be frequently modified.  Why do 
you want/need to split the web.xml?


-
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: Way to reload struts Action classes in WebLogic8.1

2004-05-03 Thread Craig McClanahan
Michael McGrady wrote:

This is more of a passing interest of mine, so I will pursue a bit 
more, if you continue an interest.  I have an application that needs 
to do this from afar on multiple and untrackable sites.  So, the 
bouncing the server idea just won't work for me.  I need this to 
happen without exchanging classloaders, and probably without fiddling 
with the classloader API.  So, this is my thought: that you have 
multiple dependencies is not important so long as they all obey the 
pattern we were discussing, i.e., 1., 2., and 3.  So, any 
application framework that provided reloading only to the requisite 
classes, those that followed this pattern would not be half-assed 
at all but would be fully workable.  One might even use a tag 
interface, e.g. Reloadable, to identify which classes had this sort of 
independence.  If all classes were created and were loaded on this 
sort of structure, there would never be a need to bounce servers, 
etc.  That, I think, is a very workable solution, and another reason 
why using interfaces is so important in designing architectures.  
Whew!  That may be false but it sure is ambitious.  ///;-)
OK, let's be very clear about a use case that doesn't work with your scheme.

A very common design pattern for Struts-based apps is to have a setup 
action that preconfigures a form bean, followed by a submit to a 
process action that performs database transactions on behalf of that 
very same form bean class.  What happens in your approach when you 
recompile the form bean class to add a new property, because you need to 
add a new field to the corresponding input form?  That's right ... 
recompiling the action classes is not sufficient, because the old copy 
of the form bean class continues to persist.

This kind of thing happens so often that, unless you can solve it, any 
solution that deals only with reloading Actions is going to meet my test 
for half-assed, because the fine points of what is reloadable and what 
is not is going to be totally lost on most developers.  And your 
solution doesn't solve it.

If your container can't do a reload fast enough, then get a new 
container.  I'm not interested in Struts pretending to be a container 
when there is no way to solve all the necessary problems.  That would be 
a tremendous disservice to all Struts users.

Craig

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


Re: Way to reload struts Action classes in WebLogic8.1

2004-05-03 Thread Craig McClanahan
Michael McGrady wrote:

Isn't it true, Craig, that this is not a problem for hot deploy of the 
classes that do this.  If you have other classes that do not do this, 
then they cannot be hot deployed.  But, what difference does that 
make?  If someone wants to hot deploy them, they can redesign the 
class.  The more I think about it, the less of a problem this seems to 
be.  Am I missing something here?

Most containers (but no guarantees, since it's not in the specs) will 
know how to pick up a new class that has never been compiled before.  No 
container that I know of lets you selectively replace classes that have 
already been loaded into the class loader, because Java's class loader 
API doesn't support unloadClass() or replaceClass().

Solving 1% of the problem doesn't help -- it only misleads people.  See 
my response in the other thread for a very common Struts use case that 
doesn't work with your approach.

Michael


Craig



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


Re: Security + struts

2004-05-03 Thread Craig McClanahan
Pedro Salgado wrote:

On 04/05/02 6:40, Craig R. McClanahan [EMAIL PROTECTED] wrote:

 

DMZ is short for demilitarized zone ... a term adopted for enterprise
network infrastructures from the military use of the term.
If you're writing an application for public access on the Internet,
you'll find that the net is not a very friendly place ... there's lots
of attackers out there.  One of the common architectures is to separate
your environment into tiers -- for example:
Database -- Firewall2 -- AppServer -- Firewall1 -- Internet

so that, even if someone can punch through Firewall1 and corrupt your
app server, they (hopefully) cannot also penetrate Firewall2 and corrupt
your database.  The traditional term for the servers between Firewall1
and Firewall2 is the DMZ.
   

 I heard about the concept, but never came upon the terminology (DMZ) :)

 Just one question, if one breaks fw1 and corrupts AppServer, then one can
make whatever he wants to the database through the AppServer host itself.
 

That depends on what fw2 accepts as validity of the origin of a proposed 
transaction.  Obviously, one of the rules is to accept only transactions 
from the AppServer IP address, but that's not sufficient since IP 
spoofing might be employed.  Therefore, other measures are also 
typically utilized.

 The fw2 must accept requests directly to the db from the appserver, right?
 

That's not actually common ... what usually happens is that you're 
interacting with some sort of objects on the Database node.  In fact, 
this is the classic design pattern for EJBs :-).

 What's the point of fw2? Just filter more ports than the ones filtered on
fw1?
 In terms of the web app, issuing a DELETE * FROM some_table ordinary
jdbc statement with the right parameters could access the database with no
problems in the way!
 

Nope ... the fw2 and database machines typically use much more rigorous 
tests over whether such things are allowed.

 I think I am I missing something here?
 

Yep ... firewalls are only one piece of the puzzle.

 I thought that firewalls only served to present the wanted ports (HTTP,
FTP, etc) to users outside the network/host and weren't that intelligent
(actually I thought that was the whole point - a fw should have the minimum
software installed for its purpose so that if it gets broken, then the
attacker has less changes of doing much harm).
 

Even if that is all your firewall does, it prevents a class of attacks 
(enough to make them worthwhile even if you do nothing else).  But your 
overall security architecture definitely needs to do more than just port 
filtering and that sort of thing.

That's the sort of thing that J2EE app servers are designed to deal 
with.  You don't need all the security features for a departmental 
intranet app with 10 users, but when you need it ... you DEFINITELY need it.

Some folks go further and separate the web server (that responds to HTTP
requests, but often still contains the JSP pages and servlets of a
Struts-based front controller) and the app server (that performs your
business logic, and contains EJBs or the equivalent) into separate tiers
as well, which is where the term three tier architecture came from.
   

 This last example makes more sense to me. If one has access to the
webserver itself and even if wants to emulate some kind of abnormal
behaviour (in the limit, implement a whole new web app that runs on that
server - it may need some time though), then at least the business logic
rules will apply and prevent some kind of attack. In this case the database
is protected.
 To access it, then there should be another security flaw besides the
ports/services that are allowed to run between the appserver and webserver.
 Another possiblity is appserver business logic provide services to the
web server that could lead to a security problem or inconsistent state.
 Regards, 

Pedro Salgado

 

Craig

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


Re: Split web.xml into multiple files

2004-05-03 Thread Craig McClanahan
Prasad, Kamakshya wrote:

Hi,

We are using the container managed security and we have lot of action
mapping and roles. Specifying them in one web.xml making it too huge. We
want it to split into separate logical files
 

If your container is reasonably intelligent about parsing XML documents 
using entities that refer to files in the same directory, this should be 
no problem using XML entities for this sort of thing.  Check the Struts 
documentation, Wiki, and mailing list archives for discussions of 
dividing up a struts-config.xml file -- exactly the same techniques will 
generally work for web.xml as well.

On the other hand, it makes a *lot* more sense to me to create a build 
environment that dynamically combines all the stuff you need into a 
single web.xml file, to be included in the deployable WAR file, as part 
of the build process.

KP

 

Craig

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


RE: Split web.xml into multiple files

2004-05-03 Thread Prasad, Kamakshya
Hi, 

I tried xml entity. It worked though I have few doubts.

This is part of the xml which have that reference

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE 
web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
 [!ENTITY xmlfrag SYSTEM
file:///F:/struts/web/WEB-INF/servlet.xml ]
web-app
  display-nameStruts POC/display-name

  !-- Action Servlet Configuration --
  xmlfrag;


The xmlfrag contains the servlet specification and everything is
working fine but when I start the server it always throw this error.

May 3, 2004 4:12:55 PM JST Error HTTP BEA-101306 Could not
resolve entity null for the webapp at: null. Check your DTD
reference in the corresponding descriptor (web.xml/weblogic.xml).

What has to be done to get rid of this error?

Thanks and Regards,
KP


-Original Message-
From: Craig McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 03, 2004 3:57 PM
To: Struts Users Mailing List
Subject: Re: Split web.xml into multiple files

Prasad, Kamakshya wrote:

Hi,

We are using the container managed security and we have lot of action
mapping and roles. Specifying them in one web.xml making it too huge.
We
want it to split into separate logical files

  

If your container is reasonably intelligent about parsing XML documents 
using entities that refer to files in the same directory, this should be

no problem using XML entities for this sort of thing.  Check the Struts 
documentation, Wiki, and mailing list archives for discussions of 
dividing up a struts-config.xml file -- exactly the same techniques will

generally work for web.xml as well.

On the other hand, it makes a *lot* more sense to me to create a build 
environment that dynamically combines all the stuff you need into a 
single web.xml file, to be included in the deployable WAR file, as part 
of the build process.

KP

  

Craig


-
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: Way to reload struts Action classes in WebLogic8.1

2004-05-03 Thread Andrew Hill
snip
No container that I know of lets you selectively replace classes that have
already been loaded into the class loader, because Java's class loader
API doesn't support unloadClass() or replaceClass().
/snip

I use the Sysdeo plugin for eclipse with tomcat and it lets me make minor
modifications to code 'on the fly' while Im debugging stuff.

Obviously this sort of thing is far from a 'full-arsed' solution in that
anything that changes the interface (or needs to reload static stuff etc...)
is no-go, but I am rather curious as to this is achieved in the absence of a
classloader replaceClass() call?

As for all this being out of struts scope Im definately +1 on that!

-Original Message-
From: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sent: Monday, 3 May 2004 14:41
To: Struts Users Mailing List
Subject: Re: Way to reload struts Action classes in WebLogic8.1


Michael McGrady wrote:

 Isn't it true, Craig, that this is not a problem for hot deploy of the
 classes that do this.  If you have other classes that do not do this,
 then they cannot be hot deployed.  But, what difference does that
 make?  If someone wants to hot deploy them, they can redesign the
 class.  The more I think about it, the less of a problem this seems to
 be.  Am I missing something here?


Most containers (but no guarantees, since it's not in the specs) will
know how to pick up a new class that has never been compiled before.  No
container that I know of lets you selectively replace classes that have
already been loaded into the class loader, because Java's class loader
API doesn't support unloadClass() or replaceClass().

Solving 1% of the problem doesn't help -- it only misleads people.  See
my response in the other thread for a very common Struts use case that
doesn't work with your approach.

 Michael


Craig



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



Token Help Neede

2004-05-03 Thread shankarr
Hi!
I have an issue in my web application.
My control flow is as follows :
1. On cliking a link, show Page AA as a result of ForwardAction
2. User fills data in AA and then clicks submit button.
3. This submit button internally invokes my Action class Action1 which 
adds data to db  and  calls class Action2 to retrieve data from db
4. Action2 as a result of processing invokes Page BB

Now, when the user sees Page BB and if he clicks refresh on the browser, 
one more object gets added to db.

I have read through all the token related mails and some examples but 
still not able to get it.

Need help.

Please tell step by step procedure. I try the following :

1. Put saveToken(request) in Action class A1
2. In class A2 make check if isValidToken(request).
If valid, then process data and at the end reset(request)
3. But it fails at the step2 mentioned above. Always says invalid token 
and gives blank page.

Many thanks,

Richie






Re: Way to reload struts Action classes in WebLogic8.1

2004-05-03 Thread Michael McGrady
Thanks for sticking with this half-assed idea for a bit, Craig.

All this says, if I understand you, and I am fairly sure I do, is that if 
you change some class and have no way to reload it, without the container 
reloading then you have a problem unless you do something about it.  That 
is to be expected.

So, if you are going to change a class and there is not a way to hot deploy 
that class, you need to do something else.  That, however, does not say 
anything about the efficacy and the reasonableness on whatever basis an 
architect might decide of using some hot deployment.  This is not a case 
that does not work with the scheme.

This is simply a case where a class is replaced without a possibility of 
hot deploy.  That has nothing to do with hot deploy working where you code 
for it.  The scheme is unrelated to this problem.  This is merely like 
the case where I make one class serializable and another is not 
serializable.  That is not a failure of the scheme of serialization and 
does not make serialization half-assed.

Maybe I am not seeing something, but I don't think so in this case.  A 
solution that does not pretend to or need to solve all problems is still 
useful for its intended purpose.  Right?

At 11:38 PM 5/2/2004, Craig McClanahan wrote:
Michael McGrady wrote:

This is more of a passing interest of mine, so I will pursue a bit more, 
if you continue an interest.  I have an application that needs to do this 
from afar on multiple and untrackable sites.  So, the bouncing the server 
idea just won't work for me.  I need this to happen without exchanging 
classloaders, and probably without fiddling with the classloader 
API.  So, this is my thought: that you have multiple dependencies is not 
important so long as they all obey the pattern we were discussing, 
i.e., 1., 2., and 3.  So, any application framework that provided 
reloading only to the requisite classes, those that followed this 
pattern would not be half-assed at all but would be fully 
workable.  One might even use a tag interface, e.g. Reloadable, to 
identify which classes had this sort of independence.  If all classes 
were created and were loaded on this sort of structure, there would never 
be a need to bounce servers, etc.  That, I think, is a very workable 
solution, and another reason why using interfaces is so important in 
designing architectures.
Whew!  That may be false but it sure is ambitious.  ///;-)
OK, let's be very clear about a use case that doesn't work with your scheme.

A very common design pattern for Struts-based apps is to have a setup 
action that preconfigures a form bean, followed by a submit to a process 
action that performs database transactions on behalf of that very same 
form bean class.  What happens in your approach when you recompile the 
form bean class to add a new property, because you need to add a new field 
to the corresponding input form?  That's right ... recompiling the action 
classes is not sufficient, because the old copy of the form bean class 
continues to persist.

This kind of thing happens so often that, unless you can solve it, any 
solution that deals only with reloading Actions is going to meet my test 
for half-assed, because the fine points of what is reloadable and what 
is not is going to be totally lost on most developers.  And your solution 
doesn't solve it.

If your container can't do a reload fast enough, then get a new 
container.  I'm not interested in Struts pretending to be a container when 
there is no way to solve all the necessary problems.  That would be a 
tremendous disservice to all Struts users.

Craig

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



Mixed Struts Validator Framework and ValidationForm

2004-05-03 Thread Eric Noel
Is it possible to use both Strut's Validator Framework for some fields 
and validate other fields using my own validation via ActionForm class. 
If yes, can someone site an example.

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


Re: Way to reload struts Action classes in WebLogic8.1

2004-05-03 Thread Michael McGrady
At 11:40 PM 5/2/2004, Craig McClanahan wrote:
Michael McGrady wrote:

Isn't it true, Craig, that this is not a problem for hot deploy of the 
classes that do this.  If you have other classes that do not do this, 
then they cannot be hot deployed.  But, what difference does that 
make?  If someone wants to hot deploy them, they can redesign the 
class.  The more I think about it, the less of a problem this seems to 
be.  Am I missing something here?
Most containers (but no guarantees, since it's not in the specs) will know 
how to pick up a new class that has never been compiled before.  No 
container that I know of lets you selectively replace classes that have 
already been loaded into the class loader, because Java's class loader API 
doesn't support unloadClass() or replaceClass().

Solving 1% of the problem doesn't help -- it only misleads people.  See my 
response in the other thread for a very common Struts use case that 
doesn't work with your approach.
In the other thread I responded to the idea that the use case doesn't 
work.  That use case is not supposed to work.  Making one class hot 
deployable is not supposed to make all classes hot deployable.  Personally, 
I don't see a good reason not to make an entire framework hot 
deployable.  This could be done fairly easy and without doing the framework 
any injustice that is obvious.  All you have to do is to provide the proper 
interfaces which is probably a good idea for lots of reasons and cannot 
really hurt for any reason I know of and then you can easily employ class 
factories using a new classloader for each hot deploy.  That would for a 
game application, for example, provide a 100% solution unrelated to the 
container.

The key, and maybe you are not seeing this is part of the solution, is to 
load the implementation with the following being true:

1.  Do not have the client (container) reference the implementation that 
needs to be replaced.  Otherwise you will have to bounce the client 
(container).
2.  Have the client (container) reference only a base class or an 
interface.  If you change base classes or interfaces, you would still have 
to bounce the client (container), but that is not a problem.
3.  Have the implementation class's classloader delegate to the client 
(container) classloader.  Presumably this means that the client (container) 
would be using the system classloader.
4.  Make sure that a number of things happen with a hot deploy by a class 
factory: (a) get the state of the old implementation and add it to the new 
one, so the client (container) must make the state of the original object 
available to the factory and (b) the client (container) must drop any old 
references to the old implementations both to save resources and to use the 
new version, these objectives are achieved by passing the old 
implementation into the factor and returning the new one with the same 
reference as the old one.
5.  If you want to hide things from the client (container) as well, give 
the client (container) a forwarding proxy to the actual object, giving the 
factory the control of swapping the object at any time without either the 
knowledge or agreement of the client (container).

Here container might be framework.  Yes? 

Re: Token Help Neede

2004-05-03 Thread yoge
Hi Richie ,

include below line in the jsp that contains the form(AA in your case)
%@ page import=org.apache.struts.util.TokenProcessor %
%
   TokenProcessor token = TokenProcessor.getInstance();
   token.saveToken(request);   
%

This should be included before html:form tag. You should use 
html:form in the data entry JSP file

Do a isValidToken check in Action1 before inserting into the data into 
DB. If false then redirect to the error page .

No need for any token check in Action2

Hope this helps.

Thanks
Yoge


shankarr wrote:

Hi!
I have an issue in my web application.
My control flow is as follows :
1. On cliking a link, show Page AA as a result of ForwardAction
2. User fills data in AA and then clicks submit button.
3. This submit button internally invokes my Action class Action1 which 
adds data to db  and  calls class Action2 to retrieve data from db
4. Action2 as a result of processing invokes Page BB

Now, when the user sees Page BB and if he clicks refresh on the 
browser, one more object gets added to db.

I have read through all the token related mails and some examples but 
still not able to get it.

Need help.

Please tell step by step procedure. I try the following :

1. Put saveToken(request) in Action class A1
2. In class A2 make check if isValidToken(request).
If valid, then process data and at the end reset(request)
3. But it fails at the step2 mentioned above. Always says invalid 
token and gives blank page.

Many thanks,

Richie





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


RE: Array Validation

2004-05-03 Thread Takhar, Sandeep
Highlighting the error line (even though only the first error is returned).  The input 
field in error's name will be returned with the error including the index I presume 
since no change was made to the 'hightlighting' code and it works.

sandeep

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Friday, April 30, 2004 7:45 PM
To: Struts Users Mailing List
Subject: Re: Array Validation


To make this kind of feature useful there needs to be some way of indicating
which occurance of the indexed property is in error. So, for example,  if
you had a bunch of order beans and were validating the order value I would
want to be able to output a message along the lines of...

   Order value for order number 12345 is invalid
or
   Order value on line 5 is invalid

... where order number or line number are other properties from the bean
being validated. Otherwise if you had 20 errors on order value then you just
get 20 indetical messages along the lines of  Order value is invalid -
which isn't very useful.

I looked at trying to do this in the current validator but can't see how
to - have a missed something or am I right and its not possible?

This is an issue for me with the existing functionality where it stops on
the first indexed field in error - we got round it by outputing a message
which doesn't indicate which indexed occurance is in error, but by
highlighting the field in error, which works reasonably well.

That also would be another type of solution, validate all the indexed
properties, only show one generic message but highlight all the fields in
error.

I'd be happy if someone would either put me right on this, or say how they
dealt with this scenario.

Niall


- Original Message - 
From: Robert Leland [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, April 30, 2004 1:12 AM
Subject: Re: Array Validation


  -Original Message Slightly rearranged -
  From: Glenn, Scott [mailto:[EMAIL PROTECTED]
 
  If there are any Struts developers listening can you explain this .. is
it a
  bug or by design?

 Doesn't matter. What matters is that it's not the behavior you need right
?
 If someone would like to develop and test a patch that adds an option to:
   A) The PlugIn  XML element in the struts-config.xml
   This would change the default behavior to not stop validating on an
   error for a given module.
 or
   B) The Validator.xml itself, which would require a change to the
  validator.dtd, either to:
  B1) The form definition, so the behavior could be changed on a
  per form basis.
  The Option (whenInvalid ? ) would probably have four possible
  values. [stop, inherit, all].
 stop = This is the current default behavior
 go   = This is the behavior you want, where it doesn't stop
at the first error but attempts to validate all
data.
 inherit = This would inherit the behavior from the parent
form.
   This assumes using Validator 1.2 which has a
   validator form inheritance.
 module = Defers to what the modules default behavior is,
  assuming that option A) is also implemented.
 or
  B2) The validator definition itself so it could be changed on a
  per type basis.


 Of these A) Is the simplest and hence the fastest to develop and hence
test.
 Because it?s the fastest it?s more likely to be in the
 1.2.1 release because.


   Long term Option B1) probably makes the most sense, but since it
   requires a change to the commons Validator DTD, it won't make it into
   Struts 1.2.1 since that will be using validator 1.1.3 which will be
   released this weekend.

 The patch should include a unit test showing that the default behaviour
 in the same as in Struts 1.1, along with tests for each option.



  Thanks,
 
  Scott.
 
 
 
 
  FYI: Looks like this is a bug/feature of Struts validation.  If you have
a
  List of indexed properties, it stops validating them once it has
discovered
  the first error.
 
  The code below is from the Validator class - it loops around all indexed
  fields (indexedList), calling the appropriate validate rule
  (validateFieldForRule()).  However if this validate rule return false
into
  the good variable, then the method exits without completing the loop.
 
  for (int pos = 0; pos  indexedList.length; pos++)
  {
 ValidatorResults results = new ValidatorResults();
 StringTokenizer st = new StringTokenizer(field.getDepends(), ,);
 while (st.hasMoreTokens()) {
 String depend = st.nextToken().trim();
 ValidatorAction action = (ValidatorAction) actions.get(depend);
 if (action == null) {
 log.error(No ValidatorAction called 
+ depend
+  found for field 
+ field.getProperty());
 return;
 

RE: newbie struts-el best practices question

2004-05-03 Thread Takhar, Sandeep
Thanks Craig, that was helpful to understand.

sandeep

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 29, 2004 3:13 AM
To: Struts Users Mailing List
Subject: Re: newbie struts-el best practices question


Takhar, Sandeep wrote:

Where does Struts-Faces fit into this picture?
  

To answer this, it's helpful to understand the core value that JSF 
brings to the table ... the ability for the world to provide a rich set 
of UI components, and the ability to use components from different 
libraries in the same application (because they all conform to the 
standard component APIs defined by JSF).

So, from a Struts perspective, there are two particular use cases where 
the struts-faces integration library becomes useful:

* You have an existing Struts based application, and want to
  update the UI to leverage JSF components.  The struts-faces
  library enables you to migrate your pages, one page at a time,
  to use JSF on the pages you need it -- all without modifying
  the existing back end code.

* You want to create a new Struts based application, but need
  Struts specific features like Tiles or the Validator framework.
  It is quite feasible to build new pages from scratch using the
  JSF components, and build the back end with Struts the way
  you would with the pure Struts HTML tags.

If you're starting a new application, and don't need Tiles or Validator, 
you should evaluate whether JSF by itself provides enough functionality 
by itself (if it does, using fewer different packages means less to 
learn) ... but there's nothing wrong with using them together.

It is getting quite complicated to make decisions now.
  

Yep.  But I'd rather have too many choices than too few :-).

sandeep

Craig




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



validation mask not working

2004-05-03 Thread Johannes Wolfgang Woger
Hi,
my validator seems not to work with mask.
snipped from validation.xml:

field property=password
   depends=required,mask
   arg0 key=password.displayname/
   var
 var-namemask/var-name
 var-value^[a-zA-Z]*$/var-value
   /var
/field
I can insert numbers into my password form field without complains form 
the validator,
there is a errors.invalid key in my resource bundle.
What do I have to do?

  Wolfgang

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


struts-config.xml in jar file

2004-05-03 Thread Otto, Frank
Hi,
 
I have a jar file, that contains a struts-config.xml.
 
Is it possible to set the init parameter in web.xml, that struts find this 
struts-config file?
 
init-param
param-nameconfig/param-name
param-value???/param-value
/init-param
 
 
Regards,
 
Frank


Setting html:text readonly attribute

2004-05-03 Thread John Moore
I'm having a big problem trying to dynamically set a value for the readonly 
attribute of an html:text tag. I'm using a JSTL core tag to try to set it 
and whatever I do is ignored.

In the example below, the newPurchase property is a boolean. If I use 
exactly this tag elsewhere on the page, it outputs true or false as 
expected. Here, though, it has no effect on the attribute, whether 
newPurchase is true or false - the input tag generated is missing the 
'readonly' attribute.

html:text property=licenceCount size=3 readonly=c:out 
value='${purchaseForm.newPurchase}'/ maxlength=5/

I've also tried the following (with as little effect), using an escaped 
double-quote instead of a single quote:

html:text property=licenceCount size=3 readonly=c:out 
value=\${purchaseForm.newPurchase}\/ maxlength=5/

The curious thing is that I can use a similar construct but with an integer 
property to dynamically set other attributes, such as size, as in the 
following example (ignore the logical nonsense of assigning a size on such 
a basis, it's just a test of technical feasibility):

html:text property=licenceCount size=c:out 
value=\${purchaseForm.totalLicences}\/ maxlength=5/

Is there something to do with assigning boolean attributes in these tags 
which I haven't got yet? Or is it just soemthing weird with the readonly one?

John

=
John Moore -Norwich, UK-[EMAIL PROTECTED]
=  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.662 / Virus Database: 425 - Release Date: 20/04/2004

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

Re: struts-config.xml in jar file

2004-05-03 Thread Joe Germuska
At 3:05 PM +0200 5/3/04, Otto, Frank wrote:
Hi,

I have a jar file, that contains a struts-config.xml.

Is it possible to set the init parameter in web.xml, that struts 
find this struts-config file?
Not right now; however, there was some discussion on this topic on 
the struts-dev list a few weeks ago.  The current idea is to allow 
users to set up Struts with one or more configuration factories 
which can read struts-config files from multiple sources.  Work on 
this will probably continue after the next Struts 1.2.x release, when 
we'll branch the CVS code base and begin work on Struts 1.3.

Please search the struts-dev archives for the subject line Splitting 
struts-config into multiple jar and read them as resource stream to 
catch up on the discussion that happened -- and if you're interested, 
subscribe to struts-dev and help us build it!

Joe

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
  Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining.
-- Jef Raskin

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


Re: How to use resource bundle in attributes

2004-05-03 Thread Nathan Maves
Use jstl!

On May 3, 2004, at 6:51 AM, Ralf Schneider wrote:

Hi,

how can a use internationalized text strings stored in a resource 
bundle as
values of attributes?

For example:

html:text property=username title=login.tooltip.username/

I know, this will not work, but how can it be done?

Ralf.

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


trouble with taglibs in xml syntax

2004-05-03 Thread Tomasz Dreßler
Hi!
I have problems to use the struts taglibs in jsp with xml syntax.
When I use
  %@ taglib uri=/WEB-INF/tags/struts-bean.tld prefix=bean %
the generated servlet contains the line
'_jspx_dependants.add(/WEB-INF/tags/struts-bean.tld)'
and everything is ok.
But with the following syntax the line
'_jspx_dependants.add(/WEB-INF/tags/struts-bean.tld)' disappeare
  ?xml version=1.0 encoding=UTF-8?
  jsp:root version=1.2
  xmlns:jsp=http://java.sun.com/JSP/Page;
  xmlns:c=http://java.sun.com/jsp/jstl/core;
  xmlns:bean=/WEB-INF/tags/struts-bean.tld
  [...]
  /jsp:root

I use Apache Tomcat/5.0.18 and I have modifyed my web.xml:

  web-app xmlns=http://java.sun.com/xml/ns/j2ee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
  [...]
  /web-app
Any Idea?

Tomek





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


Re: Specified RequestProcessor not compatible with TilesRequestProcessor

2004-05-03 Thread Joe Germuska
This is mostly a side-effect of the 
RequestProcessor being a single class, rather 
than an interface.

The SSL-ext project has a 
SecureTilesRequestProcessor class which solves 
your immediate problem.

When we begin work on Struts 1.3.x (real soon 
now) we will integrate support for a composable 
request processor that will allow developers to 
add functionality along the entire request 
lifecycle  by chaining commands, rather than 
extending the RequestProcessor class and running 
into issues like this.

The struts-chain library in the CVS repository 
is already usable for this now, but one of the 
major efforts of Struts 1.3 will be to make this 
the primary way in which requests are handled, 
including flushing out all the bugs that might be 
in there and adapting other RequestProcessor 
extensions (like SSL-ext and struts-workflow) to 
work with the chained request processor.

Joe

At 1:25 PM + 5/3/04, Marcella Turner wrote:
Hi All,

I would like to migrate a Struts application to 
a Struts-Tiles application.  The application 
currently defines the controller as 
SecurityRequestProcessor, like so:

controller 
processorClass=org.apache.struts.action.SecureRequestProcessor 
/

However, I'm getting the following error when calling my first tiled jsp:

[4/30/04 16:42:44:725 EDT] 74488c86 WebGroup 
E SRVE0026E: [Servlet Error]-[action]: 
javax.servlet.ServletException: TilesPlugin : 
Specified RequestProcessor not compatible with 
TilesRequestProcessor
	at 
org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass(TilesPlugin.java:358)
	at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:165)
	at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)
	at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
	at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
	at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
	at 
com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
	at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
	at 
com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
	at 
com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:870)
	at 
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
	at 
com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
	at 
com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java:646)
	at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebAppRequestDispatcherInfo.java:172)
	at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.init(WebAppRequestDispatcherInfo.java:59)
	at 
com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1455)
	at 
com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1414)
	at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:197)
	at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
	at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
	at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
	at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
	at 
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
	at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

Are TILES and SECURITY mutally exclusive?  How 
can I use the feaatures of both contollers?

Thanks in advance.

_
MSN Toolbar provides one-click access to Hotmail 
from any Web page – FREE download! 
http://toolbar.msn.com/go/onm00200413ave/direct/01/

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


--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
  Imagine if every Thursday your shoes 
exploded if you tied them the usual way.  This 
happens to us all the time with computers, and 
nobody thinks of complaining.
-- Jef Raskin

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


RE: Mixed Struts Validator Framework and ValidationForm

2004-05-03 Thread salgado.pc
  Yes.

  Extend the DynaValidator

  override the validate method

  validate(...) {

ActionErrors errors = super.validate(...);

// do your stuff
if (...) {
errors.add(...);
}


return errors;
  }

Pedro Salgado


On 04/05/03 9:40, Eric Noel [EMAIL PROTECTED] wrote:

 Is it possible to use both Strut's Validator Framework for some fields
 and validate other fields using my own validation via ActionForm
 class. If yes, can someone site an example.

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



2 Actions 2- FormBeans

2004-05-03 Thread Frers Michael
Hello
i have a little Problem and perhaps someone can help me out

i have an actionclass (I) which has a FormBean

now i send the HTML Form away.

after i get a response from database i decide in my actionclass (i) that if
only one hit in my database is coming back,(instead of more than 1) i pickup
the id of the singleresult and forward then another actionclass (II) which
is searching again in database with this id. Now my Question is how can i
set the parameters in the FormBean of the Second Actionclass (II).

public class FirstBean extends ActionForm
{
private String request;
//+getter and setter
}

public class SecondBean extends ActionForm
{
private String idOfSingleResult;
//+getter and setter
}


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



Re: Security + struts

2004-05-03 Thread BaTien Duong
Pedro Salgado wrote:

On 04/05/02 6:40, Craig R. McClanahan [EMAIL PROTECTED] wrote:

 

DMZ is short for demilitarized zone ... a term adopted for enterprise
network infrastructures from the military use of the term.
If you're writing an application for public access on the Internet,
you'll find that the net is not a very friendly place ... there's lots
of attackers out there.  One of the common architectures is to separate
your environment into tiers -- for example:
Database -- Firewall2 -- AppServer -- Firewall1 -- Internet

so that, even if someone can punch through Firewall1 and corrupt your
app server, they (hopefully) cannot also penetrate Firewall2 and corrupt
your database.  The traditional term for the servers between Firewall1
and Firewall2 is the DMZ.
   

 I heard about the concept, but never came upon the terminology (DMZ) :)

 Just one question, if one breaks fw1 and corrupts AppServer, then one can
make whatever he wants to the database through the AppServer host itself.
 The fw2 must accept requests directly to the db from the appserver, right?
 What's the point of fw2? Just filter more ports than the ones filtered on
fw1?
 

fw2 allows only specified server(s) to required specified port(s) which 
is different from app server port. This same concept can be used for 
both external users (external DMZ) and internal users (internal DMZ). If 
you use proxy for internal DMZ then all internet traffic is isolated in 
external DMZ segment. This is a standard J2EE infrastructure.

 In terms of the web app, issuing a DELETE * FROM some_table ordinary
jdbc statement with the right parameters could access the database with no
problems in the way!
 

This is why all user inputs needed to be filtered and validated. All 
http injections, sql injections and command injections can be greatly 
reduces using tomcat security (ref: oreilly book of tomcat definitive 
guide). This is also a reason why Struts is so popular because it also 
has application firewall.

 I think I am I missing something here?
 I thought that firewalls only served to present the wanted ports (HTTP,
FTP, etc) to users outside the network/host and weren't that intelligent
(actually I thought that was the whole point - a fw should have the minimum
software installed for its purpose so that if it gets broken, then the
attacker has less changes of doing much harm).
 

If you use Linux iptable then you can have each server firewall. So, fw1 
(that can be load balance) is like the building security guard that 
accepts requests and give responses. external DMZ is like the building 
main floor that fw1 directs valid requests to and receives responses. 
fw2 (that can be load balance) is like the floor security guard that 
handles only requests from specified office (server) in specified floor 
(network segment such as internal DMZ. Private network can only 
communicate with internal DMZ). The server firewall (using Linux 
iptable) is a security guard in front of each office that make sure only 
valid request(s) related to the application handled by the office can 
get through. Application using Struts has application firewall that make 
sure all valid user inputs are in its own form and uses its own form to 
process the valid request.

Struts chain of request/response framework will enable much finer detail 
authorization of corporate resources.

BaTien
DBGROUPS
Some folks go further and separate the web server (that responds to HTTP
requests, but often still contains the JSP pages and servlets of a
Struts-based front controller) and the app server (that performs your
business logic, and contains EJBs or the equivalent) into separate tiers
as well, which is where the term three tier architecture came from.
   

 This last example makes more sense to me. If one has access to the
webserver itself and even if wants to emulate some kind of abnormal
behaviour (in the limit, implement a whole new web app that runs on that
server - it may need some time though), then at least the business logic
rules will apply and prevent some kind of attack. In this case the database
is protected.
 To access it, then there should be another security flaw besides the
ports/services that are allowed to run between the appserver and webserver.
 Another possiblity is appserver business logic provide services to the
web server that could lead to a security problem or inconsistent state.
 Regards, 

Pedro Salgado

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

 




forwarding to a pop-up window

2004-05-03 Thread rchar
Hi,
I'm new to struts. I have a JSP form which when submitted, needs to open a
pop-up window that will display a confirmation message after processing is
complete. How would I do this?
Thanks.



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



Re: Specified RequestProcessor not compatible with TilesRequestProcessor

2004-05-03 Thread Marcella Turner
Joe,

Thanks so much for your prompt reply!  I have downloaded the sslext from 
SourcForge and am wondering if there is a user friendly migration document 
that I can reference which spells out the implementation.


From: Joe Germuska [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Specified RequestProcessor not compatible with 
TilesRequestProcessor
Date: Mon, 3 May 2004 08:37:18 -0500

This is mostly a side-effect of the RequestProcessor being a single class, 
rather than an interface.

The SSL-ext project has a SecureTilesRequestProcessor class which solves 
your immediate problem.

When we begin work on Struts 1.3.x (real soon now) we will integrate 
support for a composable request processor that will allow developers to 
add functionality along the entire request lifecycle  by chaining commands, 
rather than extending the RequestProcessor class and running into issues 
like this.

The struts-chain library in the CVS repository is already usable for this 
now, but one of the major efforts of Struts 1.3 will be to make this the 
primary way in which requests are handled, including flushing out all the 
bugs that might be in there and adapting other RequestProcessor extensions 
(like SSL-ext and struts-workflow) to work with the chained request 
processor.

Joe

At 1:25 PM + 5/3/04, Marcella Turner wrote:
Hi All,

I would like to migrate a Struts application to a Struts-Tiles 
application.  The application currently defines the controller as 
SecurityRequestProcessor, like so:

controller 
processorClass=org.apache.struts.action.SecureRequestProcessor /

However, I'm getting the following error when calling my first tiled jsp:

[4/30/04 16:42:44:725 EDT] 74488c86 WebGroup E SRVE0026E: [Servlet 
Error]-[action]: javax.servlet.ServletException: TilesPlugin : Specified 
RequestProcessor not compatible with TilesRequestProcessor
	at 
org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass(TilesPlugin.java:358)
	at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:165)
	at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)
	at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
	at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
	at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
	at 
com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
	at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
	at 
com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
	at 
com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:870)
	at 
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
	at 
com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
	at 
com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java:646)
	at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebAppRequestDispatcherInfo.java:172)
	at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.init(WebAppRequestDispatcherInfo.java:59)
	at 
com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1455)
	at 
com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1414)
	at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:197)
	at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
	at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
	at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
	at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
	at 
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
	at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

Are TILES and SECURITY mutally exclusive?  How can I use the feaatures of 
both contollers?

Thanks in advance.

_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/

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


--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
  Imagine if every Thursday your shoes exploded if you tied them the 
usual way.  This happens to us all the time 

Validator execution-order, all at once possible?

2004-05-03 Thread nils . mueller

http://marc.theaimsgroup.com/?t=10590259932r=1w=2

Hi folks, 

I got stuck on a problem discussed earlier in this list (@see link
above).
Hope this hasn't been answered elsewhere - it was the only thing I could
find.

Forms seem to get validated in a certain order. First, all required
fields are checked. Only after passing all required checks is other
validation performed. Correct?

Suppose you have a field name and a field age. Both a required and
age also has integer checking applied. If user leaves name blank and
enters bogus values (non-int values) in age, validation will complain
only about name being required - not age being invalid. Only after name
is filled, integer validation complains.

I would like to see all applicable error messages at once. Is that a
configurable option? Work-arounds?

Thanx
Nils




This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in error, 
please notify the sender immediately and delete the original.  Any other use of the 
email by you is prohibited.

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



RE: Setting html:text readonly attribute

2004-05-03 Thread Paul McCulloch
You cannot use one jsp tag to supply another jsp tag with a value for an
attribute.

Some solutions are:

1) Use an html (rather than a jsp) tag:

 input type=text name=licenceCount value=c:out
value='${purchaseForm.licenceCount}'/ size=3 readonly=c:out
value='${purchaseForm.newPurchase}'/ maxlength=5/

2) Use a bean defintion and an rt expression:

bean:define id=readOnly name=purchaseForm property=newPurchase/

html:text property=licenceCount size=3 readonly=%=readOnly%
maxlength=5/

3) Use struts el tag:

html-el:text property=licenceCount size=3
readonly=${purchaseForm.licenceCount} maxlength=5/


Paul

 -Original Message-
 From: John Moore [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 03, 2004 2:30 PM
 To: [EMAIL PROTECTED]
 Subject: Setting html:text readonly attribute


 I'm having a big problem trying to dynamically set a value
 for the readonly
 attribute of an html:text tag. I'm using a JSTL core tag to
 try to set it
 and whatever I do is ignored.

 In the example below, the newPurchase property is a boolean. If I use
 exactly this tag elsewhere on the page, it outputs true or false as
 expected. Here, though, it has no effect on the attribute, whether
 newPurchase is true or false - the input tag generated is missing the
 'readonly' attribute.

  html:text property=licenceCount size=3 readonly=c:out
 value='${purchaseForm.newPurchase}'/ maxlength=5/

 I've also tried the following (with as little effect), using
 an escaped
 double-quote instead of a single quote:

  html:text property=licenceCount size=3 readonly=c:out
 value=\${purchaseForm.newPurchase}\/ maxlength=5/

 The curious thing is that I can use a similar construct but
 with an integer
 property to dynamically set other attributes, such as size, as in the
 following example (ignore the logical nonsense of assigning a
 size on such
 a basis, it's just a test of technical feasibility):

  html:text property=licenceCount size=c:out
 value=\${purchaseForm.totalLicences}\/ maxlength=5/

 Is there something to do with assigning boolean attributes in
 these tags
 which I haven't got yet? Or is it just soemthing weird with
 the readonly one?

 John


 =
 John Moore -Norwich, UK-[EMAIL PROTECTED]
 = 
 

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



Re: How to use resource bundle in attributes

2004-05-03 Thread Nathan Maves
I am not 100% sure but I believe that you just use the fmt:message  
tag.

Just use something like...

fmt:message key=login.tooltip.username /

if you need to send parameters just put them in the body of the tag.

fmt:message key=login.tooltip.username 
fmt:param value=${username}/
/fmt:message
Nathan

On May 3, 2004, at 8:44 AM, Ralf Schneider wrote:

Could you give a short example of how this can be done with JSTL or 
point me
to an example?

I looked into the Java Web Services Tutorial, but the chapter about
internationalization with JSTL only describes the use of 
internationalized
strings in the body of a tag (e.g. fmt:message ...).

Ralf.

Am Montag, 3. Mai 2004 15:37 schrieb Nathan Maves:

Use jstl!

On May 3, 2004, at 6:51 AM, Ralf Schneider wrote:
Hi,

how can a use internationalized text strings stored in a resource
bundle as
values of attributes?
For example:

html:text property=username title=login.tooltip.username/

I know, this will not work, but how can it be done?

Ralf.
-
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: Setting html:text readonly attribute

2004-05-03 Thread John Moore
At 16:09 03/05/2004, Paul McCulloch wrote:

You cannot use one jsp tag to supply another jsp tag with a value for an
attribute.
This certainly explains my problem. I could swear that I was doing so 
successfully with an integer attribute, though, as I mentioned in my 
original post. Trying it again, though, it fails (as it apparently should). 
Goodness knows what I did last time!

Thanks for your suggestions, which I'll try out.

John

=
John Moore -Norwich, UK-[EMAIL PROTECTED]
=  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.662 / Virus Database: 425 - Release Date: 20/04/2004

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

Re: How to use resource bundle in attributes

2004-05-03 Thread Ralf Schneider
But this is not the way I want to use it. This way, I could use it to put a 
translated text into the body of a tag like

tdfmt:message key=login/td

But how can I use the translated text as an attribute value as written before?

Ralf.

Am Montag, 3. Mai 2004 17:12 schrieb Nathan Maves:
 I am not 100% sure but I believe that you just use the fmt:message
 tag.

 Just use something like...


 fmt:message key=login.tooltip.username /

 if you need to send parameters just put them in the body of the tag.

 fmt:message key=login.tooltip.username 
   fmt:param value=${username}/
 /fmt:message


 Nathan

 On May 3, 2004, at 8:44 AM, Ralf Schneider wrote:
  Could you give a short example of how this can be done with JSTL or
  point me
  to an example?
 
  I looked into the Java Web Services Tutorial, but the chapter about
  internationalization with JSTL only describes the use of
  internationalized
  strings in the body of a tag (e.g. fmt:message ...).
 
  Ralf.
 
  Am Montag, 3. Mai 2004 15:37 schrieb Nathan Maves:
  Use jstl!
 
  On May 3, 2004, at 6:51 AM, Ralf Schneider wrote:
  Hi,
 
  how can a use internationalized text strings stored in a resource
  bundle as
  values of attributes?
 
  For example:
 
  html:text property=username title=login.tooltip.username/
 
  I know, this will not work, but how can it be done?
 
  Ralf.
 
  -
  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]

-- 
## Ralf Schneider
 ## Fürstenallee 14 - 34454 Bad Arolsen
  ## Tel. +49-5691-625994

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



RE: forwarding to a pop-up window

2004-05-03 Thread Ricardo Cortes
Here's an example of what I'm doing in my Struts application to handle opening up a 
popup window:

a href=javascript:popup('core:url value=/displayNotePopup.do
core:param name=messageSubject
core:out value=${aMessageInstance.message.subject}//core:param
core:param name=messageRecipient
core:out value=${aMessageInstance.sender.memberName}//core:param
/core:url')Reply/a

The DisplayNotePopup action gets called when the user clicks on the link.  The 
parameter messageSubject and messageRecipient get passed as request parameters to the 
DisplayNotePopup action.  Note that I'm also using the core JSTL tag library.

-Ricardo

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 10:50 AM
To: [EMAIL PROTECTED]
Subject: forwarding to a pop-up window


Hi,
I'm new to struts. I have a JSP form which when submitted, needs to open a
pop-up window that will display a confirmation message after processing is
complete. How would I do this?
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: trouble with taglibs in xml syntax

2004-05-03 Thread Tomasz Dreßler
Thank you for your answer.
It works. Can you help me understand why :)
Someone looks in all jar's for 
'http://jakarta.apache.org/struts/tags-bean' namespace?
When I am use JSP 2.0 what I sould take instead of jsp:root element?
I use tiles so I can't take html as root element.

Greetings

Kris Schneider schrieb:

Try:

xmlns:bean=urn:jsptld:/WEB-INF/tags/struts-bean.tld

But since JSP 1.2 you really don't need separate TLD files for packaged taglibs
(like Struts and JSTL). This should also work:
xmlns:bean=http://jakarta.apache.org/struts/tags-bean;

Then you can remove the TLD files from your app as well as the taglib elements
from your web.xml. Also note that as of JSP 2.0 you don't have to use
jsp:root for your document's root element.
Quoting Tomasz Dreßler [EMAIL PROTECTED]:

 

Hi!
I have problems to use the struts taglibs in jsp with xml syntax.
When I use
  %@ taglib uri=/WEB-INF/tags/struts-bean.tld prefix=bean %
the generated servlet contains the line
'_jspx_dependants.add(/WEB-INF/tags/struts-bean.tld)'
and everything is ok.
But with the following syntax the line
'_jspx_dependants.add(/WEB-INF/tags/struts-bean.tld)' disappeare
  ?xml version=1.0 encoding=UTF-8?
  jsp:root version=1.2
  xmlns:jsp=http://java.sun.com/JSP/Page;
  xmlns:c=http://java.sun.com/jsp/jstl/core;
  xmlns:bean=/WEB-INF/tags/struts-bean.tld
  [...]
  /jsp:root

I use Apache Tomcat/5.0.18 and I have modifyed my web.xml:

  web-app xmlns=http://java.sun.com/xml/ns/j2ee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
  [...]
  /web-app
Any Idea?

Tomek
   

 



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


Re: How to use resource bundle in attributes

2004-05-03 Thread bOOyah
Ralf Schneider wrote:

how can a use internationalized text strings stored in a resource bundle as 
values of attributes?

html:text property=username title=login.tooltip.username/
Hi Ralf

Have you tried

html:text property=username titleKey=login.tooltip.username/

I use the 'titleKey' attribute like this on 'html:submit' buttons.

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


Re: How to use resource bundle in attributes

2004-05-03 Thread Ralf Schneider
Yes! That's exactly what I was looking for. Thanks a lot!

I missed this attribute when looking through the endless list of attributes of 
the HTML taglib.

Ralf.

Am Montag, 3. Mai 2004 18:28 schrieb bOOyah:
 Ralf Schneider wrote:
  how can a use internationalized text strings stored in a resource bundle
  as values of attributes?
 
  html:text property=username title=login.tooltip.username/

 Hi Ralf

 Have you tried

  html:text property=username titleKey=login.tooltip.username/

 I use the 'titleKey' attribute like this on 'html:submit' buttons.

-- 
## Ralf Schneider
 ## Fürstenallee 14 - 34454 Bad Arolsen
  ## Tel. +49-5691-625994

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



nested:iterate nested HashMap

2004-05-03 Thread Serhiy Brytskyy
Hi,

There is a struts form:
form-bean dynamic=true name=cart 
type=org.apache.struts.action.DynaActionForm
form-property name=itemsMap type=java.util.LinkedHashMap /
/form-bean

This hash map has got nested has maps. approximately next:

LinkedHashMap itemsMap = new LinkedHashMap();

HashMap map = new HashMap();
map.put(Item1, new Integer(2));
map.put(Item2, new Integer(4));
map.put(Item3, new Integer(10));


itemsMap.put(new Integer(0), map);

( (DynaActionForm) actionForm).set(itemsMap, itemsMap);

How can I show this structure using nested:iterate? How can I get inner 
hash map?
Next code on JSTL is working well:
TABLE
c:forEach var=itemMain items=${cart.map.itemsMap}
c:forEach var=item items=${itemMain.value}
tr
tdc:out value=${item.key}//td
tdc:out value=${item.value}//td
/tr
/c:forEach
/c:forEach
/TABLE

But if I try nested:iterate it doesn't work:

TABLE
nested:iterate id=itMap property=itemsMap
nested:iterate id=map property=value
TR
TDnested:text property=value//TD
/TR
/nested:iterate
/nested:iterate
/TABLE
Thanks,
Serhiy


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


sslext - non-ssl http links available from https pages

2004-05-03 Thread Eric Dahnke

Hello List,

We have implemented sslext to secure a certain section of our application /
site. As part of the design / biz requirements the main navigation and many
links in the headers and footers are all still available from the https
protected pages.

My question is whether we have to explicitly convert all these available
links to  sslext:link type links and explicity set-property
property=secure value=false/ within the specific struts actions?



PS. Does the set-property property=secure value=any mean either http
or https is ok for this action?


Sincerely, Eric




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



sslext - non-ssl http links available from https pages

2004-05-03 Thread Eric Dahnke

Hello List,

We have implemented sslext to secure a certain section of our application /
site. As part of the design / biz requirements the main navigation and many
links in the headers and footers are all still available from the https
protected pages.

My question is whether we have to explicitly convert all these available
links to  sslext:link type links and explicity set-property
property=secure value=false/ within the specific struts actions?



PS. Does the set-property property=secure value=any mean either http
or https is ok for this action?


Sincerely, Eric




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



RE: forwarding to a pop-up window

2004-05-03 Thread Brian Lee
For your form tag, set the target to a window name, then when you submit, 
call a javascript function that opens a new window with the same name. This 
will submit all the values from the current page into the targetted new 
window.

I think you can also just do form target=_blank and it will submit into 
a new blank html window but you won't be able to set the size or the 
properties of the new window like you can with window.open().

BAL

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: forwarding to a pop-up window
Date: Mon, 3 May 2004 09:49:45 -0500
Hi,
I'm new to struts. I have a JSP form which when submitted, needs to open a
pop-up window that will display a confirmation message after processing is
complete. How would I do this?
Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Check out the coupons and bargains on MSN Offers! http://youroffers.msn.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: forwarding to a pop-up window

2004-05-03 Thread Ricardo Cortes
I forgot to include the popup() Javascript function:

script language= javascript
!--
function popup(targetURL) {

var props = 
scrollBars=yes,resizable=no,toolbar=no,menubar=no,location=no,directories=no,width=400,height=400;
var popup = window.open(targetURL, Test Title, props);
popup.focus();
}
//--
/script

-Original Message-
From: Ricardo Cortes 
Sent: Monday, May 03, 2004 12:02 PM
To: Struts Users Mailing List
Subject: RE: forwarding to a pop-up window


Here's an example of what I'm doing in my Struts application to handle opening up a 
popup window:

a href=javascript:popup('core:url value=/displayNotePopup.do
core:param name=messageSubject
core:out value=${aMessageInstance.message.subject}//core:param
core:param name=messageRecipient
core:out value=${aMessageInstance.sender.memberName}//core:param
/core:url')Reply/a

The DisplayNotePopup action gets called when the user clicks on the link.  The 
parameter messageSubject and messageRecipient get passed as request parameters to the 
DisplayNotePopup action.  Note that I'm also using the core JSTL tag library.

-Ricardo

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 10:50 AM
To: [EMAIL PROTECTED]
Subject: forwarding to a pop-up window


Hi,
I'm new to struts. I have a JSP form which when submitted, needs to open a
pop-up window that will display a confirmation message after processing is
complete. How would I do this?
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: Way to reload struts Action classes in WebLogic8.1

2004-05-03 Thread Craig McClanahan
Michael McGrady wrote:

At 11:40 PM 5/2/2004, Craig McClanahan wrote:

Michael McGrady wrote:

Isn't it true, Craig, that this is not a problem for hot deploy of 
the classes that do this.  If you have other classes that do not do 
this, then they cannot be hot deployed.  But, what difference does 
that make?  If someone wants to hot deploy them, they can redesign 
the class.  The more I think about it, the less of a problem this 
seems to be.  Am I missing something here?


Most containers (but no guarantees, since it's not in the specs) will 
know how to pick up a new class that has never been compiled before.  
No container that I know of lets you selectively replace classes that 
have already been loaded into the class loader, because Java's class 
loader API doesn't support unloadClass() or replaceClass().

Solving 1% of the problem doesn't help -- it only misleads people.  
See my response in the other thread for a very common Struts use case 
that doesn't work with your approach.


In the other thread I responded to the idea that the use case doesn't 
work.  That use case is not supposed to work.  Making one class hot 
deployable is not supposed to make all classes hot deployable.  
Personally, I don't see a good reason not to make an entire framework 
hot deployable.  This could be done fairly easy and without doing the 
framework any injustice that is obvious.  All you have to do is to 
provide the proper interfaces which is probably a good idea for lots 
of reasons and cannot really hurt for any reason I know of and then 
you can easily employ class factories using a new classloader for each 
hot deploy.  That would for a game application, for example, provide a 
100% solution unrelated to the container.

The key, and maybe you are not seeing this is part of the solution, is 
to load the implementation with the following being true:

1.  Do not have the client (container) reference the implementation 
that needs to be replaced.  Otherwise you will have to bounce the 
client (container).
2.  Have the client (container) reference only a base class or an 
interface.  If you change base classes or interfaces, you would still 
have to bounce the client (container), but that is not a problem.
3.  Have the implementation class's classloader delegate to the client 
(container) classloader.  Presumably this means that the client 
(container) would be using the system classloader.
4.  Make sure that a number of things happen with a hot deploy by a 
class factory: (a) get the state of the old implementation and add it 
to the new one, so the client (container) must make the state of the 
original object available to the factory and (b) the client 
(container) must drop any old references to the old implementations 
both to save resources and to use the new version, these objectives 
are achieved by passing the old implementation into the factor and 
returning the new one with the same reference as the old one.
5.  If you want to hide things from the client (container) as well, 
give the client (container) a forwarding proxy to the actual object, 
giving the factory the control of swapping the object at any time 
without either the knowledge or agreement of the client (container).

Here container might be framework.  Yes? 
Taking this whole approach is not specific to Struts, but (if it is 
actually useful) would have general applicability.  It sounds like what 
you're designing is a specialized sort of servlet container that knows 
how to support some limited subset of hot deploy -- plus a design 
paradigm for building applications for it that requires you to replace 
any persistent reference to another object with a lookup in a cache of 
some sort (so that you're not pointing at an object based on an obsolete 
implementation class).  This can have pretty dramatic impacts on code 
readability and performance, but presumably someone will find it 
worthwhile.  I wouldn't personally be willing to live under the 
restrictions such a design paradigm implies when building apps.

But it is still totally out of scope for Struts.

Craig

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


Re: Split web.xml into multiple files

2004-05-03 Thread Craig McClanahan
Prasad, Kamakshya wrote:

Hi, 

I tried xml entity. It worked though I have few doubts.

This is part of the xml which have that reference

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE 
	web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
	 [!ENTITY xmlfrag SYSTEM
file:///F:/struts/web/WEB-INF/servlet.xml ]
web-app
 display-nameStruts POC/display-name

 !-- Action Servlet Configuration --
 xmlfrag;
 

I presume that /web-app goes here?

The xmlfrag contains the servlet specification and everything is
working fine but when I start the server it always throw this error.
May 3, 2004 4:12:55 PM JST Error HTTP BEA-101306 Could not
resolve entity null for the webapp at: null. Check your DTD
reference in the corresponding descriptor (web.xml/weblogic.xml).
What has to be done to get rid of this error?

 

Even if this worked, you really don't want to be using absolute paths.  
A more typical scenario would be to put your fragment (say, in a file 
called action-servlet.xml) in the WEB-INF directory next to web.xml, 
and change the entity declaration to something like:

 !ENTITY xmlfrag SYSTEM action-servlet.xml

This will work *if* your container parses web.xml files in a manner 
where the XML parser knows the absolute URL of the web.xml file itself, 
so that it can resolve relative references.  Tomcat works this way, but 
I don't know if WebLogic does.

Thanks and Regards,
KP
 

Craig

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


issue with LazyList

2004-05-03 Thread Mathew, Manoj
Hi all i tried this code and the control os coming to initMyList() but not going 
inside getName().. Inside the jsp i am accessing the element by friendName[1] and i 
get a aeeayIndexoutofBondException.

...Pls help..


public class myTestForm extends DynaActionForm {

public void reset(ActionMapping mapping, HttpServletRequest request) {
List nameList = new ArrayList();
initMyList(nameList);

set(friendName, nameList);
}

private void initMyList(List nameList) {
Factory factory = new Factory() {
public Object create() {
return getName();
}

};
nameList = ListUtils.lazyList(new ArrayList(), factory);
}
public Object getName() {
String ma = mynamehere;
return ma;
}
}

thanks in advance
manoj

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



Alpha and Beta testing...

2004-05-03 Thread Michael Marrotte








Does anyone know if theres any standard guideline for
estimating how much alpha and beta testing an application should get?







Michael Marrotte

Software Engineering Manager



1958 Commonwealth Lane

Tallahassee, FL 32303

Phone 850.350.7852

Mobile 850.322.6780

Fax 850.575.1729

Email [EMAIL PROTECTED]

MSN Messenger [EMAIL PROTECTED]












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

Special Characters (german Umlaute)

2004-05-03 Thread Ralf Schneider
Hi,

my web application loads german strings from a resource bundle. Unfortunately, 
the special characters (german Umlaute like , , ) are displayed 
incorrectly if they come from the resource bundle. When I write them directly 
into the HTML code they are displayed correctly.

At the beginning of my JSP file I have this line:
%@ page contentType=text/html; charset=UTF-8 %

And the HTML block is opened with this line:
html:html locale=true xhtml=true

What do I have to change to get the special characters displayed as they were 
written in the resource bundle?

Ralf.

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



Re: Alpha and Beta testing...

2004-05-03 Thread Vic Cekvenich
There is a formula for projecting a release date based on # of duplicate 
bugs that I can't find now but :

Basically, if you plot the number of duplicate bugs over time you can 
estimate the # of undiscovered bugs, thus you can estimate the release 
candidate date.
If most of the bugs reported are new, non duplicate, that would mean 
that it's hard to statisiticaly project the total # of unknown bugs thus 
you are in alpha.

Commercial reality is you release a few days after getting final reqs. 
spec. ;-)

.V

Michael Marrotte wrote:
Does anyone know if theres any standard guideline for estimating how 
much alpha and beta testing an application should get?

 

 

Michael Marrotte

Software Engineering Manager

 

1958 Commonwealth Lane

Tallahassee, FL 32303

Phone 850.350.7852

Mobile 850.322.6780

Fax 850.575.1729

Email [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

MSN Messenger [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

 

 

 



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


--
Vic Cekvenich
Development Engineer
Struts Portal / RIA CMS http://www.baseBeans.com
NYC/Silicon Valley
cell: 917 825 3035
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] Page Cannot Be Displayed

2004-05-03 Thread Rick Reumann
Joshi, Naveen wrote:

All,

Just wondering if any of you get this Page Cannot Be Displayed error once in a while, in Internet Explorer. Is there a solution to this issue.

Thanks
Naveen
I'm sorry for not replying sooner to this message. Just getting caught 
up with struts-users messages.

Joshi, this is very serious. You might want to consider upgrading all of 
your RAM to something like 23GB. Also make sure you raise the computer 
so that it is not directly touching the floor (I find suspending the 
computer from wires beneath my desk helps). Also make sure you are using 
your foot to move the mouse when browsing in IE, using your hand could 
cause be the cause of such errors as you are describing.

hth,

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


Re: Special Characters (german Umlaute)

2004-05-03 Thread mattes
Hi Ralf,

use unicode in the resource bundle.

\u00c4 = Ä
\u00e4 = ä 

and so on.

A complete chart is available here:

http://www.unicode.org/charts/PDF/U0080.pdf

greetings 
mattes

-- 
Mattes Balser | [EMAIL PROTECTED]
High-End Services GmbH | www.nervmich.net



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



RE: Special Characters (german Umlaute)

2004-05-03 Thread Ruth, Brice
You can use the native2ascii application that is bundled with your JDK to 
automatically convert your native-encoded file with umlauts to \u format encodings.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 03, 2004 2:50 PM
To: Struts Users Mailing List
Subject: Re: Special Characters (german Umlaute)


Hi Ralf,

use unicode in the resource bundle.

\u00c4 = Ä
\u00e4 = ä 

and so on.

A complete chart is available here:

http://www.unicode.org/charts/PDF/U0080.pdf

greetings 
mattes

-- 
Mattes Balser | [EMAIL PROTECTED]
High-End Services GmbH | www.nervmich.net



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



Rendering Unfiltered Text

2004-05-03 Thread Bill Siggelkow
This is somewhat of an HTML question so please don't slam me ...

I am using bean:write name=foo property=bar filter=false/ to 
display text containing HTML.  However, I would like to find a way to 
prevent mangled markup when the data contains unbalanced tags.  For 
example, if the value of bar is Struts brocks! -- then when I render 
this with filter=false then the text and everything following the text 
is in bold because the b tag does not have an /b tag.  Does anyone 
know of a way of preventing this problem?  I tried wrapping the text in 
div tags but still had the same problem.

Bill Siggelkow

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


struts file upload strange error

2004-05-03 Thread Bryan Hunt
Hi there list,
I have been trying to get the most simple file upload example working with
and have been receiving a strange error message that I just can't seem 
to shake.

Here is the basics of my action form
snip=
public class ImageUploadForm extends ActionForm {
   // - 
Instance Variables
   /** imageFile property */
   protected FormFile file;

   // - Methods

   public ActionErrors validate(
   ActionMapping mapping,
   HttpServletRequest request) {
  
   if(file == null){
   System.out.println(file is empty);
   }
   return null;
   }

   public FormFile getFile() {
   return file;
   }
   public void setFile(FormFile file) {
   this.file = file;
   }
=snip
Here is the basics of the action
snip=
public ActionForward execute(
 blah) {
   System.out.println(at least i managed to get called);
   throw new UnsupportedOperationException(Generated method 
'execute(...)' not implemented.);
   }
=snip

Here is the basics from my struts config file
snip=
   form-bean name=imageUploadForm 
type=ie.jestate.struts.form.ImageUploadForm
   form-property name=file 
type=org.apache.struts.upload.FormFile /
   /form-bean
action
   attribute=imageUploadForm
   input=/form/imageUpload.jsp
   name=imageUploadForm
   path=/imageUpload
   type=ie.jestate.struts.action.ImageUploadAction
   scope=request
   validate=true
   
   forward name=imageuploadsuccess 
path=/form/imageUpload.jsp /
   /action
=snip

Here is the jsp file

snip=
%@ page language=java%
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean%
%@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html%
html
   head
   titleJSP for imageUploadForm form/title
   /head
   body
   html:form action=/imageUpload.do type=imageUploadForm 
   File :
 html:file property=file/
   html:submit/
   /html:form
   body
   /html
=snip
And here is the abreviated version of the error message
snip=
*exception*

javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)

org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)*
cause mère*

java.lang.IllegalArgumentException: argument type mismatch
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
=snip
I have tried changing the type to text and the type to String in 
the form and that works but use this FormFile class and everything 
seems to go fubar. 

It never even gets to call the action , instead it generates this error 
message ,
but the setters and getters are right and the variable is public, this 
only happens
with the FormFile. All the struts stuff is in my classpath as is 
commons-fileupload-1.0.jar.

Anyone got any idea what the hell I'm doing wrong ... I'm starting to 
suspect this
could be a struts bug cause everything looks straightforward enough.

--B

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


Re: Rendering Unfiltered Text

2004-05-03 Thread Riyad Kalla
Bill this will depending totally on the browser how 'broken' or 'unbroken' the 
text looks. Because of that, the only solution I can think of is to actually 
fix the text before displaying it, or remove the HTML markup.

On Monday 03 May 2004 01:03 pm, Bill Siggelkow wrote:
 This is somewhat of an HTML question so please don't slam me ...

 I am using bean:write name=foo property=bar filter=false/ to
 display text containing HTML.  However, I would like to find a way to
 prevent mangled markup when the data contains unbalanced tags.  For
 example, if the value of bar is Struts brocks! -- then when I render
 this with filter=false then the text and everything following the text
 is in bold because the b tag does not have an /b tag.  Does anyone
 know of a way of preventing this problem?  I tried wrapping the text in
 div tags but still had the same problem.

 Bill Siggelkow


 -
 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: Setting html:text readonly attribute

2004-05-03 Thread John Moore
At 16:09 03/05/2004, Paul McCulloch wrote:

1) Use an html (rather than a jsp) tag:

 input type=text name=licenceCount value=c:out
value='${purchaseForm.licenceCount}'/ size=3 readonly=c:out
value='${purchaseForm.newPurchase}'/ maxlength=5/
I've found that this, unfortunately doesn't work, at least with my current 
browser of choice (Firefox), which insists on making the text field 
read-only as long as there is a 'readonly' attribute present. I'm exploring 
the other options next.

I have to say, completely off-topic, that it strikes me as pretty moronic 
behaviour for a browser if you have a boolean attribute, readonly, and it 
interprets readonly='false' as being an instruction to make the field 
read-only. But it does.

John

=
John Moore -Norwich, UK-[EMAIL PROTECTED]
=  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.662 / Virus Database: 425 - Release Date: 20/04/2004

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

Re: struts file upload strange error

2004-05-03 Thread Martin Cooper
It's not a Struts bug, and it's not even a Struts-related problem. Any time
you need to upload files, you must use a POST request with an 'enctype' of
multipart/form-data. Your form element should look like this:

html:form action=/imageUpload.do type=imageUploadForm
enctype=multipart/form-data

--
Martin Cooper


Bryan Hunt [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi there list,
 I have been trying to get the most simple file upload example working with
 and have been receiving a strange error message that I just can't seem
 to shake.

 Here is the basics of my action form
 snip=
 public class ImageUploadForm extends ActionForm {
 // - 
 Instance Variables
 /** imageFile property */
 protected FormFile file;

 // - Methods

 public ActionErrors validate(
 ActionMapping mapping,
 HttpServletRequest request) {

 if(file == null){
 System.out.println(file is empty);
 }
 return null;
 }

 public FormFile getFile() {
 return file;
 }

 public void setFile(FormFile file) {
 this.file = file;
 }
 =snip

 Here is the basics of the action
 snip=
 public ActionForward execute(
   blah) {
 System.out.println(at least i managed to get called);
 throw new UnsupportedOperationException(Generated method
 'execute(...)' not implemented.);
 }
 =snip

 Here is the basics from my struts config file
 snip=
 form-bean name=imageUploadForm
 type=ie.jestate.struts.form.ImageUploadForm
 form-property name=file
 type=org.apache.struts.upload.FormFile /
 /form-bean
 action
 attribute=imageUploadForm
 input=/form/imageUpload.jsp
 name=imageUploadForm
 path=/imageUpload
 type=ie.jestate.struts.action.ImageUploadAction
 scope=request
 validate=true
 
 forward name=imageuploadsuccess
 path=/form/imageUpload.jsp /
 /action
 =snip

 Here is the jsp file

 snip=
 %@ page language=java%
 %@ taglib uri=http://jakarta.apache.org/struts/tags-bean;
prefix=bean%
 %@ taglib uri=http://jakarta.apache.org/struts/tags-html;
prefix=html%
 html
 head
 titleJSP for imageUploadForm form/title
 /head
 body
 html:form action=/imageUpload.do type=imageUploadForm 
 File :
   html:file property=file/
 html:submit/
 /html:form
 body
 /html
 =snip

 And here is the abreviated version of the error message
 snip=

 *exception*

 javax.servlet.ServletException: BeanUtils.populate
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)

org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:821)*

 cause mère*

 java.lang.IllegalArgumentException: argument type mismatch
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 =snip

 I have tried changing the type to text and the type to String in
 the form and that works but use this FormFile class and everything
 seems to go fubar.


 It never even gets to call the action , instead it generates this error
 message ,
 but the setters and getters are right and the variable is public, this
 only happens
 with the FormFile. All the struts stuff is in my classpath as is
 commons-fileupload-1.0.jar.

 Anyone got any idea what the hell I'm doing wrong ... I'm starting to
 suspect this
 could be a struts bug cause everything looks straightforward enough.

 --B




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



RE: Setting html:text readonly attribute

2004-05-03 Thread John Moore
At 21:07 03/05/2004, John Moore wrote:

At 16:09 03/05/2004, Paul McCulloch wrote:

1) Use an html (rather than a jsp) tag:

 input type=text name=licenceCount value=c:out
value='${purchaseForm.licenceCount}'/ size=3 readonly=c:out
value='${purchaseForm.newPurchase}'/ maxlength=5/
I've found that this, unfortunately doesn't work, at least with my current 
browser of choice (Firefox), which insists on making the text field 
read-only as long as there is a 'readonly' attribute present. I'm 
exploring the other options next.
LATER...

Tweaking it so that it outputs only 'readonly' is, of course, the solution.

John

=
John Moore -Norwich, UK-[EMAIL PROTECTED]
=  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.662 / Virus Database: 425 - Release Date: 20/04/2004

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

Re: Setting html:text readonly attribute

2004-05-03 Thread Craig McClanahan
Riyad Kalla wrote:

Whats the diff between readonly and disabled=true, I've been using the 
latter...

 

In the terminology of the HTML Specification [1], a disabled control 
disallows user input *and* the field will not be successful on a form 
submit.  In other words, there will be no corresponding request 
parameter.  A readonly field [2] also disallows user input, but the 
request parameter for this field will still be returned (sort of a 
visible version of an input type=hidden field).  There are also a 
few other minor differences that you can see in the spec language.

Craig

[1] http://www.w3.org/TR/html4/interact/forms.html#adef-disabled
[2] http://www.w3.org/TR/html4/interact/forms.html#adef-readonly
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Setting html:text readonly attribute

2004-05-03 Thread Riyad Kalla
Ohhh hell. Chris thanks for the info, I have some serious code updates to 
make ;)

Best,
Riyad

On Monday 03 May 2004 02:00 pm, Craig McClanahan wrote:
 Riyad Kalla wrote:
 Whats the diff between readonly and disabled=true, I've been using the
 latter...

 In the terminology of the HTML Specification [1], a disabled control
 disallows user input *and* the field will not be successful on a form
 submit.  In other words, there will be no corresponding request
 parameter.  A readonly field [2] also disallows user input, but the
 request parameter for this field will still be returned (sort of a
 visible version of an input type=hidden field).  There are also a
 few other minor differences that you can see in the spec language.

 Craig

 [1] http://www.w3.org/TR/html4/interact/forms.html#adef-disabled
 [2] http://www.w3.org/TR/html4/interact/forms.html#adef-readonly


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

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



RE: [OT] Page Cannot Be Displayed

2004-05-03 Thread Robert Taylor
LOL !!!

 -Original Message-
 From: Rick Reumann [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 03, 2004 3:14 PM
 To: Struts Users Mailing List
 Subject: Re: [OT] Page Cannot Be Displayed
 
 
 Joshi, Naveen wrote:
 
  All,
  
  Just wondering if any of you get this Page Cannot Be Displayed error once in a 
  while, in Internet Explorer. Is there 
 a solution to this issue.
  
  Thanks
  Naveen
 
 I'm sorry for not replying sooner to this message. Just getting caught 
 up with struts-users messages.
 
 Joshi, this is very serious. You might want to consider upgrading all of 
 your RAM to something like 23GB. Also make sure you raise the computer 
 so that it is not directly touching the floor (I find suspending the 
 computer from wires beneath my desk helps). Also make sure you are using 
 your foot to move the mouse when browsing in IE, using your hand could 
 cause be the cause of such errors as you are describing.
 
 hth,
 
 -- 
 Rick
 
 -
 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]



Response to error in setting up sslext

2004-05-03 Thread Joe Germuska
What version of Struts are you using?  My guess would be some kind of 
binary incompatibility.  I'm using sslext with Struts 1.2.0, but I'm 
sure most people out there using it are using Struts 1.1.

From the CVS logs 
(http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/tiles/), 
it appears as though those classes were kind of moving targets around 
that time.

In addition to using the SecureRequestProcessor, are you using the 
SecureTilesPlugIn?  I'm not really sure why that class is in sslext; 
I'm not using it in my project and things seem to be working.  I 
don't know why it would matter, but just as a matter of fact, I'm not 
using it.

Do you have a more complete stack trace?  What's actually throwing 
the exception?

This looks like it could be a knotty problem; I don't have a lot of 
ideas off hand.  Good thing there are a lot of subscribers to this 
list! :)

Joe



I have been working on setting up SSLExt for an existing Struts application
which was using SecureRequestProcessor but we wanted to also implement
Tiles.  So now I've configured the application to use
SecureTilesRequestProcessor.  However, when I call my tiles page I'm getting
the following error:
Error 503: Cannot initialize RequestProcessor of class
org.apache.struts.action.SecureTilesRequestProcessor:
java.lang.ClassCastException: org/apache/struts/tiles/TilesUtilImpl
incompatible with org/apache/struts/tiles/TilesUtilStrutsImpl
I have done the following set up work:

* put TLD definition in the web.xml
* set controller in struts-config.xml
* set action-mapping in struts-config.xml
* included sslext.tld in pages
Can someone suggest what the error might indicate, or point out what I may
have neglected in my setup?
Thanks in advance.


--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
  Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining.
-- Jef Raskin

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


html:link forward + hard coded parameter

2004-05-03 Thread Dean A. Hoover
I want to use a forward I have defined
when the user clicks on one of several
on a page. A parameter indicates which
one the user clicked on. In html, it might
look like this:
a href=http://abc.com?x=1;One/a
a href=http://abc.com?x=2;Two/a
a href=http://abc.com?x=3;Three/a
How would I do this using the html:link tag.

Dean Hoover

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


exception in tiles:insert

2004-05-03 Thread Lowery, Mat
When an exception occurs within a tiles:insert tag, it prints the
exception message to the page.  Why is this?  How can I fix this problem
so that it simply throws another exception and prints nothing to the
page?  I guess I could edit the source but in how many other tags does
this occur?  Has anyone else had this problem?
 
Thanks in advance,
Mat Lowery
 
 

The sender believes that this E-Mail and any attachments were free of any virus, 
worm, Trojan horse, and/or malicious code when sent. This message and its attachments 
could have been infected during transmission.  By reading the message and opening any 
attachments, the recipient accepts full responsibility for taking proactive and 
remedial action about viruses and other defects. The sender's business entity is not 
liable for any loss or damage arising in any way from this message or its attachments.



Re: struts file upload strange error

2004-05-03 Thread Bryan Hunt
Dude, send me your address and I will fed-ex you a cold beer 
!!
I should have thought of that before. Thanks for your help  I've 
just wasted 24 hours
on this If I was running linux I could have ran a packet capture but 
am on crappy
win 2000 box.

--B

Martin Cooper wrote:

It's not a Struts bug, and it's not even a Struts-related problem. Any time
you need to upload files, you must use a POST request with an 'enctype' of
multipart/form-data. Your form element should look like this:
html:form action=/imageUpload.do type=imageUploadForm
enctype=multipart/form-data
--
Martin Cooper
Bryan Hunt [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 

Hi there list,
I have been trying to get the most simple file upload example working with
and have been receiving a strange error message that I just can't seem
to shake.
Here is the basics of my action form
snip=
public class ImageUploadForm extends ActionForm {
   // - 
Instance Variables
   /** imageFile property */
   protected FormFile file;

   // - Methods

   public ActionErrors validate(
   ActionMapping mapping,
   HttpServletRequest request) {
   if(file == null){
   System.out.println(file is empty);
   }
   return null;
   }
   public FormFile getFile() {
   return file;
   }
   public void setFile(FormFile file) {
   this.file = file;
   }
=snip
Here is the basics of the action
snip=
public ActionForward execute(
 blah) {
   System.out.println(at least i managed to get called);
   throw new UnsupportedOperationException(Generated method
'execute(...)' not implemented.);
   }
=snip
Here is the basics from my struts config file
snip=
   form-bean name=imageUploadForm
type=ie.jestate.struts.form.ImageUploadForm
   form-property name=file
type=org.apache.struts.upload.FormFile /
   /form-bean
action
   attribute=imageUploadForm
   input=/form/imageUpload.jsp
   name=imageUploadForm
   path=/imageUpload
   type=ie.jestate.struts.action.ImageUploadAction
   scope=request
   validate=true
   
   forward name=imageuploadsuccess
path=/form/imageUpload.jsp /
   /action
=snip
Here is the jsp file

snip=
%@ page language=java%
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean;
   

prefix=bean%
 

%@ taglib uri=http://jakarta.apache.org/struts/tags-html;
   

prefix=html%
 

html
   head
   titleJSP for imageUploadForm form/title
   /head
   body
   DEFANGED_html:form action=/imageUpload.do type=imageUploadForm 
   File :
 DEFANGED_html:file property=file/
   DEFANGED_html:submit/
   /DEFANGED_html:form
   body
   /html
=snip
And here is the abreviated version of the error message
snip=
*exception*

javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
   

org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:821)*
 

cause mère*

java.lang.IllegalArgumentException: argument type mismatch
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
=snip
I have tried changing the type to text and the type to String in
the form and that works but use this FormFile class and everything
seems to go fubar.
It never even gets to call the action , instead it generates this error
message ,
but the setters and getters are right and the variable is public, this
only happens
with the FormFile. All the struts stuff is in my classpath as is
commons-fileupload-1.0.jar.
Anyone got any idea what the hell I'm doing wrong ... I'm starting to
suspect this
could be a struts bug cause everything looks straightforward enough.
--B
   





-
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: trouble with taglibs in xml syntax

2004-05-03 Thread Tomasz Dreßler
Thank you for your pations!

Kris Schneider schrieb:

As of JSP 1.2, the container makes packaged taglibs pretty easy to deal with.
For details, you really should check out the JSP spec (or get a decent book).
One of the things the container will do is inspect each JAR file in WEB-INF/lib
and look for TLD files in their /META-INF dirs. If a TLD contains a uri
element, then an implicit taglib element is automatically created. Most
packaged taglibs will document their official URIs, but you can always inspect
the TLD files if you need to.
As for whether or not to use the jsp:root element, that's totally up to you. I
just wanted to mention that you don't have to use it. An abbreviated example
from the JSP 2.0 spec:
html xmlns=http://www.w3.org/1999/xhtml;
 xmlns:jsp=http://java.sun.com/JSP/Page;
 xmlns:c=http://java.sun.com/jsp/jstl/core;
 ...
/html
Quoting Tomasz Dreßler [EMAIL PROTECTED]:

 

Thank you for your answer.
It works. Can you help me understand why :)
Someone looks in all jar's for 
'http://jakarta.apache.org/struts/tags-bean' namespace?
When I am use JSP 2.0 what I sould take instead of jsp:root element?
I use tiles so I can't take html as root element.

Greetings

Kris Schneider schrieb:

   

Try:

xmlns:bean=urn:jsptld:/WEB-INF/tags/struts-bean.tld

But since JSP 1.2 you really don't need separate TLD files for packaged
 

taglibs
   

(like Struts and JSTL). This should also work:

xmlns:bean=http://jakarta.apache.org/struts/tags-bean;

Then you can remove the TLD files from your app as well as the taglib
 

elements
from your web.xml. Also note that as of JSP 2.0 you don't have to use
   

jsp:root for your document's root element.

Quoting Tomasz Dreßler [EMAIL PROTECTED]:



 

Hi!
I have problems to use the struts taglibs in jsp with xml syntax.
When I use
 %@ taglib uri=/WEB-INF/tags/struts-bean.tld prefix=bean %
the generated servlet contains the line
'_jspx_dependants.add(/WEB-INF/tags/struts-bean.tld)'
and everything is ok.
But with the following syntax the line
'_jspx_dependants.add(/WEB-INF/tags/struts-bean.tld)' disappeare
 ?xml version=1.0 encoding=UTF-8?
 jsp:root version=1.2
 xmlns:jsp=http://java.sun.com/JSP/Page;
 xmlns:c=http://java.sun.com/jsp/jstl/core;
 xmlns:bean=/WEB-INF/tags/struts-bean.tld
 [...]
 /jsp:root

I use Apache Tomcat/5.0.18 and I have modifyed my web.xml:

 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
 [...]
 /web-app
Any Idea?

Tomek
   

 



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


Re: background process

2004-05-03 Thread Bryan Hunt
If it's unix that you are running on you could run a command using 
nohup , the java orthodox way
is to use a message driven bean/jms if you are running inside an 
applicaion server such as JBoss.

--B

atta-ur rehman wrote:

Hello Robert,

As far as I know Struts doen't provide anything like this. And actually it
should not!
You'd use Thread class to implement such a task that needs to return
immediately while running in the background.
Hope this helps.

ATTA

- Original Message - 
From: Wei, Robert (MAN-Corporate) [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, May 03, 2004 1:32 PM
Subject: background process

 

Hi Folks,

I need implement an action which sends back a forward upon request and
   

then,
 

keep working on a batch process till finish in the background. Anyone
familiar with an easy mechanism in struts 1.1? Thanks.
Robert

-
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 file upload strange error

2004-05-03 Thread Richard Yee
darn! I knew I should have answered this one!
-R
Dude, send me your address and I will fed-ex you a cold beer 
!!
I should have thought of that before. Thanks for your help  I've 
just wasted 24 hours
on this If I was running linux I could have ran a packet capture but 
am on crappy
win 2000 box.

--B

Martin Cooper wrote:

It's not a Struts bug, and it's not even a Struts-related problem. Any time
you need to upload files, you must use a POST request with an 'enctype' of
multipart/form-data. Your form element should look like this:
html:form action=/imageUpload.do type=imageUploadForm
enctype=multipart/form-data
--
Martin Cooper
Bryan Hunt [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

Hi there list,
I have been trying to get the most simple file upload example working with
and have been receiving a strange error message that I just can't seem
to shake.
Here is the basics of my action form
snip=
public class ImageUploadForm extends ActionForm {
   // - 
Instance Variables
   /** imageFile property */
   protected FormFile file;

   // - Methods

   public ActionErrors validate(
   ActionMapping mapping,
   HttpServletRequest request) {
   if(file == null){
   System.out.println(file is empty);
   }
   return null;
   }
   public FormFile getFile() {
   return file;
   }
   public void setFile(FormFile file) {
   this.file = file;
   }
=snip
Here is the basics of the action
snip=
public ActionForward execute(
 blah) {
   System.out.println(at least i managed to get called);
   throw new UnsupportedOperationException(Generated method
'execute(...)' not implemented.);
   }
=snip
Here is the basics from my struts config file
snip=
   form-bean name=imageUploadForm
type=ie.jestate.struts.form.ImageUploadForm
   form-property name=file
type=org.apache.struts.upload.FormFile /
   /form-bean
action
   attribute=imageUploadForm
   input=/form/imageUpload.jsp
   name=imageUploadForm
   path=/imageUpload
   type=ie.jestate.struts.action.ImageUploadAction
   scope=request
   validate=true
   
   forward name=imageuploadsuccess
path=/form/imageUpload.jsp /
   /action
=snip
Here is the jsp file

snip=
%@ page language=java%
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean;
prefix=bean%


%@ taglib uri=http://jakarta.apache.org/struts/tags-html;

prefix=html%


html
   head
   titleJSP for imageUploadForm form/title
   /head
   body
   DEFANGED_html:form action=/imageUpload.do 
type=imageUploadForm 
   File :
 DEFANGED_html:file property=file/
   DEFANGED_html:submit/
   /DEFANGED_html:form
   body
   /html
=snip

And here is the abreviated version of the error message
snip=
*exception*

javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)

org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:821)*

cause mère*

java.lang.IllegalArgumentException: argument type mismatch
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
=snip
I have tried changing the type to text and the type to String in
the form and that works but use this FormFile class and everything
seems to go fubar.
It never even gets to call the action , instead it generates this error
message ,
but the setters and getters are right and the variable is public, this
only happens
with the FormFile. All the struts stuff is in my classpath as is
commons-fileupload-1.0.jar.
Anyone got any idea what the hell I'm doing wrong ... I'm starting to
suspect this
could be a struts bug cause everything looks straightforward enough.
--B





-
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: Mixed Struts Validator Framework and ValidationForm

2004-05-03 Thread Eric Noel
On 5/3/2004 10:29 PM, [EMAIL PROTECTED] wrote:

  Yes.

  Extend the DynaValidator

  override the validate method

  validate(...) {

ActionErrors errors = super.validate(...);

// do your stuff
if (...) {
errors.add(...);
}
return errors;
  }
Pedro Salgado

On 04/05/03 9:40, Eric Noel [EMAIL PROTECTED] wrote:


Is it possible to use both Strut's Validator Framework for some fields
and validate other fields using my own validation via ActionForm
class. If yes, can someone site an example.
-
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]

Thanks, but sorry but ididnt quite get. Though i dont have an 
application yet for this but what i have in mind is like this.

1.) Form1 action=Form1 - the form for the 2 fields
2.) field 1 - will be initially validated by the Struts framework  then 
passed to my LookupDispatchAction for my db validation
2.) field2  - will be validated using my own ValidatorForm then passed 
to my LookupDispatchAction for more db validation

what should i use on my struts-config, im quite confused now what to use 
on my struts-config?
form-bean name=Form1
	type=org.apache.struts.action.DynaActionForm
	form-property name=fiedl1
  		type=java.lang.String
  		initial=testfieldvalue1/
	/form-bean

action
path=/Form1
type=test.Form1Action
name=form1Form
parameter=method
input=/testform.jsp
scope=request
validate=false
forward name=failure path=/testform.jsp/
forward name=success path=/formsuccess.jsp /
/action
or

form-bean
name=inputForm
type=test.InputForm/
action
path=/Form1
type=test.InputAction
name=inputForm
scope=request
validate=true
input=/input.jsp
forward name=success path=/success.jsp   /
/action
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


background process

2004-05-03 Thread Wei, Robert (MAN-Corporate)
Hi Folks,

I need implement an action which sends back a forward upon request and then,
keep working on a batch process till finish in the background. Anyone
familiar with an easy mechanism in struts 1.1? Thanks.

Robert

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



Re: Rendering Unfiltered Text

2004-05-03 Thread Craig McClanahan
Bill Siggelkow wrote:

This is somewhat of an HTML question so please don't slam me ...

I am using bean:write name=foo property=bar filter=false/ to 
display text containing HTML.  However, I would like to find a way to 
prevent mangled markup when the data contains unbalanced tags.  For 
example, if the value of bar is Struts brocks! -- then when I 
render this with filter=false then the text and everything following 
the text is in bold because the b tag does not have an /b tag.  
Does anyone know of a way of preventing this problem?  I tried 
wrapping the text in div tags but still had the same problem.

When you say filter=false, you are taking responsibility for the 
content that actually gets rendered.  Struts doesn't know or care what 
you're emitting ... it doesn't even know whether it is HTML or not.  
Therefore, you're  probably going to have to employ some sort of 
avoidance strategy, such as parsing the snippet being provided by the 
property with some sort of HTML or XML parser, to ensure that everything 
balances.  If you're in control of how the snippet gets created, you 
might consider providing it as a DOM structure instead of a String ... 
rendering well-formed XML from such a structure is pretty easy, 
especially if you employ some of the XML tags in JSTL.

Bill Siggelkow
Craig

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


Re: background process

2004-05-03 Thread atta-ur rehman
Hello Robert,

As far as I know Struts doen't provide anything like this. And actually it
should not!

You'd use Thread class to implement such a task that needs to return
immediately while running in the background.

Hope this helps.

ATTA

- Original Message - 
From: Wei, Robert (MAN-Corporate) [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, May 03, 2004 1:32 PM
Subject: background process


 Hi Folks,

 I need implement an action which sends back a forward upon request and
then,
 keep working on a batch process till finish in the background. Anyone
 familiar with an easy mechanism in struts 1.1? Thanks.

 Robert

 -
 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: Setting html:text readonly attribute

2004-05-03 Thread Riyad Kalla
Whats the diff between readonly and disabled=true, I've been using the 
latter...

On Monday 03 May 2004 01:25 pm, John Moore wrote:
 At 21:07 03/05/2004, John Moore wrote:
 At 16:09 03/05/2004, Paul McCulloch wrote:
 1) Use an html (rather than a jsp) tag:
 
   input type=text name=licenceCount value=c:out
 value='${purchaseForm.licenceCount}'/ size=3 readonly=c:out
 value='${purchaseForm.newPurchase}'/ maxlength=5/
 
 I've found that this, unfortunately doesn't work, at least with my current
 browser of choice (Firefox), which insists on making the text field
 read-only as long as there is a 'readonly' attribute present. I'm
 exploring the other options next.

 LATER...

 Tweaking it so that it outputs only 'readonly' is, of course, the solution.

 John


 =
 John Moore -Norwich, UK-[EMAIL PROTECTED]
 =

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



RE: background process

2004-05-03 Thread David Friedman
I haven't used it yet, but I suppose
you could create a one-time (or repeating)
job from within your Action into the Quartz 
scheduling engine (free):

(http://www.opensymphony.com/quartz/features.html)

Regards,
David

-Original Message-
From: Bryan Hunt [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 8:21 PM
To: Struts Users Mailing List
Subject: Re: background process


If it's unix that you are running on you could run a command using 
nohup , the java orthodox way
is to use a message driven bean/jms if you are running inside an 
applicaion server such as JBoss.

--B


atta-ur rehman wrote:

Hello Robert,

As far as I know Struts doen't provide anything like this. And actually it
should not!

You'd use Thread class to implement such a task that needs to return
immediately while running in the background.

Hope this helps.

ATTA

- Original Message - 
From: Wei, Robert (MAN-Corporate) [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, May 03, 2004 1:32 PM
Subject: background process


  

Hi Folks,

I need implement an action which sends back a forward upon request and


then,
  

keep working on a batch process till finish in the background. Anyone
familiar with an easy mechanism in struts 1.1? Thanks.

Robert

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



initialising user settings following login

2004-05-03 Thread Tim Dudgeon
I'm wanting to use container based authentication (e.g form based) with 
my struts app, but initialize some user settings (which will be read 
from a database) as soon as the user succesfully logs in. Any 
suggestions for how to best achieve this?

Thanks

Tim

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


logic:iterate /

2004-05-03 Thread balu raman
Hello,
Can someone suggest some pointers to some reading materials that gives a 
lot of good examples of iterate-tag, for a very dense struts newbie ?
balu raman
everest systems
East Marredpally
Secunderabad
India

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


struts taglibs in xml syntax?

2004-05-03 Thread Tomasz Dreßler
Hi!
I have problems to use the struts taglibs in jsp with xml syntax.
When I use
   %@ taglib uri=/WEB-INF/tags/struts-bean.tld prefix=bean %
the generated servlet contains the line 
'_jspx_dependants.add(/WEB-INF/tags/struts-bean.tld)'
and everything is ok.

But with the following syntax the line 
'_jspx_dependants.add(/WEB-INF/tags/struts-bean.tld)' disappeare
   ?xml version=1.0 encoding=UTF-8?

   jsp:root version=1.2
   xmlns:jsp=http://java.sun.com/JSP/Page;
   xmlns:c=http://java.sun.com/jsp/jstl/core;
   xmlns:bean=/WEB-INF/tags/struts-bean.tld
   [...]
   /jsp:root

I use Apache Tomcat/5.0.18 and I have modifyed my web.xml:

   web-app xmlns=http://java.sun.com/xml/ns/j2ee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
   [...]
   /web-app
Any Idea?

Greetings Tomek

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


RE: logic:iterate /

2004-05-03 Thread Mark Mandel
Balu - 

Use the JSTL c:forEach / tag - it's a faster and better tag.

Generally use the JSTL tags over the Struts tags where applicable.

Regards,

Mark

-Original Message-
From: balu raman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 4 May 2004 5:56 AM
To: Struts Users Mailing List
Subject: logic:iterate /

Hello,
Can someone suggest some pointers to some reading materials that gives a 
lot of good examples of iterate-tag, for a very dense struts newbie ?
balu raman
everest systems
East Marredpally
Secunderabad
India

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

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



RE: [OT] Page Cannot Be Displayed

2004-05-03 Thread Andrew Hill
Take the advice about using your foot for the mouse seriously. The only
proper use for a hand is holding a can of beer. ;-)

Im not sure I agree on the wire though. Problem is that there is not enough
springiness there. The best idea is to have the wires attached to firm
springs and the springs attached to the computer. This way the computer will
not be shocked out of position so easily and can thus keep itself tuned into
the web page better. The principle is somewhat similar to the need for
antishock technology in portable cd players.

Basically if given a large bump the computer will lose its 'focus' on the
web page and the result is all too commonly that annoying page cannot be
displayed message.

btw: you may be interested to know that this problem has been around awhile.
Early arcade machine hardware - such as pinball machines - suffered similar
problems. Of course all technology is incremental, and while things have
developed a lot since then, modern PCs are still based on the same
underlying technology (electricity) as their earlier pinballing ancestors -
and this trait of being unable to withstand shocks is something that has
been passed along all these years. Of course with the advent of the internet
the problem has been exacerbated. Keeping focus on a webpage among all the
millions out there is an order of magnitude more complex than maintaining an
appropriate trajectory on a mere pinball, and unfortunately as the internet
gets more crowded you can expect to see more of these errors.

...is it Friday yet?

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 4 May 2004 03:14
To: Struts Users Mailing List
Subject: Re: [OT] Page Cannot Be Displayed


Joshi, Naveen wrote:

 All,

 Just wondering if any of you get this Page Cannot Be Displayed error
once in a while, in Internet Explorer. Is there a solution to this issue.

 Thanks
 Naveen

I'm sorry for not replying sooner to this message. Just getting caught
up with struts-users messages.

Joshi, this is very serious. You might want to consider upgrading all of
your RAM to something like 23GB. Also make sure you raise the computer
so that it is not directly touching the floor (I find suspending the
computer from wires beneath my desk helps). Also make sure you are using
your foot to move the mouse when browsing in IE, using your hand could
cause be the cause of such errors as you are describing.

hth,

--
Rick

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



Struts 1.1 ActionForm

2004-05-03 Thread Eric Noel
What is now the recommend technique for ActionForm, do we still have to 
use them? or just make use of the DynaActionForm instead and then create 
the corresponding Action or LookupDispatchAction?

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


RE: [OT] Page Cannot Be Displayed

2004-05-03 Thread Shyamal Shah
Guys,
  Not to offend anybody but would you please stick to the objective of this 
user group? One mail starts the chain of such mails and everyone's mail box 
gets flooded with it. We can have a separate yahoo or msn fun group for that 
:)

Thanks,

From: Andrew Hill [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [OT] Page Cannot Be Displayed
Date: Tue, 4 May 2004 12:39:08 +0800
Take the advice about using your foot for the mouse seriously. The only
proper use for a hand is holding a can of beer. ;-)
Im not sure I agree on the wire though. Problem is that there is not enough
springiness there. The best idea is to have the wires attached to firm
springs and the springs attached to the computer. This way the computer 
will
not be shocked out of position so easily and can thus keep itself tuned 
into
the web page better. The principle is somewhat similar to the need for
antishock technology in portable cd players.

Basically if given a large bump the computer will lose its 'focus' on the
web page and the result is all too commonly that annoying page cannot be
displayed message.
btw: you may be interested to know that this problem has been around 
awhile.
Early arcade machine hardware - such as pinball machines - suffered similar
problems. Of course all technology is incremental, and while things have
developed a lot since then, modern PCs are still based on the same
underlying technology (electricity) as their earlier pinballing ancestors -
and this trait of being unable to withstand shocks is something that has
been passed along all these years. Of course with the advent of the 
internet
the problem has been exacerbated. Keeping focus on a webpage among all the
millions out there is an order of magnitude more complex than maintaining 
an
appropriate trajectory on a mere pinball, and unfortunately as the internet
gets more crowded you can expect to see more of these errors.

...is it Friday yet?

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 4 May 2004 03:14
To: Struts Users Mailing List
Subject: Re: [OT] Page Cannot Be Displayed
Joshi, Naveen wrote:

 All,

 Just wondering if any of you get this Page Cannot Be Displayed error
once in a while, in Internet Explorer. Is there a solution to this issue.

 Thanks
 Naveen
I'm sorry for not replying sooner to this message. Just getting caught
up with struts-users messages.
Joshi, this is very serious. You might want to consider upgrading all of
your RAM to something like 23GB. Also make sure you raise the computer
so that it is not directly touching the floor (I find suspending the
computer from wires beneath my desk helps). Also make sure you are using
your foot to move the mouse when browsing in IE, using your hand could
cause be the cause of such errors as you are describing.
hth,

--
Rick
-
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]
_
Mother’s Day is May 9. Make it special with great ideas from the Mother’s 
Day Guide! http://special.msn.com/network/04mothersday.armx

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


Struts - How to Download a File

2004-05-03 Thread Singh_bibek
Hi All,
We wish to provide a link to the user, clicking on which user can download the 
file(jpg,gif,mpg,wav,tiff) to his/her local disk.

The user should be therefore prompted for the path where the file is to be saved.

Can anyone guide me as to how to achieve the same using Struts.

Thanks,

Regards,
Bibek


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



RE: Struts 1.1 ActionForm

2004-05-03 Thread Matthias Wessendorf
Eric,

perhaps this is useful for you.
http://weblogs.java.net/pub/wlg/964

cheers,
matthias

 -Original Message-
 From: Eric Noel [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, May 04, 2004 7:35 AM
 To: Struts Users Mailing List
 Subject: Struts 1.1 ActionForm
 
 
 What is now the recommend technique for ActionForm, do we 
 still have to 
 use them? or just make use of the DynaActionForm instead and 
 then create 
 the corresponding Action or LookupDispatchAction?
 
 -
 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]