[OT] XForms

2003-07-31 Thread Andrew Hill
Currently the app Im working on is using an xhtml front end (with struts of
course) but Ive been asked to look at XForms with an eye to migrating to it
in the future (and probably throwing in a migration to JSF while Im there).

Currently the XForms spec is only a candidate release with afaik very little
browser support, though I gather there are a number of plugins that
implement an XForms processor.

I'm in the process of reading through whats on the w3c site about it but am
still pretty clueless as to what it really implies in terms of what we would
do different to now. While I understand what I am reading I dont truly grok
it yet.

Anyone else been looking into this and can share some pointers on what I
need to think about?

Is XForms really going to be the next stage in the evolution of forms on the
browser or is it just some hyped up hot air thats really a wild goose chase?


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



Re: OT - Struts w/EJB

2003-07-31 Thread message message


How come there is so much free ware available especially from sourceforge ?


From: "James Mitchell" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Struts w/EJB
Date: Fri, 1 Aug 2003 00:38:17 -0400
Download modelj from sourceforge and try it.  Supply the path to your
j2ee.jar and build the sample app in 2 minutes.  Modelj will create a
struts/ejb application for you from one single config file.  Using JBoss,
all you have to do is setup a default data source and deploy your
sample.ear.
http://sourceforge.net/projects/modelj

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx
- Original Message -
From: "Martin Naskovski" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 7:01 PM
Subject: Struts w/EJB
> Hello all. Is there an app that demonstrates the use of Struts & EJB as 
a
> persistence layer? I checked out Struts-Resume from Matt Raible, but it
> uses Hibernate... Is there anything available w/EJB's? Thanks.
>
> Martin
> --
>
>
> -
> 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]
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail

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


RE: Direct ValueObject creation rather than ActionForm.

2003-07-31 Thread Viral_Thakkar

Please let me know the consequences of the approach I mentioned.

Thanks.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 01, 2003 10:47 AM
To: Struts Users Mailing List
Subject: RE: Direct ValueObject creation rather than ActionForm.

This is quite a common idea that many people new to struts have. There
are
quite a few reasons why your ActionForm and your value object are
different
objects. (Indeed the very reason ActionForm is implemented as a class
rather
than an interface is specifically to discourage people from using their
ActionForm as a value object.) If you search the list archives you will
see
numerous threads discussing the reasons why this is in fact a very bad
idea
indeed.
  -Original Message-
  From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
  Sent: Friday, 1 August 2003 13:05
  To: [EMAIL PROTECTED]
  Subject: Direct ValueObject creation rather than ActionForm.


  I have a idea here. Why we require ActionForm class if we can have
ValueObject and that we can pass to the service layer.



  Can we create the instance of ValueObject class only rather than
ActionForm instance from the request data?



  Thanks






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



RE: Struts w/EJB

2003-07-31 Thread Shashank Dixit
try looking xpetstore.
xpetsotre.sourceforge.net.
see if it helps
Shashank

-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:24 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts w/EJB


hi,
Struts doesnt enforce or  set any rules or guidelines for using ejbs. With
in your action classes you should use Business Delegate to hide the client's
dependency on any persistance layer ejb or DAO.

Cheers
Ashwani Kalra
http://www.geocities.com/ashwani_kalra/

> -Original Message-
> From: Martin Naskovski [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 01, 2003 4:31 AM
> To: Struts Users Mailing List
> Subject: Struts w/EJB
>
>
> Hello all. Is there an app that demonstrates the use of
> Struts & EJB as a
> persistence layer? I checked out Struts-Resume from Matt
> Raible, but it
> uses Hibernate... Is there anything available w/EJB's? Thanks.
>
> Martin
> --
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.

-
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: Direct ValueObject creation rather than ActionForm.

2003-07-31 Thread Andrew Hill
Another big issue is that the ActionForm primarily deals in strings (since
its populated from the request parameters) while the value objects will be
using datatypes appropriate to the property in question.

While the form population can convert as needed this is only fine for the
happy scenario where the user enters valid data. For the unhappy scenario it
becomes very messy very quickly. Its best to populate a string property in
the actionform and then validate it. If invalid one redisplays the screen
with whatever garbage the user typed in (and an error message) and allows
them to correct it. If one tried to convert directly and store straight into
a value object one would find all sorts of problems like a value of "blah"
for an int property being stored as a 0...

Another issue is that over time as the application is developed the
properties for  by the ui, and the properties for the business layer start
to diverge significantly, so you end up will all sorts of messy compromises
in your value objects... Keeping the data entry buffer (actionform) seperate
from the value object helps prevent such problems.

-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
Sent: Friday, 1 August 2003 13:27
To: 'Struts Users Mailing List'
Subject: RE: Direct ValueObject creation rather than ActionForm.


One drawback. ActionForm classes import classes from http packages. which
binds it to the particular layer.

Cheers
Ashwani Kalra
http://www.geocities.com/ashwani_kalra/


> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 01, 2003 10:47 AM
> To: Struts Users Mailing List
> Subject: RE: Direct ValueObject creation rather than ActionForm.
>
>
> This is quite a common idea that many people new to struts
> have. There are
> quite a few reasons why your ActionForm and your value object
> are different
> objects. (Indeed the very reason ActionForm is implemented as
> a class rather
> than an interface is specifically to discourage people from
> using their
> ActionForm as a value object.) If you search the list
> archives you will see
> numerous threads discussing the reasons why this is in fact a
> very bad idea
> indeed.
>   -Original Message-
>   From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
>   Sent: Friday, 1 August 2003 13:05
>   To: [EMAIL PROTECTED]
>   Subject: Direct ValueObject creation rather than ActionForm.
>
>
>   I have a idea here. Why we require ActionForm class if we can have
> ValueObject and that we can pass to the service layer.
>
>
>
>   Can we create the instance of ValueObject class only rather than
> ActionForm instance from the request data?
>
>
>
>   Thanks
>
>
>
>
>
>


This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.

-
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: Direct ValueObject creation rather than ActionForm.

2003-07-31 Thread Kalra, Ashwani
One drawback. ActionForm classes import classes from http packages. which
binds it to the particular layer. 

Cheers
Ashwani Kalra
http://www.geocities.com/ashwani_kalra/


> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 01, 2003 10:47 AM
> To: Struts Users Mailing List
> Subject: RE: Direct ValueObject creation rather than ActionForm.
> 
> 
> This is quite a common idea that many people new to struts 
> have. There are
> quite a few reasons why your ActionForm and your value object 
> are different
> objects. (Indeed the very reason ActionForm is implemented as 
> a class rather
> than an interface is specifically to discourage people from 
> using their
> ActionForm as a value object.) If you search the list 
> archives you will see
> numerous threads discussing the reasons why this is in fact a 
> very bad idea
> indeed.
>   -Original Message-
>   From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
>   Sent: Friday, 1 August 2003 13:05
>   To: [EMAIL PROTECTED]
>   Subject: Direct ValueObject creation rather than ActionForm.
> 
> 
>   I have a idea here. Why we require ActionForm class if we can have
> ValueObject and that we can pass to the service layer.
> 
> 
> 
>   Can we create the instance of ValueObject class only rather than
> ActionForm instance from the request data?
> 
> 
> 
>   Thanks
> 
> 
> 
> 
> 
> 


This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.

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



Re: Direct ValueObject creation rather than ActionForm.

2003-07-31 Thread Nagendra Kumar O V S








  hello,
  ActionForm is tightly coupled with the form elements on the jsp 
  page.ActionForms helps us to get data to & from a jsp page.
  if u don't have any form elements(html elements) there is no 
  mandatory to use ActionForm and u can use a ValueObject to populate the 
  request data(if any) and then pass on to service layer
   
  -- nagi
   
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Friday, August 
  01, 2003 10:38:31 AM
  To: [EMAIL PROTECTED]
  Subject: Direct 
  ValueObject creation rather than ActionForm.
   
  
  I have a idea here. Why we require ActionForm class if we can have ValueObject and that we can pass to the service 
  layer.
   
  Can we create the 
  instance of ValueObject class only rather than 
  ActionForm instance from the request 
  data?
   
  Thanks
   
   
   





	
	
	
	
	
	
	




  IncrediMail - 
Email has finally evolved - Click 
Here



RE: Direct ValueObject creation rather than ActionForm.

2003-07-31 Thread Andrew Hill
This is quite a common idea that many people new to struts have. There are
quite a few reasons why your ActionForm and your value object are different
objects. (Indeed the very reason ActionForm is implemented as a class rather
than an interface is specifically to discourage people from using their
ActionForm as a value object.) If you search the list archives you will see
numerous threads discussing the reasons why this is in fact a very bad idea
indeed.
  -Original Message-
  From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
  Sent: Friday, 1 August 2003 13:05
  To: [EMAIL PROTECTED]
  Subject: Direct ValueObject creation rather than ActionForm.


  I have a idea here. Why we require ActionForm class if we can have
ValueObject and that we can pass to the service layer.



  Can we create the instance of ValueObject class only rather than
ActionForm instance from the request data?



  Thanks







Direct ValueObject creation rather than ActionForm.

2003-07-31 Thread Viral_Thakkar








I have a idea here.
Why we require ActionForm class if we can have ValueObject and that we can pass to the service layer.

 

Can we create the instance of ValueObject class only rather than ActionForm
instance from the request data?

 

Thanks

 

 






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

Re: Please Help With Simple Tiles Problem

2003-07-31 Thread Terry Brick
Ok, I've finally gotten this to work.  However, I
don't think it's the "right" solution and it's
certainly not one I'm happy with.  But maybe by
showing how I'm getting it to work, that will better
communicate to people what I'm trying SO HARD to do.

This works:




   



   


So this gives me...

  

  


The problem is that "form1.jsp" will not always be
"form1.jsp".  I want to be able to swap that for a
"form2.jsp", "form3.jsp", etc.  Using this method, I
would have to add TWO definitions into the
tile-defs.xml for each new form I wanted!  (form2,
form2a, form3, form3a, etc)
There must be a better way where I only have to add a
single definition for each new form.  Any ideas? 
Advice is much appreciated. Thanks.




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

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



RE: Struts w/EJB

2003-07-31 Thread Kalra, Ashwani
hi,
Struts doesnt enforce or  set any rules or guidelines for using ejbs. With
in your action classes you should use Business Delegate to hide the client's
dependency on any persistance layer ejb or DAO.

Cheers
Ashwani Kalra
http://www.geocities.com/ashwani_kalra/

> -Original Message-
> From: Martin Naskovski [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 01, 2003 4:31 AM
> To: Struts Users Mailing List
> Subject: Struts w/EJB
> 
> 
> Hello all. Is there an app that demonstrates the use of 
> Struts & EJB as a
> persistence layer? I checked out Struts-Resume from Matt 
> Raible, but it
> uses Hibernate... Is there anything available w/EJB's? Thanks.
> 
> Martin
> --
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.

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



Re: Struts w/EJB

2003-07-31 Thread James Mitchell
Download modelj from sourceforge and try it.  Supply the path to your
j2ee.jar and build the sample app in 2 minutes.  Modelj will create a
struts/ejb application for you from one single config file.  Using JBoss,
all you have to do is setup a default data source and deploy your
sample.ear.

http://sourceforge.net/projects/modelj


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: "Martin Naskovski" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 7:01 PM
Subject: Struts w/EJB


> Hello all. Is there an app that demonstrates the use of Struts & EJB as a
> persistence layer? I checked out Struts-Resume from Matt Raible, but it
> uses Hibernate... Is there anything available w/EJB's? Thanks.
>
> Martin
> --
>
>
> -
> 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: validwhen Alternative

2003-07-31 Thread Imran Bohoran
We had a requirement of this sought as well. Since we needed it fast, we
went ahead with the custom validator. And it works fine. so keith, if you
want to get crackin on it I guess the custom validator is the way to go. if
anyone else has any other ideas i'll be excited to hear them. 

- I

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:02 PM
To: Struts (E-mail)
Subject: validwhen Alternative


Hey everyone,
>From what I hear, it seems like the validwhen validation is not supported in
the final release of Struts 1.1.  Is there an alternative to this?

I have a form where 2 of the fields are start range and end range.  I want a
validation that does the following:
1) If start range is filled in, and end range isn't, validation is
successful.
2) If start range is less than or equal to the end range (and end range is
greater than or equal to start range), validation is successful.
3) Start range must be filled in.

Do I need a custom validator for this, or can I get away with the existing
validations?  Any help with this would be greatly appreciated, thanks!


- Keith


-
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: first release date struts 1.1

2003-07-31 Thread Andrew Hill
Yes. The book is based on a beta version.

-Original Message-
From: object worlds [mailto:[EMAIL PROTECTED]
Sent: Friday, 1 August 2003 10:00
To: [EMAIL PROTECTED]
Subject: Re: first release date struts 1.1



Are you  sure that was the very first occasion that Struts v 1.1 was 
released  for production.
I have a book published in April 2003.
Are you saying the book is on the beta version of Struts 1.1.


>From: Kwok Peng Tuck <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: first release date struts 1.1
>Date: Fri, 01 Aug 2003 10:00:59 +0800
>
>Slightly over a month ago, to be precise 29th of June 2003.
>
>object worlds wrote:
>
>>
>>
>>What is the first relase date for struts 1.1 ?
>>
>>_
>>Stay in touch with absent friends - get MSN Messenger 
>>http://www.msn.co.uk/messenger
>>
>>
>>-
>>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]
>

_
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile


-
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] Best super-class for context handling.

2003-07-31 Thread Andrew Hill
Unfortunately a quick glance at the javadocs for
ServletContext.getResourceAsStream() will show you that there is a
difference:


This method is different from java.lang.Class.getResourceAsStream, which
uses a class loader. This method allows servlet containers to make a
resource available to a servlet from any location, without using a class
loader.


Im not sure what the implications of that are, but I often see references
that state that one should use the servlet context one rather than the class
one. I suspect in many situations the difference doesn't matter, but in
others it will, and furthermore as usual, different containers often do
things a little differently. Certainly if you want it to work across all
containers you need to use the ServletContext method. :-(

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, 31 July 2003 21:25
To: Struts Users Mailing List
Subject: RE: [OT] Best super-class for context handling.




getResourceAsStream() is an instance method of java.lang.Class, so as long
as you stick with that, you're not tied to any particular deployment
environment.


Ian

Ian D. Stewart
Open Systems Engineer II
Enterprise Midrange - Bank One Infrastructure & Operations
[EMAIL PROTECTED]
(614) 213-6100




"Andrew Hill" <[EMAIL PROTECTED]> on 07/30/2003 10:49:19 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:

Subject:  RE: [OT] Best super-class for context handling.




InputStream is =
 servlet.getServletContext().getResourceAsStream("/WEB-INF/dir/file.x");


Thats fine if your in an action, but down in your business classes you dont
want to be dependant on the servlet api classes.

Obviously the trick is to have some kind of interface (which in my apps I
usually name "IStreamSource") that will provide a stream when passed some
kind of url (or even more abstract key mapped to a url internally) and will
allow the other classes to be independent of whatever environment they are
in (as one would have different implementations for different environments)
when it comes to reading files. (The servlet version would simply wrap a
call to getResourceAsStream on its reference to the servlet context)

One thing Im not sure about is whether it is ok to hang onto a reference to
the servlet context in this streamsource object (so that it can be shared
between requests and not have to be passed in method parameters all over
the
place). I dont think that would work too well in a distributed environment
right? So we need to provide a new streamsource instance for each request
and pass it to any class that needs it or that might feel like calling some
other class that might need it (ad infinitum)... (?)

It would be nicer for the classes that need an IStreamSource instance to be
able to get them from somewhere themselves, but how to achieve this without
exposing the servlet api stuff to them?

What is the best practice here?

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Thursday, 31 July 2003 00:34
To: Struts Users Mailing List
Subject: Re: [OT] Best super-class for context handling.




On Wed, 30 Jul 2003, Simon Kelly wrote:
> Date: Wed, 30 Jul 2003 15:47:55 +0200
> From: Simon Kelly <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: [OT] Best super-class for context handling.
>
> Ah, right.
>
> Not sure whether that's what I'm after.
>
> Here's a better explination.
>
> I am using files that are contained within the /WEB-INF/ dir within the
web
> application to hold information required by the business logic. These
files
> are not part of the controller or view but are required to generate the
> content data for the action classes. So I need something that will get
the
> paths regardless of the enviroment they are in. I have chosen to pass all
> file names within the business logic in the form /WEB-INF/dir/file.x and
> have been using context.getRealPath() [or the correct method if that's
> wrong] to get the path name (which I had thought would be ok as it will
> always return the correct path regardless of where the webapp is
deployed).
>
> Is this wrong, and is there a better way to do it?
>

Assuming you're in an Action, do this:

InputStream is =
 servlet.getServletContext().getResourceAsStream("/WEB-INF/dir/file.x");

It will be portable everywhere, even if you end up running on containers
that don't expand your webapp into an unpacked directory -- in those
environments, getRealPath() will return null.

> Cheers
>
> Simon
>

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: [EM

Re: first release date struts 1.1

2003-07-31 Thread object worlds
Are you  sure that was the very first occasion that Struts v 1.1 was 
released  for production.
I have a book published in April 2003.
Are you saying the book is on the beta version of Struts 1.1.


From: Kwok Peng Tuck <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: first release date struts 1.1
Date: Fri, 01 Aug 2003 10:00:59 +0800
Slightly over a month ago, to be precise 29th of June 2003.

object worlds wrote:



What is the first relase date for struts 1.1 ?

_
Stay in touch with absent friends - get MSN Messenger 
http://www.msn.co.uk/messenger

-
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]
_
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: first release date struts 1.1

2003-07-31 Thread Kwok Peng Tuck
Slightly over a month ago, to be precise 29th of June 2003.

object worlds wrote:



What is the first relase date for struts 1.1 ?

_
Stay in touch with absent friends - get MSN Messenger 
http://www.msn.co.uk/messenger

-
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: first release date struts 1.1

2003-07-31 Thread object worlds


What is the first relase date for struts 1.1 ?

_
Stay in touch with absent friends - get MSN Messenger 
http://www.msn.co.uk/messenger

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


Re: Is it possible to capture selected values on jsp page?

2003-07-31 Thread Rick Col
Thanks, very helpful...

Still one thing unclear: do I need to put my action
form
in classpath to be imported in my jsp page? Is there a
better way to do it? This sounds messy, but I will try
it out if it works.

regards,


--- Michael Ruppin <[EMAIL PROTECTED]> wrote:
> Well, ultimately jsp IS Java  You can always do
> this:
> 
> <%
> String
>
foo="http://myweb.com/mypage?companyid="+id+"&ssn="+ssn;
> %>
> 
> 
> However, use of scriptlet is discouraged here.  If
> you
> switch to JSTL tags, and put foo into an ActionForm
> property populated in your Action, you could:
> 
>  />
> 
> m
> 
> --- Rick Col <[EMAIL PROTECTED]> wrote:
> > Thanks, 
> > 
> > I will try that out. What I try to do is to
> capture
> > form variables as strings, and concatenate them
> with
> > 
> > a html address as request parameters. I am not
> sure
> > how to 
> > concatenate them with the link in JSP page, and
> add
> > the 
> > whole address to a taglib parameter like the
> > following:
> > 
> >  >
>
uri="http://myweb.com/mypage?companyid="+id+"&ssn="+ssn>
> > 
> > In Java, we can concatenate strings like that, in
> > Jsp,
> > can we do that? Or there is another way?
> > 
> > regards,
> > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: Struts and Jetspeed

2003-07-31 Thread Todd G. Nist
Have you looked at http://www.liferay.com/products/index.jsp which is built
open source technologies like Hibernate, Lucene, and Struts.


-Original Message-
From: BaTien Duong [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 12:13 PM
To: Struts Users Mailing List
Subject: Re: Struts and Jetspeed


Joe Germuska wrote:

> At 22:22 -0600 7/30/03, jakarta-lists wrote:
>
>>Has anyone successfully use Struts with Jetspeed?  I'm looking
>> into the possiblilty of having jetspeed do the authentication,
>> templating and layout.. while struts will handle the control of the
>> app. It sounds like a good idea to me, but I haven't worked with
>> struts enough yet to know for sure and I would like to know about
>> pitfalls if any.
>
Struts has a much better control, while JetSpeed has established
portlets and facilities to connect devices to portlets. The problem with
Jetspeed is that it is binding to Turbine, while Struts allows complete
separation of controller framework and presentation layer. Struts-Tiles
enable 1 single web-page view rather than portal view and portlet view.

With the release of JSR-168 specification  of portal/portlet container
based on standard Servlet container, it makes a lot of sense to refactor
Struts framework to work with standard Servlet / Portal /Portlet
container. Then an effort to refactor Jetspeed portlets into this
framework. I wonder if any developer has playing with this idea? I heard
Craig and Cedric have something under their desks, and not ready to
share yet? Am I  right?

>>
>
> It doesn't sound like there's much left for Struts to do once you use
> Jetspeed (or Turbine, its underlying framework) for authentication,
> templating, and layout.
>
> Once you're talking about providing content to individual portlets in
> your Jetspeed installation, you can do it with much less work than
> adding Struts in to the mix.
>
> Joe
>
BaTien


-
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: white space on jsp compile

2003-07-31 Thread matsuhashi

(BHow about pre-processing JSL files by the Ant optional "ReplaceRegexp"
(Btask?
(B
(BQuoting from the manual,
(B
(B
(B
(B
(B
(Bthis replaces all whitespaces (blanks, tabs, etc) by one blank remaining
(Bthe line separator.
(B
(BIf you hack the regular expression, you would be able to delete unnecessary
(B(in HTML speak) line seperators as well while dealing with  tags as
(Bexception.
(B
(B
(B
(B
(B
(B
(B
(B   
(B 
(B"Mike Whittaker"   
(B 
(B<[EMAIL PROTECTED][EMAIL PROTECTED](B:   "Struts List" 
(B<[EMAIL PROTECTED]>   
(Bworld.com> cc: 
(B 
(B   $B7oL>(B:   white space on jsp 
(Bcompile   
(B2003/08/01 04:21   
(B 
(B"Struts Users  
(B 
(BMailing List" $B$XJV(B   
(B   
(B$B?.$7$F$/[EMAIL PROTECTED](B 
(B 
(B   
(B 
(B   
(B 
(B
(B
(B
(B
(BIs there any way to control it? It seems a little excessive
(B
(BI'd like to retain it in the JSP, and remove as much as possible in the
(Bhtml
(B
(B--
(BMike W
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

RE: JSTL in html-el:option

2003-07-31 Thread Karr, David
This may have nothing to do with your problem, but the "value" attribute
of "html-el:option" should be "${status.count}" and not "".
That's the whole point of the library :) .

What web container are you using?

> -Original Message-
> From: Barry Volpe [mailto:[EMAIL PROTECTED]
> 
> I get the same problem:
> 
> Attribute ${status.count} has no value
> 
> Barry
> 
> - Original Message -
> From: "Steve Raeburn" <[EMAIL PROTECTED]>
> 
> > You need to use varStatus to get the current index:
> >
> > 
> > 
> > ">
> > 
> > 
> > 
> > 
> >
> > Steve
> >
> > > -Original Message-
> > > From: struts [mailto:[EMAIL PROTECTED]
> > >
> > > The following yields Attribute ${i} has no value (first
occurrence)
> error.
> > >
> > > 
> > >  
> > >  "> > > value="${i}"/>
> > >  
> > > 
> > >
> > > Any suggestions on alternative syntax?

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



RE: How to make dynamic SELECT elements?

2003-07-31 Thread Joe Krause
Hey Hey - thanks a lot. This helps. 

Your shameless plug is fine as long as you wrap it in a 
element like you have.

Cheers

Joe

-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 3:55 PM
To: Struts Users Mailing List
Subject: RE: How to make dynamic SELECT elements?


  You can download an application containing Struts examples, 
  including populating select options, from
   http://www.ninsky.com/struts 


Steve

> -Original Message-
> From: Joe Krause [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 3:32 PM
> To: '[EMAIL PROTECTED]'
> Subject: How to make dynamic SELECT elements?
> 
> 
> Can anyone please give me an example of a JSP page and the appropriate
> ActionForm object that would prepopulate the form on the JSP page
> specifically creating an HTML drop down Select menu using the Struts'
>  tag? Or just send me a link to a tutorial that has it - I
> can't seem to find it in the Documentation anywhere.
> 
>  
> 
> Thanks!
> 
>  
> 
> Joe Krause
> 
> 


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


Re: Converting Data Types On the Business Bean Side

2003-07-31 Thread Craig R. McClanahan


On Thu, 31 Jul 2003, Caroline Jen wrote:

> Date: Thu, 31 Jul 2003 14:08:52 -0700 (PDT)
> From: Caroline Jen <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Converting Data Types On the Business Bean Side
>
> Does the Struts 1.1 BeanUtils class supports
> transferring data between String and native types on
> the business bean side?
>

Yes.  You'll need to ensure that commons-beanutils.jar is available in the
classpath for your business logic classes, and you can then use the
BeanUtils.copyProperties() method to perform copying with conversion, or
PropertyUtils.copyProperties() to perform copying without conversion.

Craig

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



Re: Please Help With Simple Tiles Problem

2003-07-31 Thread Terry Brick
Thanks.  I've seen that page and many other.  Believe, I feel stupid from seeing so 
many examples and not being able to figure it out.  But I'm getting a mental block 
somewhere that just isn't allowing me to grasp something.

Barry Volpe <[EMAIL PROTECTED]> wrote:Tiles can function stand alone from struts but 
is incorporated in struts
1.1.
Here is the website of the originator of tiles. Part way down the page are
some example tiles war files that I found helpful.

http://www.lifl.fr/~dumoulin/tiles/

Barry


- Original Message -
From: "Terry Brick" 
To: 
Sent: Thursday, July 31, 2003 3:42 PM
Subject: Please Help With Simple Tiles Problem


>
> I'm using struts 1.1 and having trouble with a simple Tile function. I've
searched the archives and doc, but for some reason I just can't seem to get
a grip on a lot of this tile stuff. All I want to do is embed a tile within
a tile within a page. Here's what I have now:
>
>
>
> tiles-defx.xml (snippet)
> =
> 
> 


> 


> 
>
>
> 
> 


> 
>
>
> 
> 


> 


> 
>
>
>
> In layout.jsp (snippet)
> ===
> 
>
>
> In wrapform.jsp (snippet)
> 
> 
>
>
>
> I get an error saying that my "form-body" attribute does not exist. And
when I swap with , I don't get an error, but I
also don't get my form-body content. I can see that what I have defined
doesn't make much sense, but I can't figure it out.
> What I want is, when I call "form.user" for it to give me the folloing
content structure
> (if these tags represented the content of JSP's)
>
> 
> 
> 
> 
> 
>
> Could someone please show me how to do this?
> Thank you
>
>
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software



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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: DynaValidatorForm question

2003-07-31 Thread Yansheng Lin
Set validate attribute in  to false will solve your problem.

-Original Message-
From: Jones, Marty B. [mailto:[EMAIL PROTECTED] 
Sent: July 31, 2003 3:37 PM
To: [EMAIL PROTECTED]
Subject: DynaValidatorForm question


I have a class that extends Action (LoginAction) and references a
DynaValidatorForm for form validation. I have noticed that if I directly
reference a url say http://myserver/control/login that it instantiates the
LoginAction as it should.  My question is, what is the best way to not allow
the Action class to be fired if no request arguments are on the request so
that the login.jsp file will paint to allow the user to enter usename and
password information in.  I am pretty sure that I could use a normal
ActionForm and in the validation method check to see if the username and
password values are both null.  If they are then return a mapping to go back
to the login screen.  Is there a way to do this with the DynaValidatorForm?

Thanks in advance,

Marty Jones


Marty B. Jones
Senior Software Engineer
DailyAccess.Com


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


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



Struts w/EJB

2003-07-31 Thread Martin Naskovski
Hello all. Is there an app that demonstrates the use of Struts & EJB as a
persistence layer? I checked out Struts-Resume from Matt Raible, but it
uses Hibernate... Is there anything available w/EJB's? Thanks.

Martin
--


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



Re: Please Help With Simple Tiles Problem

2003-07-31 Thread Barry Volpe
Tiles can function stand alone from struts but is incorporated in struts
1.1.
Here is the website of the originator of tiles.  Part way down the page are
some example tiles war files that I found helpful.

http://www.lifl.fr/~dumoulin/tiles/

Barry


- Original Message -
From: "Terry Brick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 3:42 PM
Subject: Please Help With Simple Tiles Problem


>
> I'm using struts 1.1 and having trouble with a simple Tile function.  I've
searched the archives and doc, but for some reason I just can't seem to get
a grip on a lot of this tile stuff.  All I want to do is embed a tile within
a tile within a page.  Here's what I have now:
>
>
>
> tiles-defx.xml (snippet)
> =
> 
>  
>  
> 
>
>
> 
>  
> 
>
>
> 
>  
>  
> 
>
>
>
> In layout.jsp  (snippet)
> ===
> 
>
>
> In wrapform.jsp  (snippet)
> 
> 
>
>
>
> I get an error saying that my "form-body" attribute does not exist.  And
when I swap  with , I don't get an error, but I
also don't get my form-body content.  I can see that what I have defined
doesn't make much sense, but I can't figure it out.
> What I want is, when I call "form.user" for it to give me the folloing
content structure
> (if these tags represented the content of JSP's)
>
> 
>
>   
>
> 
>
> Could someone please show me how to do this?
> Thank you
>
>
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software



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



RE: How to make dynamic SELECT elements?

2003-07-31 Thread Steve Raeburn

  You can download an application containing Struts examples, 
  including populating select options, from
   http://www.ninsky.com/struts 


Steve

> -Original Message-
> From: Joe Krause [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 3:32 PM
> To: '[EMAIL PROTECTED]'
> Subject: How to make dynamic SELECT elements?
> 
> 
> Can anyone please give me an example of a JSP page and the appropriate
> ActionForm object that would prepopulate the form on the JSP page
> specifically creating an HTML drop down Select menu using the Struts'
>  tag? Or just send me a link to a tutorial that has it - I
> can't seem to find it in the Documentation anywhere.
> 
>  
> 
> Thanks!
> 
>  
> 
> Joe Krause
> 
> 


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



Please Help With Simple Tiles Problem

2003-07-31 Thread Terry Brick

I'm using struts 1.1 and having trouble with a simple Tile function.  I've searched 
the archives and doc, but for some reason I just can't seem to get a grip on a lot of 
this tile stuff.  All I want to do is embed a tile within a tile within a page.  
Here's what I have now:

 

tiles-defx.xml (snippet)
=

 
 




 




 
 


 

In layout.jsp  (snippet)
===



In wrapform.jsp  (snippet)



 

I get an error saying that my "form-body" attribute does not exist.  And when I swap 
 with , I don't get an error, but I also don't get my 
form-body content.  I can see that what I have defined doesn't make much sense, but I 
can't figure it out.
What I want is, when I call "form.user" for it to give me the folloing content 
structure
(if these tags represented the content of JSP's)


   
  
   


Could someone please show me how to do this?
Thank you


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

How to make dynamic SELECT elements?

2003-07-31 Thread Joe Krause
Can anyone please give me an example of a JSP page and the appropriate
ActionForm object that would prepopulate the form on the JSP page
specifically creating an HTML drop down Select menu using the Struts'
 tag? Or just send me a link to a tutorial that has it - I
can't seem to find it in the Documentation anywhere.

 

Thanks!

 

Joe Krause



RE: Repost: Clicking "Submit" returns a blank page

2003-07-31 Thread Bailey, Shane C.


BTW, to debug have you tried to do mapping.findForward("success") and
mapping.findForward("fail") to see what happends?


-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 5:35 PM
To: 'Struts Users Mailing List'
Subject: RE: Repost: Clicking "Submit" returns a blank page


A couple of observations:


1. Not that it is the solution but could you do  ?  Only because Logon.do is a forward (action
anyway).

2. Again, probably not necessary but add method="post" to the form tag.

3. I doubt it is a problem but I am so used to seeing the action attributes
on the same line you could move all the attributes like name="logonForm"
onto their own line.  You just never know when things should work and
aren't.

You already verified that LogonSuccess.jsp exists and isn't blank.  

I agree though with the post about verifying that the constant is the right
value. I have seen the blank page problem when I changed the name of my
forward in the struts config and didn't rename it in my action.

There is no null pointer exceptions or other exceptions being thrown in your
container output window?

I have exhausted everything I could think of for now.


-Original Message-
From: todd thorner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 4:40 PM
To: [EMAIL PROTECTED]
Subject: Repost: Clicking "Submit" returns a blank page

I have reached this far in my debut logon page
development...
 
The first JSP page comes up fine, showing me a form
 with a rendered
 tag for each required field (username
and password), plus a "Reset" and a "Submit" button.
Code sample below comes from my struts-config.xml
file:
 

 

 

 



 
 


 

 
** struts-config.xml code above
**

I can enter data into the  fields and
they will erase if I click "Reset"
I can click "Submit" with nothing filled in (passing
nulls with the request), and the proper
 are displayed.

However...

If I enter any values for the "username" and
"password" fields, then click "Submit," a blank page
is always returned (neither "LogonSuccess.jsp" nor "LogonFail.jsp" are
blank).

What's up with that?  The browser says it's trying
to display results from "LogonSubmit.do" (which is
what I expect).  I have a file called
"users.properties" in the directory
"WEB-INF/classes" and in my LogonAction.java code:

public final class LogonAction extends Action {
 
   public ActionForward execute( ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response )
  throws Exception {
  
  String username = ( ( LogonForm ) form ).getUsername();
  String password = ( ( LogonForm ) form ).getPassword();
  boolean validated = false;

  try {
  
  validated = isUserLoggedOn( username, password );
  }
  catch ( SimpleUserDirectoryException sudexc ) {
  ActionErrors errors = new ActionErrors();
  errors.add( ActionErrors.GLOBAL_ERROR,
 new ActionError( "error.logon.connect" ) );
  saveErrors( request, errors );
  return ( new ActionForward( mapping.getInput() ) );
  }
  
  if ( !validated ) {
  
  ActionErrors errors = new ActionErrors();
  errors.add( ActionErrors.GLOBAL_ERROR,
 new ActionError( "error.logon.invalid" ) );
  saveErrors( request, errors );
  return ( new ActionForward( mapping.getInput() ) );
  }
  
  HttpSession session = request.getSession();
  session.setAttribute( Constants.USER_KEY, form );

  return ( mapping.findForward( Constants.SUCCESS ) );
  }
  
  public boolean isUserLoggedOn( String username,
  String password ) throws SimpleUserDirectoryException {
  
  return ( SimpleUserDirectory.getInstance().passwordIsValid(
username, password ) );
  }
  }
  
** mystrutsactions.LogonAction.java code above
**
  
Note: The LogonAction.java file above makes use of the following
SimpleUserDirectory.java code:
  
 private static final String SimpleUserDirectoryFilepath =
"users.properties";
InputStream ips =
this.getClass().getClassLoader().getResourceAsStream(
SimpleUserDirectoryFilepath );

** mystrutsforms.LogonForm.java code above
**
 
Also, my web.xml file has:
 
 
  application
  application
 
 
** web.xml code above
**
 
Any suggestions or guesses are appreciated.




Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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

RE: Repost: Clicking "Submit" returns a blank page

2003-07-31 Thread Bailey, Shane C.

A couple of observations:


1. Not that it is the solution but could you do  ?  Only because Logon.do is a forward (action
anyway).

2. Again, probably not necessary but add method="post" to the form tag.

3. I doubt it is a problem but I am so used to seeing the action attributes
on the same line you could move all the attributes like name="logonForm"
onto their own line.  You just never know when things should work and
aren't.

You already verified that LogonSuccess.jsp exists and isn't blank.  

I agree though with the post about verifying that the constant is the right
value. I have seen the blank page problem when I changed the name of my
forward in the struts config and didn't rename it in my action.

There is no null pointer exceptions or other exceptions being thrown in your
container output window?

I have exhausted everything I could think of for now.


-Original Message-
From: todd thorner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 4:40 PM
To: [EMAIL PROTECTED]
Subject: Repost: Clicking "Submit" returns a blank page

I have reached this far in my debut logon page
development...
 
The first JSP page comes up fine, showing me a form
 with a rendered
 tag for each required field (username
and password), plus a "Reset" and a "Submit" button.
Code sample below comes from my struts-config.xml
file:
 

 

 

 



 
 


 

 
** struts-config.xml code above
**

I can enter data into the  fields and
they will erase if I click "Reset"
I can click "Submit" with nothing filled in (passing
nulls with the request), and the proper
 are displayed.

However...

If I enter any values for the "username" and
"password" fields, then click "Submit," a blank page
is always returned (neither "LogonSuccess.jsp" nor "LogonFail.jsp" are
blank).

What's up with that?  The browser says it's trying
to display results from "LogonSubmit.do" (which is
what I expect).  I have a file called
"users.properties" in the directory
"WEB-INF/classes" and in my LogonAction.java code:

public final class LogonAction extends Action {
 
   public ActionForward execute( ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response )
  throws Exception {
  
  String username = ( ( LogonForm ) form ).getUsername();
  String password = ( ( LogonForm ) form ).getPassword();
  boolean validated = false;

  try {
  
  validated = isUserLoggedOn( username, password );
  }
  catch ( SimpleUserDirectoryException sudexc ) {
  ActionErrors errors = new ActionErrors();
  errors.add( ActionErrors.GLOBAL_ERROR,
 new ActionError( "error.logon.connect" ) );
  saveErrors( request, errors );
  return ( new ActionForward( mapping.getInput() ) );
  }
  
  if ( !validated ) {
  
  ActionErrors errors = new ActionErrors();
  errors.add( ActionErrors.GLOBAL_ERROR,
 new ActionError( "error.logon.invalid" ) );
  saveErrors( request, errors );
  return ( new ActionForward( mapping.getInput() ) );
  }
  
  HttpSession session = request.getSession();
  session.setAttribute( Constants.USER_KEY, form );

  return ( mapping.findForward( Constants.SUCCESS ) );
  }
  
  public boolean isUserLoggedOn( String username,
  String password ) throws SimpleUserDirectoryException {
  
  return ( SimpleUserDirectory.getInstance().passwordIsValid(
username, password ) );
  }
  }
  
** mystrutsactions.LogonAction.java code above
**
  
Note: The LogonAction.java file above makes use of the following
SimpleUserDirectory.java code:
  
 private static final String SimpleUserDirectoryFilepath =
"users.properties";
InputStream ips =
this.getClass().getClassLoader().getResourceAsStream(
SimpleUserDirectoryFilepath );

** mystrutsforms.LogonForm.java code above
**
 
Also, my web.xml file has:
 
 
  application
  application
 
 
** web.xml code above
**
 
Any suggestions or guesses are appreciated.




Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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



DynaValidatorForm question

2003-07-31 Thread Jones, Marty B.
I have a class that extends Action (LoginAction) and references a
DynaValidatorForm for form validation. I have noticed that if I directly
reference a url say http://myserver/control/login that it instantiates the
LoginAction as it should.  My question is, what is the best way to not allow
the Action class to be fired if no request arguments are on the request so
that the login.jsp file will paint to allow the user to enter usename and
password information in.  I am pretty sure that I could use a normal
ActionForm and in the validation method check to see if the username and
password values are both null.  If they are then return a mapping to go back
to the login screen.  Is there a way to do this with the DynaValidatorForm?

Thanks in advance,

Marty Jones


Marty B. Jones
Senior Software Engineer
DailyAccess.Com


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



Re: Repost: Clicking "Submit" returns a blank page

2003-07-31 Thread todd thorner
Thanks for the suggestion, I'll give it my newbie best.
--

- Original Message -

DATE: Thu, 31 Jul 2003 14:04:57
From: Michael Ruppin <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>,[EMAIL PROTECTED]
Cc: 

>Check that
>
>Constants.SUCCESS=success
>
>m
>
>--- todd thorner <[EMAIL PROTECTED]> wrote:
>> I have reached this far in my debut logon page
>> development...
>>  
>> The first JSP page comes up fine, showing me a form
>>  with a rendered
>>  tag for each required field (username
>> and password), plus a "Reset" and a "Submit" button.
>> Code sample below comes from my struts-config.xml
>> file:
>>  
>> 
>>  >   type="mystrutsforms.LogonForm"/>
>> 
>>  
>> 
>>  
>> 
>> 
>> 
>>  >   type="org.apache.struts.actions.ForwardAction"
>>   parameter="/pages/Logon.jsp"/>
>>  >   type="mystrutsactions.LogonAction"
>> name="logonForm"
>>   scope="request" validate="true"
>>   input="/pages/Logon.jsp">
>> >   path="/pages/LogonSuccess.jsp"/>
>> >   path="/pages/LogonFail.jsp"/>
>>  
>> 
>>  
>> ** struts-config.xml code above
>> **
>> 
>> I can enter data into the  fields and
>> they will erase if I click "Reset"
>> I can click "Submit" with nothing filled in (passing
>> nulls with the request), and the proper
>>  are displayed.
>> 
>> However...
>> 
>> If I enter any values for the "username" and
>> "password" fields, then click "Submit," a blank page
>> is always returned (neither "LogonSuccess.jsp" nor
>> "LogonFail.jsp" are blank).
>> 
>> What's up with that?  The browser says it's trying
>> to display results from "LogonSubmit.do" (which is
>> what I expect).  I have a file called
>> "users.properties" in the directory
>> "WEB-INF/classes" and in my LogonAction.java code:
>> 
>> public final class LogonAction extends Action {
>>  
>>public ActionForward execute( ActionMapping
>> mapping,
>>   ActionForm form,
>>   HttpServletRequest request,
>>   HttpServletResponse response )
>>   throws Exception {
>>   
>>   String username = ( ( LogonForm ) form
>> ).getUsername();
>>   String password = ( ( LogonForm ) form
>> ).getPassword();
>>   boolean validated = false;
>>  
>>   try {
>>   
>>   validated = isUserLoggedOn( username,
>> password );
>>   }
>>   catch ( SimpleUserDirectoryException
>> sudexc ) {
>>   ActionErrors errors = new
>> ActionErrors();
>>   errors.add( ActionErrors.GLOBAL_ERROR,
>>  new ActionError(
>> "error.logon.connect" ) );
>>   saveErrors( request, errors );
>>   return ( new ActionForward(
>> mapping.getInput() ) );
>>   }
>>   
>>   if ( !validated ) {
>>   
>>   ActionErrors errors = new
>> ActionErrors();
>>   errors.add( ActionErrors.GLOBAL_ERROR,
>>  new ActionError(
>> "error.logon.invalid" ) );
>>   saveErrors( request, errors );
>>   return ( new ActionForward(
>> mapping.getInput() ) );
>>   }
>>   
>>   HttpSession session =
>> request.getSession();
>>   session.setAttribute( Constants.USER_KEY,
>> form );
>>  
>>   return ( mapping.findForward(
>> Constants.SUCCESS ) );
>>   }
>>   
>>   public boolean isUserLoggedOn( String
>> username,
>>   String password ) throws
>> SimpleUserDirectoryException {
>>   
>>   return (
>> SimpleUserDirectory.getInstance().passwordIsValid(
>> username, password ) );
>>   }
>>   }
>>   
>> ** mystrutsactions.LogonAction.java
>> code above **
>>   
>> Note: The LogonAction.java file above makes use of
>> the following SimpleUserDirectory.java code:
>>   
>>  private static final String
>> SimpleUserDirectoryFilepath = "users.properties";
>>  InputStream ips =
>>
>this.getClass().getClassLoader().getResourceAsStream(
>> SimpleUserDirectoryFilepath );
>>  
>> ** mystrutsforms.LogonForm.java code
>> above **
>>  
>> Also, my web.xml file has:
>>  
>>  
>>   application
>>   application
>>  
>>  
>> ** web.xml code above
>> **
>>  
>> Any suggestions or guesses are appreciated.
>> 
>> 
>> 
>>
>
>> Get advanced SPAM filtering on Webmail or POP Mail
>> ... Get Lycos Mail!
>> http://login.mail.lycos.com/r/referral?aid=27005
>> 
>>
>-
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> 
>
>
>__
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free, easy-to-use web site design software
>http://sitebuilder.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]

Help with using nested tags with dynamic forms

2003-07-31 Thread Katie Wright
Hello,

After joining the mailing list today, I found out that I had posted the an
e-mail to the wrong group (developers as opposed to users) so I am posting
here in hopes of getting help on the following:

I am trying to create an HTML form like so: 
Item1Label   Item1Textbox 
Item2Label   Item2Textbox 
Item3Label   Item3Textbox 

What is new to me is the fact that in this case, the number of items
vary and the item labels vary. 

I can display the page fine with the populated values for edit but when
I try to do a save, I get the following struts exception: 
javax.servlet.ServletException:BeanUtils.populate at
org.apache.struts.util.RequestUtils.populate RequestUtils.java:1254) at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcess
or.java:821) at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
254) at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) 

I have traced the struts code and see the generic exception being wrapped in
RequestUtils and don't know how to get more debugging information out of
this exception short of taking the struts source, marking it up and then
repackaging it.  I would like to avoid this.

It seems to be having trouble activating my setter in my form but not
sure why. I think because I have setup something improperly in my bean/form
but don't know
what.

Any assistance will be appreciated since this is day 3 of me trying to
figure this out, I am getting a little frustrated.

Thanks,

Katie Wright

The following is pruned version of the code:

JSP:





   
   
    
   
   
   
   





Form:

class ItemBeanFactory implements Factory {
public ItemBeanFactory() {
}
public Object create() {
return new ItemBean();
}
}


public  final class ItemForm extends CommonDTOForm {
private Collection _itemList = new ArrayList();
public ItemForm() {
try {
this._itemList = ListUtils.lazyList(new ArrayList(), new
ItemBeanFactory());
} catch (Exception e) {
}
}
public void setItemList(Collection list) {
   this._itemList = ListUtils.lazyList((ArrayList) list, new
ItemBeanFactory());
}
public Collection getItemList() {
return (this._itemList) ;
}
public void reset(ActionMapping mapping, HttpServletRequest request) {
super.reset(mapping,request);
this._itemList = new ArrayList();
}

public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = super.validate(mapping, request);
return errors;
}
}

Bean:

public  final class ItemBean {
private String _name = null;
private String _description = null;

public void setName(String name) {
this._name=name;
}

public String getName() {
return (this._name) ;
}

public void setDescription(String desc) {
this._description=desc;
}

public String getDescription() {
return (this._description) ;
}
}



 

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



Re: Is it possible to capture selected values on jsp page?

2003-07-31 Thread Michael Ruppin
Well, ultimately jsp IS Java  You can always do
this:

<%
String
foo="http://myweb.com/mypage?companyid="+id+"&ssn="+ssn;
%>


However, use of scriptlet is discouraged here.  If you
switch to JSTL tags, and put foo into an ActionForm
property populated in your Action, you could:



m

--- Rick Col <[EMAIL PROTECTED]> wrote:
> Thanks, 
> 
> I will try that out. What I try to do is to capture
> form variables as strings, and concatenate them with
> 
> a html address as request parameters. I am not sure
> how to 
> concatenate them with the link in JSP page, and add
> the 
> whole address to a taglib parameter like the
> following:
> 
> 
uri="http://myweb.com/mypage?companyid="+id+"&ssn="+ssn>
> 
> In Java, we can concatenate strings like that, in
> Jsp,
> can we do that? Or there is another way?
> 
> regards,
> 
> 
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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

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



RE: Urgent: Editor for JSP in Eclipse

2003-07-31 Thread mohan
Thanx a lot!!! works great for me

--mohan


> I am using the blacksun plugin.  It does have a find start/end tag
> feature.
>
> http://black-sun.sourceforge.net/
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 4:31 PM
> To: [EMAIL PROTECTED]
> Subject: Urgent: Editor for JSP in Eclipse
>
>
> Hi All
> I am using Eclipse and i need a JSP editor/ HTML editor to stuff like
> matching HTML tags in my JSPs and warn if there are no matching tags for
> an HTML tag, i have downloaded the solar eclipse plug-in but it ownly
> colors various JSP/HTML elements but i am not sure how to find mactching
> HTML tags or JSP tags wid it
>
>
>
> Thanx
>
> --MOhan
>
>
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ***
>  This electronic mail transmission contains confidential and/or
> privileged  information intended only for the person(s) named.  Any use,
> distribution,  copying or disclosure by another person is strictly
> prohibited.
> ***
>
>
>
>
> - 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: Is it possible to capture selected values on jsp page?

2003-07-31 Thread Rick Col
Thanks, 

I will try that out. What I try to do is to capture
form variables as strings, and concatenate them with 
a html address as request parameters. I am not sure
how to 
concatenate them with the link in JSP page, and add
the 
whole address to a taglib parameter like the
following:

http://myweb.com/mypage?companyid="+id+"&ssn="+ssn>

In Java, we can concatenate strings like that, in Jsp,
can we do that? Or there is another way?

regards,



__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: JSTL in html-el:option

2003-07-31 Thread Barry Volpe
I get the same problem:

Attribute ${status.count} has no value

Barry

- Original Message -
From: "Steve Raeburn" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 1:31 PM
Subject: RE: JSTL in html-el:option


> You need to use varStatus to get the current index:
>
> 
> 
> ">
> 
> 
> 
> 
>
> Steve
>
> > -Original Message-
> > From: struts [mailto:[EMAIL PROTECTED]
> > Sent: July 31, 2003 1:11 PM
> > To: Struts Users Mailing List
> > Subject: JSTL in html-el:option
> >
> >
> > The following yields Attribute ${i} has no value (first occurrence)
error.
> >
> > 
> >  
> >  "> > value="${i}"/>
> >  
> > 
> >
> > Any suggestions on alternative syntax?
> >
> > Thanks,
> > Barry
> >
> >
>
>
>
> -
> 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]



Converting Data Types On the Business Bean Side

2003-07-31 Thread Caroline Jen
Does the Struts 1.1 BeanUtils class supports
transferring data between String and native types on
the business bean side?

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

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



Re: Repost: Clicking "Submit" returns a blank page

2003-07-31 Thread Michael Ruppin
Check that

Constants.SUCCESS=success

m

--- todd thorner <[EMAIL PROTECTED]> wrote:
> I have reached this far in my debut logon page
> development...
>  
> The first JSP page comes up fine, showing me a form
>  with a rendered
>  tag for each required field (username
> and password), plus a "Reset" and a "Submit" button.
> Code sample below comes from my struts-config.xml
> file:
>  
> 
> type="mystrutsforms.LogonForm"/>
> 
>  
> 
>  
> 
> 
> 
> type="org.apache.struts.actions.ForwardAction"
>   parameter="/pages/Logon.jsp"/>
> type="mystrutsactions.LogonAction"
> name="logonForm"
>   scope="request" validate="true"
>   input="/pages/Logon.jsp">
>path="/pages/LogonSuccess.jsp"/>
>path="/pages/LogonFail.jsp"/>
>  
> 
>  
> ** struts-config.xml code above
> **
> 
> I can enter data into the  fields and
> they will erase if I click "Reset"
> I can click "Submit" with nothing filled in (passing
> nulls with the request), and the proper
>  are displayed.
> 
> However...
> 
> If I enter any values for the "username" and
> "password" fields, then click "Submit," a blank page
> is always returned (neither "LogonSuccess.jsp" nor
> "LogonFail.jsp" are blank).
> 
> What's up with that?  The browser says it's trying
> to display results from "LogonSubmit.do" (which is
> what I expect).  I have a file called
> "users.properties" in the directory
> "WEB-INF/classes" and in my LogonAction.java code:
> 
> public final class LogonAction extends Action {
>  
>public ActionForward execute( ActionMapping
> mapping,
>   ActionForm form,
>   HttpServletRequest request,
>   HttpServletResponse response )
>   throws Exception {
>   
>   String username = ( ( LogonForm ) form
> ).getUsername();
>   String password = ( ( LogonForm ) form
> ).getPassword();
>   boolean validated = false;
>   
>   try {
>   
>   validated = isUserLoggedOn( username,
> password );
>   }
>   catch ( SimpleUserDirectoryException
> sudexc ) {
>   ActionErrors errors = new
> ActionErrors();
>   errors.add( ActionErrors.GLOBAL_ERROR,
>  new ActionError(
> "error.logon.connect" ) );
>   saveErrors( request, errors );
>   return ( new ActionForward(
> mapping.getInput() ) );
>   }
>   
>   if ( !validated ) {
>   
>   ActionErrors errors = new
> ActionErrors();
>   errors.add( ActionErrors.GLOBAL_ERROR,
>  new ActionError(
> "error.logon.invalid" ) );
>   saveErrors( request, errors );
>   return ( new ActionForward(
> mapping.getInput() ) );
>   }
>   
>   HttpSession session =
> request.getSession();
>   session.setAttribute( Constants.USER_KEY,
> form );
>   
>   return ( mapping.findForward(
> Constants.SUCCESS ) );
>   }
>   
>   public boolean isUserLoggedOn( String
> username,
>   String password ) throws
> SimpleUserDirectoryException {
>   
>   return (
> SimpleUserDirectory.getInstance().passwordIsValid(
> username, password ) );
>   }
>   }
>   
> ** mystrutsactions.LogonAction.java
> code above **
>   
> Note: The LogonAction.java file above makes use of
> the following SimpleUserDirectory.java code:
>   
>  private static final String
> SimpleUserDirectoryFilepath = "users.properties";
>   InputStream ips =
>
this.getClass().getClassLoader().getResourceAsStream(
> SimpleUserDirectoryFilepath );
>   
> ** mystrutsforms.LogonForm.java code
> above **
>  
> Also, my web.xml file has:
>  
>  
>   application
>   application
>  
>  
> ** web.xml code above
> **
>  
> Any suggestions or guesses are appreciated.
> 
> 
> 
>

> Get advanced SPAM filtering on Webmail or POP Mail
> ... Get Lycos Mail!
> http://login.mail.lycos.com/r/referral?aid=27005
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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

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



RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Bailey, Shane C.

I know about javascript: but in Netscape you have the nice Java and
JavaScript consoles from the menu bar.

I meant more like, I'm surprised that it doesn't work on both and if there
was a specific reason why Netscape wasn't tested or cared to be tested to
work for such a thing. The code is generated so I assume not just this
example breaks in NS but all struts menus must break.  

Is document.all usage the only way to get menus to work in a browser?  

Netscape invented JavaScript (for gosh sakes) so I would think it could be
done (cross browser menu framework).

Maybe I will have to look into it and submit some code to the framework.

I guess I am just a dinosaur for always testing my web apps in both
browsers.



-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 2:23 PM
To: Struts Users Mailing List
Subject: RE: Dynamic Tree Menus --- HELP!!!

It's not common for them not to work, but there might be a JavaScript error.
You can tell this if you type "javascript:" in your address bar, it will
show a console of errors for the NS browser. Plus the NS browsers are (IMHO)
historically very strict about the validity of the page, bad HTML won't
render in many cases.  Although I don't know what problem you are having
specifically.

-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:06 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Tree Menus --- HELP!!!




How come the example doesn't work with Netscape (v7.02 and my JavaScript is
turned on)??

I was thinking about using the Struts menus but I have users that are on
UNIX work workstations (Intranet app).  Is this common for the menus not to
work on Netscape?



-Original Message-
From: Todd Fuller [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:09 PM
To: [EMAIL PROTECTED]
Cc: Pat Quinn
Subject: RE: Dynamic Tree Menus --- HELP!!!

Pat,

Check out the Multi-level tree example at the URL below.

http://www2.metanology.com:8080/struts-examples-web/index.jsp

Todd Fuller
Metanology Corporation
4625 Alexander Dr., Ste 105
Alpharetta, GA 30022
770.475.1301 Office
404.561.0294 Cell
www.metanology.com


-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!


I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third
node will appear with a series of plus images.

---
Menu-Config.xml
---


  

  
  


   
   


   


  



-
JSP Code
-
<%@ taglib uri="/WEB-INF/struts-menu.tld" prefix="menu"%>






>From: "Raible, Matt" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: Dynamic Tree Menus --- HELP!!!
>Date: Thu, 31 Jul 2003 09:22:04 -0600
>
>I'm willing to help if you send me the code.  Which Displayer are you
>using?
>
>Matt
>
>-Original Message-
>From: Pat Quinn [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 31, 2003 9:20 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Dynamic Tree Menus --- HELP!!!
>
>
>Is anyone out there working with dynamic HTML trees at the moment (i.e.
>displaying data loaded from a data base) as i'm pulling my hair out here at
>the moment.
>
>I downloaded the source for Struts Menu and implemented a change to allow
>me
>
>to place a java bean with my tree menu details into HttpSession rather than
>loading it from the menu xml file. Every thing works fine until i tried to
>add triple nested node to the tree and it totally screws up presentation
>i.e. The node image is repeatedly displayed. Its not due to my changes as i
>tested it in the latest stable version and it fails also to render with the
>same results.
>
>I've also taken a look into using http://www.kobrix.com/ offering but their
>configuration requirements to integrate with struts seems abit too much for
>my liking.
>
>
>
>
>Any suggestions, or should i just go find the JavaScript i require
>elsewhere
>
>and wrap it with my own custom tag library
>
>
>
> >From: "Pat Quinn" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Dynamic Html Tree Menus - Java Beans.
> >Date: Thu, 31 Jul 2003 10:22:51 +0100
> >
> >I'm looking for a tag library to aid the rendering of a Tree Menu using
> >session/request stored objects.
> >I want to included the menu data as a Java Bean in HttpSession for each
> >user and then use tag libs in my JSP's. I've looked into the StrutsMenu
> >Offering for Dynamic Menus but it loads menu data from an XML file.
> >
> >Any ideas or am i better off to develop my own custom tag lib?
> >
> >_
> >M

RE: Urgent: Editor for JSP in Eclipse

2003-07-31 Thread Kevin Peters
I am using the blacksun plugin.  It does have a find start/end tag feature.

http://black-sun.sourceforge.net/

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 4:31 PM
To: [EMAIL PROTECTED]
Subject: Urgent: Editor for JSP in Eclipse


Hi All
I am using Eclipse and i need a JSP editor/ HTML editor to stuff like
matching HTML tags in my JSPs and warn if there are no matching tags for
an HTML tag, i have downloaded the solar eclipse plug-in but it ownly
colors various JSP/HTML elements but i am not sure how to find mactching
HTML tags or JSP tags wid it



Thanx

--MOhan



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


*** 
This electronic mail transmission contains confidential and/or privileged 
information intended only for the person(s) named.  Any use, distribution, 
copying or disclosure by another person is strictly prohibited. 
*** 



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



Re: Is it possible to capture selected values on jsp page?

2003-07-31 Thread Michael Ruppin
Well, I don't use that taglib, so I'm not sure.  In
your situation, I believe the ActionForm is available
to you, even outside the  tags.  When the
 code executes, it creates an ActionForm
instance, iff one does not exist (see
http://jakarta.apache.org/struts/struts-html.html#form).
 However, in your case, the ActionForm you want access
to was created and populated when processing the
request.  I don't know what you wanted to do with the
selection, but it should be available using
name="myForm" and property="theSelection" in most
Struts tags. You might need to include logic not to
use them, when the ActionForm has not yet been
created.

HTH

m

--- Rick Col <[EMAIL PROTECTED]> wrote:
> Thanks, Michael:
> 
> I actually want to capture them outside
> ...<.html:form>. I know these values
> will be in my action form, should I use
> 
> to
> get their string values?
> 
> regards,
> 
> 
> --- Michael Ruppin <[EMAIL PROTECTED]> wrote:
> > So long as both s are in the same 
> as
> > the , they will both be in
> the
> > request.
> > 
> > m
> > 
> > --- Rick Col <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > 
> > > I have two drop down lists. Once a user selects
> > once
> > > item for every list, she will press on submit
> > > button.
> > > The two lists are collections. I am trying to
> > > capture
> > > these two values after the user submission. Is
> > there
> > > an easy way to do that?
> > > 
> > > regards,
> > > 
> > > __
> > > Do you Yahoo!?
> > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > http://sbc.yahoo.com
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > http://sitebuilder.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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

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



Re: Could one figure out the context path in Servlet.init() method?

2003-07-31 Thread Jing Zhou
Thanks a lot! We do have a configuration decision based on
a term, we call it *context path* in the database. We use it
to uniquely identify a web application. Through this discussion,
we could call it whatever as long as it helps us to find information
about a particular web application in the database. Using
a context init parameter to initialize the term is the way to go.

Jing


- Original Message - 
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Jing Zhou" <[EMAIL PROTECTED]>
Cc: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 2:51 PM
Subject: Re: Could one figure out the context path in Servlet.init() method?


>
>
> On Thu, 31 Jul 2003, Jing Zhou wrote:
>
> > Date: Thu, 31 Jul 2003 13:17:39 -0500
> > From: Jing Zhou <[EMAIL PROTECTED]>
> > To: Craig R. McClanahan <[EMAIL PROTECTED]>,
> >  Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: Re: Could one figure out the context path in Servlet.init()
> > method?
> >
> > I see. I looked through the Servlet Spec 2.3 and no restrictions
> > are found to have multiple context paths mapped to one web
> > application. But how such capability is utilized in a servlet
> > container? I do not find information on how to map multiple
> > context paths to one web application. Is this container vendor
> > specific thing?
> >
>
> Since it is not a spec thing, container support for this feature would
> definitely be container specific, as would configuration.
>
> Tomcat, for example, does not support it directly for context paths (you
> can point two  elements at the same directory, but you get two
> different webapp instances), but it does allow an app to have multiple
> hostnames, courtesy of the fact that you can have an  directive for
> the owning .  This is mostly used so that things like the following
> two URLs:
>
>   http://www.mycompany.com/myapp/
>
>   http://mycompany.com/myapp/
>
> resolve to the same webapp.  But the principle is the same -- it would not
> be reasonable for a servlet's init() method to ask "what is my server
> name?", because there is more than one.
>
> > Another thought that is surprising me is that a web application
> > could not assume its context paths are *constants* in the
> > application life cycle. Is this assumption valid in general?
> > (Of course one should not change context paths very often
> > even if they could be changed.)
>
> Again server dependent, especially on servers where you can dynamically
> install and remove alias directives.
>
> Portably written applications should make no assumptions about what
> context path they are executing under - that decision should be up to the
> person installing the app instead.  That's why, for example, Struts tags
> and methods all focus on context-relative paths; they work no matter what
> the context path is.  If you've got configuration decisions to make based
> on what the actual context path is (as it sounds like you do), it might be
> better to externalize that stuff into a separate context init parameter,
> which therefore would be available at startup.
>
> >
> > Jing
>
> Craig
>
>
> >
> > - Original Message -
> > From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Jing
> > Zhou" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 31, 2003 10:57 AM
> > Subject: Re: Could one figure out the context path in Servlet.init()
method?
> >
> >
> > >
> > >
> > > On Thu, 31 Jul 2003, Jing Zhou wrote:
> > >
> > > >
> > > > I am wondering if there is a way to get the context path without
> > > > using init parameters during the initialization of a servlet.
> > > > Any clues? We have ServletContext.getRealPath(), but not
> > > > the ServletContext.getContextPath(). Why can't the ServletContext
> > > > tell me its context path?
> > > >
> > >
> > > You are assuming that a web applicaton only has one context path.
That
> > > does not have to be the case.
> > >
> > > > Jing
> > >
> > > Craig
> > >
> >
> >
>


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



RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Todd Fuller
Do...Take a look now. Working for me in Netscape 6.2.

Todd Fuller
Metanology Corporation
4625 Alexander Dr., Ste 105
Alpharetta, GA 30022
770.475.1301 Office
404.561.0294 Cell
www.metanology.com


-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:06 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Tree Menus --- HELP!!!




How come the example doesn't work with Netscape (v7.02 and my JavaScript is
turned on)??

I was thinking about using the Struts menus but I have users that are on
UNIX work workstations (Intranet app).  Is this common for the menus not to
work on Netscape?



-Original Message-
From: Todd Fuller [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:09 PM
To: [EMAIL PROTECTED]
Cc: Pat Quinn
Subject: RE: Dynamic Tree Menus --- HELP!!!

Pat,

Check out the Multi-level tree example at the URL below.

http://www2.metanology.com:8080/struts-examples-web/index.jsp

Todd Fuller
Metanology Corporation
4625 Alexander Dr., Ste 105
Alpharetta, GA 30022
770.475.1301 Office
404.561.0294 Cell
www.metanology.com


-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!


I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third
node will appear with a series of plus images.

---
Menu-Config.xml
---


  

  
  


   
   


   


  



-
JSP Code
-
<%@ taglib uri="/WEB-INF/struts-menu.tld" prefix="menu"%>






>From: "Raible, Matt" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: Dynamic Tree Menus --- HELP!!!
>Date: Thu, 31 Jul 2003 09:22:04 -0600
>
>I'm willing to help if you send me the code.  Which Displayer are you
>using?
>
>Matt
>
>-Original Message-
>From: Pat Quinn [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 31, 2003 9:20 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Dynamic Tree Menus --- HELP!!!
>
>
>Is anyone out there working with dynamic HTML trees at the moment (i.e.
>displaying data loaded from a data base) as i'm pulling my hair out here at
>the moment.
>
>I downloaded the source for Struts Menu and implemented a change to allow
>me
>
>to place a java bean with my tree menu details into HttpSession rather than
>loading it from the menu xml file. Every thing works fine until i tried to
>add triple nested node to the tree and it totally screws up presentation
>i.e. The node image is repeatedly displayed. Its not due to my changes as i
>tested it in the latest stable version and it fails also to render with the
>same results.
>
>I've also taken a look into using http://www.kobrix.com/ offering but their
>configuration requirements to integrate with struts seems abit too much for
>my liking.
>
>
>
>
>Any suggestions, or should i just go find the JavaScript i require
>elsewhere
>
>and wrap it with my own custom tag library
>
>
>
> >From: "Pat Quinn" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Dynamic Html Tree Menus - Java Beans.
> >Date: Thu, 31 Jul 2003 10:22:51 +0100
> >
> >I'm looking for a tag library to aid the rendering of a Tree Menu using
> >session/request stored objects.
> >I want to included the menu data as a Java Bean in HttpSession for each
> >user and then use tag libs in my JSP's. I've looked into the StrutsMenu
> >Offering for Dynamic Menus but it loads menu data from an XML file.
> >
> >Any ideas or am i better off to develop my own custom tag lib?
> >
> >_
> >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> >http://join.msn.com/?page=features/virus
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>_
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>-
>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]
>

_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus



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

RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Kevin Peters
This clearly wasn't written for Mozilla/Netscape browsers.  It is using
document.all which is invalid in Mozilla/Netscape.  Thus, you get a
document.all has no properties in the js console.

-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 4:24 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Tree Menus --- HELP!!!



I know about javascript: but in Netscape you have the nice Java and
JavaScript consoles from the menu bar.

I meant more like, I'm surprised that it doesn't work on both and if there
was a specific reason why Netscape wasn't tested or cared to be tested to
work for such a thing. The code is generated so I assume not just this
example breaks in NS but all struts menus must break.  

Is document.all usage the only way to get menus to work in a browser?  

Netscape invented JavaScript (for gosh sakes) so I would think it could be
done (cross browser menu framework).

Maybe I will have to look into it and submit some code to the framework.

I guess I am just a dinosaur for always testing my web apps in both
browsers.



-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 2:23 PM
To: Struts Users Mailing List
Subject: RE: Dynamic Tree Menus --- HELP!!!

It's not common for them not to work, but there might be a JavaScript error.
You can tell this if you type "javascript:" in your address bar, it will
show a console of errors for the NS browser. Plus the NS browsers are (IMHO)
historically very strict about the validity of the page, bad HTML won't
render in many cases.  Although I don't know what problem you are having
specifically.

-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:06 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Tree Menus --- HELP!!!




How come the example doesn't work with Netscape (v7.02 and my JavaScript is
turned on)??

I was thinking about using the Struts menus but I have users that are on
UNIX work workstations (Intranet app).  Is this common for the menus not to
work on Netscape?



-Original Message-
From: Todd Fuller [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:09 PM
To: [EMAIL PROTECTED]
Cc: Pat Quinn
Subject: RE: Dynamic Tree Menus --- HELP!!!

Pat,

Check out the Multi-level tree example at the URL below.

http://www2.metanology.com:8080/struts-examples-web/index.jsp

Todd Fuller
Metanology Corporation
4625 Alexander Dr., Ste 105
Alpharetta, GA 30022
770.475.1301 Office
404.561.0294 Cell
www.metanology.com


-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!


I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third
node will appear with a series of plus images.

---
Menu-Config.xml
---


  

  
  


   
   


   


  



-
JSP Code
-
<%@ taglib uri="/WEB-INF/struts-menu.tld" prefix="menu"%>






>From: "Raible, Matt" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: Dynamic Tree Menus --- HELP!!!
>Date: Thu, 31 Jul 2003 09:22:04 -0600
>
>I'm willing to help if you send me the code.  Which Displayer are you
>using?
>
>Matt
>
>-Original Message-
>From: Pat Quinn [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 31, 2003 9:20 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Dynamic Tree Menus --- HELP!!!
>
>
>Is anyone out there working with dynamic HTML trees at the moment (i.e.
>displaying data loaded from a data base) as i'm pulling my hair out here at
>the moment.
>
>I downloaded the source for Struts Menu and implemented a change to allow
>me
>
>to place a java bean with my tree menu details into HttpSession rather than
>loading it from the menu xml file. Every thing works fine until i tried to
>add triple nested node to the tree and it totally screws up presentation
>i.e. The node image is repeatedly displayed. Its not due to my changes as i
>tested it in the latest stable version and it fails also to render with the
>same results.
>
>I've also taken a look into using http://www.kobrix.com/ offering but their
>configuration requirements to integrate with struts seems abit too much for
>my liking.
>
>
>
>
>Any suggestions, or should i just go find the JavaScript i require
>elsewhere
>
>and wrap it with my own custom tag library
>
>
>
> >From: "Pat Quinn" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Dynamic Html Tree Menus - Java Beans.
> >Date: Thu, 31 Jul 2003 10:22:51 +0100
> >
> >I'm looking for a tag library to aid the rendering of a Tree Menu using
> >session/request s

Repost: Clicking "Submit" returns a blank page

2003-07-31 Thread todd thorner
I have reached this far in my debut logon page
development...
 
The first JSP page comes up fine, showing me a form
 with a rendered
 tag for each required field (username
and password), plus a "Reset" and a "Submit" button.
Code sample below comes from my struts-config.xml
file:
 

 

 

 



 
 


 

 
** struts-config.xml code above
**

I can enter data into the  fields and
they will erase if I click "Reset"
I can click "Submit" with nothing filled in (passing
nulls with the request), and the proper
 are displayed.

However...

If I enter any values for the "username" and
"password" fields, then click "Submit," a blank page
is always returned (neither "LogonSuccess.jsp" nor "LogonFail.jsp" are blank).

What's up with that?  The browser says it's trying
to display results from "LogonSubmit.do" (which is
what I expect).  I have a file called
"users.properties" in the directory
"WEB-INF/classes" and in my LogonAction.java code:

public final class LogonAction extends Action {
 
   public ActionForward execute( ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response )
  throws Exception {
  
  String username = ( ( LogonForm ) form ).getUsername();
  String password = ( ( LogonForm ) form ).getPassword();
  boolean validated = false;

  try {
  
  validated = isUserLoggedOn( username, password );
  }
  catch ( SimpleUserDirectoryException sudexc ) {
  ActionErrors errors = new ActionErrors();
  errors.add( ActionErrors.GLOBAL_ERROR,
 new ActionError( "error.logon.connect" ) );
  saveErrors( request, errors );
  return ( new ActionForward( mapping.getInput() ) );
  }
  
  if ( !validated ) {
  
  ActionErrors errors = new ActionErrors();
  errors.add( ActionErrors.GLOBAL_ERROR,
 new ActionError( "error.logon.invalid" ) );
  saveErrors( request, errors );
  return ( new ActionForward( mapping.getInput() ) );
  }
  
  HttpSession session = request.getSession();
  session.setAttribute( Constants.USER_KEY, form );

  return ( mapping.findForward( Constants.SUCCESS ) );
  }
  
  public boolean isUserLoggedOn( String username,
  String password ) throws SimpleUserDirectoryException {
  
  return ( SimpleUserDirectory.getInstance().passwordIsValid(
username, password ) );
  }
  }
  
** mystrutsactions.LogonAction.java code above **
  
Note: The LogonAction.java file above makes use of the following 
SimpleUserDirectory.java code:
  
 private static final String SimpleUserDirectoryFilepath = "users.properties";
InputStream ips = this.getClass().getClassLoader().getResourceAsStream( 
SimpleUserDirectoryFilepath );

** mystrutsforms.LogonForm.java code above **
 
Also, my web.xml file has:
 
 
  application
  application
 
 
** web.xml code above
**
 
Any suggestions or guesses are appreciated.




Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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



Struts 1.1 in Websphere 4.01 on plugin with OS/390

2003-07-31 Thread yau-pang . lee
Does anyone has any luck with running Struts 1.1 in the following env.?

Websphere 4.01 on with a plugin
OS/390

JSP level is configured to 1.1 and it's running at servlet level 2.2, 
so I'm hopeful that it'll work.

I used wartowebapp to deploy the struts-example war file and it looks 
like the actionServlet doesn't even gets load or initialized on 
startup.  Accessing the index.jsp file could give me the famous "Cannot 
find message resources under key org.apache.struts.action.MESSAGE" 
error.  Any idea?

YPL


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



RE: JSTL in html-el:option

2003-07-31 Thread Steve Raeburn
You need to use varStatus to get the current index:



">





Steve

> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 1:11 PM
> To: Struts Users Mailing List
> Subject: JSTL in html-el:option
>
>
> The following yields Attribute ${i} has no value (first occurrence) error.
>
> 
>  
>  "> value="${i}"/>
>  
> 
>
> Any suggestions on alternative syntax?
>
> Thanks,
> Barry
>
>



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



Urgent: Editor for JSP in Eclipse

2003-07-31 Thread mohan
Hi All
I am using Eclipse and i need a JSP editor/ HTML editor to stuff like
matching HTML tags in my JSPs and warn if there are no matching tags for
an HTML tag, i have downloaded the solar eclipse plug-in but it ownly
colors various JSP/HTML elements but i am not sure how to find mactching
HTML tags or JSP tags wid it



Thanx

--MOhan



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



Re: Is it possible to capture selected values on jsp page?

2003-07-31 Thread Rick Col
Thanks, Michael:

I actually want to capture them outside
...<.html:form>. I know these values
will be in my action form, should I use 
to
get their string values?

regards,


--- Michael Ruppin <[EMAIL PROTECTED]> wrote:
> So long as both s are in the same  as
> the , they will both be in the
> request.
> 
> m
> 
> --- Rick Col <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > I have two drop down lists. Once a user selects
> once
> > item for every list, she will press on submit
> > button.
> > The two lists are collections. I am trying to
> > capture
> > these two values after the user submission. Is
> there
> > an easy way to do that?
> > 
> > regards,
> > 
> > __
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: white space on jsp compile

2003-07-31 Thread Ditlinger, Steve
I assume you are having problems with excessive newlines.  

We end up doing a lot of this type of thing:

<%@ taglib prefix="html" uri="/tags/struts-html"
%><%@ taglib prefix="bean" uri="/tags/struts-bean"
%><%@ taglib prefix="logic" uri="/tags/struts-logic"
%><%@ taglib uri="/tags/struts-tiles" prefix="tiles"%>

Note the positioning of the closing "%>".  That includes the newlines in the
tag and eliminates newlines produced in the HTML.  Do the same for scriplet
tags, custom tags, etc.

Steve

 -Original Message-
 From: Mike Whittaker [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 31, 2003 12:21 PM
 To: Struts List
 Subject: white space on jsp compile
 
 
 Is there any way to control it? It seems a little excessive
 
 I'd like to retain it in the JSP, and remove as much as 
 possible in the html
 
 --
 Mike W
 
 
 -
 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]



JSTL in html-el:option

2003-07-31 Thread struts
The following yields Attribute ${i} has no value (first occurrence) error.

 
  
 "> 
  
   

Any suggestions on alternative syntax?

Thanks,
Barry 



Re: Is it possible to capture selected values on jsp page?

2003-07-31 Thread Michael Ruppin
So long as both s are in the same  as
the , they will both be in the
request.

m

--- Rick Col <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I have two drop down lists. Once a user selects once
> item for every list, she will press on submit
> button.
> The two lists are collections. I am trying to
> capture
> these two values after the user submission. Is there
> an easy way to do that?
> 
> regards,
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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

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



Is it possible to capture selected values on jsp page?

2003-07-31 Thread Rick Col
Hi,

I have two drop down lists. Once a user selects once
item for every list, she will press on submit button.
The two lists are collections. I am trying to capture
these two values after the user submission. Is there
an easy way to do that?

regards,

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Could one figure out the context path in Servlet.init() method?

2003-07-31 Thread Craig R. McClanahan


On Thu, 31 Jul 2003, Jing Zhou wrote:

> Date: Thu, 31 Jul 2003 13:17:39 -0500
> From: Jing Zhou <[EMAIL PROTECTED]>
> To: Craig R. McClanahan <[EMAIL PROTECTED]>,
>  Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: Could one figure out the context path in Servlet.init()
> method?
>
> I see. I looked through the Servlet Spec 2.3 and no restrictions
> are found to have multiple context paths mapped to one web
> application. But how such capability is utilized in a servlet
> container? I do not find information on how to map multiple
> context paths to one web application. Is this container vendor
> specific thing?
>

Since it is not a spec thing, container support for this feature would
definitely be container specific, as would configuration.

Tomcat, for example, does not support it directly for context paths (you
can point two  elements at the same directory, but you get two
different webapp instances), but it does allow an app to have multiple
hostnames, courtesy of the fact that you can have an  directive for
the owning .  This is mostly used so that things like the following
two URLs:

  http://www.mycompany.com/myapp/

  http://mycompany.com/myapp/

resolve to the same webapp.  But the principle is the same -- it would not
be reasonable for a servlet's init() method to ask "what is my server
name?", because there is more than one.

> Another thought that is surprising me is that a web application
> could not assume its context paths are *constants* in the
> application life cycle. Is this assumption valid in general?
> (Of course one should not change context paths very often
> even if they could be changed.)

Again server dependent, especially on servers where you can dynamically
install and remove alias directives.

Portably written applications should make no assumptions about what
context path they are executing under - that decision should be up to the
person installing the app instead.  That's why, for example, Struts tags
and methods all focus on context-relative paths; they work no matter what
the context path is.  If you've got configuration decisions to make based
on what the actual context path is (as it sounds like you do), it might be
better to externalize that stuff into a separate context init parameter,
which therefore would be available at startup.

>
> Jing

Craig


>
> - Original Message -
> From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Jing
> Zhou" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, July 31, 2003 10:57 AM
> Subject: Re: Could one figure out the context path in Servlet.init() method?
>
>
> >
> >
> > On Thu, 31 Jul 2003, Jing Zhou wrote:
> >
> > >
> > > I am wondering if there is a way to get the context path without
> > > using init parameters during the initialization of a servlet.
> > > Any clues? We have ServletContext.getRealPath(), but not
> > > the ServletContext.getContextPath(). Why can't the ServletContext
> > > tell me its context path?
> > >
> >
> > You are assuming that a web applicaton only has one context path.  That
> > does not have to be the case.
> >
> > > Jing
> >
> > Craig
> >
>
>

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



Re: struts-el example app not working?

2003-07-31 Thread struts
Hue,

I followed Brian's steps (repost of thread below).  It does work.  I can run
in full integration now.

Hi Brian,

Great stuff! Yes, it now works for me, too. I narrowed it down to the
following jars that need to be added to the netbeans/lib directory:

>From Struts:
struts.jar
struts-el.jar
commons-logging.jar

>From bundled TC installation:
servlet.jar

I'm not sure whether it only requires these jars because it is a simple test
project and more complex projects may require more jars but I'm impressed
that you've got it to work!

Are you going to raise this at netbeans as a bug report, as to be honest it
does look more and more as an issue with netbeans?

Hue.




- Original Message -
From: "Hue Holleran" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 1:44 AM
Subject: RE: struts-el example app not working?


> Yep, I've been bitten by this one too. There are a few workarounds:
>
> 1) Change the JSP compiler to not compile JSPs:
> http://marc.theaimsgroup.com/?l=struts-user&m=105334711431267&w=2
>
> 2) Workaround by Brian Cross (at end of this thread) - this works well for
> us:
> http://marc.theaimsgroup.com/?l=struts-user&m=105147011604944&w=2
>
> Hope that helps.
>
> Hue.
>
> > -Original Message-
> > From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> > Sent: 31 July 2003 06:10
> > To: Struts Users Mailing List
> > Subject: RE: struts-el example app not working?
> >
> >
> > Well, I managed to get it running but I'm definitely not a convert to
> > Netbeans :-(
> >
> >   - In Netbeans, go to the Runtime tab and expand the Explorer view
until
> > you see the 'Internal Tomcat' server.
> >   - Right click on it and change the IDE Integration Mode from Full to
> > Minimum.
> >
> > That seems to get it working. You could also look at the External Tomcat
> > Server feature as an alternative. There's information in the application
> > Help.
> >
> > I think this  is
the
> > cause of the problem. In any case, this issue is with Netbeans
integration
> > of Tomcat and not with Struts.
> >
> > Related information:
> > James Mitchell has written a guide to setting up a Struts project in
> > Netbeans (version 3.4)
> > . He's using Ant to
> > build and deploy the web application so that probably gets round the
> > problems by avoiding the IDE's build/deploy features.
> >
> > If you have access to WebSphere Studio it is IMHO a *much* more pleasant
> > experience than Netbeans and importing a WAR is straightforward. I
haven't
> > tried Eclipse (on which Websphere Studio is based) with the Sysdeo
plugin
> > for Tomcat, but that would be a cheaper (free!) option than WS Studio.
> >
> > Hope this works for you... now where's that uninstall option :-)
> >
> > Steve
> >
> > > -Original Message-
> > > From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> > > Sent: July 30, 2003 7:12 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: struts-el example app not working?
> > >
> > >
> > > I'll try to take a look at Netbeans sometime, but it may not be
> > for a few
> > > days. If I have any success I'll post back to the list and copy
> > > you. If, in
> > > the meantime you find the problem, do post the result here.
> > >
> > > Steve
> > >
> > > > -Original Message-
> > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > Sent: July 30, 2003 5:51 PM
> > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > Subject: Re: struts-el example app not working?
> > > >
> > > >
> > > > Yep the stand alone (Tomcat 4.1) works fine.  Just install the
> > > > struts-el-exercise-taglib.war through
> > > > the tomcat manager and no problems.
> > > > Barry
> > > >
> > > > - Original Message -
> > > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, July 30, 2003 4:27 PM
> > > > Subject: RE: struts-el example app not working?
> > > >
> > > >
> > > > > 4.0.6 works for me. I don't remember the details, but I
> > > *think* Netbeans
> > > > has
> > > > > cropped up as a problem before.
> > > > > If you can, try it with a standalone version of Tomcat and
> > > > check the mail
> > > > > archives for Netbeans issues.
> > > > >
> > > > > Steve
> > > > >
> > > > >
> > > > > > -Original Message-
> > > > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > > > Sent: July 30, 2003 4:06 PM
> > > > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > > > Subject: Re: struts-el example app not working?
> > > > > >
> > > > > >
> > > > > > I am running Tomcat 4.0xx
> > > > > > (using netbeans 3.5 with Tomcat bundle)
> > > > > >
> > > > > > Barry
> > > > > >
> > > > > >
> > > > > >
> > > > > > - Original Message -
> > > > > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > >

Re: Struts Action in Welcome File List

2003-07-31 Thread Jon Wynacht
I think I had my slashes mixed upI just copied what was in the 
struts-blank project and it seems to be working just fine.

Thanks all for helping me sort out the confusion!

Jon

On Wednesday, July 30, 2003, at 06:50  PM, John Cavacas wrote:

Can you deploy and run correctly struts-blank.war? If you can bring up
http://localhost:8080/struts-blank/ then its not a Struts problem.
Check the slash on your action. If your action is defined like so:



Be sure in your forward you have

Specifying  should also work. 
I
think...

John



This communication is intended for the use of the individual(s) or 
entity it
was addressed to and may contain confidential and/or privileged 
information.
If the reader of this transmission is not the intended recipient, you 
are
hereby notified that any review, dissemination, distribution or 
copying of
this communication is prohibited.  If you receive this communication in
error, please notify the sender immediately and delete this 
communication
from your system(s) to which it was sent and/or replicated to. (c) 2003
Sapiens Americas Corp.

-
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: AW: Show validation errors in a dialog

2003-07-31 Thread Rob Leland
If you are talking about presenting the server side validation errors
on the client I believe you could do it on the
'onload' event handler in the  tag.
If you want the client side validation performed by Javascript
to display errors then look at the struts-validator
example.
Dirk Behrendt wrote:

I want to be a bit more concret:

With JavaScript you can create a window, after klicking a button.

JavaScript Code:



 



I want, that such a window appears, when errors occur. So I have to 
put code in the  tag.













……some JavaScript for a window







Dirk

-Ursprüngliche Nachricht-
*Von:* Dirk Behrendt [mailto:[EMAIL PROTECTED]
*Gesendet:* Donnerstag, 31. Juli 2003 19:21
*An:* '[EMAIL PROTECTED]'
*Betreff:* Show validation errors in an dialog
Hello!

What is necessary to show errors from validation not in a JSP , but in 
a dialog?

Dirk



--
-
Rob Leland (703-525-3580)
Choose a job you love, and you will never have to work a day of your life.
 
-Confucius.


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


RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Raible, Matt
Thanks Pat - I confirmed that this is a bug, and fixed it in CVS.  You can
see an example at the following URL:

http://raibledesigns.com/struts-menu/test1.jsp

Download the updated JAR at:

http://raibledesigns.com/downloads/struts-menu.jar

or build struts-menu from CVS.

HTH,

Matt


-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!


I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third 
node will appear with a series of plus images.

---
Menu-Config.xml
---


  

  
  


   
   


   


  



-
JSP Code
-
<%@ taglib uri="/WEB-INF/struts-menu.tld" prefix="menu"%>






>From: "Raible, Matt" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: Dynamic Tree Menus --- HELP!!!
>Date: Thu, 31 Jul 2003 09:22:04 -0600
>
>I'm willing to help if you send me the code.  Which Displayer are you 
>using?
>
>Matt
>
>-Original Message-
>From: Pat Quinn [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 31, 2003 9:20 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Dynamic Tree Menus --- HELP!!!
>
>
>Is anyone out there working with dynamic HTML trees at the moment (i.e.
>displaying data loaded from a data base) as i'm pulling my hair out here at
>the moment.
>
>I downloaded the source for Struts Menu and implemented a change to allow 
>me
>
>to place a java bean with my tree menu details into HttpSession rather than
>loading it from the menu xml file. Every thing works fine until i tried to
>add triple nested node to the tree and it totally screws up presentation
>i.e. The node image is repeatedly displayed. Its not due to my changes as i
>tested it in the latest stable version and it fails also to render with the
>same results.
>
>I've also taken a look into using http://www.kobrix.com/ offering but their
>configuration requirements to integrate with struts seems abit too much for
>my liking.
>
>
>
>
>Any suggestions, or should i just go find the JavaScript i require 
>elsewhere
>
>and wrap it with my own custom tag library
>
>
>
> >From: "Pat Quinn" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Dynamic Html Tree Menus - Java Beans.
> >Date: Thu, 31 Jul 2003 10:22:51 +0100
> >
> >I'm looking for a tag library to aid the rendering of a Tree Menu using
> >session/request stored objects.
> >I want to included the menu data as a Java Bean in HttpSession for each
> >user and then use tag libs in my JSP's. I've looked into the StrutsMenu
> >Offering for Dynamic Menus but it loads menu data from an XML file.
> >
> >Any ideas or am i better off to develop my own custom tag lib?
> >
> >_
> >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> >http://join.msn.com/?page=features/virus
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>_
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>-
>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]
>

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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



white space on jsp compile

2003-07-31 Thread Mike Whittaker
Is there any way to control it? It seems a little excessive

I'd like to retain it in the JSP, and remove as much as possible in the html

--
Mike W


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



AW: Show validation errors in a dialog

2003-07-31 Thread Dirk Behrendt








I
want to be a bit more concret:

 

With
_javascript_ you can create a window, after klicking a
button.

 



 

 

_javascript_
Code:




onClick=" alert('Hello');  ">  



 

 

I
want, that such a window appears, when errors occur. So I have to put code in the
 tag.

 

 



   

   
        
  • li>    html:messages>   ……some _javascript_ for a window      ul> logic:messagesPresent>       Dirk   -Ursprüngliche Nachricht- Von: Dirk Behrendt [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 31. Juli 2003 19:21 An: '[EMAIL PROTECTED]' Betreff: Show validation errors in an dialog   Hello!   What is necessary to show errors from validation not in a JSP , but in a dialog?   Dirk

RE: struts-el example app not working?

2003-07-31 Thread Steve Raeburn
Help > Contents >Core IDE Help > Tomcat Plugin > Tomcat Installation Node >
Setting Tomcat Installation Node Properties:

"IDE Integration Mode. Use this property to choose an IDE integration mode.
The default value is Full. In Minimum mode, the IDE will not modify the
configuration file in any way except those changes required to deploy your
web module. In this mode, some features of the IDE will be unavailable,
including HTTP monitoring and JSP debugging. In Full mode, all web module
development features are available, including HTTP monitoring, JSP
compilation, and JSP debugging. The web.xml file in your server will be
modified to support these features. To set IDE Integration mode, click on
the ellipses (...) in the right-hand column of the IDE Integration Mode row
and choose the appropriate button in the property editor."

Now you know as much as I do ;-)

Steve

> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 11:32 AM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: struts-el example app not working?
>
>
> Hi Steve,
>
> Going from Full Integration to minimum works as you describe.  As I am
> coming up to speed on the IDE what impact does changing the
> Integration have
> on development.
>
> Thanks,
> Barry
>
>
>
> - Original Message -
> From: "Steve Raeburn" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 30, 2003 10:09 PM
> Subject: RE: struts-el example app not working?
>
>
> > Well, I managed to get it running but I'm definitely not a convert to
> > Netbeans :-(
> >
> >   - In Netbeans, go to the Runtime tab and expand the Explorer
> view until
> > you see the 'Internal Tomcat' server.
> >   - Right click on it and change the IDE Integration Mode from Full to
> > Minimum.
> >
> > That seems to get it working. You could also look at the External Tomcat
> > Server feature as an alternative. There's information in the application
> > Help.
> >
> > I think this
>  is the
> > cause of the problem. In any case, this issue is with Netbeans
> integration
> > of Tomcat and not with Struts.
> >
> > Related information:
> > James Mitchell has written a guide to setting up a Struts project in
> > Netbeans (version 3.4)
> > . He's using Ant to
> > build and deploy the web application so that probably gets round the
> > problems by avoiding the IDE's build/deploy features.
> >
> > If you have access to WebSphere Studio it is IMHO a *much* more pleasant
> > experience than Netbeans and importing a WAR is
> straightforward. I haven't
> > tried Eclipse (on which Websphere Studio is based) with the
> Sysdeo plugin
> > for Tomcat, but that would be a cheaper (free!) option than WS Studio.
> >
> > Hope this works for you... now where's that uninstall option :-)
> >
> > Steve
> >
> > > -Original Message-
> > > From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> > > Sent: July 30, 2003 7:12 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: struts-el example app not working?
> > >
> > >
> > > I'll try to take a look at Netbeans sometime, but it may not be for a
> few
> > > days. If I have any success I'll post back to the list and copy
> > > you. If, in
> > > the meantime you find the problem, do post the result here.
> > >
> > > Steve
> > >
> > > > -Original Message-
> > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > Sent: July 30, 2003 5:51 PM
> > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > Subject: Re: struts-el example app not working?
> > > >
> > > >
> > > > Yep the stand alone (Tomcat 4.1) works fine.  Just install the
> > > > struts-el-exercise-taglib.war through
> > > > the tomcat manager and no problems.
> > > > Barry
> > > >
> > > > - Original Message -
> > > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, July 30, 2003 4:27 PM
> > > > Subject: RE: struts-el example app not working?
> > > >
> > > >
> > > > > 4.0.6 works for me. I don't remember the details, but I
> > > *think* Netbeans
> > > > has
> > > > > cropped up as a problem before.
> > > > > If you can, try it with a standalone version of Tomcat and
> > > > check the mail
> > > > > archives for Netbeans issues.
> > > > >
> > > > > Steve
> > > > >
> > > > >
> > > > > > -Original Message-
> > > > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > > > Sent: July 30, 2003 4:06 PM
> > > > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > > > Subject: Re: struts-el example app not working?
> > > > > >
> > > > > >
> > > > > > I am running Tomcat 4.0xx
> > > > > > (using netbeans 3.5 with Tomcat bundle)
> > > > > >
> > > > > > Barry
> > > > > >
> > > > > >
> > > > > >
> > > > > > - Original Message -
> > > > > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > > > > To: "Struts Users Ma

RE: extending Struts taglibs to indicate form field states

2003-07-31 Thread Steve Caswell
Any chance of you posting an example? This sounds like a solution to a requirement I 
have.

-Original Message-
From: Rob Leland [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:37 PM
To: Struts Users Mailing List
Subject: Re: extending Struts taglibs to indicate form field states


Mike Jasnowski wrote:

>>We use a mechanism that basically wraps a set of Struts Form/Form Fields in
>>
>>
>a tag that applies a set of XSLT
>  
>
>>templates to the body of the tag.  This enables use to add features like
>>
>>
>you describe w/o touching the Struts tags >themselves. We use it for custom
>error placement, highlighting form fields for required, or error conditions,
>etc..
>
>We also use this mechanism to share layout information for many of the
>forms, nice way to centralize this type of information.
>  
>

Cool !

-- 
-
Rob Leland (703-525-3580)


Choose a job you love, and you will never have to work a day of your life.
  
-Confucius.



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



Re: struts-el example app not working?

2003-07-31 Thread struts
I guess I can answer my own question.  Full integraton compiles the JSP
(runs faster).  Minimum integration does not compile the JSP (runs slower).

Barry


- Original Message -
From: "struts" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 11:32 AM
Subject: Re: struts-el example app not working?


> Hi Steve,
>
> Going from Full Integration to minimum works as you describe.  As I am
> coming up to speed on the IDE what impact does changing the Integration
have
> on development.
>
> Thanks,
> Barry
>
>
>
> - Original Message -
> From: "Steve Raeburn" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 30, 2003 10:09 PM
> Subject: RE: struts-el example app not working?
>
>
> > Well, I managed to get it running but I'm definitely not a convert to
> > Netbeans :-(
> >
> >   - In Netbeans, go to the Runtime tab and expand the Explorer view
until
> > you see the 'Internal Tomcat' server.
> >   - Right click on it and change the IDE Integration Mode from Full to
> > Minimum.
> >
> > That seems to get it working. You could also look at the External Tomcat
> > Server feature as an alternative. There's information in the application
> > Help.
> >
> > I think this  is
the
> > cause of the problem. In any case, this issue is with Netbeans
integration
> > of Tomcat and not with Struts.
> >
> > Related information:
> > James Mitchell has written a guide to setting up a Struts project in
> > Netbeans (version 3.4)
> > . He's using Ant to
> > build and deploy the web application so that probably gets round the
> > problems by avoiding the IDE's build/deploy features.
> >
> > If you have access to WebSphere Studio it is IMHO a *much* more pleasant
> > experience than Netbeans and importing a WAR is straightforward. I
haven't
> > tried Eclipse (on which Websphere Studio is based) with the Sysdeo
plugin
> > for Tomcat, but that would be a cheaper (free!) option than WS Studio.
> >
> > Hope this works for you... now where's that uninstall option :-)
> >
> > Steve
> >
> > > -Original Message-
> > > From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> > > Sent: July 30, 2003 7:12 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: struts-el example app not working?
> > >
> > >
> > > I'll try to take a look at Netbeans sometime, but it may not be for a
> few
> > > days. If I have any success I'll post back to the list and copy
> > > you. If, in
> > > the meantime you find the problem, do post the result here.
> > >
> > > Steve
> > >
> > > > -Original Message-
> > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > Sent: July 30, 2003 5:51 PM
> > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > Subject: Re: struts-el example app not working?
> > > >
> > > >
> > > > Yep the stand alone (Tomcat 4.1) works fine.  Just install the
> > > > struts-el-exercise-taglib.war through
> > > > the tomcat manager and no problems.
> > > > Barry
> > > >
> > > > - Original Message -
> > > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, July 30, 2003 4:27 PM
> > > > Subject: RE: struts-el example app not working?
> > > >
> > > >
> > > > > 4.0.6 works for me. I don't remember the details, but I
> > > *think* Netbeans
> > > > has
> > > > > cropped up as a problem before.
> > > > > If you can, try it with a standalone version of Tomcat and
> > > > check the mail
> > > > > archives for Netbeans issues.
> > > > >
> > > > > Steve
> > > > >
> > > > >
> > > > > > -Original Message-
> > > > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > > > Sent: July 30, 2003 4:06 PM
> > > > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > > > Subject: Re: struts-el example app not working?
> > > > > >
> > > > > >
> > > > > > I am running Tomcat 4.0xx
> > > > > > (using netbeans 3.5 with Tomcat bundle)
> > > > > >
> > > > > > Barry
> > > > > >
> > > > > >
> > > > > >
> > > > > > - Original Message -
> > > > > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > > > Sent: Wednesday, July 30, 2003 4:03 PM
> > > > > > Subject: RE: struts-el example app not working?
> > > > > >
> > > > > >
> > > > > > > Works fine for me with the 1.1 release version on Tomcat
4.1.24.
> > > > > > >
> > > > > > > What container are you running on?
> > > > > > >
> > > > > > > Steve
> > > > > > >
> > > > > > > > -Original Message-
> > > > > > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > > > > > Sent: July 30, 2003 3:52 PM
> > > > > > > > To: [EMAIL PROTECTED]
> > > > > > > > Subject: struts-el example app not working?
> > > > > > > >
> > > > > > > >
> > > > > > > > Hello,
> > > > > > > >
> > > > > > > > When testing the struts-el examp

Re: extending Struts taglibs to indicate form field states

2003-07-31 Thread Rob Leland
Mike Jasnowski wrote:

We use a mechanism that basically wraps a set of Struts Form/Form Fields in
   

a tag that applies a set of XSLT
 

templates to the body of the tag.  This enables use to add features like
   

you describe w/o touching the Struts tags >themselves. We use it for custom
error placement, highlighting form fields for required, or error conditions,
etc..
We also use this mechanism to share layout information for many of the
forms, nice way to centralize this type of information.
 

Cool !

--
-
Rob Leland (703-525-3580)
Choose a job you love, and you will never have to work a day of your life.
 
-Confucius.


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


RE: Any tool for struts?

2003-07-31 Thread Todd Fuller
Little bit of a learning curve, but I haven't seen anything faster.

MDE for Struts. Download from www.metanology.com

I am biased, of course...

Todd Fuller
Metanology Corporation
4625 Alexander Dr., Ste 105
Alpharetta, GA 30022
770.475.1301 Office
404.561.0294 Cell
www.metanology.com


-Original Message-
From: JavaXML Developer [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 12:52 PM
To: [EMAIL PROTECTED]
Subject: Any tool for struts?


Hello group,

I want to know if there is any tool available in the market to develop
struts applications faster?

Thanks,
Vicky


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



Re: struts-el example app not working?

2003-07-31 Thread struts
Hi Steve,

Going from Full Integration to minimum works as you describe.  As I am
coming up to speed on the IDE what impact does changing the Integration have
on development.

Thanks,
Barry



- Original Message -
From: "Steve Raeburn" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 10:09 PM
Subject: RE: struts-el example app not working?


> Well, I managed to get it running but I'm definitely not a convert to
> Netbeans :-(
>
>   - In Netbeans, go to the Runtime tab and expand the Explorer view until
> you see the 'Internal Tomcat' server.
>   - Right click on it and change the IDE Integration Mode from Full to
> Minimum.
>
> That seems to get it working. You could also look at the External Tomcat
> Server feature as an alternative. There's information in the application
> Help.
>
> I think this  is the
> cause of the problem. In any case, this issue is with Netbeans integration
> of Tomcat and not with Struts.
>
> Related information:
> James Mitchell has written a guide to setting up a Struts project in
> Netbeans (version 3.4)
> . He's using Ant to
> build and deploy the web application so that probably gets round the
> problems by avoiding the IDE's build/deploy features.
>
> If you have access to WebSphere Studio it is IMHO a *much* more pleasant
> experience than Netbeans and importing a WAR is straightforward. I haven't
> tried Eclipse (on which Websphere Studio is based) with the Sysdeo plugin
> for Tomcat, but that would be a cheaper (free!) option than WS Studio.
>
> Hope this works for you... now where's that uninstall option :-)
>
> Steve
>
> > -Original Message-
> > From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> > Sent: July 30, 2003 7:12 PM
> > To: Struts Users Mailing List
> > Subject: RE: struts-el example app not working?
> >
> >
> > I'll try to take a look at Netbeans sometime, but it may not be for a
few
> > days. If I have any success I'll post back to the list and copy
> > you. If, in
> > the meantime you find the problem, do post the result here.
> >
> > Steve
> >
> > > -Original Message-
> > > From: struts [mailto:[EMAIL PROTECTED]
> > > Sent: July 30, 2003 5:51 PM
> > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > Subject: Re: struts-el example app not working?
> > >
> > >
> > > Yep the stand alone (Tomcat 4.1) works fine.  Just install the
> > > struts-el-exercise-taglib.war through
> > > the tomcat manager and no problems.
> > > Barry
> > >
> > > - Original Message -
> > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, July 30, 2003 4:27 PM
> > > Subject: RE: struts-el example app not working?
> > >
> > >
> > > > 4.0.6 works for me. I don't remember the details, but I
> > *think* Netbeans
> > > has
> > > > cropped up as a problem before.
> > > > If you can, try it with a standalone version of Tomcat and
> > > check the mail
> > > > archives for Netbeans issues.
> > > >
> > > > Steve
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > > Sent: July 30, 2003 4:06 PM
> > > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > > Subject: Re: struts-el example app not working?
> > > > >
> > > > >
> > > > > I am running Tomcat 4.0xx
> > > > > (using netbeans 3.5 with Tomcat bundle)
> > > > >
> > > > > Barry
> > > > >
> > > > >
> > > > >
> > > > > - Original Message -
> > > > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > > Sent: Wednesday, July 30, 2003 4:03 PM
> > > > > Subject: RE: struts-el example app not working?
> > > > >
> > > > >
> > > > > > Works fine for me with the 1.1 release version on Tomcat 4.1.24.
> > > > > >
> > > > > > What container are you running on?
> > > > > >
> > > > > > Steve
> > > > > >
> > > > > > > -Original Message-
> > > > > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > > > > Sent: July 30, 2003 3:52 PM
> > > > > > > To: [EMAIL PROTECTED]
> > > > > > > Subject: struts-el example app not working?
> > > > > > >
> > > > > > >
> > > > > > > Hello,
> > > > > > >
> > > > > > > When testing the struts-el example I get the following error.
> > > > > > > The problem goes away
> > > > > > > if I remove:
> > > > > > >
> > > > > > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"
> > prefix="html-el" %>
> > > > > > >
> > > > > > > Of course this is useless because the html-el tags do not
> > > function.
> > > > > > >
> > > > > > > I have even tried incorporating the struts-html-el in my
> > > own app and
> > > > > > > included all jars from the struts 1.1 release, defined
> > > the el tld's
> > > in
> > > > > my
> > > > > > > web.xml and I get the same exact error.  Same partial
> > solution if
> > > > > > > I remove the
> > > > > > >
> > > > > 

RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Raible, Matt
It doesn't work in Mozilla/Netscape b/c it appears to be a IE-only menu,
notice the Javascript errors I get in Mozilla's Firebird (v 0.6.1):

Error: document.all has no properties
Source File:
javascript:toggleVis(document.all.branchDIV0,document.images.pointerBranch0)
;
Line: 1

"document.all" is an IE-only property.

Matt

-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 12:06 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Tree Menus --- HELP!!!




How come the example doesn't work with Netscape (v7.02 and my JavaScript is
turned on)??

I was thinking about using the Struts menus but I have users that are on
UNIX work workstations (Intranet app).  Is this common for the menus not to
work on Netscape?



-Original Message-
From: Todd Fuller [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 2:09 PM
To: [EMAIL PROTECTED]
Cc: Pat Quinn
Subject: RE: Dynamic Tree Menus --- HELP!!!

Pat,

Check out the Multi-level tree example at the URL below.

http://www2.metanology.com:8080/struts-examples-web/index.jsp

Todd Fuller
Metanology Corporation
4625 Alexander Dr., Ste 105
Alpharetta, GA 30022
770.475.1301 Office
404.561.0294 Cell
www.metanology.com


-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!


I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third
node will appear with a series of plus images.

---
Menu-Config.xml
---


  

  
  


   
   


   


  



-
JSP Code
-
<%@ taglib uri="/WEB-INF/struts-menu.tld" prefix="menu"%>






>From: "Raible, Matt" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: Dynamic Tree Menus --- HELP!!!
>Date: Thu, 31 Jul 2003 09:22:04 -0600
>
>I'm willing to help if you send me the code.  Which Displayer are you
>using?
>
>Matt
>
>-Original Message-
>From: Pat Quinn [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 31, 2003 9:20 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Dynamic Tree Menus --- HELP!!!
>
>
>Is anyone out there working with dynamic HTML trees at the moment (i.e.
>displaying data loaded from a data base) as i'm pulling my hair out here at
>the moment.
>
>I downloaded the source for Struts Menu and implemented a change to allow
>me
>
>to place a java bean with my tree menu details into HttpSession rather than
>loading it from the menu xml file. Every thing works fine until i tried to
>add triple nested node to the tree and it totally screws up presentation
>i.e. The node image is repeatedly displayed. Its not due to my changes as i
>tested it in the latest stable version and it fails also to render with the
>same results.
>
>I've also taken a look into using http://www.kobrix.com/ offering but their
>configuration requirements to integrate with struts seems abit too much for
>my liking.
>
>
>
>
>Any suggestions, or should i just go find the JavaScript i require
>elsewhere
>
>and wrap it with my own custom tag library
>
>
>
> >From: "Pat Quinn" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Dynamic Html Tree Menus - Java Beans.
> >Date: Thu, 31 Jul 2003 10:22:51 +0100
> >
> >I'm looking for a tag library to aid the rendering of a Tree Menu using
> >session/request stored objects.
> >I want to included the menu data as a Java Bean in HttpSession for each
> >user and then use tag libs in my JSP's. I've looked into the StrutsMenu
> >Offering for Dynamic Menus but it loads menu data from an XML file.
> >
> >Any ideas or am i better off to develop my own custom tag lib?
> >
> >_
> >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> >http://join.msn.com/?page=features/virus
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>_
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>-
>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]
>

_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus



RE: XHTML 1.0 Strict, XHTML 1.1 and validation errors with form tags

2003-07-31 Thread Raible, Matt
According to my tests, the JavaScript does not need to change to support
 rather than 

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15023

Matt

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 11:56 AM
To: Struts Users Mailing List
Subject: Re: XHTML 1.0 Strict, XHTML 1.1 and validation errors with form
tags


--- [EMAIL PROTECTED] wrote:
> Could someone provide a definitive answer on whether Struts 1.1 Final
> can
> actually generate compliant valid XHTML strict markup?
> 
> I have the  tag in my jsp's and the markup is great except
> for
> the  tag which is presented back to the browser.  I have checked
> the
> mail archive for this topic and haven't found this answer.  If it is
> possible to generate clean strict xhtml what am I missing to force the
>  tag to generate an id="X" attribute instead of a name="X"
> attribute
> in the form tag.

This is one area where XHTML strict is not supported yet.  I believe
there's an open enhancement request relating to the id vs. name issue.  I
haven't had time to look into the javascript changes required (if any) to
support this change.

David


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


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

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

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



RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Mike Jasnowski
It's not common for them not to work, but there might be a JavaScript error.
You can tell this if you type "javascript:" in your address bar, it will
show a console of errors for the NS browser. Plus the NS browsers are (IMHO)
historically very strict about the validity of the page, bad HTML won't
render in many cases.  Although I don't know what problem you are having
specifically.

-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:06 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Tree Menus --- HELP!!!




How come the example doesn't work with Netscape (v7.02 and my JavaScript is
turned on)??

I was thinking about using the Struts menus but I have users that are on
UNIX work workstations (Intranet app).  Is this common for the menus not to
work on Netscape?



-Original Message-
From: Todd Fuller [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:09 PM
To: [EMAIL PROTECTED]
Cc: Pat Quinn
Subject: RE: Dynamic Tree Menus --- HELP!!!

Pat,

Check out the Multi-level tree example at the URL below.

http://www2.metanology.com:8080/struts-examples-web/index.jsp

Todd Fuller
Metanology Corporation
4625 Alexander Dr., Ste 105
Alpharetta, GA 30022
770.475.1301 Office
404.561.0294 Cell
www.metanology.com


-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!


I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third
node will appear with a series of plus images.

---
Menu-Config.xml
---


  

  
  


   
   


   


  



-
JSP Code
-
<%@ taglib uri="/WEB-INF/struts-menu.tld" prefix="menu"%>






>From: "Raible, Matt" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: Dynamic Tree Menus --- HELP!!!
>Date: Thu, 31 Jul 2003 09:22:04 -0600
>
>I'm willing to help if you send me the code.  Which Displayer are you
>using?
>
>Matt
>
>-Original Message-
>From: Pat Quinn [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 31, 2003 9:20 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Dynamic Tree Menus --- HELP!!!
>
>
>Is anyone out there working with dynamic HTML trees at the moment (i.e.
>displaying data loaded from a data base) as i'm pulling my hair out here at
>the moment.
>
>I downloaded the source for Struts Menu and implemented a change to allow
>me
>
>to place a java bean with my tree menu details into HttpSession rather than
>loading it from the menu xml file. Every thing works fine until i tried to
>add triple nested node to the tree and it totally screws up presentation
>i.e. The node image is repeatedly displayed. Its not due to my changes as i
>tested it in the latest stable version and it fails also to render with the
>same results.
>
>I've also taken a look into using http://www.kobrix.com/ offering but their
>configuration requirements to integrate with struts seems abit too much for
>my liking.
>
>
>
>
>Any suggestions, or should i just go find the JavaScript i require
>elsewhere
>
>and wrap it with my own custom tag library
>
>
>
> >From: "Pat Quinn" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Dynamic Html Tree Menus - Java Beans.
> >Date: Thu, 31 Jul 2003 10:22:51 +0100
> >
> >I'm looking for a tag library to aid the rendering of a Tree Menu using
> >session/request stored objects.
> >I want to included the menu data as a Java Bean in HttpSession for each
> >user and then use tag libs in my JSP's. I've looked into the StrutsMenu
> >Offering for Dynamic Menus but it loads menu data from an XML file.
> >
> >Any ideas or am i better off to develop my own custom tag lib?
> >
> >_
> >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> >http://join.msn.com/?page=features/virus
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>_
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>-
>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]
>

_
MSN 8 with e-mail virus protection service: 

RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Bailey, Shane C.


How come the example doesn't work with Netscape (v7.02 and my JavaScript is
turned on)??

I was thinking about using the Struts menus but I have users that are on
UNIX work workstations (Intranet app).  Is this common for the menus not to
work on Netscape?



-Original Message-
From: Todd Fuller [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 2:09 PM
To: [EMAIL PROTECTED]
Cc: Pat Quinn
Subject: RE: Dynamic Tree Menus --- HELP!!!

Pat,

Check out the Multi-level tree example at the URL below.

http://www2.metanology.com:8080/struts-examples-web/index.jsp

Todd Fuller
Metanology Corporation
4625 Alexander Dr., Ste 105
Alpharetta, GA 30022
770.475.1301 Office
404.561.0294 Cell
www.metanology.com


-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!


I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third
node will appear with a series of plus images.

---
Menu-Config.xml
---


  

  
  


   
   


   


  



-
JSP Code
-
<%@ taglib uri="/WEB-INF/struts-menu.tld" prefix="menu"%>






>From: "Raible, Matt" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: Dynamic Tree Menus --- HELP!!!
>Date: Thu, 31 Jul 2003 09:22:04 -0600
>
>I'm willing to help if you send me the code.  Which Displayer are you
>using?
>
>Matt
>
>-Original Message-
>From: Pat Quinn [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 31, 2003 9:20 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Dynamic Tree Menus --- HELP!!!
>
>
>Is anyone out there working with dynamic HTML trees at the moment (i.e.
>displaying data loaded from a data base) as i'm pulling my hair out here at
>the moment.
>
>I downloaded the source for Struts Menu and implemented a change to allow
>me
>
>to place a java bean with my tree menu details into HttpSession rather than
>loading it from the menu xml file. Every thing works fine until i tried to
>add triple nested node to the tree and it totally screws up presentation
>i.e. The node image is repeatedly displayed. Its not due to my changes as i
>tested it in the latest stable version and it fails also to render with the
>same results.
>
>I've also taken a look into using http://www.kobrix.com/ offering but their
>configuration requirements to integrate with struts seems abit too much for
>my liking.
>
>
>
>
>Any suggestions, or should i just go find the JavaScript i require
>elsewhere
>
>and wrap it with my own custom tag library
>
>
>
> >From: "Pat Quinn" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Dynamic Html Tree Menus - Java Beans.
> >Date: Thu, 31 Jul 2003 10:22:51 +0100
> >
> >I'm looking for a tag library to aid the rendering of a Tree Menu using
> >session/request stored objects.
> >I want to included the menu data as a Java Bean in HttpSession for each
> >user and then use tag libs in my JSP's. I've looked into the StrutsMenu
> >Offering for Dynamic Menus but it loads menu data from an XML file.
> >
> >Any ideas or am i better off to develop my own custom tag lib?
> >
> >_
> >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> >http://join.msn.com/?page=features/virus
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>_
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>-
>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]
>

_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus



-
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: Could one figure out the context path in Servlet.init() method?

2003-07-31 Thread Jing Zhou
I see. I looked through the Servlet Spec 2.3 and no restrictions
are found to have multiple context paths mapped to one web
application. But how such capability is utilized in a servlet
container? I do not find information on how to map multiple
context paths to one web application. Is this container vendor
specific thing?

Another thought that is surprising me is that a web application
could not assume its context paths are *constants* in the
application life cycle. Is this assumption valid in general?
(Of course one should not change context paths very often
even if they could be changed.)

Jing

- Original Message - 
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Jing
Zhou" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 10:57 AM
Subject: Re: Could one figure out the context path in Servlet.init() method?


>
>
> On Thu, 31 Jul 2003, Jing Zhou wrote:
>
> >
> > I am wondering if there is a way to get the context path without
> > using init parameters during the initialization of a servlet.
> > Any clues? We have ServletContext.getRealPath(), but not
> > the ServletContext.getContextPath(). Why can't the ServletContext
> > tell me its context path?
> >
>
> You are assuming that a web applicaton only has one context path.  That
> does not have to be the case.
>
> > Jing
>
> Craig
>


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



RE: Session issue

2003-07-31 Thread Bailey, Shane C.


I solved the problem...
Dev and Prod should have the same environment  
:-)

Looks like the URL you are trying to rewrite is null.
Just a guess.


-Original Message-
From: Peter Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 2:04 PM
To: Struts Users Mailing List
Subject: Session issue

Hi all,

I am having problems with a new struts application in a production
environment.  The stacktrace below seems to indicate a session problem.  In
development, I am using a filestore, in production, its a jdbc store.  Has
anyone come across a stack trace like this?

Thanks in advance, 

Peter

2003-07-31 15:04:11 ApplicationDispatcher[/pos] Servlet.service() for
servlet 
jsp threw exception
org.apache.jasper.JasperException
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:254)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:356)
at 
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.jav
a:430)
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCon
textImpl.java:501)
at 
org.apache.jsp.wrapperLayout_jsp._jspService(wrapperLayout_jsp.java:2
45)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:210)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:356)
at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.
java:1069)
at 
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestP
rocessor.java:274)
at 
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(
TilesRequestProcessor.java:254)
at 
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Ti
lesRequestProcessor.java:309)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:279)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:356)
at 
org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatche
rValve.java:420)
at 
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatche
rValve.java:327)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:181)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466
)
at 
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:536)

- Root Cause -
java.lang.NullPoint

RE: Logical Server Name

2003-07-31 Thread Jimmy Emmanual
try adding the port # and a database name.



-Original Message-
From: Chirag Mehta [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 1:40 PM
To: struts-user
Subject: Logical Server Name


Hello,

Can anyone help?

I am using a BasicDataSource config in my config.xml file to reference a
sybase database. Using a logical server name, the code gives me a
IOException.

in my config.xml:

exception::
javax.servlet.ServletException: java.sql.SQLException: JZ003: Incorrect
URL format. URL: LNT_MAST

But if I use the physical server name I have no problems setting up the
DB Connection. (Well I haven't got any exceptions so far)

Has anyone got any idea of any code I may have to change for my app to
resolve from the logical server name? (The logical server name resolves
from a interface file which is on my network server)

Thanks a million

Chirag
--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.



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



RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Todd Fuller
Pat,

Check out the Multi-level tree example at the URL below.

http://www2.metanology.com:8080/struts-examples-web/index.jsp

Todd Fuller
Metanology Corporation
4625 Alexander Dr., Ste 105
Alpharetta, GA 30022
770.475.1301 Office
404.561.0294 Cell
www.metanology.com


-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!


I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third
node will appear with a series of plus images.

---
Menu-Config.xml
---


  

  
  


   
   


   


  



-
JSP Code
-
<%@ taglib uri="/WEB-INF/struts-menu.tld" prefix="menu"%>






>From: "Raible, Matt" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: Dynamic Tree Menus --- HELP!!!
>Date: Thu, 31 Jul 2003 09:22:04 -0600
>
>I'm willing to help if you send me the code.  Which Displayer are you
>using?
>
>Matt
>
>-Original Message-
>From: Pat Quinn [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 31, 2003 9:20 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Dynamic Tree Menus --- HELP!!!
>
>
>Is anyone out there working with dynamic HTML trees at the moment (i.e.
>displaying data loaded from a data base) as i'm pulling my hair out here at
>the moment.
>
>I downloaded the source for Struts Menu and implemented a change to allow
>me
>
>to place a java bean with my tree menu details into HttpSession rather than
>loading it from the menu xml file. Every thing works fine until i tried to
>add triple nested node to the tree and it totally screws up presentation
>i.e. The node image is repeatedly displayed. Its not due to my changes as i
>tested it in the latest stable version and it fails also to render with the
>same results.
>
>I've also taken a look into using http://www.kobrix.com/ offering but their
>configuration requirements to integrate with struts seems abit too much for
>my liking.
>
>
>
>
>Any suggestions, or should i just go find the JavaScript i require
>elsewhere
>
>and wrap it with my own custom tag library
>
>
>
> >From: "Pat Quinn" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Dynamic Html Tree Menus - Java Beans.
> >Date: Thu, 31 Jul 2003 10:22:51 +0100
> >
> >I'm looking for a tag library to aid the rendering of a Tree Menu using
> >session/request stored objects.
> >I want to included the menu data as a Java Bean in HttpSession for each
> >user and then use tag libs in my JSP's. I've looked into the StrutsMenu
> >Offering for Dynamic Menus but it loads menu data from an XML file.
> >
> >Any ideas or am i better off to develop my own custom tag lib?
> >
> >_
> >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> >http://join.msn.com/?page=features/virus
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>_
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>-
>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]
>

_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus



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



Session issue

2003-07-31 Thread Peter Smith
Hi all,

I am having problems with a new struts application in a production
environment.  The stacktrace below seems to indicate a session problem.  In
development, I am using a filestore, in production, its a jdbc store.  Has
anyone come across a stack trace like this?

Thanks in advance, 

Peter

2003-07-31 15:04:11 ApplicationDispatcher[/pos] Servlet.service() for
servlet 
jsp threw exception
org.apache.jasper.JasperException
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:254)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:356)
at 
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.jav
a:430)
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCon
textImpl.java:501)
at 
org.apache.jsp.wrapperLayout_jsp._jspService(wrapperLayout_jsp.java:2
45)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:210)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:356)
at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.
java:1069)
at 
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestP
rocessor.java:274)
at 
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(
TilesRequestProcessor.java:254)
at 
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Ti
lesRequestProcessor.java:309)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:279)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:356)
at 
org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatche
rValve.java:420)
at 
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatche
rValve.java:327)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:181)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466
)
at 
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:536)

- Root Cause -
java.lang.NullPointerException
at 
org.apache.catalina.connector.HttpResponseBase.isEncodeable(HttpRespo
nseBase.java:543)
at 
org.apache.catalina.connector.HttpResponseBase.encodeURL(HttpResponse
Base.java:1030)
at 
org.apache.catalina.connector.HttpResponseFacade.encodeURL(HttpRespon
seFacade.java:122)
  

Re: XHTML 1.0 Strict, XHTML 1.1 and validation errors with form tags

2003-07-31 Thread David Graham
--- [EMAIL PROTECTED] wrote:
> Could someone provide a definitive answer on whether Struts 1.1 Final
> can
> actually generate compliant valid XHTML strict markup?
> 
> I have the  tag in my jsp's and the markup is great except
> for
> the  tag which is presented back to the browser.  I have checked
> the
> mail archive for this topic and haven't found this answer.  If it is
> possible to generate clean strict xhtml what am I missing to force the
>  tag to generate an id="X" attribute instead of a name="X"
> attribute
> in the form tag.

This is one area where XHTML strict is not supported yet.  I believe
there's an open enhancement request relating to the id vs. name issue.  I
haven't had time to look into the javascript changes required (if any) to
support this change.

David


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


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

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



[OT] Problem with JSTL (using struts)

2003-07-31 Thread Charles Canning
Hey,

Sorry to send this to this list. If someone can recommend a better source
for help, please do. I am using JSTL and struts-el in a form, but the
foreach is not returning my values. If I use a scriplet, I see them. Here is
the scenario/code in same JSP

<%
List alist;
Iterator iterator;
MessageHeader mHeader;

alist = (List)request.getAttribute("headerList");
//get the iterator
iterator = alist.iterator();
//step through
while (iterator.hasNext() == true) {
mHeader = (MessageHeader)iterator.next();
%>
  sender <%=mHeader.getSender()%>
  subject <%=mHeader.getSubject()%>
  messageId <%=mHeader.getMessageId()%>
<%
}
%>


  

  


  

  
  




  
  

  
  

  
  

  
 


The scriplet shows all the fields, the JSTL/el tags show no values, but it
does have do the correct number of iterations through the list.

Any help would be greatly appreciated.

Chuck


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



Re: Design Question

2003-07-31 Thread Travis Stevens
Because the foward action should be completely dinamic.  The select 
action should know nothing concrete about any of the actions that use 
the functionality, otherwise one would have to edit the select action 
every time a new action is created that uses the select action.

[EMAIL PROTECTED] wrote:

Why not just define the forward action in the selectRecord action mapping 
element in your struts-config.xml?

shane 

Quoting Erik Price <[EMAIL PROTECTED]>:

 

Travis Stevens wrote:

   

As you can see, the select a record functionality is common.  To 
implement this I would like to create action classes specifically for 
the select a record interface.  One of the request parameters would be 
the action to forward the result to.  The GET request would look 
something like this:

 

/action/selectRecord?
   

recordSetName=name&finishedForwardAction=/action/combineRecord
 

This would:
1. display search fields
2. search / display results
3. redirect to the finishedForwardActionPage (would it be better to put 
the record in the session for the finshedForwardAction or just pass the 
id as a parameter)

Is this an acceptable implementation, or is there a better way?
 

I'm not saying that this is a better way, but it strikes me that 
selecting a record might not be something that you want to confine to 
Struts Actions -- for instance, someday down the road you might want to 
select a record from some other interface or even as a service from 
another application.  You might wish to abstract this even further than 
the level of Action, and make (for instance) a [POJO] class, such as 
RecordSelector, that performs this activity.

Then you can create Actions specific to your form interfaces, and when 
it is necessary to select a record, you can use this class to do the 
work (delegating the information from the Action to the class).  This is 
known as the Command design pattern (in fact Struts Actions are 
themselves an implementation of the Command design pattern, but they are 
tightly coupled to the servlet framework).



This may also spare you the process of supplying a parameter to indicate 
which Action this should ultimately be forwarded to, since you would 
just have the form submit to that Action and delegate the work to 
RecordSelector from inside of that Action.

Just a suggestion.



Erik

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





--
This mail sent through Toaster-Horde (http://qmailtoaster.clikka.com/)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 





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


RE: Cannot find bean error in any scope

2003-07-31 Thread Bailey, Shane C.


Does this fix the problem:

 

  
 
 


???



-Original Message-
From: Altug B. Altintas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 6:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Cannot find bean error in any scope 

Strange ! Now i have got no custom validation



***
public ActionErrors validate(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request) {

ActionErrors errors  = null ;
errors = super.validate(mapping,request);
return errors;
}

***

only call parent's validation method, but again it gives me

"javax.servlet.jsp.JspException: Cannot find bean error in any scope " 

Error occurs because of the code below, but why ? 


***
 

  
 
  
 


***

if change above code like this


***


***

Everything works fine.. 







-Original Message-
From: Altug B. Altintas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 12:16 PM
To: 'Struts Users Mailing List'
Subject: Cannot find bean error in any scope 


Hi, 
 
My form extends ValidationForm, and of course i have got validator-rules
and validation.xml. 
But when i want to make a custom valition in validate() method ,  i took
"javax.servlet.jsp.JspException: Cannot find bean error in any scope " 
 

My jsp page includes the code below to show the errors: 
 
*
 

  
 
  
 

*


overriding validate() method
 

*
 public ActionErrors validate(ActionMapping mapping,
 javax.servlet.http.HttpServletRequest request) {
 
  ActionErrors errors  = null ;
  errors = super.validate(mapping,request);
  try {
 
   
   if (errors == null) {
errors = new ActionErrors();
   }   
   
 
   Calendar c1 = dUtils.str2Calendar(startdate);
 
   Calendar c2 = dUtils.str2Calendar(enddate);
 
   // if enddate bigger then startdate then add error
   if ( !c1.before(c2) ) { // custom validation
errors.add(ActionErrors.GLOBAL_ERROR ,new
ActionError("errors.dateerror","test");
   }
  
// print out the errors
   Iterator it = errors.get();
   while ( it.hasNext() ) {
ActionError ae = (ActionError) it.next();
System.out.println("Errors  : " + ae.getKey() + " " );
int length = ae.getValues().length;
Object[] o = ae.getValues();
for (int i=0; i

RE: Need help for design

2003-07-31 Thread Bailey, Shane C.

Take a look: securityfilter.sourceforge.net
I am using it successfully.


-Original Message-
From: manglu [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 7:54 PM
To: [EMAIL PROTECTED]
Subject: Re: Need help for design

Anubhav

This should be simple

Use Container managed Security as specified in (J2EE)

Use Form based Login - login.jsp

and secure the JSPs which you want to by specifiying hte constraints in 
Web.xml
If the user accesses these secured JSPs then he would be automatically 
routed to login.jsp (if he/she has not been authenticated before)

The standard samples with TOmcat should show how this is done.

HTH
Manglu



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



XHTML 1.0 Strict, XHTML 1.1 and validation errors with form tags

2003-07-31 Thread jlord




Could someone provide a definitive answer on whether Struts 1.1 Final can
actually generate compliant valid XHTML strict markup?

I have the  tag in my jsp's and the markup is great except for
the  tag which is presented back to the browser.  I have checked the
mail archive for this topic and haven't found this answer.  If it is
possible to generate clean strict xhtml what am I missing to force the
 tag to generate an id="X" attribute instead of a name="X" attribute
in the form tag.

advTHANKSance


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



Logical Server Name

2003-07-31 Thread Chirag Mehta
Hello,

Can anyone help?

I am using a BasicDataSource config in my config.xml file to reference a
sybase database. Using a logical server name, the code gives me a
IOException.

in my config.xml:

exception::
javax.servlet.ServletException: java.sql.SQLException: JZ003: Incorrect
URL format. URL: LNT_MAST

But if I use the physical server name I have no problems setting up the
DB Connection. (Well I haven't got any exceptions so far)

Has anyone got any idea of any code I may have to change for my app to
resolve from the logical server name? (The logical server name resolves
from a interface file which is on my network server)

Thanks a million

Chirag
--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.


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

RE: extending Struts taglibs to indicate form field states

2003-07-31 Thread Mike Jasnowski
>We use a mechanism that basically wraps a set of Struts Form/Form Fields in
a tag that applies a set of XSLT
>templates to the body of the tag.  This enables use to add features like
you describe w/o touching the Struts tags >themselves. We use it for custom
error placement, highlighting form fields for required, or error conditions,
etc..

We also use this mechanism to share layout information for many of the
forms, nice way to centralize this type of information.

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 1:36 PM
To: Struts Users Mailing List
Subject: RE: extending Struts taglibs to indicate form field states


We use a mechanism that basically wraps a set of Struts Form/Form Fields in
a tag that applies a set of XSLT templates to the body of the tag.  This
enables use to add features like you describe w/o touching the Struts tags
themselves. We use it for custom error placement, highlighting form fields
for required, or error conditions, etc..

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Yann Cébron
Sent: Thursday, July 31, 2003 1:33 PM
To: [EMAIL PROTECTED]
Subject: Re: extending Struts taglibs to indicate form field states



> Im considering extending the Struts taglibs (specfically the form object
> tags). What Im thinking about doing is adding a "formStateObject" to my
> ActionForm beans and having it dictate the "state" of specifc elements of
a
> form. For example, if a particular field should be disabled, then I would
> add disable="true" to the parsed form tag. Other properties of my
> formStateObject include changing the css class of the object (to indicate
> which fields are required) and whether or not to display a form object. My
> intention is to clean up the JSP's that currently have logic tags wrapping
> code according to the values set in formStateObject.
>
> Has anyone else extended the taglibs in such a way?
> Opinions on this type of approach?

Try struts-layout:
http://struts.application-servers.com/

There are also some Bugzilla-tickets with attached patches regarding the
problem of marking input fields depending on their state.

HTH,
Yann




-
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: extending Struts taglibs to indicate form field states

2003-07-31 Thread Mike Jasnowski
We use a mechanism that basically wraps a set of Struts Form/Form Fields in
a tag that applies a set of XSLT templates to the body of the tag.  This
enables use to add features like you describe w/o touching the Struts tags
themselves. We use it for custom error placement, highlighting form fields
for required, or error conditions, etc..

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Yann Cébron
Sent: Thursday, July 31, 2003 1:33 PM
To: [EMAIL PROTECTED]
Subject: Re: extending Struts taglibs to indicate form field states



> Im considering extending the Struts taglibs (specfically the form object
> tags). What Im thinking about doing is adding a "formStateObject" to my
> ActionForm beans and having it dictate the "state" of specifc elements of
a
> form. For example, if a particular field should be disabled, then I would
> add disable="true" to the parsed form tag. Other properties of my
> formStateObject include changing the css class of the object (to indicate
> which fields are required) and whether or not to display a form object. My
> intention is to clean up the JSP's that currently have logic tags wrapping
> code according to the values set in formStateObject.
>
> Has anyone else extended the taglibs in such a way?
> Opinions on this type of approach?

Try struts-layout:
http://struts.application-servers.com/

There are also some Bugzilla-tickets with attached patches regarding the
problem of marking input fields depending on their state.

HTH,
Yann




-
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: extending Struts taglibs to indicate form field states

2003-07-31 Thread Yann Cébron

> Im considering extending the Struts taglibs (specfically the form object
> tags). What Im thinking about doing is adding a "formStateObject" to my
> ActionForm beans and having it dictate the "state" of specifc elements of
a
> form. For example, if a particular field should be disabled, then I would
> add disable="true" to the parsed form tag. Other properties of my
> formStateObject include changing the css class of the object (to indicate
> which fields are required) and whether or not to display a form object. My
> intention is to clean up the JSP's that currently have logic tags wrapping
> code according to the values set in formStateObject.
>
> Has anyone else extended the taglibs in such a way?
> Opinions on this type of approach?

Try struts-layout:
http://struts.application-servers.com/

There are also some Bugzilla-tickets with attached patches regarding the
problem of marking input fields depending on their state.

HTH,
Yann




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



RE: Any tool for struts?

2003-07-31 Thread Mike Jasnowski
Have you looked at Struts Console?
http://www.jamesholmes.com/struts/console/. It integrates with many major
IDE's.
There's also Struts Studio http://www.exadel.com/products_strutsstudio.htm.

Many major IDE's also seem to be moving to make Struts supported natively
(WLW, JDeveloper, WSAD, etc..)

-Original Message-
From: JavaXML Developer [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 12:52 PM
To: [EMAIL PROTECTED]
Subject: Any tool for struts?


Hello group,

I want to know if there is any tool available in the market to develop
struts applications faster?

Thanks,
Vicky


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



Re: Any tool for struts?

2003-07-31 Thread Jeff Kyser
My favorite is coffee :^)

On Thursday, July 31, 2003, at 11:52  AM, JavaXML Developer wrote:

Hello group,

I want to know if there is any tool available in the market to develop 
struts applications faster?

Thanks,
Vicky
-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


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


[OT]JSTL: int[][] & forEach

2003-07-31 Thread Mike Whittaker

BarChart_discrete is a session attribute of type BarChart
getHtmlMap is a method of this class that returns an int[][]


//^this line returns as expected







How can I iterate over int[x]? This just gives one iteration and 'item' is
null for that iteration
& int[][] has size [4][15]!

Where is a decent JSTL forum/list?

TIA
Mike W


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



Re: Any tool for struts?

2003-07-31 Thread James Holmes
Struts Console is pretty popular as it's free and plugs into virtually all
of the popular IDEs.

http://www.jamesholmes.com/struts/

You can also check the "Resources" section of the Struts site.  There are
several tool listings there.

-James


> Hello group,
>
> I want to know if there is any tool available in the market to develop
> struts applications faster?
>
> Thanks,
> Vicky
>
>
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software




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



Show validation errors in an dialog

2003-07-31 Thread Dirk Behrendt
Hello!
 
What is necessary to show errors from validation not in a JSP , but in a
dialog?
 
Dirk


Re: Any tool for struts?

2003-07-31 Thread Steve Muench
The BC4J Toy Store Demo (and its accompanying whitepaper)
help you understand what facilities that Oracle JDeveloper
has to offer for Struts developers.

Building a Web Store with Struts and BC4J (BC4J Toy Store Demo)
http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore

__
Steve Muench - Developer, Product Mgr, Java/XML Evangelist, Author
Simplify J2EE Development with the Oracle BC4J Framework
http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html
Dive into BC4J at http://radio.weblogs.com/0118231/
Building Oracle XML Apps, http://www.oreilly.com/catalog/orxmlapp
- Original Message - 
From: "JavaXML Developer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 18:52
Subject: Any tool for struts?


| Hello group,
|  
| I want to know if there is any tool available in the market to develop struts 
applications faster?
|  
| Thanks,
| Vicky
| 
| 
| -
| Do you Yahoo!?
| Yahoo! SiteBuilder - Free, easy-to-use web site design software

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



Re: Any tool for struts?

2003-07-31 Thread Adam Levine
Google is your friend:   "struts tools"

Also, there's an archived list of struts-user somewhere... Check the jakarta 
pages for more info.

From: JavaXML Developer <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Any tool for struts?
Date: Thu, 31 Jul 2003 09:52:25 -0700 (PDT)
Hello group,

I want to know if there is any tool available in the market to develop 
struts applications faster?

Thanks,
Vicky
-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


Re: Design Question

2003-07-31 Thread shane
Why not just define the forward action in the selectRecord action mapping 
element in your struts-config.xml?

shane 

Quoting Erik Price <[EMAIL PROTECTED]>:

> 
> 
> Travis Stevens wrote:
> 
> > As you can see, the select a record functionality is common.  To 
> > implement this I would like to create action classes specifically for 
> > the select a record interface.  One of the request parameters would be 
> > the action to forward the result to.  The GET request would look 
> > something like this:
> > 
> >
> /action/selectRecord?
recordSetName=name&finishedForwardAction=/action/combineRecord
> 
> > 
> > This would:
> > 1. display search fields
> > 2. search / display results
> > 3. redirect to the finishedForwardActionPage (would it be better to put 
> > the record in the session for the finshedForwardAction or just pass the 
> > id as a parameter)
> > 
> > 
> > Is this an acceptable implementation, or is there a better way?
> 
> I'm not saying that this is a better way, but it strikes me that 
> selecting a record might not be something that you want to confine to 
> Struts Actions -- for instance, someday down the road you might want to 
> select a record from some other interface or even as a service from 
> another application.  You might wish to abstract this even further than 
> the level of Action, and make (for instance) a [POJO] class, such as 
> RecordSelector, that performs this activity.
> 
> Then you can create Actions specific to your form interfaces, and when 
> it is necessary to select a record, you can use this class to do the 
> work (delegating the information from the Action to the class).  This is 
> known as the Command design pattern (in fact Struts Actions are 
> themselves an implementation of the Command design pattern, but they are 
> tightly coupled to the servlet framework).
> 
> 
> 
> This may also spare you the process of supplying a parameter to indicate 
> which Action this should ultimately be forwarded to, since you would 
> just have the form submit to that Action and delegate the work to 
> RecordSelector from inside of that Action.
> 
> Just a suggestion.
> 
> 
> 
> Erik
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




--
This mail sent through Toaster-Horde (http://qmailtoaster.clikka.com/)

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



Re: Design Question

2003-07-31 Thread Erik Price


Travis Stevens wrote:

As you can see, the select a record functionality is common.  To 
implement this I would like to create action classes specifically for 
the select a record interface.  One of the request parameters would be 
the action to forward the result to.  The GET request would look 
something like this:

/action/selectRecord?recordSetName=name&finishedForwardAction=/action/combineRecord 

This would:
1. display search fields
2. search / display results
3. redirect to the finishedForwardActionPage (would it be better to put 
the record in the session for the finshedForwardAction or just pass the 
id as a parameter)

Is this an acceptable implementation, or is there a better way?
I'm not saying that this is a better way, but it strikes me that 
selecting a record might not be something that you want to confine to 
Struts Actions -- for instance, someday down the road you might want to 
select a record from some other interface or even as a service from 
another application.  You might wish to abstract this even further than 
the level of Action, and make (for instance) a [POJO] class, such as 
RecordSelector, that performs this activity.

Then you can create Actions specific to your form interfaces, and when 
it is necessary to select a record, you can use this class to do the 
work (delegating the information from the Action to the class).  This is 
known as the Command design pattern (in fact Struts Actions are 
themselves an implementation of the Command design pattern, but they are 
tightly coupled to the servlet framework).



This may also spare you the process of supplying a parameter to indicate 
which Action this should ultimately be forwarded to, since you would 
just have the form submit to that Action and delegate the work to 
RecordSelector from inside of that Action.

Just a suggestion.



Erik

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


Any tool for struts?

2003-07-31 Thread JavaXML Developer
Hello group,
 
I want to know if there is any tool available in the market to develop struts 
applications faster?
 
Thanks,
Vicky


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

extending Struts taglibs to indicate form field states

2003-07-31 Thread Witbeck, Shane
Im considering extending the Struts taglibs (specfically the form object
tags). What Im thinking about doing is adding a "formStateObject" to my
ActionForm beans and having it dictate the "state" of specifc elements of a
form. For example, if a particular field should be disabled, then I would
add disable="true" to the parsed form tag. Other properties of my
formStateObject include changing the css class of the object (to indicate
which fields are required) and whether or not to display a form object. My
intention is to clean up the JSP's that currently have logic tags wrapping
code according to the values set in formStateObject.

Has anyone else extended the taglibs in such a way? 
Opinions on this type of approach?

Thanks,

Shane

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



  1   2   >