Re: eclips IDE

2003-09-12 Thread virupaksha
Thank you rahul...
R u from india, b'coz ur name sounds like indian name..?

Regards,
viru
- Original Message - 
From: "Rahul" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, September 13, 2003 11:00 AM
Subject: Re: eclips IDE


> You can download the Eclipse IDE at
> http://www.eclipse.org/downloads/index.php
> And, You can find a JSP plugin at http://www.objectlearn.com/
> 
> cheers :)
> rahul
> 
> 
> - Original Message - 
> From: "virupaksha" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Saturday, September 13, 2003 2:50 PM
> Subject: eclips IDE
> 
> 
> Dear All,
> 
> Can any one please tell me where i can download Eclips IDE for JSP ..
> 
> 
> Regards,
> viru
> 
> 
> 
> 
> 
> -
> 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: eclips IDE

2003-09-12 Thread Rahul
You can download the Eclipse IDE at
http://www.eclipse.org/downloads/index.php
And, You can find a JSP plugin at http://www.objectlearn.com/

cheers :)
rahul


- Original Message - 
From: "virupaksha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, September 13, 2003 2:50 PM
Subject: eclips IDE


Dear All,

Can any one please tell me where i can download Eclips IDE for JSP ..


Regards,
viru





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



eclips IDE

2003-09-12 Thread virupaksha
Dear All,

Can any one please tell me where i can download Eclips IDE for JSP ..


Regards,
viru




How I created a Struts search facility

2003-09-12 Thread Marco Tedone
Hi , I would like to share with you the solution I chose at the end to
create a search facility for my Struts application. Basically, I followed
the Erik's suggestion to realize something independent from the actual
Struts architectural choice (Tiles, , and so on), and a couple
of Robert Taylor's email gave me the inspiration. Particularly, I realized
that if I could simulate in someway a request to a Struts Action and write
the response content to a file, well, I had a file ready to be indexed by
Lucene. I had a look at the Java Cookbook, and Darwin gave me the solution:

1) I created a Struts Action which reads all the Actions in the
configuration file which have a parameter forwarding to a jsp page and
creates a collection with those information;

2) I created a Session bean which receives this collection as parameter
(thus, a collection of Action mappings, like
http://myserver/myapp/Login.do), reads the stream for each URL and saves the
content in a file. Here I had a good idea: to name the file with the same
name as the action, only replacing the protocol separator with '@' and the
folder separator with '_' (underscore). The result is a folder with files
containing the real HTML as we would see in the source after visiting a
link, named [EMAIL PROTECTED];

3) I run the real Lucene index, pointing to the folder where all the above
mentioned files are located;

4) I run a query

5) I convert back the returned paths replacing '@' with ':' and '_' with
'/'.

Simple as that: I now have a collection of actions which the user can click
on, which will result in HTML page containing the content the user was
interested in.

This is only the beginning: obviously many optimization may be done: for
instance caching the results, giving the possibility to choose the
separators (both for protocol and folder), organizing the configuration
information in a XML configuration file and so on...

Hope this will help,

Marco




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



Re: sslext can only get it to post

2003-09-12 Thread Stephane Grenier
Hello Max.

Thank you for the information. You cleared up some vagueness in my
understanding. However let me expand more into the details. The thing is I'm
not sure how to actually implement what you have just said, I actually think
that is what I'm currently doing which it is obviously not...

If you don't mind I'm sending you my relevant chunks of code. I would like
to have the shopping cart page not secure, but once moving to the checkout
section to start the ssl security.

Struts-config.xml







 
 
  
  
  
 
   
 
  
 


  



  

I've tried to play with the secure settings, could you confirm these ? I
can't seem to make the app work correctly unless it's as the above
specified.

The action classes currently only contain :

System.out.println("... whichAction");
return (mapping.findForward("success"));

and the formpages are very basic. The first page, shoppingCart.jsp:







I didn't use the sslext:form tag since it doesn't need to be encrypted. Also
I know the action says for it to be secured, and this to me doesn't quite
make sense, but it was the only way I could make it work.

Lastly the checkout.jsp






I played with the sslext:pageScheme tag and I as I understand this is mostly
a check to verify that the page is indeed secure, in case someone came in
from just the address or what have you.

And btw, the server.xml is :



  

Thank you for the help,
Stephane



- Original Message -
From: "Max Cooper" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Stephane
Grenier" <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 5:41 PM
Subject: Re: sslext can only get it to post


> Stephane,
>
> The parameters are getting appended to the URL because sslext is doing a
> redirect. So the POST is probably working, but then sslext thinks the
> request should have arrived on the other port, and since you can't do a
POST
> in a redirect, sslext appends the POSTed data to the URL as a query string
> and sends that as a redirect. Finally, the redirect comes in as a GET with
> the params on the query string. The solution is to configure the app so
that
> the form will POST to the right port (i.e. have sslext write an absolute
URL
> for you) and won't have to redirect.
>
> The real strength of sslext is that you can specify which actions are
> secure, and then as long as you use the sslext tags to navigate to that
> action (either with a link or a form tag), sslext will get you there
WITHOUT
> HAVING TO DO A REDIRECT. That last part is important -- in my opinion, the
> app should be written such that sslext never has to do a redirect. It will
> do redirects for your convenience, but that is inefficient, turns POSTs
into
> GETs, and has some security problems (there is no point in making a page
> secure if you are going to submit a form without SSL and then redirect it
to
> the SSL port).
>
> An alternative approach is to "dip" your site one level deeper in SSL. For
> instance, if you want a form submittal to be secure, you can dip your site
> in the SSL a little deeper by specifying that BOTH the request that
displays
> the form and the form submittal request itself are secure. Technically,
you
> don't need to secure the request that displays the form, but by making it
> secure you avoid the redirect on the form submittal since you are already
on
> the secure port. If you end up getting a redirect at form submittal, the
> effort to secure that form has been a folly since the form data has
already
> passed over the network unencrypted twice and sticks in the browser's
> history after the redirect. I don't like this approach in most instances,
> and sslext gives you the power to do better without much effort. Here are
> some reasons I don't like it:
> 1) it is inefficient since it relies on using redirects to switch ports
> 2) it is inefficient since it requires sending more data over SSL than
> necessary (debatable)
> 3) it's too easy to inadvertently create security holes by forgetting to
> make the "display form" request secure
> 4) it is messy since you end up specifying which pages should be secure in
> several different ways (as opposed to ONLY doing it in struts-config.xml)
>
> Securing the "display form" request actually is appropriate in many
> instances, even though that request doesn't technically need to be
> encrypted. Users often want to get some feedback that they are working
> securely before filling out the form. But you can still achieve this goal
> without resorting to redirects.
>
> Of course doing it the "right" way requires that you use the sslext link
and
> form tags all over the place (any time the request could change ports),
> which can be hard to remember sometimes if you are used to the Struts
> versions. The sslext versions aren't any harder to use (just a few
> additional optional attributes); it's just remembering to use them in the
> first place that can be problematic. For this reason, I would

Remember menu node

2003-09-12 Thread Naresh Chapani \(Sympatico\)
I am new to struts.
I am using tiles and I am creating dynamic side menu using JavaBaen. When I
click a link in side menu it expands and displays link below it.  Then I
clicks the link which will display the contents in body area but my side
menu is redisplayed as original and the link which I expanded is contracted
automatically.  Is there any mechanism through which the system can remember
the status of side menu?

TIA

Naresh


RE: [Fwd: [XHTML] Default submit button]

2003-09-12 Thread Hanning, Peter
Andrew,

I can't remember all the details now, but I think I solved a similar issue
in this way. Put something like the following before the cancel and submit
buttons.



spacer.gif is a transparent 1x1 pixel gif image. The above input element
should act like a submit button with the look and feel of the custom image
supplied. Whatever you normally do for your Submit button, do also for
TransparentSubmit. This way, you should be able to put the cancel button
before the submit button.

HTH,
Peter

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 8:57 AM
To: Struts Users Mailing List
Subject: RE: [Fwd: [XHTML] Default submit button]


Thanks for your help. :-)

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 September 2003 23:53
To: Struts Users Mailing List
Subject: Re: [Fwd: [XHTML] Default submit button]


I haven't been able to find out anything. As far as I can tell from the
W3C recommendation, there is no recommendation about making one or other
submit button on a form the default.

I asked on the CSS list I use, and they said I was OT and just said what
I repeated above. So if you were hoping there was a style
default-submit:true, you're outa luck.

I've been thinking of making an invisible submit button that would
return false and therefore not cause a submit. But that won't help you.

Adam

On 09/12/2003 05:17 PM Andrew Hill wrote:
> Thanks Adam.
>
> Ive swapped them round now, works a charm :-)
>
> I still wonder if there is any other way to specify the default though?
>
> regards
> Andrew
>
> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: Friday, 12 September 2003 23:12
> To: Struts Users Mailing List
> Subject: [Fwd: [XHTML] Default submit button]
>
>
> Hi Andrew
> I believe your first submit button as the HTML appears is the default.
>
> Do this mean your cancel button is before your submit button? Seems
strange.
>
>
> Adam
>
>  Original Message 
> From: Andrew Hill <[EMAIL PROTECTED]>
> To: Struts <[EMAIL PROTECTED]>
> Subject: [XHTML] Default submit button
> Date: Fri, 12 Sep 2003 13:18:51 +0800
>
> Hopefully a quick & simple question: my page has a Cancel and a Submit
> button, both of which are input fields of type submit. At the moment the
> cancel button appears to be the 'default' - so I have to explicitly click
> save to save instead of just anyhow hitting the enter key. How to make
Save
> the default button?
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> struts 1.1 + tomcat 4.1.27 + java 1.4.2
> Linux 2.4.20 RH9
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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


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



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



remover seesion objetc in Scaffold

2003-09-12 Thread Lázaro Miguel Fung
Hi,

How I can remover a session object using scaffold package.

Any help will be highly apretiated.

TIA
Miguel

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



validating dates as Dates, or Strings?

2003-09-12 Thread Mick Knutson
I have a Value Object with java.sql.Dates, and I use String's on the front
end. I do a simple conversion, but I now need to compare a starting and
ending Date.
How can I do this with the Validation?

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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




Re: Tomcat 4.1 -> 5.0 Web-app Porting

2003-09-12 Thread Craig R. McClanahan
On Fri, 12 Sep 2003 [EMAIL PROTECTED] wrote:

> Date: Fri, 12 Sep 2003 16:01:57 -0500
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Tomcat 4.1 -> 5.0 Web-app Porting
>
> Hi,
> I am trying to port a web-application originally written with Tomcat 4.1 to
> Tomcat 5.0. The application uses struts and throws the following exception
> when launched:
>
> >>
> The server encountered an internal error () that prevented it from
> fulfilling this request.
>
>
> exception
> java.lang.NullPointerException
>
> org.apache.jasper.runtime.TagHandlerPool.reuse(TagHandlerPool.java:176)
>  com.acterna.cable.rda.index_jsp.
> _jspx_meth_bean_message_0(index_jsp.java:119)
>  com.acterna.cable.rda.index_jsp._jspService(index_jsp.java:67)
>
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >>
>

Which specific version of Tomcat 5.0.x are you trying?  I seem to recall
that there were a couple of bugs in the tag pooling code that could bite
you in a page with lots of tags (typical of Struts apps), but that these
bugs were fixed in 5.0.9.

If that doesn't fix the problem, you can also turn off tag pooling with a
servlet init parameter -- read the docs in "$CATALINA_HOME/conf/web.xml"
for which one needs to be set.

Craig

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



RE: error pages, actions, and tiles

2003-09-12 Thread Dan Snider
Hi Susan,

I get no socket errors even if I point to the very error content page I use
in the tile definition. 

What is odd to me is that the exceptions are thrown upon every request, not
just in response to an error. This would imply the error handling logic, to
some degree, is evaluated upon every request. I can't readily see why that
is necessary...

Dan

> -Original Message-
> From: Susan Bradeen [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 4:02 PM
> To: Struts Users Mailing List
> Subject: RE: error pages, actions, and tiles
> 
> 
> Hi Dan,
> 
> Did you get anywhere on this? I just put in a couple of error page 
> definitions in my web.xml to see what happens, and it works 
> ok for me. 
> Here's what I have, basically just what you have:
> 
> web.xml:
>   
> 404
> /prompterrors.do
>   
> 
> 400
> /prompterrors.do
>   
> 
> struts-config.xml:
> path="/prompterrors" 
>type="org.apache.struts.actions.ForwardAction" 
>parameter=".regError" />
> 
> tiles-defs.xml:
> 
>
> 
>
> 
> Do you get the socket errors if you specify a straight JSP 
> file, instead 
> of a tile/action for the error page location attribute? I 
> wonder if all 
> web servers interpret the location attribute the same way.
> 
> Susan 
> 
> 
> On 09/12/2003 12:42:35 PM Dan Snider wrote:
> 
> > Sorry, I'm actually using the same technique for other 
> errors. I wanted 
> to
> > give a representative case but accidentally grabbed the 400 error 
> definition
> > from struts-config.xml. The struts-config also contains:
> > 
> >  > type="org.apache.struts.actions.ForwardAction"
> > parameter=".error.404.page"
> > path="/error/404" />
> > 
> > Dan
> > 
> > > -Original Message-
> > > From: Susan Bradeen [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, September 12, 2003 12:25 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: error pages, actions, and tiles
> > >
> > >
> > > First of all, unless they are email typos, you've got 404s
> > > and 400s in
> > > your definitions. Should the 400s be 404s?
> > >
> > > Susan Bradeen
> > >
> > > On 09/12/2003 11:41:49 AM Dan Snider wrote:
> > >
> > > > Hello,
> > > >
> > > > I am using Struts 1.1 and Tiles and I would like to forward
> > > error-pages
> > > to a
> > > > tile-composing action.
> > > >
> > > > web.xml:
> > > > 
> > > > 404
> > > > /error/404.do
> > > > 
> > > >
> > > > struts-config.xml:
> > > >  > > > type="org.apache.struts.actions.ForwardAction"
> > > > parameter=".error.400.page"
> > > > path="/error/400" />
> > > >
> > > > From a user standpoint, it appears works but I now get 
> the following
> > > > exceptions upon every request, valid or not.
> > > >
> > > > ErrorDispatcherValve[localhost]: Exception Processing
> > > > ErrorPage[errorCode=404, location=/error/404.do]
> > > java.net.SocketException:
> > > > Software caused connection abort: socket write error
> > > > ...
> > > > ErrorDispatcherValve[localhost]: Exception Processing
> > > > ErrorPage[errorCode=404, location=/error/404.do]
> > > > ErrorDispatcherValve[localhost]: Exception Processing
> > > > ErrorPage[errorCode=404, location=/error/404.do]
> > > > ...
> > > > java.net.SocketException: Software caused connection abort:
> > > socket write
> > > > error
> > > > ...
> > > > java.net.SocketException: Software caused connection abort:
> > > socket write
> > > > error
> > > > ...
> > > >
> > > > Any ideas?
> > > >
> > > > Thanks,
> > > >
> > > > Dan
> > > >
> > > >
> > > 
> -
> > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > >
> > >
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: sslext can only get it to post

2003-09-12 Thread Max Cooper
Stephane,

The parameters are getting appended to the URL because sslext is doing a
redirect. So the POST is probably working, but then sslext thinks the
request should have arrived on the other port, and since you can't do a POST
in a redirect, sslext appends the POSTed data to the URL as a query string
and sends that as a redirect. Finally, the redirect comes in as a GET with
the params on the query string. The solution is to configure the app so that
the form will POST to the right port (i.e. have sslext write an absolute URL
for you) and won't have to redirect.

The real strength of sslext is that you can specify which actions are
secure, and then as long as you use the sslext tags to navigate to that
action (either with a link or a form tag), sslext will get you there WITHOUT
HAVING TO DO A REDIRECT. That last part is important -- in my opinion, the
app should be written such that sslext never has to do a redirect. It will
do redirects for your convenience, but that is inefficient, turns POSTs into
GETs, and has some security problems (there is no point in making a page
secure if you are going to submit a form without SSL and then redirect it to
the SSL port).

An alternative approach is to "dip" your site one level deeper in SSL. For
instance, if you want a form submittal to be secure, you can dip your site
in the SSL a little deeper by specifying that BOTH the request that displays
the form and the form submittal request itself are secure. Technically, you
don't need to secure the request that displays the form, but by making it
secure you avoid the redirect on the form submittal since you are already on
the secure port. If you end up getting a redirect at form submittal, the
effort to secure that form has been a folly since the form data has already
passed over the network unencrypted twice and sticks in the browser's
history after the redirect. I don't like this approach in most instances,
and sslext gives you the power to do better without much effort. Here are
some reasons I don't like it:
1) it is inefficient since it relies on using redirects to switch ports
2) it is inefficient since it requires sending more data over SSL than
necessary (debatable)
3) it's too easy to inadvertently create security holes by forgetting to
make the "display form" request secure
4) it is messy since you end up specifying which pages should be secure in
several different ways (as opposed to ONLY doing it in struts-config.xml)

Securing the "display form" request actually is appropriate in many
instances, even though that request doesn't technically need to be
encrypted. Users often want to get some feedback that they are working
securely before filling out the form. But you can still achieve this goal
without resorting to redirects.

Of course doing it the "right" way requires that you use the sslext link and
form tags all over the place (any time the request could change ports),
which can be hard to remember sometimes if you are used to the Struts
versions. The sslext versions aren't any harder to use (just a few
additional optional attributes); it's just remembering to use them in the
first place that can be problematic. For this reason, I would REALLY like to
see sslext integrated into the Struts core. The only effect on users would
be that they could now specify that an action (mapping) is to be secure,
which is just how it should work.

Holy crap, that turned into a bit of a rant. :-) Well, I hope you find the
solution to your problem in there somewhere, and that perhaps some of this
additional info is useful to you or other list members.

-Max


- Original Message - 
From: "Stephane Grenier" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 11:06 AM
Subject: sslext can only get it to post


Hello all.

I've added sslext to my struts application. However I can't seem to get it
to post (the parameters are appended to the url). In the jsp, the form tag
is:

   

So as far as I can tell it should be a post. If I change the tabs from
sslext to html then it puts the action in the url
(http://localhost:8080/ShoppingCartAction.do). If I put the sslext it puts
the jsp, the session id, and all the parameters.

Thank you,
Stephane



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



RE: Easy Question

2003-09-12 Thread Michael Ruppin
Funny you should mention that, the thread I provided discusses a caveat with that very 
Object

Edgar P Dollin <[EMAIL PROTECTED]> wrote:Boolean form properties are cool too (at 
least in my experience)...

Edgar

> -Original Message-
> From: Michael Ruppin [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 12, 2003 3:14 PM
> To: Struts Users Mailing List
> Subject: RE: Easy Question
> 
> 
> Non-String Form bean properties are evil though, you'll thank 
> yourself later if you use Strings. As long as the String is 
> set to something sensible like "true" or "false", your 
> checkbox will be properly set.
> 
> I'm sure there are ample posts on the pros & cons of this 
> approach, here's one pro thread: 
> http://marc.theaimsgroup.com/?l=struts-user&m=> 106159073522015&w=2
> 
> m
> 
> "Slattery, Tim - BLS" wrote:
> > Sorry for emailing so many questions. My last one (i promise) is,
> > how do I set an to display as checked?
> 
> The "property" attribute of the tag should point to a boolean 
> property of the FormBean. If that property is "true" the box 
> will be checked.
> 
> --
> Tim Slattery
> [EMAIL PROTECTED]
> 
> 
> -
> 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
> 

-
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: Easy Question

2003-09-12 Thread Edgar P Dollin
Boolean form properties are cool too (at least in my experience)...

Edgar

> -Original Message-
> From: Michael Ruppin [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 12, 2003 3:14 PM
> To: Struts Users Mailing List
> Subject: RE: Easy Question
> 
> 
> Non-String Form bean properties are evil though, you'll thank 
> yourself later if you use Strings.  As long as the String is 
> set to something sensible like "true" or "false", your 
> checkbox will be properly set.
>  
> I'm sure there are ample posts on the pros & cons of this 
> approach, here's one pro thread: 
> http://marc.theaimsgroup.com/?l=struts-user&m=> 106159073522015&w=2
>  
> m
> 
> "Slattery, Tim - BLS" <[EMAIL PROTECTED]> wrote:
> > Sorry for emailing so many questions. My last one (i promise) is,
> > how do I set an to display as checked?
> 
> The "property" attribute of the tag should point to a boolean 
> property of the FormBean. If that property is "true" the box 
> will be checked.
> 
> --
> Tim Slattery
> [EMAIL PROTECTED]
> 
> 
> -
> 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
> 

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



Tomcat 4.1 -> 5.0 Web-app Porting

2003-09-12 Thread prashant . budhale
Hi,
I am trying to port a web-application originally written with Tomcat 4.1 to
Tomcat 5.0. The application uses struts and throws the following exception
when launched:

>>
The server encountered an internal error () that prevented it from
fulfilling this request.


exception
java.lang.NullPointerException

org.apache.jasper.runtime.TagHandlerPool.reuse(TagHandlerPool.java:176)
 com.acterna.cable.rda.index_jsp.
_jspx_meth_bean_message_0(index_jsp.java:119)
 com.acterna.cable.rda.index_jsp._jspService(index_jsp.java:67)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>>



Relevant Index.jsp and index_jsp code is as follows:


>>
index.jsp
--
<[EMAIL PROTECTED] contentType="text/html"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

 


index_jsp.java (line 67)
---
  org.apache.struts.taglib.html.HtmlTag _jspx_th_html_html_0
= (org.apache.struts.taglib.html.HtmlTag)
_jspx_tagPool_html_html.get(org.apache.struts.taglib.html.HtmlTag.class);

>>


I am not using any actions at this time. I copied new strut libraries
shipped with Tomcat 5.0 to the application's WEB-IN/lib folder and my
struts-config.xml looks like this:


>>
struts-config.xml
-















>>


Am I missing anything? Any help would be greatly appreciated.

Thanks,
-Prashant



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



Re: Mapping/Path Question

2003-09-12 Thread Hunter Hillegas
No, I am only using the default module in this web-app.

Should I use a different module for the wireless part? Would that be the
best way to handle it?

Hunter

> From: "Susan Bradeen" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Date: Fri, 12 Sep 2003 16:40:27 -0400
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Subject: Re: Mapping/Path Question
> 
> Hunter,
> 
> Are you using a module for the wireless portion of  your application? If
> so, then, I think, that the actions you specify in those pages will  need
> to be defined in your struts-module-config.xml, instead of a base
> struts-config.xml. It kind of looks like the page in your /sample
> directory worked because it is in the default module, but the wireless one
> doesn't work because it is in a separate module. Maybe??
> 
> Susan Bradeen
> 
> On 09/12/2003 03:29:01 PM Hunter Hillegas wrote:
> 
>> I gave that a try and ended up with identical results.
>> 
>> Thanks for trying.
>> 
>> Hunter
>> 
>>> From: "Robert Taylor" <[EMAIL PROTECTED]>
>>> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>> Date: Fri, 12 Sep 2003 15:19:15 -0400
>>> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>> Subject: RE: Mapping/Path Question
>>> 
>>> Can you do something like this?
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> robert
>>> 
 -Original Message-
 From: Hunter Hillegas [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 12, 2003 2:25 PM
 To: Struts List
 Subject: Mapping/Path Question
 
 
 Hello.
 
 We are adding a wireless portion to our site. The wireless pages live
> in a
 subdirectory:
 /wireless/micro_browser/sample
 
 Anyway, in one of the pages in that directory I tried to call an
 Action like
 this:
 
 
 This fails with the following error:
 11:20:26,020 ERROR [RequestProcessor] Invalid path
 /wireless/micro_browser/PrepareSampleRequest was requested
 
 I'm a bit confused because I can call that same action from a file
> that
 lives in:
 /sample
 without any other path info (i.e. no /PrepareSampleRequest.do - no
> forward
 slash at the beginning).
 
 My action is defined as follows:
 >>> type="com.jacobstern.actions.sample.PrepareSampleRequestAction"
 parameter="/sample/create_sample_request2.jsp" scope="request"
 validate="false"/>
 
 So, I'm sure I'm doing something incorrectly... But I'm not sure
 what. I've
 experimented with a few different ideas.
 
 Can I set it up to work the way it is specified now in the pages?
 
 Any help is appreciated.
 
 Thanks,
 Hunter
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Mapping/Path Question

2003-09-12 Thread Susan Bradeen
Hunter,

Are you using a module for the wireless portion of  your application? If 
so, then, I think, that the actions you specify in those pages will  need 
to be defined in your struts-module-config.xml, instead of a base 
struts-config.xml. It kind of looks like the page in your /sample 
directory worked because it is in the default module, but the wireless one 
doesn't work because it is in a separate module. Maybe??

Susan Bradeen

On 09/12/2003 03:29:01 PM Hunter Hillegas wrote:

> I gave that a try and ended up with identical results.
> 
> Thanks for trying.
> 
> Hunter
> 
> > From: "Robert Taylor" <[EMAIL PROTECTED]>
> > Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Date: Fri, 12 Sep 2003 15:19:15 -0400
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Subject: RE: Mapping/Path Question
> >
> > Can you do something like this?
> >
> > 
> > 
> >
> > 
> >
> > robert
> >
> >> -Original Message-
> >> From: Hunter Hillegas [mailto:[EMAIL PROTECTED]
> >> Sent: Friday, September 12, 2003 2:25 PM
> >> To: Struts List
> >> Subject: Mapping/Path Question
> >>
> >>
> >> Hello.
> >>
> >> We are adding a wireless portion to our site. The wireless pages live 
in a
> >> subdirectory:
> >> /wireless/micro_browser/sample
> >>
> >> Anyway, in one of the pages in that directory I tried to call an
> >> Action like
> >> this:
> >> 
> >>
> >> This fails with the following error:
> >> 11:20:26,020 ERROR [RequestProcessor] Invalid path
> >> /wireless/micro_browser/PrepareSampleRequest was requested
> >>
> >> I'm a bit confused because I can call that same action from a file 
that
> >> lives in:
> >> /sample
> >> without any other path info (i.e. no /PrepareSampleRequest.do - no 
forward
> >> slash at the beginning).
> >>
> >> My action is defined as follows:
> >>  >> type="com.jacobstern.actions.sample.PrepareSampleRequestAction"
> >> parameter="/sample/create_sample_request2.jsp" scope="request"
> >> validate="false"/>
> >>
> >> So, I'm sure I'm doing something incorrectly... But I'm not sure
> >> what. I've
> >> experimented with a few different ideas.
> >>
> >> Can I set it up to work the way it is specified now in the pages?
> >>
> >> Any help is appreciated.
> >>
> >> Thanks,
> >> Hunter
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: Easy Question

2003-09-12 Thread Michael Ruppin
Non-String Form bean properties are evil though, you'll thank yourself later if you 
use Strings.  As long as the String is set to something sensible like "true" or 
"false", your checkbox will be properly set.
 
I'm sure there are ample posts on the pros & cons of this approach, here's one pro 
thread:
http://marc.theaimsgroup.com/?l=struts-user&m=106159073522015&w=2
 
m

"Slattery, Tim - BLS" <[EMAIL PROTECTED]> wrote:
> Sorry for emailing so many questions. My last one (i promise) is, 
> how do I set an to display as checked?

The "property" attribute of the tag should point to a boolean property of
the FormBean. If that property is "true" the box will be checked.

--
Tim Slattery
[EMAIL PROTECTED]


-
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: Easy Question

2003-09-12 Thread Slattery, Tim - BLS
> Sorry for emailing so many questions.  My last one (i promise) is, 
> how do I set an  to display as checked?

The "property" attribute of the tag should point to a boolean property of
the FormBean. If that property is "true" the box will be checked.

--
Tim Slattery
[EMAIL PROTECTED]


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



RE: error pages, actions, and tiles

2003-09-12 Thread Susan Bradeen
Hi Dan,

Did you get anywhere on this? I just put in a couple of error page 
definitions in my web.xml to see what happens, and it works ok for me. 
Here's what I have, basically just what you have:

web.xml:
  
404
/prompterrors.do
  

400
/prompterrors.do
  

struts-config.xml:


tiles-defs.xml:

   

   

Do you get the socket errors if you specify a straight JSP file, instead 
of a tile/action for the error page location attribute? I wonder if all 
web servers interpret the location attribute the same way.

Susan 


On 09/12/2003 12:42:35 PM Dan Snider wrote:

> Sorry, I'm actually using the same technique for other errors. I wanted 
to
> give a representative case but accidentally grabbed the 400 error 
definition
> from struts-config.xml. The struts-config also contains:
> 
>  type="org.apache.struts.actions.ForwardAction"
> parameter=".error.404.page"
> path="/error/404" />
> 
> Dan
> 
> > -Original Message-
> > From: Susan Bradeen [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 12, 2003 12:25 PM
> > To: Struts Users Mailing List
> > Subject: Re: error pages, actions, and tiles
> >
> >
> > First of all, unless they are email typos, you've got 404s
> > and 400s in
> > your definitions. Should the 400s be 404s?
> >
> > Susan Bradeen
> >
> > On 09/12/2003 11:41:49 AM Dan Snider wrote:
> >
> > > Hello,
> > >
> > > I am using Struts 1.1 and Tiles and I would like to forward
> > error-pages
> > to a
> > > tile-composing action.
> > >
> > > web.xml:
> > > 
> > > 404
> > > /error/404.do
> > > 
> > >
> > > struts-config.xml:
> > >  > > type="org.apache.struts.actions.ForwardAction"
> > > parameter=".error.400.page"
> > > path="/error/400" />
> > >
> > > From a user standpoint, it appears works but I now get the following
> > > exceptions upon every request, valid or not.
> > >
> > > ErrorDispatcherValve[localhost]: Exception Processing
> > > ErrorPage[errorCode=404, location=/error/404.do]
> > java.net.SocketException:
> > > Software caused connection abort: socket write error
> > > ...
> > > ErrorDispatcherValve[localhost]: Exception Processing
> > > ErrorPage[errorCode=404, location=/error/404.do]
> > > ErrorDispatcherValve[localhost]: Exception Processing
> > > ErrorPage[errorCode=404, location=/error/404.do]
> > > ...
> > > java.net.SocketException: Software caused connection abort:
> > socket write
> > > error
> > > ...
> > > java.net.SocketException: Software caused connection abort:
> > socket write
> > > error
> > > ...
> > >
> > > Any ideas?
> > >
> > > Thanks,
> > >
> > > Dan
> > >
> > >
> > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Easy Question

2003-09-12 Thread denis
Sorry for emailing so many questions.  My last one (i promise) is, 
how do I set an  to display as checked?

Thanks.

Re: Mapping/Path Question

2003-09-12 Thread Hunter Hillegas
I gave that a try and ended up with identical results.

Thanks for trying.

Hunter

> From: "Robert Taylor" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Date: Fri, 12 Sep 2003 15:19:15 -0400
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Subject: RE: Mapping/Path Question
> 
> Can you do something like this?
> 
> 
> 
> 
> 
> 
> robert
> 
>> -Original Message-
>> From: Hunter Hillegas [mailto:[EMAIL PROTECTED]
>> Sent: Friday, September 12, 2003 2:25 PM
>> To: Struts List
>> Subject: Mapping/Path Question
>> 
>> 
>> Hello.
>> 
>> We are adding a wireless portion to our site. The wireless pages live in a
>> subdirectory:
>> /wireless/micro_browser/sample
>> 
>> Anyway, in one of the pages in that directory I tried to call an
>> Action like
>> this:
>> 
>> 
>> This fails with the following error:
>> 11:20:26,020 ERROR [RequestProcessor] Invalid path
>> /wireless/micro_browser/PrepareSampleRequest was requested
>> 
>> I'm a bit confused because I can call that same action from a file that
>> lives in:
>> /sample
>> without any other path info (i.e. no /PrepareSampleRequest.do - no forward
>> slash at the beginning).
>> 
>> My action is defined as follows:
>> > type="com.jacobstern.actions.sample.PrepareSampleRequestAction"
>> parameter="/sample/create_sample_request2.jsp" scope="request"
>> validate="false"/>
>> 
>> So, I'm sure I'm doing something incorrectly... But I'm not sure
>> what. I've
>> experimented with a few different ideas.
>> 
>> Can I set it up to work the way it is specified now in the pages?
>> 
>> Any help is appreciated.
>> 
>> Thanks,
>> Hunter
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: workflow - Re: integration with other app

2003-09-12 Thread Adam Levine
Matthias:
 I could kiss you!   I've been struggling with this issue and have been 
going bald over the last week doing a lot of my own engine work.   I can't 
wait to try this out and see if it doesn't work for me as cleanly as it 
looks.



From: Matthias Bauer <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: workflow - Re: integration with other app
Date: Fri, 12 Sep 2003 08:35:36 +0200
Martin,

the Struts Workflow Extension http://www.livinglogic.de/Struts/ addresses 
some of the issues you raise. Especially the thing about a workflow scope. 
But it is also easily possible to build reusable action sequences: Consider 
for instance a confirmation dialog that demands the user to press a "Yes" 
and "No" button. You will need this multiple times within an application, 
but you normally want to code the necessary actions only once and reuse them 
in different contexts (i. e. with a customized question and return action).

Please let me know, when you have any questions related to the Struts 
Workflow Extension.

--- Matthias

Martin Naskovski wrote:

One thing I find particularly cumbersome in Struts is web page
workflow. Currently, if I want to push "Cancel" for instance, or
"Submit" on a certain page, in the Action itself, I have to hard code
where to go next and/or pass any dynamically generated parameters
through the request scope or the query string (if doing a
sendRedirect). I also have to use hidden form fields to tell each
submission button on a form, where to go next, depending on where I
came from (a certain action mapping, e.g.).
Is there a better way to do this, where the flow of the screens can be
specified statically, or maybe if not statically at least within a
screen workflow module that each action will tell that module where
to go next, depending on what button was pushed on that form?
Does JSF address this perhaps? Or has someone independently made a
Struts pluggable module that can control screen flow? It seems there
almost is a need for some sort of a 'workflow' scope, where when I
start a certain use-case from one of the menus in the application, the
'workflow scope' is preserved throughout the use-case lifetime, and if
for some reason this flow is broken by the user, the workflow scope
should be destroyed.
I've been able to immitate a workflow scope with the session scope,
but it isn't as elegant as I want it to be, or rather, as delimited
from the application logic as I'd like it to be... Plus stuff in the
session scope hangs around much longer than as if I had a workflow
scope.
I've been wondering if there's any solutions already to this - it
seems that is the _only_ thing Struts is lacking in.
Thanks.

Martin
--
Thursday, September 11, 2003, 4:31:29 PM, you wrote:

TH> This seems more in scope for some of the ServerSide forums than Struts.

TH> http://www.theserverside.com/home/index.jsp

TH> Our framework ends where the database begins -:0)

TH> Tiles is sufficient for customizating layout and such.

TH> -Ted.

TH> Gregory Seidman wrote:

TH> 



My purpose in posting this to the list is to get the benefit of the
membership's collective experience. Is Torque a good choice? Is creating 
a
separate database for each user unacceptable from the point of view of a
website which provides services on a per-user basis? Is Tiles sufficient
for customizing layout and such? Any suggestions, tales of woe, or design
critiques are appreciated.

Please do not CC me; I am subscribed to the list.
--Greg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]





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




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get a FREE computer virus scan online from McAfee. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: Mapping/Path Question

2003-09-12 Thread Robert Taylor
Can you do something like this?






robert

> -Original Message-
> From: Hunter Hillegas [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 2:25 PM
> To: Struts List
> Subject: Mapping/Path Question
>
>
> Hello.
>
> We are adding a wireless portion to our site. The wireless pages live in a
> subdirectory:
> /wireless/micro_browser/sample
>
> Anyway, in one of the pages in that directory I tried to call an
> Action like
> this:
> 
>
> This fails with the following error:
> 11:20:26,020 ERROR [RequestProcessor] Invalid path
> /wireless/micro_browser/PrepareSampleRequest was requested
>
> I'm a bit confused because I can call that same action from a file that
> lives in:
> /sample
> without any other path info (i.e. no /PrepareSampleRequest.do - no forward
> slash at the beginning).
>
> My action is defined as follows:
>  type="com.jacobstern.actions.sample.PrepareSampleRequestAction"
> parameter="/sample/create_sample_request2.jsp" scope="request"
> validate="false"/>
>
> So, I'm sure I'm doing something incorrectly... But I'm not sure
> what. I've
> experimented with a few different ideas.
>
> Can I set it up to work the way it is specified now in the pages?
>
> Any help is appreciated.
>
> Thanks,
> Hunter
>
>
> -
> 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: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-12 Thread Robert Leland
Yuan, Saul (TOR-ML) wrote:

Rob,

Thanks for your response.

I ended up with changing the validator-rules.xml file myself to add
support for multiple radios, checkboxes and selections (just for the
validateRequired(form) function)
 

If you would like to post a BugZilla report and provide a patch against 
the nightly,
that can be integarted into the validator code, that would be much 
appreciated !

-Rob

I checked the validator-rules.xml file in the latest nightly built (Sep
12), I noticed it added support for multiple radio buttons, but not yet
for multiples checkboxes and selections.
Thanks,
Saul


 

Use the nightly build of struts, this was fixed on Sept 9.
Please let me know if it works for you.
-Rob

   

Hi,



I have some problems validating multiple radio buttons and
 

checkboxes,
 

selections on the client side. Tracking down to the javascript code
defined in validator-rules.xml, I found that the
 

validateRequired(form)
 

function doesn't deal with multiple checkboxes, selections at all.
 

For
 

multiples radios, checkboxes etc, the field.type = undefined. Can
somebody explain why is this?


Thanks,

Saul





Validator-rules.xml:

-



  function validateRequired(form) {

  var isValid = true;

  var focusField = null;

  var i = 0;

  var fields = new Array();

  oRequired = new required();

  for (x in oRequired) {

  var field = form[oRequired[x][0]];



  if (field.type == 'text' ||

  field.type == 'textarea' ||

  field.type == 'file' ||

  field.type == 'select-one' ||

  field.type == 'radio' ||

  field.type == 'password') {



  var value = '';

// get field's value

if (field.type == "select-one") {

var si = field.selectedIndex;

if (si >= 0) {

value = field.options[si].value;

}

} else {

value = field.value;

}



  if (trim(value).length == 0) {



  if (i == 0) {

  focusField = field;

  }

  fields[i++] = oRequired[x][1];

  isValid = false;

  }

  }

  }

  if (fields.length > 0) {

 focusField.focus();

 alert(fields.join('\n'));

  }

  return isValid;

  }

 



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


Re: EL Question

2003-09-12 Thread denis
Here it is with a bit better formatting... sorry.


Hello, ok so I have a map backed form and I am trying to use html-el
functions to enter values into the form.I am getting an error and I am not
sure why, I am not sure what other way I am supposed to define which
property I need to store data into.

So this is my JSP code:

 ...


...


My form has...

private Map properties;
 public void setProperty(String key, Object value) {
properties.put(key, value);}
public Object getProperty(String key) {
return properties.get(key);}

...when I try to execute that I get the following error.

org.apache.jasper.JasperException: An error occurred while evaluating custom
action attribute "property" with value "${property(prop.key)}":
org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions
are not supported. (null)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
r.java:274)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:455)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequ
estProcessor.java:320)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: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)


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



EL Question

2003-09-12 Thread denis
Hello, ok so I have a map backed form and I am trying to use html-el functions to 
enter values into the form.I am getting an error and I am not sure why, I am not sure 
what other way I am supposed to define which property I need to store data into.So 
this is my JSP code: ...
... My form 
has...private Map properties; public void setProperty(String key, Object value) {  
  properties.put(key, value);}public Object getProperty(String key) {
return properties.get(key);}...when I try to execute that I get the following 
error.org.apache.jasper.JasperException: An error occurred while evaluating custom 
action attribute "property" with value "${property(prop.key)}": 
org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not 
supported. (null)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at 
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
at 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at 
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: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)


Re: xhtml, html:javascript tag &

2003-09-12 Thread David Graham
Use  to disable the CDATA printing. 
Current browsers are broken in their handling of xhtml and CDATA sections.

David

--- Adam Hardy <[EMAIL PROTECTED]> wrote:
> I have a problem trying to get XHTML to work with the 

xhtml, html:javascript tag &

2003-09-12 Thread Adam Hardy
I have a problem trying to get XHTML to work with the 

Mapping/Path Question

2003-09-12 Thread Hunter Hillegas
Hello.

We are adding a wireless portion to our site. The wireless pages live in a
subdirectory:
/wireless/micro_browser/sample

Anyway, in one of the pages in that directory I tried to call an Action like
this:


This fails with the following error:
11:20:26,020 ERROR [RequestProcessor] Invalid path
/wireless/micro_browser/PrepareSampleRequest was requested

I'm a bit confused because I can call that same action from a file that
lives in:
/sample 
without any other path info (i.e. no /PrepareSampleRequest.do - no forward
slash at the beginning).

My action is defined as follows:


So, I'm sure I'm doing something incorrectly... But I'm not sure what. I've
experimented with a few different ideas.

Can I set it up to work the way it is specified now in the pages?

Any help is appreciated.

Thanks,
Hunter


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



RE: newbie question: how to handle two dispatchAction methods in a jsp page?

2003-09-12 Thread Jerome Devost
If you need to change the action of the form, you can do this in the onclick
event : 

document.formName.action = "/delete.do"  

If you change the action, you probably won't need the method parameter then.

Be sure that you do not have an element in your form called 'action',
otherwise it will confuse Internet Explorer.

-Original Message-
From: victor gusz [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 12, 2003 14:04
To: Struts Users Mailing List
Subject: RE: newbie question: how to handle two dispatchAction methods in a
jsp page?


Hi, Jerome:

Thanks for helping. 

I tried out your code. Strangely, if I click on either
save button, or delete button, now they both forward
to
save page. It seems action still forwards to save
method
even I clicks on delete button.

Any idea?

regards,



--- Jerome Devost <[EMAIL PROTECTED]> wrote:
> Hi Victor,
> 
> If you have both 
> and buttons in the same
> form, both method are submitted when you pressed
> either button. You could
> change the value with javascript code before
> submitting the form. Something
> like this might work :
> 
> 
> 
>   
> 
> 
> 
>   
> 
> 
> 
> 
> -Original Message-
> From: victor gusz [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 13:33
> To: [EMAIL PROTECTED]
> Subject: newbie question: how to handle two
> dispatchAction methods in a jsp
> page?
> 
> 
> Hi, guys:
> 
> I have two methods in a DispatchAction class: save,
> delete
> 
> and I have two buttons in a jsp page: save, delete.
> 
> In order to successfully save and then forward to
> another
> page, I can do the following:
> 
>  key="button.save"/>
> 
> 
> This works fine. But if I add code related with
> delete
> method just following the above code:  key="button.delete"/>
> 
> 
> Everything fails.
> 
> I am wondering how I can handle multiple
> DispatchAction methods in a jsp page?
> 
> regards,
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
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: sslext can only get it to post

2003-09-12 Thread Stephane Grenier
Also, let me add, that I use the tag:



with secure being true or false depending on if I need encryption. And I've
actually come to realize that the issue resides more in this tag than the
other. If I set it to false the method is post. If I set it to true, it's
not post. However I'm sure how else to set the security.

If someone also knows of where one can find an example online with actions
(rather than just jsp's) that would be greatly appreciated

Thank you,
Stephane

- Original Message -
From: "Stephane Grenier" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 2:06 PM
Subject: sslext can only get it to post


Hello all.

I've added sslext to my struts application. However I can't seem to get it
to post (the parameters are appended to the url). In the jsp, the form tag
is:

   

So as far as I can tell it should be a post. If I change the tabs from
sslext to html then it puts the action in the url
(http://localhost:8080/ShoppingCartAction.do). If I put the sslext it puts
the jsp, the session id, and all the parameters.

Thank you,
Stephane


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



sslext can only get it to post

2003-09-12 Thread Stephane Grenier
Hello all.

I've added sslext to my struts application. However I can't seem to get it to post 
(the parameters are appended to the url). In the jsp, the form tag is:

   

So as far as I can tell it should be a post. If I change the tabs from sslext to html 
then it puts the action in the url (http://localhost:8080/ShoppingCartAction.do). If I 
put the sslext it puts the jsp, the session id, and all the parameters.

Thank you,
Stephane

design question

2003-09-12 Thread deepaksawdekar
I am displaying some dropdown boxes on my jsp. I have to take the values for them from 
ApplicationResource file.
I have writen a separate file which will read the properties file and return me the 
values in array list. 
Now I have to set this arraylist to the property of my form bean, now the question is 
should i assign this arraylist in action class execute method  or will it good option 
to assign this value in from bean constructor, since the value are not going to change 
dynamically.
Please suggest me which is better option
1. set values in action execute method
2. set values in constructor of form bean.


Thanks and Regards
Deepak.

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



RE: newbie question: how to handle two dispatchAction methods in a jsp page?

2003-09-12 Thread victor gusz
Hi, Jerome:

Thanks for helping. 

I tried out your code. Strangely, if I click on either
save button, or delete button, now they both forward
to
save page. It seems action still forwards to save
method
even I clicks on delete button.

Any idea?

regards,



--- Jerome Devost <[EMAIL PROTECTED]> wrote:
> Hi Victor, 
> 
> If you have both 
> and buttons in the same
> form, both method are submitted when you pressed
> either button. You could
> change the value with javascript code before
> submitting the form. Something
> like this might work :
> 
> 
> 
>   
> 
> 
>  onclick="document.formName.method.value='delete'">
>   
> 
> 
> 
> 
> -Original Message-
> From: victor gusz [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 12, 2003 13:33
> To: [EMAIL PROTECTED]
> Subject: newbie question: how to handle two
> dispatchAction methods in a jsp
> page?
> 
> 
> Hi, guys:
> 
> I have two methods in a DispatchAction class: save,
> delete
> 
> and I have two buttons in a jsp page: save, delete.
> 
> In order to successfully save and then forward to
> another
> page, I can do the following:
> 
>  key="button.save"/>
> 
> 
> This works fine. But if I add code related with
> delete
> method just following the above code:
>  key="button.delete"/>
> 
> 
> Everything fails.
> 
> I am wondering how I can handle multiple
> DispatchAction methods in a jsp page?
> 
> regards,
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
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: Integration with other web apps

2003-09-12 Thread Dhaliwal, Pritpal (HQP)
1) Not sure if torque you can deal with different datasources, but I know in
hibernate you can ask it to work from a connection that you supply. So now
you get that connection from any data source you like.

Creating databases for each user is bad idea I think. I think there should
be one database per application, no matter what this application is doing.
So if you application is creating other applications, then you might want to
create new database for those new apps. 

2 ) Whatever you use for authentication will take care of your cookies. If
you want an authentication filter that's pretty much done, email me.

HTH,
Pritpal Dhaliwal

-Original Message-
From: Gregory Seidman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 11, 2003 11:09 AM
To: Struts users mailing list
Subject: Integration with other web apps


I am embarking on a project which is primarily for my own use, but I have
some hopes of commercializing it later. The business plan would involve
licensing it for use on commercial websites I don't control. I see three
major challenges in integrating with an existing site (ignoring details
about different container software):

1) Database usage

   Right now all of my data, including user authentication, is in the
   database. This is fine for when there is a single dataset, but I expect
   each user (group of users) to have a completely independent set of data.
   I'm evaluating using Torque for DB interaction, but I don't know if
   there is a good way to choose a separate datasource depending on the
   user.
   
   Another aspect is calling Torque to build the database when a user who
   has not used my feature comes along. That may or may not involve
   creating a new database for the user, since the site may already be set
   up with a database for each user; it is likely, however, to involve
   creating a new set of tables. Presumably I need a table naming scheme
   which will minimize the chances that there will be a conflict.

2) User authentication

   Basically, I expect that a user will be logged in to the site as a
   whole, and I should be able to just read their cookie and authenticate
   it. I am, however, unsure how such cookies are usually dealt with on the
   backend (e.g. is the cookie usually user and pass, or is it some unique
   identifier that matches in the database, or does the identifier match
   automatically in the server-side runtime the way a session cookie
   does?).

3) Page layout

   I actually expect it to be reasonably easy to handle layout
   customization with with Tiles. I'm not sure how well the various Struts
   tags deal with CSS (do all the HTML tags allow class attributes?).

I wrote a prototype several months ago in straight JSP (with some custom
tags), gave it up as unmaintainable, and recently finished reading Struts
Kickstart.

My purpose in posting this to the list is to get the benefit of the
membership's collective experience. Is Torque a good choice? Is creating a
separate database for each user unacceptable from the point of view of a
website which provides services on a per-user basis? Is Tiles sufficient for
customizing layout and such? Any suggestions, tales of woe, or design
critiques are appreciated.

Please do not CC me; I am subscribed to the list.
--Greg


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



RE: newbie question: how to handle two dispatchAction methods in a jsp page?

2003-09-12 Thread Jerome Devost
Hi Victor, 

If you have both  and buttons in the same
form, both method are submitted when you pressed either button. You could
change the value with javascript code before submitting the form. Something
like this might work :



  



  




-Original Message-
From: victor gusz [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 12, 2003 13:33
To: [EMAIL PROTECTED]
Subject: newbie question: how to handle two dispatchAction methods in a jsp
page?


Hi, guys:

I have two methods in a DispatchAction class: save,
delete

and I have two buttons in a jsp page: save, delete.

In order to successfully save and then forward to
another
page, I can do the following:




This works fine. But if I add code related with delete
method just following the above code: 


Everything fails.

I am wondering how I can handle multiple
DispatchAction methods in a jsp page?

regards,


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

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


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



newbie question: how to handle two dispatchAction methods in a jsp page?

2003-09-12 Thread victor gusz
Hi, guys:

I have two methods in a DispatchAction class: save,
delete

and I have two buttons in a jsp page: save, delete.

In order to successfully save and then forward to
another
page, I can do the following:




This works fine. But if I add code related with delete
method just following the above code:



Everything fails.

I am wondering how I can handle multiple
DispatchAction methods in a jsp page?

regards,


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

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



Please Help Me To Understand "forward"

2003-09-12 Thread Caroline Jen
I am studying the code in Artimus_1_1 to make sure
that I understand how things actually work.  I am lost
at the beginning of the application.  Please kindly
help me.  The index.jsp of the application contains
two lines:

code:
--

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


---

Does this redirect forward tells the browser to submit
a new request to the path with logical name "welcome"?

I then searched the config.xml file, 


code:
---



 

 
 
 
 ...


---

The path of the logical name "welcome" is "do/Menu"
(note it is upper case Menu).  The other place that
"do/Menu" appears in the config.xml is:


   



There is no Menu ActionServlet in the application.

There is a menu.jsp (note it is lower case menu) file
in the application. Does this application display
menu.jsp when it is first launched? Apparently, it
does. This menu.jsp is in the
artimus_1_1/WEB-INF/src/pages/article/content folder.
I am confused - does /do/Menu locate the menu.jsp 

1. in the /src/pages/article/content folder?
2. regardless upper or lower cases? 



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



ANN: JDeveloper 10g Preview (Struts-savvy IDE)

2003-09-12 Thread Steve Muench
Anyone doing Java and Struts development should download
and checkout the new developer preview release of JDeveloper 10g.
It's a major new release with new features like:

  (*) Visual Struts Page Flow Diagramming

  (*) Visual JSP/HTML Editor

  (*) Many new Java code-level productivity features

  [Check out this developers top ten list]

  
http://radio.weblogs.com/0128037/stories/2003/08/11/topTenToysForJavaCodersIn905.html

  (*) New neutral data binding architecture and productive
  visual design time to binding any kind of front end
  to any kind of backend.

  [Checkout the article posted here for an overview:
   http://radio.weblogs.com/0118231/2003/09/08.html#a149


   (*) Much much more.

Longer list of new features is at:

http://otn.oracle.com/products/jdev/collateral/jdev10g_fo.html

Download and product tour is at:

http://otn.oracle.com/products/jdev/collateral/prodtour10g.html

Enjoy.

__
Steve Muench - Developer, Product Mgr, Java/XML Evangelist, Author
Building a Web Store with Struts and BC4J (BC4J Toy Store Demo)
http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore
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


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



Re: suggestion: RequestProcessor hooks/plugins instead of subclassing?

2003-09-12 Thread Yann Cébron
> Here's a thought, and I couldn't find any evidence in the list archives
> of this being discussed before. There are many good reasons to extend
> RequestProcessor, but of course it's not possible to use more than one
> RequestProcessor subclass at a time (unless they extend each other),
> and there seems to be an issue with multiple conflicting
> RequestProcessor subclasses-- I can think of several open source struts
> add-ons that do this, plus of course TilesRequestProcessor, and I can't
> use them all together. Plus, I have extended RequestProcessor myself
> (to provide custom access control).
>
> But what if there were a plug-in interface for RequestProcessor to
> provide extra functionality, instead of overriding methods? Then you
> could combine an arbitrary number of per-request customizations. Maybe
> this is complicated because the RequestProcessor interface is quite
> large, and I'm sure there will always still be *some* reason to extend
> RequestProcessor, but I'm sure most people just override a few common
> methods like processPreprocess(), processRoles(), etc., so at least
> this might take care of 90% of the cases.
>
> Any thoughts on this? Perhaps this should be posted to the struts
> developer list instead... but I thought I'd see if it gets shot down
> here first :)

Indeed, something like this has been discussed on struts-dev, see also

http://jakarta.apache.org/struts/status.html

You'll find the proposed code in the nightly builds under the contrib
directory.

See also http://issues.apache.org/bugzilla/show_bug.cgi?id=12313

Yann




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



RE: ActionErrors

2003-09-12 Thread Yuan, Saul (TOR-ML)
Hi,

You can use the placeholder ({0}, {1} ..) feature in message resource
something like this:

In property file:

errors.your_runtime_msg.key = {0}


In Action or form bean:

new ActionError("errors.your_runtime_msg.key", "your runtime message,
blah, blah..");

" your runtime message, blah, blah.." will replace {0}



Saul


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 11:45 AM
> To: [EMAIL PROTECTED]
> Subject: ActionErrors
> 
> 
> 
> 
> 
> Hello,
> 
> This works fine:
> errors.add(ActionErrors.GLOBAL_ERROR,new
> ActionError("errors.createkunde.float"));
> 
> but i want to define the message at runtime, i want to put a string
into
> the
> ActionError that is not defined in .properties file.
> 
> Is that possible ?
> if yes, could u give me a example ?
> 
> 
> thnx for help
> 
> 
> -
> 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: Error:Cannot find bean org.apache.struts.taglib.html.BEAN in any Scope

2003-09-12 Thread Ritvik
Thanks Deepak..

It worked..

deepaksawdekar wrote:

> Action attribute in form tag will be missing. if its the requirement, added the name 
> attribute to all the  tags.
>
> Deepak.
>
> -Original Message-
> From: Ritvik [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 8:08 PM
> To: [EMAIL PROTECTED]
> Subject: Error:Cannot find bean org.apache.struts.taglib.html.BEAN in
> any Scope
>
> Hi There,
>
> I am following the book 'Struts In Action' books and trying to build the
>
> Sample Logon Application from first few chapters. I was able to display
> Welcome page (Welcome.do) and when i click on 'Sign In' link, I am
> getting the following error? Please also review the configurations added
>
> to struts-config file. Why does 'logonForm' bean being created?
>
> javax.servlet.jsp.JspException: Cannot find bean
> org.apache.struts.taglib.html.BEAN in any
>
> scope
>  at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:714)
>  at
> org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:193)
>
>  at org.apache.jsp.Logon$jsp._jspService(Logon$jsp.java:116)
>
> -- Welcome.jsp code snippet --
>
> Sign in
>
>  name="logonForm"
> type="app.view.LogonForm"/>
> 
>
> 
>  name="logon"
> path="/Logon.do"/>
>
>   path="/Logon"
>  type="org.apache.struts.actions.ForwardAction"
>  parameter="/pages/Logon.jsp"/>
>
> thanks,
> Ritvik
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: suggestion: RequestProcessor hooks/plugins instead of subclassing?

2003-09-12 Thread Sgarlata Matt
Check out the discussions on the struts-dev list concerning the sandbox
Chain component and decomposable request processors:

http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=struts-dev_jakarta_apache_org&restrict=&exclude=&words=Decomposing+RequestProcessor+

Matt
- Original Message - 
From: "ll" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 12:45 PM
Subject: suggestion: RequestProcessor hooks/plugins instead of subclassing?


> Here's a thought, and I couldn't find any evidence in the list archives
> of this being discussed before. There are many good reasons to extend
> RequestProcessor, but of course it's not possible to use more than one
> RequestProcessor subclass at a time (unless they extend each other),
> and there seems to be an issue with multiple conflicting
> RequestProcessor subclasses-- I can think of several open source struts
> add-ons that do this, plus of course TilesRequestProcessor, and I can't
> use them all together. Plus, I have extended RequestProcessor myself
> (to provide custom access control).
>
> But what if there were a plug-in interface for RequestProcessor to
> provide extra functionality, instead of overriding methods? Then you
> could combine an arbitrary number of per-request customizations. Maybe
> this is complicated because the RequestProcessor interface is quite
> large, and I'm sure there will always still be *some* reason to extend
> RequestProcessor, but I'm sure most people just override a few common
> methods like processPreprocess(), processRoles(), etc., so at least
> this might take care of 90% of the cases.
>
> Any thoughts on this? Perhaps this should be posted to the struts
> developer list instead... but I thought I'd see if it gets shot down
> here first :)
>
>
> -
> 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: suggestion: RequestProcessor hooks/plugins instead of subclassing?

2003-09-12 Thread David G Friedman
Why can't you use Struts 1.1 with modules, and set the
RequestProcessor for each module using the controller 
element? In what way would that method fail your
needs?

Regards,
David

-Original Message-
From: ll [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 12:45 PM
To: [EMAIL PROTECTED]
Subject: suggestion: RequestProcessor hooks/plugins instead of
subclassing?


Here's a thought, and I couldn't find any evidence in the list archives 
of this being discussed before. There are many good reasons to extend 
RequestProcessor, but of course it's not possible to use more than one 
RequestProcessor subclass at a time (unless they extend each other), 
and there seems to be an issue with multiple conflicting 
RequestProcessor subclasses-- I can think of several open source struts 
add-ons that do this, plus of course TilesRequestProcessor, and I can't 
use them all together. Plus, I have extended RequestProcessor myself 
(to provide custom access control).

But what if there were a plug-in interface for RequestProcessor to 
provide extra functionality, instead of overriding methods? Then you 
could combine an arbitrary number of per-request customizations. Maybe 
this is complicated because the RequestProcessor interface is quite 
large, and I'm sure there will always still be *some* reason to extend 
RequestProcessor, but I'm sure most people just override a few common 
methods like processPreprocess(), processRoles(), etc., so at least 
this might take care of 90% of the cases.

Any thoughts on this? Perhaps this should be posted to the struts 
developer list instead... but I thought I'd see if it gets shot down 
here first :)


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



suggestion: RequestProcessor hooks/plugins instead of subclassing?

2003-09-12 Thread ll
Here's a thought, and I couldn't find any evidence in the list archives 
of this being discussed before. There are many good reasons to extend 
RequestProcessor, but of course it's not possible to use more than one 
RequestProcessor subclass at a time (unless they extend each other), 
and there seems to be an issue with multiple conflicting 
RequestProcessor subclasses-- I can think of several open source struts 
add-ons that do this, plus of course TilesRequestProcessor, and I can't 
use them all together. Plus, I have extended RequestProcessor myself 
(to provide custom access control).

But what if there were a plug-in interface for RequestProcessor to 
provide extra functionality, instead of overriding methods? Then you 
could combine an arbitrary number of per-request customizations. Maybe 
this is complicated because the RequestProcessor interface is quite 
large, and I'm sure there will always still be *some* reason to extend 
RequestProcessor, but I'm sure most people just override a few common 
methods like processPreprocess(), processRoles(), etc., so at least 
this might take care of 90% of the cases.

Any thoughts on this? Perhaps this should be posted to the struts 
developer list instead... but I thought I'd see if it gets shot down 
here first :)

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


RE: error pages, actions, and tiles

2003-09-12 Thread Dan Snider
Sorry, I'm actually using the same technique for other errors. I wanted to
give a representative case but accidentally grabbed the 400 error definition
from struts-config.xml. The struts-config also contains:



Dan

> -Original Message-
> From: Susan Bradeen [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 12:25 PM
> To: Struts Users Mailing List
> Subject: Re: error pages, actions, and tiles
> 
> 
> First of all, unless they are email typos, you've got 404s 
> and 400s in 
> your definitions. Should the 400s be 404s?
> 
> Susan Bradeen
> 
> On 09/12/2003 11:41:49 AM Dan Snider wrote:
> 
> > Hello,
> > 
> > I am using Struts 1.1 and Tiles and I would like to forward 
> error-pages 
> to a
> > tile-composing action.
> > 
> > web.xml:
> > 
> > 404
> > /error/404.do
> > 
> > 
> > struts-config.xml:
> >  > type="org.apache.struts.actions.ForwardAction"
> > parameter=".error.400.page"
> > path="/error/400" />
> > 
> > From a user standpoint, it appears works but I now get the following
> > exceptions upon every request, valid or not.
> > 
> > ErrorDispatcherValve[localhost]: Exception Processing
> > ErrorPage[errorCode=404, location=/error/404.do] 
> java.net.SocketException:
> > Software caused connection abort: socket write error
> > ...
> > ErrorDispatcherValve[localhost]: Exception Processing
> > ErrorPage[errorCode=404, location=/error/404.do]
> > ErrorDispatcherValve[localhost]: Exception Processing
> > ErrorPage[errorCode=404, location=/error/404.do]
> > ...
> > java.net.SocketException: Software caused connection abort: 
> socket write
> > error
> > ...
> > java.net.SocketException: Software caused connection abort: 
> socket write
> > error
> > ...
> > 
> > Any ideas?
> > 
> > Thanks,
> > 
> > Dan
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: error pages, actions, and tiles

2003-09-12 Thread Susan Bradeen
First of all, unless they are email typos, you've got 404s and 400s in 
your definitions. Should the 400s be 404s?

Susan Bradeen

On 09/12/2003 11:41:49 AM Dan Snider wrote:

> Hello,
> 
> I am using Struts 1.1 and Tiles and I would like to forward error-pages 
to a
> tile-composing action.
> 
> web.xml:
> 
> 404
> /error/404.do
> 
> 
> struts-config.xml:
>  type="org.apache.struts.actions.ForwardAction"
> parameter=".error.400.page"
> path="/error/400" />
> 
> From a user standpoint, it appears works but I now get the following
> exceptions upon every request, valid or not.
> 
> ErrorDispatcherValve[localhost]: Exception Processing
> ErrorPage[errorCode=404, location=/error/404.do] 
java.net.SocketException:
> Software caused connection abort: socket write error
> ...
> ErrorDispatcherValve[localhost]: Exception Processing
> ErrorPage[errorCode=404, location=/error/404.do]
> ErrorDispatcherValve[localhost]: Exception Processing
> ErrorPage[errorCode=404, location=/error/404.do]
> ...
> java.net.SocketException: Software caused connection abort: socket write
> error
> ...
> java.net.SocketException: Software caused connection abort: socket write
> error
> ...
> 
> Any ideas?
> 
> Thanks,
> 
> Dan
> 
> -
> 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: html:messages [SOLVED]

2003-09-12 Thread Stan Reinis
Thanks Timo, that did it.  But the attribute is "message" not "messages".
Hence, message="true".
Stan

Timo Neumann wrote:

Simply use


This should do the trick.

Timo

Stan Reinis wrote:
My Action includes the following code:
   ActionMessages messages = new ActionMessages();
...
   messages.add(
   ActionMessages.GLOBAL_MESSAGE,
   new 
ActionMessage("adminUpdateProfileAction.profile.has.been.updated"));
...
   saveMessages(request, messages);
   forward = mapping.findForward("success");

My jsp has
   
   
   
   
   
And yet no messages are appearing in the response.  The source code 
shows
   

   

Perusing the javadocs, I find the following description for the 
saveMessages()
method:
"Save the specified messages keys into the appropriate request 
attribute for use by the
 tag (if messages="true" is set), if any messages are 
required."

My question is:   how do we set messages="true"?

Thanks,
Stan Reinis
RIGCI, Inc.
-
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: [Fwd: [XHTML] Default submit button]

2003-09-12 Thread Andrew Hill
Thanks for your help. :-)

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 September 2003 23:53
To: Struts Users Mailing List
Subject: Re: [Fwd: [XHTML] Default submit button]


I haven't been able to find out anything. As far as I can tell from the
W3C recommendation, there is no recommendation about making one or other
submit button on a form the default.

I asked on the CSS list I use, and they said I was OT and just said what
I repeated above. So if you were hoping there was a style
default-submit:true, you're outa luck.

I've been thinking of making an invisible submit button that would
return false and therefore not cause a submit. But that won't help you.

Adam

On 09/12/2003 05:17 PM Andrew Hill wrote:
> Thanks Adam.
>
> Ive swapped them round now, works a charm :-)
>
> I still wonder if there is any other way to specify the default though?
>
> regards
> Andrew
>
> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: Friday, 12 September 2003 23:12
> To: Struts Users Mailing List
> Subject: [Fwd: [XHTML] Default submit button]
>
>
> Hi Andrew
> I believe your first submit button as the HTML appears is the default.
>
> Do this mean your cancel button is before your submit button? Seems
strange.
>
>
> Adam
>
>  Original Message 
> From: Andrew Hill <[EMAIL PROTECTED]>
> To: Struts <[EMAIL PROTECTED]>
> Subject: [XHTML] Default submit button
> Date: Fri, 12 Sep 2003 13:18:51 +0800
>
> Hopefully a quick & simple question: my page has a Cancel and a Submit
> button, both of which are input fields of type submit. At the moment the
> cancel button appears to be the 'default' - so I have to explicitly click
> save to save instead of just anyhow hitting the enter key. How to make
Save
> the default button?
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> struts 1.1 + tomcat 4.1.27 + java 1.4.2
> Linux 2.4.20 RH9
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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


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



Re: Validator, DynaForms, and Collections

2003-09-12 Thread denis
Also, if you don't care that they keep the input already on the page, you
can put the input in the struts-config file as the loader class (whatever is
loading the collection onto the jsp).

so instead of your action looking like:


  
 

it would read

  
 

where preInput is the action that precedes the JSP.

Denis
- Original Message - 
From: "Joe at Team345" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 11:30 AM
Subject: Validator, DynaForms, and Collections


> Hi,
>
> I'm using the Struts Validator (version 1.1 release) on
DynaValidatorForms.
> Everything seems to work just fine on forms that don't have collections on
> them.  However, several of my forms have pull-down lists where I do
> something like:
>
> 
> 
>  />
> 
>
> Without validation everything works perfectly.  When validation is enabled
> and control returns to this form (because of invalid input), I get a null
> access error for the bean:define.
>
> Anyone else see such behavior and/or know how to fix it?
>
> I tried using  instead (to eliminate the
> bean:define).  However, this just results in a different error:  failed to
> obtain specified collection.   Thus, I think there is a problem with
> combining the three things listed in the subject.
>
> Sorry for being so long winded - especially on a Friday!
>
> any help appreciated,
>
> Joe Gamache
>
>
> -
> 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: [Fwd: [XHTML] Default submit button]

2003-09-12 Thread Adam Hardy
I haven't been able to find out anything. As far as I can tell from the 
W3C recommendation, there is no recommendation about making one or other 
submit button on a form the default.

I asked on the CSS list I use, and they said I was OT and just said what 
I repeated above. So if you were hoping there was a style 
default-submit:true, you're outa luck.

I've been thinking of making an invisible submit button that would 
return false and therefore not cause a submit. But that won't help you.

Adam

On 09/12/2003 05:17 PM Andrew Hill wrote:
Thanks Adam.

Ive swapped them round now, works a charm :-)

I still wonder if there is any other way to specify the default though?

regards
Andrew
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 September 2003 23:12
To: Struts Users Mailing List
Subject: [Fwd: [XHTML] Default submit button]
Hi Andrew
I believe your first submit button as the HTML appears is the default.
Do this mean your cancel button is before your submit button? Seems strange.

Adam

 Original Message 
From: Andrew Hill <[EMAIL PROTECTED]>
To: Struts <[EMAIL PROTECTED]>
Subject: [XHTML] Default submit button
Date: Fri, 12 Sep 2003 13:18:51 +0800
Hopefully a quick & simple question: my page has a Cancel and a Submit
button, both of which are input fields of type submit. At the moment the
cancel button appears to be the 'default' - so I have to explicitly click
save to save instead of just anyhow hitting the enter key. How to make Save
the default button?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: assigning a value back to a bean in a logic:iterate?

2003-09-12 Thread Mohan Radhakrishnan

 If you just want to alternate within the loop you can do something like
this


<%=index%>


  This will print 'index'. So you can do something like this

   if( index % 2 == 0 ){
   // Do something
   } else if( index % 2 == 1 ){
   // Do something
   }

 You might also use the logic:equal tag instead of scriptlets.
Mohan

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 8:06 PM
To: Struts Users Mailing List
Subject: Re: assigning a value back to a bean in a logic:iterate?


I am basically trying to take cellColor which is a variable in my DynaForm,
and loop through an array of alerts[] that is also in this DynaForm. So I
can then alternate the cell colors of the table. So alertForm.cellColor need
to be changed each iteration of this loop.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message -
From: "Mohan Radhakrishnan" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 7:33 AM
Subject: RE: assigning a value back to a bean in a logic:iterate?


>
>   value="content_tbl_blue" />
>
>
> This code defines a scripting variable but I think that since you don't
have
> any html controls this value is not automatically sent with the request.
>
>  In our JSP's where we don't have html controls we use the following code.
>
>property="timeSheetItems">
> 
> 
>   
> Mohan
>
> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 7:44 PM
> To: struts
> Subject: assigning a value back to a bean in a logic:iterate?
>
>
> I have the following code I want to make work:
>
> 
> stuff
>  value="content_tbl_white" >
>  value="content_tbl_blue" />
> 
>  value="content_tbl_blue" >
>  value="content_tbl_white" />
> test blue
> 
> 
>
> But I can't seem assign "cellColor" attribute back into alertListForm.
>
> ---
> Thanks
> Mick Knutson
> http://www.baselogic.com
>
> +001(805) 563-0666 Office
> +001 (708) 570-2772 Fax
> ---
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



ActionErrors

2003-09-12 Thread reps
Hello,

This works fine:
errors.add(ActionErrors.GLOBAL_ERROR,new
ActionError("errors.createkunde.float"));

but i want to define the message at runtime, i want to put a string into the
ActionError that is not defined in .properties file.

Is that possible ?
if yes, could u give me a example ?


thnx for help


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



Re: Validator, DynaForms, and Collections

2003-09-12 Thread David Graham
Make sure your collection is stored in the session.  If it's in the
request you will lose it when returning to the input page.

David

--- Joe at Team345 <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm using the Struts Validator (version 1.1 release) on
> DynaValidatorForms.
> Everything seems to work just fine on forms that don't have collections
> on
> them.  However, several of my forms have pull-down lists where I do
> something like:
> 
> 
> 
>labelProperty="label"
> />
> 
> 
> Without validation everything works perfectly.  When validation is
> enabled
> and control returns to this form (because of invalid input), I get a
> null
> access error for the bean:define.
> 
> Anyone else see such behavior and/or know how to fix it?
> 
> I tried using  instead (to eliminate the
> bean:define).  However, this just results in a different error:  failed
> to
> obtain specified collection.   Thus, I think there is a problem with
> combining the three things listed in the subject.
> 
> Sorry for being so long winded - especially on a Friday!
> 
> any help appreciated,
> 
> Joe Gamache
> 
> 
> -
> 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]



error pages, actions, and tiles

2003-09-12 Thread Dan Snider
Hello,

I am using Struts 1.1 and Tiles and I would like to forward error-pages to a
tile-composing action.

web.xml:
  
404
/error/404.do
  

struts-config.xml:


>From a user standpoint, it appears works but I now get the following
exceptions upon every request, valid or not.

ErrorDispatcherValve[localhost]: Exception Processing
ErrorPage[errorCode=404, location=/error/404.do] java.net.SocketException:
Software caused connection abort: socket write error
  ...
ErrorDispatcherValve[localhost]: Exception Processing
ErrorPage[errorCode=404, location=/error/404.do]
ErrorDispatcherValve[localhost]: Exception Processing
ErrorPage[errorCode=404, location=/error/404.do]
  ...
java.net.SocketException: Software caused connection abort: socket write
error
  ...
java.net.SocketException: Software caused connection abort: socket write
error
  ...

Any ideas? 

Thanks,

Dan

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



un-subscribe

2003-09-12 Thread İlknur Elmacı
Hi,
i  wan to un-subscribe the mailing list.
I tried to sent mail [EMAIL PROTECTED]
adress.
But Although i can't un-subscribe.
anything i can do to un-subscribe.
 
Thanks

 



Size of a stateful Bean question and OutOfMemoryError

2003-09-12 Thread Au-Yeung, Stella H
Hi:
We have a J2EE application that follows standard J2EE and Struts design
pattern.
We are using WebLogic 6.1, Struts 1.0 and JDK 1.3.1.
Basically, we have JSPs, ActionForms with databeans to populate the JSP.
Action classes call EJBs for business rules processing.   EJBs call DAO to
retrieve data etc.  Some of the EJB's are stateful and some are stateless.
We are running into a problems: "OutOfMemoryError" frequently.   I dug
through this user group's archive and found a suggestion about increasing
the Heap size.   I increase it to:

-Xms512m -Xmx512m -XX:NewSize=128m -XX:MaxNewSize=128m -XX:SurvivorRatio=8

And is still having the OutOfMemoryError problem.That should give it
plenty of heap space, doesn't it?

It seems like the JVM garbage collection (GC) is not doing its work.I
tried to put -verbose so I can see when GC takes place.  But because the
application is started as an NT service so I can't see any printout.

Ques#1) Running the application as an NT service, how can I print out GC
detail info so I can see how much memory is being released and other kind of
helpful info?
Ques#2) I understand my EJB stateful beans are allocated as multiple
instances to multiple clients.   Do you think moving some of the code that
doesn't need to be in a 'stateful' bean into a 'stateless' bean will reduce
memory consumption thus alleviate the outOfMemoryError problem?
Ques$3) I have a general purpose 'ActionForm' for 'Searching' purpose.  It
serves multiple search JSPs.   So it is quite big.   Do you think may be
breaking up the ActionForm to multiple ones so each search JSP has its own
ActionForm.   By reducing the size of ActionForm, do you think it also will
alleviate the memory problem.
Ques#4) I thought I read somewhere before that weblogic 6.1 and JDK 1.3.1
may have a memory leak problem.  Does anyone have similar problems with
these versions.  And if I upgrade to newer Weblogic (e.g. 7.0) and new JDK
(e.g. 1.4.1) will it resolve my memory problem?
Ques#5) Finally, whats the best way to debug OutOfMemoryError problem.

Thanks for any suggestions and insights that you can provide...


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



Validator, DynaForms, and Collections

2003-09-12 Thread Joe at Team345
Hi,

I'm using the Struts Validator (version 1.1 release) on DynaValidatorForms.
Everything seems to work just fine on forms that don't have collections on
them.  However, several of my forms have pull-down lists where I do
something like:






Without validation everything works perfectly.  When validation is enabled
and control returns to this form (because of invalid input), I get a null
access error for the bean:define.

Anyone else see such behavior and/or know how to fix it?

I tried using  instead (to eliminate the
bean:define).  However, this just results in a different error:  failed to
obtain specified collection.   Thus, I think there is a problem with
combining the three things listed in the subject.

Sorry for being so long winded - especially on a Friday!

any help appreciated,

Joe Gamache


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



RE: [Fwd: [XHTML] Default submit button]

2003-09-12 Thread Andrew Hill
Thanks Adam.

Ive swapped them round now, works a charm :-)

I still wonder if there is any other way to specify the default though?

regards
Andrew

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 September 2003 23:12
To: Struts Users Mailing List
Subject: [Fwd: [XHTML] Default submit button]


Hi Andrew
I believe your first submit button as the HTML appears is the default.

Do this mean your cancel button is before your submit button? Seems strange.


Adam

 Original Message 
From: Andrew Hill <[EMAIL PROTECTED]>
To: Struts <[EMAIL PROTECTED]>
Subject: [XHTML] Default submit button
Date: Fri, 12 Sep 2003 13:18:51 +0800

Hopefully a quick & simple question: my page has a Cancel and a Submit
button, both of which are input fields of type submit. At the moment the
cancel button appears to be the 'default' - so I have to explicitly click
save to save instead of just anyhow hitting the enter key. How to make Save
the default button?


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



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


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


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



[Fwd: [XHTML] Default submit button]

2003-09-12 Thread Adam Hardy
Hi Andrew
I believe your first submit button as the HTML appears is the default.
Do this mean your cancel button is before your submit button? Seems strange.

Adam

 Original Message 
From: Andrew Hill <[EMAIL PROTECTED]>
To: Struts <[EMAIL PROTECTED]>
Subject: [XHTML] Default submit button
Date: Fri, 12 Sep 2003 13:18:51 +0800
Hopefully a quick & simple question: my page has a Cancel and a Submit
button, both of which are input fields of type submit. At the moment the
cancel button appears to be the 'default' - so I have to explicitly click
save to save instead of just anyhow hitting the enter key. How to make Save
the default button?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Client side validation when using validation against Action path

2003-09-12 Thread Yuan, Saul (TOR-ML)
To answer my own question.

After much pain, I found out the following worked:



I missed the method="validateAssetForm" part, not sure why it's vital
here. It works thought without it when validating against the form
(rather than action path).


Saul


> 
> Hi,
> 
> I'm using the Validator to validate against an action path (rather
than
> a form), it works fine on the server side. But it doesn't work on the
> client side using javascript. All the javascripts are spitted out as
> text, I noticed the starting and ending 

Re: menu and tiles definitions

2003-09-12 Thread Yann Cébron
> I have to use a menu in my webapplication. I work with tiles and
definitions. Most menus I find on the internet, work with , but I
can not link an  with a definition.
> Has anyone used already a menu where the menuItems are linked with
definitions ?
> Any help will be very appreciated, because if I won't be able to create
such a menu, I'll have to use Frames in stead of tiles and definitions.

It's pretty easy: you'll have to setup corresponding "dummy"-Actions for
each of your definitions you need to link, e.g.



Now you can use links using  in your menu.

HTH,

Yann




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



RE: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-12 Thread Yuan, Saul (TOR-ML)
Rob,

Thanks for your response.

I ended up with changing the validator-rules.xml file myself to add
support for multiple radios, checkboxes and selections (just for the
validateRequired(form) function)

I checked the validator-rules.xml file in the latest nightly built (Sep
12), I noticed it added support for multiple radio buttons, but not yet
for multiples checkboxes and selections.


Thanks,
Saul



> 
> Use the nightly build of struts, this was fixed on Sept 9.
> Please let me know if it works for you.
> 
> -Rob
> 
> >Hi,
> >
> >
> >
> >I have some problems validating multiple radio buttons and
checkboxes,
> >selections on the client side. Tracking down to the javascript code
> >defined in validator-rules.xml, I found that the
validateRequired(form)
> >function doesn't deal with multiple checkboxes, selections at all.
For
> >multiples radios, checkboxes etc, the field.type = undefined. Can
> >somebody explain why is this?
> >
> >
> >
> >Thanks,
> >
> >Saul
> >
> >
> >
> >
> >
> >Validator-rules.xml:
> >
> >-
> >
> >
> >
> >function validateRequired(form) {
> >
> >var isValid = true;
> >
> >var focusField = null;
> >
> >var i = 0;
> >
> >var fields = new Array();
> >
> >oRequired = new required();
> >
> >for (x in oRequired) {
> >
> >var field = form[oRequired[x][0]];
> >
> >
> >
> >if (field.type == 'text' ||
> >
> >field.type == 'textarea' ||
> >
> >field.type == 'file' ||
> >
> >field.type == 'select-one' ||
> >
> >field.type == 'radio' ||
> >
> >field.type == 'password') {
> >
> >
> >
> >var value = '';
> >
> >
> >// get field's value
> >
> >
> >if (field.type == "select-one") {
> >
> >
> >var si = field.selectedIndex;
> >
> >
> >if (si >= 0) {
> >
> >
> >value = field.options[si].value;
> >
> >
> >}
> >
> >
> >} else {
> >
> >
> >value = field.value;
> >
> >
> >}
> >
> >
> >
> >if (trim(value).length == 0) {
> >
> >
> >
> >if (i == 0) {
> >
> >focusField = field;
> >
> >}
> >
> >fields[i++] = oRequired[x][1];
> >
> >isValid = false;
> >
> >}
> >
> >}
> >
> >}
> >
> >if (fields.length > 0) {
> >
> >   focusField.focus();
> >
> >   alert(fields.join('\n'));
> >
> >}
> >
> >return isValid;
> >
> >}
> >
> >
> >
> >
> 
> 
> 
> -
> 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: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In Action Triva Quiz]

2003-09-12 Thread Chappell, Simon P
Letterhead? I don't need no steeenking letterhead!

And I want cash up front ... unmarked bills.

>-Original Message-
>From: Andrew Hill [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 12, 2003 9:31 AM
>To: Struts Users Mailing List
>Subject: RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In
>Action Triva Quiz]
>
>
>Oh joy! As it happens Ive been looking for one to add to my collection!
>
>I'll soon be making a lot of money in a perfectly legal risk free
>transaction with a chief from some African republic (Actually 
>you know I
>think it was his uncle who had the idea for timezones! Small 
>world!) who
>needs to shift some cash out of his country (something about a 
>civil war and
>some dangerous new warlord with an army of carniverous cloned 
>sheep and a
>giant robot space laser).
>
>Anyhow now that Im soon to be flush with cash I suddenly had 
>this urge to
>start collecting bridges.
>Write to me using your official letterhead so I can verify 
>your credentials
>with your bank details. I will then wire you the money for the bridge.
>
>ps:
>Please fedex the bridge. The ups guys gave me a bit of trouble 
>over the last
>one.
>
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>Sent: Friday, 12 September 2003 22:07
>To: Struts Users Mailing List; [EMAIL PROTECTED]
>Subject: RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In
>Action Triva Quiz]
>
>
>Right. And I have a bridge to sell you.
>
>>-Original Message-
>>From: Andrew Hill [mailto:[EMAIL PROTECTED]
>>Sent: Friday, September 12, 2003 8:54 AM
>>To: Struts Users Mailing List
>>Subject: RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In
>>Action Triva Quiz]
>>
>>
>>Oh please!
>>Everybody knows that the concept of timezones was invented by
>>the Zulus.
>>That is of course why its also called Zulu time.
>>
>>-Original Message-
>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>>Sent: Friday, 12 September 2003 21:48
>>To: Struts Users Mailing List; [EMAIL PROTECTED]
>>Subject: RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In
>>Action Triva Quiz]
>>
>>
>>I did not mean UTC, I meant GMT. UTC is an attempt to
>>de-British'ise the one
>>true time zone. We invented timezones, so we get the prime one! :-)
>>
>>>-Original Message-
>>>From: Andrew Hill [mailto:[EMAIL PROTECTED]
>>>Sent: Friday, September 12, 2003 8:37 AM
>>>To: Struts Users Mailing List
>>>Subject: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts 
>In Action
>>>Triva Quiz]
>>>
>>>
>>>Dont you mean UTC?
>>>
>>>Although it being Friday there really is only one time:
>>>
>>>Tiger Time!
>>>
>>>And for the sake of Mark, who is perhaps not familiar with the
>>>advertising
>>>campaigns of Asia Pacific Breweries Pte Ltd, but who I know
>>>just *loves*
>>>flash based websites on Fridays:
>>>http://www.tigerbeer.com.sg/
>>>(Still no LISP. Sorry mate!)
>>>
>>>Awww strewth. And Im stuck in the smegging office again
>>>need beer now...
>>>oh the humanity :-(
>>>
>>>-Original Message-
>>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>>>Sent: Friday, 12 September 2003 21:28
>>>To: Struts Users Mailing List
>>>Subject: RE: [FRIDAY] YA Stuts In Action Triva Quiz
>>>
>>>
>>>There is only one time zone: GMT. Everything else is an illusion! :-)
>>>
-Original Message-
From: Jason Lea [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 7:42 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] YA Stuts In Action Triva Quiz


Ted Husted wrote:

> The contest will run until Saturday, September 14, 2003,
>>23:59:59 so
> everyone has a chance to participate.

Just for completness and clarification, which time zone is that?

EDT?  Perhaps you should say 2003-09-14 23:59:59 -0400

Or is it +?

--
Jason Lea



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


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

menu and tiles definitions

2003-09-12 Thread koen boutsen
Hello

I have to use a menu in my webapplication. I work with tiles and definitions. Most 
menus I find on the internet, work with , but I can not link an  with 
a definition. 
Has anyone used already a menu where the menuItems are linked with definitions ?  
Any help will be very appreciated, because if I won't be able to create such a menu, 
I'll have to use Frames in stead of tiles and definitions.

Thank you

Koen Boutsen



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]



RE: Error:Cannot find bean org.apache.struts.taglib.html.BEAN in any Scope

2003-09-12 Thread deepaksawdekar
Action attribute in form tag will be missing. if its the requirement, added the name 
attribute to all the  tags.

Deepak.

-Original Message-
From: Ritvik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 8:08 PM
To: [EMAIL PROTECTED]
Subject: Error:Cannot find bean org.apache.struts.taglib.html.BEAN in
any Scope


Hi There,

I am following the book 'Struts In Action' books and trying to build the

Sample Logon Application from first few chapters. I was able to display
Welcome page (Welcome.do) and when i click on 'Sign In' link, I am
getting the following error? Please also review the configurations added

to struts-config file. Why does 'logonForm' bean being created?

javax.servlet.jsp.JspException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any

scope
 at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:714)
 at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:193)

 at org.apache.jsp.Logon$jsp._jspService(Logon$jsp.java:116)

-- Welcome.jsp code snippet --

Sign in









thanks,
Ritvik


-
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: Error:Cannot find bean org.apache.struts.taglib.html.BEAN in any Scope

2003-09-12 Thread Michael Ruppin
This looks a lot like your last post.
Try:

name="logonForm"
in your 
 
m

Ritvik <[EMAIL PROTECTED]> wrote:
Hi There,

I am following the book 'Struts In Action' books and trying to build the

Sample Logon Application from first few chapters. I was able to display
Welcome page (Welcome.do) and when i click on 'Sign In' link, I am
getting the following error? Please also review the configurations added

to struts-config file. Why does 'logonForm' bean being created?

javax.servlet.jsp.JspException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any

scope
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:714)
at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:193)

at org.apache.jsp.Logon$jsp._jspService(Logon$jsp.java:116)

-- Welcome.jsp code snippet --


Sign in

name="logonForm"
type="app.view.LogonForm"/>



name="logon"
path="/Logon.do"/>

path="/Logon"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/Logon.jsp"/>

thanks,
Ritvik


-
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: [OT] Design considerations

2003-09-12 Thread Alen Ribic
Hi Ted

Thanks for your reply.

I know that the following is a bit of a dumb question but I'm just not to
sure what the exact answer is...
> > If I decide to introduce a pattern such as DAO, my question is, will I
> > loose the benefit of managed environment?
Is this entirely true or the exact opposite?
e.g. I wanna use CMT, Managed Security, etc. (I wanna keep my Hibernate
invocation under the CMT but still abstract the Hibernate system out using
DAO)

>From my point of view, DAO seems to push the Persistence invocation out of
the business tier hence I would think that something like CMT wouldn't
really work.

Thanks,
Alen


- Original Message -
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 1:37 AM
Subject: Re: [OT] Design considerations


> Most people, including the Hibernate team, recommend using a DAO layer
> now. Even the Struts MailReader example uses a DAO layer now. There's
> also a very good example in the iBATIS jPetstore example.
>
> http://www.ibatis.com/jpetstore/jpetstore.html
>
> iBATIS is actually two frameworks, a SQL Mapper and a DAO framework. If
> you like what you see in the jPestore, you shoold be able to use the DAO
> framework with Hibernate and then switch to something else later. (It
> uses a factory configured through a XML document.)
>
> -Ted.
>
>
> Alen Ribic wrote:
>
> > Hi to everyone on the list.
> >
> > I'm looking at the design options for a new app I'm working on.
> > I have something like this so far:..
> >
> > Struts framework --> invoke Action commands (execute) --> invoke
Business
> > Delegate methods --> lookup coarse-grained Session Bean --> invoke
method on
> > bean --> lookup factory for ORM system (Hibernate) --> manipulate data.
> >
> > My question is with regards to possibility of abstracting the
persistence
> > invocation out from the business tier to integration tier. I might wanna
be
> > switching to JDO for persistence in the forthcoming future and wish to
make
> > provision for change.
> > If I decide to introduce a pattern such as DAO, my question is, will I
loose
> > the benefit of managed environment? I wanna use Session beans with CMT
and
> > to then invoke the persistence system indirectly via DAO.
> >
> > Regards,
> > Alen
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> --
> Ted Husted,
>Junit in Action  - ,
>Struts in Action - ,
>JSP Site Design  - .
>
>
>
> -
> 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]



Error:Cannot find bean org.apache.struts.taglib.html.BEAN in any Scope

2003-09-12 Thread Ritvik
Hi There,

I am following the book 'Struts In Action' books and trying to build the

Sample Logon Application from first few chapters. I was able to display
Welcome page (Welcome.do) and when i click on 'Sign In' link, I am
getting the following error? Please also review the configurations added

to struts-config file. Why does 'logonForm' bean being created?

javax.servlet.jsp.JspException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any

scope
 at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:714)
 at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:193)

 at org.apache.jsp.Logon$jsp._jspService(Logon$jsp.java:116)

-- Welcome.jsp code snippet --

Sign in









thanks,
Ritvik


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



Re: assigning a value back to a bean in a logic:iterate?

2003-09-12 Thread Mick Knutson
I am basically trying to take cellColor which is a variable in my DynaForm,
and loop through an array of alerts[] that is also in this DynaForm. So I
can then alternate the cell colors of the table. So alertForm.cellColor need
to be changed each iteration of this loop.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

- Original Message - 
From: "Mohan Radhakrishnan" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 7:33 AM
Subject: RE: assigning a value back to a bean in a logic:iterate?


>
>   value="content_tbl_blue" />
>
>
> This code defines a scripting variable but I think that since you don't
have
> any html controls this value is not automatically sent with the request.
>
>  In our JSP's where we don't have html controls we use the following code.
>
>property="timeSheetItems">
> 
> 
>   
> Mohan
>
> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 7:44 PM
> To: struts
> Subject: assigning a value back to a bean in a logic:iterate?
>
>
> I have the following code I want to make work:
>
> 
> stuff
>  value="content_tbl_white" >
>  value="content_tbl_blue" />
> 
>  value="content_tbl_blue" >
>  value="content_tbl_white" />
> test blue
> 
> 
>
> But I can't seem assign "cellColor" attribute back into alertListForm.
>
> ---
> Thanks
> Mick Knutson
> http://www.baselogic.com
>
> +001(805) 563-0666 Office
> +001 (708) 570-2772 Fax
> ---
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Multiple message resources with JSTL

2003-09-12 Thread Kris Schneider
Here's something that appears to be a step in the right direction. First, use a
single context init param for javax.servlet.jsp.jstl.fmt.localizationContext.
The  content should match the "parameter" attribute of the
 element in your default Struts config file. For example,
your default Struts config file would include:



Then, add something like the following to a module Struts config file:



Finally, extend SwitchAction like so:

import javax.servlet.jsp.jstl.core.Config;
...
public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response) throws Exception {
  ActionForward forward = super.execute(mapping, form, request, response);

  ModuleConfig moduleConfig =
RequestUtils.getModuleConfig(request, getServlet().getServletContext());

  MessageResourcesConfig messageConfig =
moduleConfig.findMessageResourcesConfig(Globals.MESSAGES_KEY);

  if (messageConfig != null) {
Config.set(request,
   Config.FMT_LOCALIZATION_CONTEXT,
   messageConfig.getParameter());
  }

  return forward;
}

So, as long as you use the new switch action to move between modules, it should
pick up the messages associated with the new module and make them available to
JSTL. I haven't looked into how to integrate with module switching via a forward
with "contextRelative=true", but there might be something possible there as well...

Quoting Carlos Sanchez <[EMAIL PROTECTED]>:

> I'm using JSTL + Struts configured for modules
> 
> I'm using JSTL fmt tag for messages, instead of Struts tags, configured in
> web.xml
> 
>   
> javax.servlet.jsp.jstl.fmt.localizationContext
> com.obs.webapp.messages.Messages
>   
> 
> I'd like to add more message resources, one for each module.
> 
> Adding more context-param's doesn't work, it uses the last one.
> 
> Can I configure it in web.xml, have I to use fmt:setBundle in the jsps,
> ...?

-- 
Kris Schneider 
D.O.Tech   

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



RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In Action Triva Quiz]

2003-09-12 Thread Andrew Hill
Oh joy! As it happens Ive been looking for one to add to my collection!

I'll soon be making a lot of money in a perfectly legal risk free
transaction with a chief from some African republic (Actually you know I
think it was his uncle who had the idea for timezones! Small world!) who
needs to shift some cash out of his country (something about a civil war and
some dangerous new warlord with an army of carniverous cloned sheep and a
giant robot space laser).

Anyhow now that Im soon to be flush with cash I suddenly had this urge to
start collecting bridges.
Write to me using your official letterhead so I can verify your credentials
with your bank details. I will then wire you the money for the bridge.

ps:
Please fedex the bridge. The ups guys gave me a bit of trouble over the last
one.


-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 September 2003 22:07
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In
Action Triva Quiz]


Right. And I have a bridge to sell you.

>-Original Message-
>From: Andrew Hill [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 12, 2003 8:54 AM
>To: Struts Users Mailing List
>Subject: RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In
>Action Triva Quiz]
>
>
>Oh please!
>Everybody knows that the concept of timezones was invented by
>the Zulus.
>That is of course why its also called Zulu time.
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>Sent: Friday, 12 September 2003 21:48
>To: Struts Users Mailing List; [EMAIL PROTECTED]
>Subject: RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In
>Action Triva Quiz]
>
>
>I did not mean UTC, I meant GMT. UTC is an attempt to
>de-British'ise the one
>true time zone. We invented timezones, so we get the prime one! :-)
>
>>-Original Message-
>>From: Andrew Hill [mailto:[EMAIL PROTECTED]
>>Sent: Friday, September 12, 2003 8:37 AM
>>To: Struts Users Mailing List
>>Subject: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In Action
>>Triva Quiz]
>>
>>
>>Dont you mean UTC?
>>
>>Although it being Friday there really is only one time:
>>
>>Tiger Time!
>>
>>And for the sake of Mark, who is perhaps not familiar with the
>>advertising
>>campaigns of Asia Pacific Breweries Pte Ltd, but who I know
>>just *loves*
>>flash based websites on Fridays:
>>http://www.tigerbeer.com.sg/
>>(Still no LISP. Sorry mate!)
>>
>>Awww strewth. And Im stuck in the smegging office again
>>need beer now...
>>oh the humanity :-(
>>
>>-Original Message-
>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>>Sent: Friday, 12 September 2003 21:28
>>To: Struts Users Mailing List
>>Subject: RE: [FRIDAY] YA Stuts In Action Triva Quiz
>>
>>
>>There is only one time zone: GMT. Everything else is an illusion! :-)
>>
>>>-Original Message-
>>>From: Jason Lea [mailto:[EMAIL PROTECTED]
>>>Sent: Thursday, September 11, 2003 7:42 PM
>>>To: Struts Users Mailing List
>>>Subject: Re: [FRIDAY] YA Stuts In Action Triva Quiz
>>>
>>>
>>>Ted Husted wrote:
>>>
 The contest will run until Saturday, September 14, 2003,
>23:59:59 so
 everyone has a chance to participate.
>>>
>>>Just for completness and clarification, which time zone is that?
>>>
>>>EDT?  Perhaps you should say 2003-09-14 23:59:59 -0400
>>>
>>>Or is it +?
>>>
>>>--
>>>Jason Lea
>>>
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
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: assigning a value back to a bean in a logic:iterate?

2003-09-12 Thread Mohan Radhakrishnan

 


This code defines a scripting variable but I think that since you don't have
any html controls this value is not automatically sent with the request.

 In our JSP's where we don't have html controls we use the following code.

  


  
Mohan

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 7:44 PM
To: struts
Subject: assigning a value back to a bean in a logic:iterate?


I have the following code I want to make work:


stuff





test blue



But I can't seem assign "cellColor" attribute back into alertListForm.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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


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



RE: Struts EL

2003-09-12 Thread Slattery, Tim - BLS
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 12, 2003 10:11 AM
Subject: Struts EL
 
> One, where do I get it?


IN the "contrib" directory of the struts distribution.

> Two, where do I get a bit more info on its use?  I know both 
> struts and JSTL but I am not sure how to integrate the tags...
> 
> for example if I want to run
> 
> 
> 
> 
> 
> 
> would that work?

You can use the EL (expression language) in the Struts-el tags just the same
way you do in the JSTL tags. So your html-el tag would be something like:



--
Tim Slattery
[EMAIL PROTECTED]


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



RE: Struts EL

2003-09-12 Thread Paul McCulloch
It's in the contrib directory of the struts distribution. I can't help you
much on using JSTL & struts-el together I'm afraid.

But, wouldn't 
be a bit more ELish?

Paul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 12 September 2003 15:11
To: Struts Users Mailing List
Subject: Struts EL


One, where do I get it?

Two, where do I get a bit more info on its use?  I know both struts and JSTL
but I am not sure how to integrate the tags...

for example if I want to run






would that work?


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


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



assigning a value back to a bean in a logic:iterate?

2003-09-12 Thread Mick Knutson
I have the following code I want to make work:


stuff





test blue



But I can't seem assign "cellColor" attribute back into alertListForm.

---
Thanks
Mick Knutson
http://www.baselogic.com

+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---

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



Struts EL

2003-09-12 Thread denis
One, where do I get it?

Two, where do I get a bit more info on its use?  I know both struts and JSTL but I am 
not sure how to integrate the tags...

for example if I want to run






would that work?

RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In Action Triva Quiz]

2003-09-12 Thread Chappell, Simon P
Right. And I have a bridge to sell you.

>-Original Message-
>From: Andrew Hill [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 12, 2003 8:54 AM
>To: Struts Users Mailing List
>Subject: RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In
>Action Triva Quiz]
>
>
>Oh please!
>Everybody knows that the concept of timezones was invented by 
>the Zulus.
>That is of course why its also called Zulu time.
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>Sent: Friday, 12 September 2003 21:48
>To: Struts Users Mailing List; [EMAIL PROTECTED]
>Subject: RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In
>Action Triva Quiz]
>
>
>I did not mean UTC, I meant GMT. UTC is an attempt to 
>de-British'ise the one
>true time zone. We invented timezones, so we get the prime one! :-)
>
>>-Original Message-
>>From: Andrew Hill [mailto:[EMAIL PROTECTED]
>>Sent: Friday, September 12, 2003 8:37 AM
>>To: Struts Users Mailing List
>>Subject: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In Action
>>Triva Quiz]
>>
>>
>>Dont you mean UTC?
>>
>>Although it being Friday there really is only one time:
>>
>>Tiger Time!
>>
>>And for the sake of Mark, who is perhaps not familiar with the
>>advertising
>>campaigns of Asia Pacific Breweries Pte Ltd, but who I know
>>just *loves*
>>flash based websites on Fridays:
>>http://www.tigerbeer.com.sg/
>>(Still no LISP. Sorry mate!)
>>
>>Awww strewth. And Im stuck in the smegging office again
>>need beer now...
>>oh the humanity :-(
>>
>>-Original Message-
>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>>Sent: Friday, 12 September 2003 21:28
>>To: Struts Users Mailing List
>>Subject: RE: [FRIDAY] YA Stuts In Action Triva Quiz
>>
>>
>>There is only one time zone: GMT. Everything else is an illusion! :-)
>>
>>>-Original Message-
>>>From: Jason Lea [mailto:[EMAIL PROTECTED]
>>>Sent: Thursday, September 11, 2003 7:42 PM
>>>To: Struts Users Mailing List
>>>Subject: Re: [FRIDAY] YA Stuts In Action Triva Quiz
>>>
>>>
>>>Ted Husted wrote:
>>>
 The contest will run until Saturday, September 14, 2003, 
>23:59:59 so
 everyone has a chance to participate.
>>>
>>>Just for completness and clarification, which time zone is that?
>>>
>>>EDT?  Perhaps you should say 2003-09-14 23:59:59 -0400
>>>
>>>Or is it +?
>>>
>>>--
>>>Jason Lea
>>>
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In Action Triva Quiz]

2003-09-12 Thread Andrew Hill
Oh please!
Everybody knows that the concept of timezones was invented by the Zulus.
That is of course why its also called Zulu time.

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 September 2003 21:48
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In
Action Triva Quiz]


I did not mean UTC, I meant GMT. UTC is an attempt to de-British'ise the one
true time zone. We invented timezones, so we get the prime one! :-)

>-Original Message-
>From: Andrew Hill [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 12, 2003 8:37 AM
>To: Struts Users Mailing List
>Subject: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In Action
>Triva Quiz]
>
>
>Dont you mean UTC?
>
>Although it being Friday there really is only one time:
>
>Tiger Time!
>
>And for the sake of Mark, who is perhaps not familiar with the
>advertising
>campaigns of Asia Pacific Breweries Pte Ltd, but who I know
>just *loves*
>flash based websites on Fridays:
>http://www.tigerbeer.com.sg/
>(Still no LISP. Sorry mate!)
>
>Awww strewth. And Im stuck in the smegging office again
>need beer now...
>oh the humanity :-(
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>Sent: Friday, 12 September 2003 21:28
>To: Struts Users Mailing List
>Subject: RE: [FRIDAY] YA Stuts In Action Triva Quiz
>
>
>There is only one time zone: GMT. Everything else is an illusion! :-)
>
>>-Original Message-
>>From: Jason Lea [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, September 11, 2003 7:42 PM
>>To: Struts Users Mailing List
>>Subject: Re: [FRIDAY] YA Stuts In Action Triva Quiz
>>
>>
>>Ted Husted wrote:
>>
>>> The contest will run until Saturday, September 14, 2003, 23:59:59 so
>>> everyone has a chance to participate.
>>
>>Just for completness and clarification, which time zone is that?
>>
>>EDT?  Perhaps you should say 2003-09-14 23:59:59 -0400
>>
>>Or is it +?
>>
>>--
>>Jason Lea
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



Re: Really Dynamic Forms

2003-09-12 Thread denis
Ok.

So to use variable names they reccomend using

<%
for (int i = 0; i < 10; i++) {
String name = "value(foo-" + i + ")";
%>


<%
}
%>


I would like to use JSTL, but you can't put jstl tags inside struts tags and
someone mentioned at one point that I should use EL...  soo, any links as to
where I can read about this?

Thanks,

Denis
- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 9:43 AM
Subject: Re: Really Dynamic Forms


> Well.  So after I write, I found
>
http://jakarta.apache.org/struts/userGuide/building_controller.html#map_action_form_classes
> Thanks anyway.
>
> Regards,
>
> Denis
> - Original Message - 
> From: <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, September 12, 2003 9:40 AM
> Subject: Really Dynamic Forms
>
>
> Hello,
>
> So I have a problem, and I just can't get out of the box to look at it
> anymore so I am writing you all:
>
> I have a user registration page and action i am writing.  User can have a
> variable number of properties with different names that need to be filled
> in.  User also has some properties that always need to be filled in.
>
> I am not sure how to do this using struts forms of any kind.  It seems to
me
> that I need to define at least the names of the properties in advance,
when
> that will be changing (I know the client will be adding and removing
> properties in the future so I can't hardcode them).
>
> Right now I am using a regular form, I have my fixed properties hardcoded,
> and variable ones are preloaded in a map in the setup action and I iterate
> over them to display them.  Then in the action I retrieve them.
>
> This is fine until I want to validate something, and I really like struts
> forms validation, so i'd like to use them if possible.
>
> To summarize:
> I have  a map of properties, as well as some regular properties.
> I want to use a struts form to retrieve the data.
> I don't know how to do it so the names are dynamic.
>
>
> Regards,
>
> Denis
>
>
> -
> 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]



Cannot Find bean Error: html tag

2003-09-12 Thread Struts User
Hi There,

I am building the simple Logon application from the first few chapters
of 'Struts In Action' from Ted Husted. When I click on 'SignIn' link on
main welcome page (Welcome.do), I am getting the following message. I am
using html tag as Ted suggested  I have
added an action mapping for /logon.do with type "ForwardAction".. What
could possibly cause this problem?

Error:

javax.servlet.jsp.JspException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope
 at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:714)
 at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:193)

 at org.apache.jsp.Logon$jsp._jspService(Logon$jsp.java:116)

Struts Config Elements
---Form Beans ---




--- Global Forwards ---




Action Mapping ---



thanks,
ritvik







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



RE: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In Action Triva Quiz]

2003-09-12 Thread Chappell, Simon P
I did not mean UTC, I meant GMT. UTC is an attempt to de-British'ise the one true time 
zone. We invented timezones, so we get the prime one! :-)

>-Original Message-
>From: Andrew Hill [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 12, 2003 8:37 AM
>To: Struts Users Mailing List
>Subject: [BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In Action
>Triva Quiz]
>
>
>Dont you mean UTC?
>
>Although it being Friday there really is only one time:
>
>Tiger Time!
>
>And for the sake of Mark, who is perhaps not familiar with the 
>advertising
>campaigns of Asia Pacific Breweries Pte Ltd, but who I know 
>just *loves*
>flash based websites on Fridays:
>http://www.tigerbeer.com.sg/
>(Still no LISP. Sorry mate!)
>
>Awww strewth. And Im stuck in the smegging office again 
>need beer now...
>oh the humanity :-(
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>Sent: Friday, 12 September 2003 21:28
>To: Struts Users Mailing List
>Subject: RE: [FRIDAY] YA Stuts In Action Triva Quiz
>
>
>There is only one time zone: GMT. Everything else is an illusion! :-)
>
>>-Original Message-
>>From: Jason Lea [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, September 11, 2003 7:42 PM
>>To: Struts Users Mailing List
>>Subject: Re: [FRIDAY] YA Stuts In Action Triva Quiz
>>
>>
>>Ted Husted wrote:
>>
>>> The contest will run until Saturday, September 14, 2003, 23:59:59 so
>>> everyone has a chance to participate.
>>
>>Just for completness and clarification, which time zone is that?
>>
>>EDT?  Perhaps you should say 2003-09-14 23:59:59 -0400
>>
>>Or is it +?
>>
>>--
>>Jason Lea
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: actionmapping set-property problem in 1.1 upgrade

2003-09-12 Thread Joe Germuska
At 0:30 +0200 9/12/03, Jan Zimmek wrote:
Adding a custom digester rule (like for "data-source" and "plugin") 
in this class:

http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/config/ConfigRuleSet.java?rev=1.15&content-type=text/vnd.viewcvs-markup

plus adding a java.lang.Map class-attribute should solve the 
problem, but this would mean to recompile an own struts-binary. 
Better someone who has cvs-write access fix it to be sure it is in 
the next nightly build.
You can extend the way that digester handles struts-config without 
recompiling ConfigRuleSet by setting a "rulesets" initialization 
parameter in the web.xml deployment descriptor:

http://jakarta.apache.org/struts/userGuide/configuration.html#dd_config

Joe

--
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"If nature worked that way, the universe would crash all the time." 
	--Jaron Lanier

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


Re: Really Dynamic Forms

2003-09-12 Thread denis
Well.  So after I write, I found
http://jakarta.apache.org/struts/userGuide/building_controller.html#map_action_form_classes
Thanks anyway.

Regards,

Denis
- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 9:40 AM
Subject: Really Dynamic Forms


Hello,

So I have a problem, and I just can't get out of the box to look at it
anymore so I am writing you all:

I have a user registration page and action i am writing.  User can have a
variable number of properties with different names that need to be filled
in.  User also has some properties that always need to be filled in.

I am not sure how to do this using struts forms of any kind.  It seems to me
that I need to define at least the names of the properties in advance, when
that will be changing (I know the client will be adding and removing
properties in the future so I can't hardcode them).

Right now I am using a regular form, I have my fixed properties hardcoded,
and variable ones are preloaded in a map in the setup action and I iterate
over them to display them.  Then in the action I retrieve them.

This is fine until I want to validate something, and I really like struts
forms validation, so i'd like to use them if possible.

To summarize:
I have  a map of properties, as well as some regular properties.
I want to use a struts form to retrieve the data.
I don't know how to do it so the names are dynamic.


Regards,

Denis


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



Really Dynamic Forms

2003-09-12 Thread denis
Hello, 

So I have a problem, and I just can't get out of the box to look at it anymore so I am 
writing you all:

I have a user registration page and action i am writing.  User can have a variable 
number of properties with different names that need to be filled in.  User also has 
some properties that always need to be filled in.  

I am not sure how to do this using struts forms of any kind.  It seems to me that I 
need to define at least the names of the properties in advance, when that will be 
changing (I know the client will be adding and removing properties in the future so I 
can't hardcode them).

Right now I am using a regular form, I have my fixed properties hardcoded, and 
variable ones are preloaded in a map in the setup action and I iterate over them to 
display them.  Then in the action I retrieve them.

This is fine until I want to validate something, and I really like struts forms 
validation, so i'd like to use them if possible.

To summarize:
I have  a map of properties, as well as some regular properties.
I want to use a struts form to retrieve the data.
I don't know how to do it so the names are dynamic.


Regards, 

Denis

[BEER] What time is it? [WAS: RE: [FRIDAY] YA Stuts In Action Triva Quiz]

2003-09-12 Thread Andrew Hill
Dont you mean UTC?

Although it being Friday there really is only one time:

Tiger Time!

And for the sake of Mark, who is perhaps not familiar with the advertising
campaigns of Asia Pacific Breweries Pte Ltd, but who I know just *loves*
flash based websites on Fridays:
http://www.tigerbeer.com.sg/
(Still no LISP. Sorry mate!)

Awww strewth. And Im stuck in the smegging office again need beer now...
oh the humanity :-(

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 September 2003 21:28
To: Struts Users Mailing List
Subject: RE: [FRIDAY] YA Stuts In Action Triva Quiz


There is only one time zone: GMT. Everything else is an illusion! :-)

>-Original Message-
>From: Jason Lea [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 11, 2003 7:42 PM
>To: Struts Users Mailing List
>Subject: Re: [FRIDAY] YA Stuts In Action Triva Quiz
>
>
>Ted Husted wrote:
>
>> The contest will run until Saturday, September 14, 2003, 23:59:59 so
>> everyone has a chance to participate.
>
>Just for completness and clarification, which time zone is that?
>
>EDT?  Perhaps you should say 2003-09-14 23:59:59 -0400
>
>Or is it +?
>
>--
>Jason Lea
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



[OT] Next meeting for Struts-Atlanta....

2003-09-12 Thread James Mitchell
  

The Next Meeting...

When:Tuesday, Sepetember 23, 2003 from 7PM to 9PM   
Where:  
Mirant

1155 Perimeter Center Parkway
(across from the Sandy Springs Marta station near Perimeter mall
Click here   for directions 
Presenter:   
 
Jason Chambers is an Advisory Developer at Delta Technology where his
responsibilities include delta.com and flysong.com. He has over 12 years
development experience working in the software, telecom and airline
industries. In his spare time he maintains various small re- usable Java
components released as open source. He is a Sun Certified Java Developer
and Web Component Developer for the Java 2 platform. He maintains a blog
at http://jason.blog-city.com  . 
Topic:   
 
Getting started with Struts
Description: 
What do you need to get started with Struts? Well, you need a lot more
than just Struts itself. This presentation will show you what components
you need, where to get them from and how to get them working together to
build a basic yet productive development environment for your web
applications. Best of all, it is all free!  





--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx






RE: commons logging -- how to change the default setting of INFO

2003-09-12 Thread naveen . joshi
Try this
2


-Original Message-
From: sundar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 9:26 AM
To: struts-user
Cc: sundar
Subject: commons logging -- how to change the default setting of INFO






Hi, I perused the list archives for this, but none of the suggestions
mentioned seem to work for me. Here is my problem.. (I'm running struts 1.1
b4 -- I think).

I created a file commons-logging.properties in my web apps WEB-INF/classes
directory containing ..
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog

and a simplelog.properties containing..
org.apache.commons.logging.simplelog.showdatetime=true
org.apache.commons.logging.simplelog.defaultlog=error

I've even included.

  debug
  0


  detail
  0

in my action servlet's parameters. But none of these seem to work.

Struts is still logging at INFO level and creating huge log files.. (i.e.
every GET, POST etc. creates at least a few lines of output).

How can I fix this?


-
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: [FRIDAY] YA Stuts In Action Triva Quiz

2003-09-12 Thread Chappell, Simon P
There is only one time zone: GMT. Everything else is an illusion! :-)

>-Original Message-
>From: Jason Lea [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 11, 2003 7:42 PM
>To: Struts Users Mailing List
>Subject: Re: [FRIDAY] YA Stuts In Action Triva Quiz
>
>
>Ted Husted wrote:
>
>> The contest will run until Saturday, September 14, 2003, 23:59:59 so 
>> everyone has a chance to participate.
>
>Just for completness and clarification, which time zone is that?
>
>EDT?  Perhaps you should say 2003-09-14 23:59:59 -0400
>
>Or is it +?
>
>-- 
>Jason Lea
>
>
>-
>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]



commons logging -- how to change the default setting of INFO

2003-09-12 Thread sundar




Hi, I perused the list archives for this, but none of the suggestions
mentioned seem to work for me. Here is my problem.. (I'm running struts 1.1
b4 -- I think).

I created a file commons-logging.properties in my web apps WEB-INF/classes
directory containing ..
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog

and a simplelog.properties containing..
org.apache.commons.logging.simplelog.showdatetime=true
org.apache.commons.logging.simplelog.defaultlog=error

I've even included.

  debug
  0


  detail
  0

in my action servlet's parameters. But none of these seem to work.

Struts is still logging at INFO level and creating huge log files.. (i.e.
every GET, POST etc. creates at least a few lines of output).

How can I fix this?


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



RE: DispatchAction forward issue

2003-09-12 Thread Andrew Hill
The 'attributes' and the 'parameters' are NOT the same thing.

Parameters come in from the http request - either as submitted field values
or as part of the url. (For a GET request they only come in in the url, for
a POST they can come from both). Parameters are always Strings, and short of
using a HttpServletRequestWrapper the only way you can set them server side
is as part of the url when doing a forward.

(Im not quite sure what happens if you append a url query parameter with the
same name as a parameter that already exists as part of the POSTed data and
do a non-redirecting forward - will it override it or cause it to become
multivalued and if the latter which of the two values will be returned by
getParameter() and is that consistent or container dependent? Can anyone
else reading this clarify the situation?)

Attributes on the other hand occupy a different space and are set on the
server side, and while associated with a request are a java servlet api
feature rather than an http feature.

They are lost when you do a redirecting forward (as are any parameters in a
redirecting (clientside) forward that arent part of the forward url) as this
causes a new request to be sent by the client. For a non-redirecting forward
they are retained, and thus can be used by the target of that forward - be
it a jsp or an action or a servlet etc... (though as mentioned doing a
non-redirecting forward to an action constitutes the sin of 'action
chaining' and often leads only to frustration and difficulty due to a second
run through the request processor (Ive been there. It aint pretty!))

getAttribute() will not return parameter information, and setAtrtribute()
will not set parameter information. getParameter() will not return attribute
information, and much to many peoples frustration (including mine) there is
no setParameter() method (unless using some kind of wrapper) and if there
was it wouldnt set attribute info.

-Original Message-
From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 September 2003 21:01
To: 'Struts Users Mailing List'
Subject: RE: DispatchAction forward issue


Hi,

 i have trid two ways, and both at the same time:

1) I have modified the form, and now the method reset() only executes or
not depending a boolean flag that the first action clears.
2) I set the attribute in the request with the same name that it comes from
the URL, I supposed that if the data is requested again of the URL it would
be settled right, but it doesn?t work.

   I imagine only can be one object in the request with the same name. Is
the same request object in the first action and the second? or is it
recreated?

  Thks

> -Mensaje original-
> De: Andrew Hill [mailto:[EMAIL PROTECTED]
> Enviado el: viernes, 12 de septiembre de 2003 14:46
> Para: Struts Users Mailing List
> Asunto: RE: DispatchAction forward issue
>
>
> Hmm.. You can try it with a non-redirecting action. Im not
> sure how well it
> will work though as there may still be the original method
> parameter in the
> request as well as the one you tack onto the url. Give it a
> shot and see
> how.
>
> btw: you know that if you chain actions the form will get reset and
> repopulated right?
>
> -Original Message-
> From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
> Sent: Friday, 12 September 2003 20:37
> To: 'Struts Users Mailing List'
> Subject: RE: DispatchAction forward issue
>
>
> Hi,
>
>   so I must understand that it?s not possible to pass
> parameters in the
> request beetwen chained actions, is it?
>   Is not there a way to change a parameter value of the
> request if both
> actions use the same ActionForm? I want to modify one of the
> parameters in
> the firs action, so second action (chained action) can see the change.
>
>   Although I know it may be a bad idea, I don?t have any
> other now!!  :-(
>
>   Thks
>
>
>
>
> > -Mensaje original-
> > De: Andrew Hill [mailto:[EMAIL PROTECTED]
> > Enviado el: viernes, 12 de septiembre de 2003 13:39
> > Para: Struts Users Mailing List
> > Asunto: RE: DispatchAction forward issue
> >
> >
> > 
> > For that, I put in my request the "method" parameter
> > 
> >
> > No you didnt. You put in a "method" ATTRIBUTE. I saw you!
> > See:
> > 
> > request.setAttribute("method", "list");
> > 
> >
> > What you want to do is something like the following:
> > ActionForward forward = actionMapping.findForward("do_edition");
> > String path = addParam(path,"method","list");
> > return new ActionForward(path, forward.getRedirect() );
> >
> > (btw: that should be a redirecting forward (unless you have a
> > very good
> > excuse for chaining actions - something that is considered a
> > bad idea in
> > general))
> >
> > You addParam method might look something like:
> >
> > public String addParam(String url, String parameter, String value)
> > {
> >   return url + ( (url.indexOf("?")==-1) ? "?" : "&" ) +
> > parameter + "=" +
> > value;
> > }
> >
> >
> > -Origi

RE: multiple submit redirect in action

2003-09-12 Thread Andrew Hill
To add to Stephanie's reply:

You may also find the DispatchAction class to be of use to you and if so it
will save some time. Go check the docs and see if it matches your need :-)


If you need the label (Value) for that button to come from the i18n resource
bundle, then you will want to check against the key - but what you have
submitted to you is the i18ned value! If your using DispatchActions, the
LookupDispatchAction solves this nicely.

If otoh your doing the comparison yourself you can just get the
MessageResources object in your action , lookup the value based on the key
and the current locale, and then compare the result of that with what was
submitted.


-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 September 2003 20:58
To: 'Struts Users Mailing List'
Subject: RE: multiple submit redirect in action


From: Stephane Grenier [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 5:40 PM
Subject: multiple submit redirect in action

> I would like to create a form with 2 submit buttons in the jsp:

> I would like to determine in the action which submit button
> was pressed and forward from there based on some conditions.
> How can I determine in the action which submit button was pressed ?

If you look at the documentation for the  tag, you'll see
that you can specify a "property" attribute.  That attribute contains the
name of a property of the form bean that will be set to the "value" of the
tag when the form is submitted. And the "value" of a "submit" button always
appears on the button.

So, if you have a form bean that contains two properties named "updated" and
"checkedOut", and you code these tags:

 
 

Then if the "update" button is clicked, the updated property of the form
bean will contain the string "Update", and the "checkedOut" property will
contain an empty string. If the "Checkout" button is clicked, "checkedOut"
will contain "Checkout", and "updated" will be empty.

--
Tim Slattery
[EMAIL PROTECTED]


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


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



RE: DispatchAction forward issue

2003-09-12 Thread Jose Ramon Diaz
Hi,

 i have trid two ways, and both at the same time:

1) I have modified the form, and now the method reset() only executes or
not depending a boolean flag that the first action clears.
2) I set the attribute in the request with the same name that it comes from
the URL, I supposed that if the data is requested again of the URL it would
be settled right, but it doesn?t work.

   I imagine only can be one object in the request with the same name. Is
the same request object in the first action and the second? or is it
recreated?

  Thks

> -Mensaje original-
> De: Andrew Hill [mailto:[EMAIL PROTECTED]
> Enviado el: viernes, 12 de septiembre de 2003 14:46
> Para: Struts Users Mailing List
> Asunto: RE: DispatchAction forward issue
>
>
> Hmm.. You can try it with a non-redirecting action. Im not
> sure how well it
> will work though as there may still be the original method
> parameter in the
> request as well as the one you tack onto the url. Give it a
> shot and see
> how.
>
> btw: you know that if you chain actions the form will get reset and
> repopulated right?
>
> -Original Message-
> From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
> Sent: Friday, 12 September 2003 20:37
> To: 'Struts Users Mailing List'
> Subject: RE: DispatchAction forward issue
>
>
> Hi,
>
>   so I must understand that it?s not possible to pass
> parameters in the
> request beetwen chained actions, is it?
>   Is not there a way to change a parameter value of the
> request if both
> actions use the same ActionForm? I want to modify one of the
> parameters in
> the firs action, so second action (chained action) can see the change.
>
>   Although I know it may be a bad idea, I don?t have any
> other now!!  :-(
>
>   Thks
>
>
>
>
> > -Mensaje original-
> > De: Andrew Hill [mailto:[EMAIL PROTECTED]
> > Enviado el: viernes, 12 de septiembre de 2003 13:39
> > Para: Struts Users Mailing List
> > Asunto: RE: DispatchAction forward issue
> >
> >
> > 
> > For that, I put in my request the "method" parameter
> > 
> >
> > No you didnt. You put in a "method" ATTRIBUTE. I saw you!
> > See:
> > 
> > request.setAttribute("method", "list");
> > 
> >
> > What you want to do is something like the following:
> > ActionForward forward = actionMapping.findForward("do_edition");
> > String path = addParam(path,"method","list");
> > return new ActionForward(path, forward.getRedirect() );
> >
> > (btw: that should be a redirecting forward (unless you have a
> > very good
> > excuse for chaining actions - something that is considered a
> > bad idea in
> > general))
> >
> > You addParam method might look something like:
> >
> > public String addParam(String url, String parameter, String value)
> > {
> >   return url + ( (url.indexOf("?")==-1) ? "?" : "&" ) +
> > parameter + "=" +
> > value;
> > }
> >
> >
> > -Original Message-
> > From: Nicolas Delsaux [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 12 September 2003 19:28
> > To: [EMAIL PROTECTED]
> > Subject: DispatchAction forward issue
> >
> >
> > Hi, I'm using a dispatchaction for displaying/editing
> > objects, on which I
> > would like to do a forward, through an ActionForward, from an
> > other action.
> > For that, I put in my request the "method" parameter, that should be
> > interpreted (for what I know) by Struts, in ordeer to
> > determine the method
> > to call.
> > And, as you may guess, Struts does not see this mparameter
> > and send me the
> > following error message :
> >
> > message Request[/list] does not contain handler parameter
> named method
> >
> > How can I make Struts understand what I want ?
> > For your information, here are the involved code fragments :
> >
> > struts-config.xml
> >
> >   > type="com.ListAllFieldsAction"
> >name="listAllAttributes"
> >scope="request"
> > validate="true"
> > parameter="method"/>
> >
> >  > type="com.EditTreeObjectAction"
> >  name="edit_tree_object"
> >  scope="request"
> >  validate="false">
> >  
> > 
> >
> > And, in my EditTreeObjectAction, the execute method contains
> > the following
> > code :
> >
> > request.setAttribute("method", "list");
> > return actionMapping.findForward("do_edition");
> >
> > Thanks in advance
> >
> > --
> > Nicolas Delsaux
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [

RE: multiple submit redirect in action

2003-09-12 Thread Slattery, Tim - BLS
From: Stephane Grenier [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 11, 2003 5:40 PM
Subject: multiple submit redirect in action

> I would like to create a form with 2 submit buttons in the jsp:

> I would like to determine in the action which submit button 
> was pressed and forward from there based on some conditions. 
> How can I determine in the action which submit button was pressed ?

If you look at the documentation for the  tag, you'll see
that you can specify a "property" attribute.  That attribute contains the
name of a property of the form bean that will be set to the "value" of the
tag when the form is submitted. And the "value" of a "submit" button always
appears on the button.

So, if you have a form bean that contains two properties named "updated" and
"checkedOut", and you code these tags:

 
 

Then if the "update" button is clicked, the updated property of the form
bean will contain the string "Update", and the "checkedOut" property will
contain an empty string. If the "Checkout" button is clicked, "checkedOut"
will contain "Checkout", and "updated" will be empty.

--
Tim Slattery
[EMAIL PROTECTED]


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



RE: DispatchAction forward issue

2003-09-12 Thread Andrew Hill
Hmm.. You can try it with a non-redirecting action. Im not sure how well it
will work though as there may still be the original method parameter in the
request as well as the one you tack onto the url. Give it a shot and see
how.

btw: you know that if you chain actions the form will get reset and
repopulated right?

-Original Message-
From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 September 2003 20:37
To: 'Struts Users Mailing List'
Subject: RE: DispatchAction forward issue


Hi,

so I must understand that it?s not possible to pass parameters in the
request beetwen chained actions, is it?
Is not there a way to change a parameter value of the request if both
actions use the same ActionForm? I want to modify one of the parameters in
the firs action, so second action (chained action) can see the change.

Although I know it may be a bad idea, I don?t have any other now!!  :-(

Thks




> -Mensaje original-
> De: Andrew Hill [mailto:[EMAIL PROTECTED]
> Enviado el: viernes, 12 de septiembre de 2003 13:39
> Para: Struts Users Mailing List
> Asunto: RE: DispatchAction forward issue
>
>
> 
> For that, I put in my request the "method" parameter
> 
>
> No you didnt. You put in a "method" ATTRIBUTE. I saw you!
> See:
> 
> request.setAttribute("method", "list");
> 
>
> What you want to do is something like the following:
> ActionForward forward = actionMapping.findForward("do_edition");
> String path = addParam(path,"method","list");
> return new ActionForward(path, forward.getRedirect() );
>
> (btw: that should be a redirecting forward (unless you have a
> very good
> excuse for chaining actions - something that is considered a
> bad idea in
> general))
>
> You addParam method might look something like:
>
> public String addParam(String url, String parameter, String value)
> {
>   return url + ( (url.indexOf("?")==-1) ? "?" : "&" ) +
> parameter + "=" +
> value;
> }
>
>
> -Original Message-
> From: Nicolas Delsaux [mailto:[EMAIL PROTECTED]
> Sent: Friday, 12 September 2003 19:28
> To: [EMAIL PROTECTED]
> Subject: DispatchAction forward issue
>
>
> Hi, I'm using a dispatchaction for displaying/editing
> objects, on which I
> would like to do a forward, through an ActionForward, from an
> other action.
> For that, I put in my request the "method" parameter, that should be
> interpreted (for what I know) by Struts, in ordeer to
> determine the method
> to call.
> And, as you may guess, Struts does not see this mparameter
> and send me the
> following error message :
>
> message Request[/list] does not contain handler parameter named method
>
> How can I make Struts understand what I want ?
> For your information, here are the involved code fragments :
>
> struts-config.xml
>
>   type="com.ListAllFieldsAction"
>name="listAllAttributes"
>scope="request"
> validate="true"
> parameter="method"/>
>
>  type="com.EditTreeObjectAction"
>  name="edit_tree_object"
>  scope="request"
>  validate="false">
>  
> 
>
> And, in my EditTreeObjectAction, the execute method contains
> the following
> code :
>
> request.setAttribute("method", "list");
> return actionMapping.findForward("do_edition");
>
> Thanks in advance
>
> --
> Nicolas Delsaux
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


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


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



Struts Menu and tiles definitions

2003-09-12 Thread koen boutsen
I want to use the struts menu, but instead of using the  I want my user to be 
sent to a tiles definition.  Is this possible with the Struts Menu ?  If so, could you 
please tell me what adaptations I have to make ?

Thanks

Koen Boutsen



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 Menu and tiles definitions

2003-09-12 Thread koen boutsen
I want to use the struts menu, but instead of using the  I want my user to be 
sent to a tiles definition.  Is this possible with the Struts Menu ?  If so, could you 
please tell me what adaptations I have to make ?

Thanks

Koen Boutsen



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]



Re: html:messages

2003-09-12 Thread Timo Neumann
Stan Reinis wrote:

Simply use


This should do the trick.

Timo

My Action includes the following code:

   ActionMessages messages = new ActionMessages();
...
   messages.add(
   ActionMessages.GLOBAL_MESSAGE,
   new 
ActionMessage("adminUpdateProfileAction.profile.has.been.updated"));
...
   saveMessages(request, messages);
   forward = mapping.findForward("success");

My jsp has
   
   
   
   
   
And yet no messages are appearing in the response.  The source code shows
   
   

Perusing the javadocs, I find the following description for the 
saveMessages()
method:
"Save the specified messages keys into the appropriate request attribute 
for use by the
 tag (if messages="true" is set), if any messages are 
required."

My question is:   how do we set messages="true"?

Thanks,
Stan Reinis
RIGCI, Inc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
F&F Computer AnwendungenTel: +49 89 51727-352
und Unternehmensberatung GmbH   Fax: +49 89 51727-111
Westendstr. 195 Mail: [EMAIL PROTECTED]
D-80686 Muenchenhttp://www.ff-muenchen.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: DispatchAction forward issue

2003-09-12 Thread Jose Ramon Diaz
Hi,

so I must understand that it?s not possible to pass parameters in the
request beetwen chained actions, is it?
Is not there a way to change a parameter value of the request if both
actions use the same ActionForm? I want to modify one of the parameters in
the firs action, so second action (chained action) can see the change.

Although I know it may be a bad idea, I don?t have any other now!!  :-(

Thks




> -Mensaje original-
> De: Andrew Hill [mailto:[EMAIL PROTECTED]
> Enviado el: viernes, 12 de septiembre de 2003 13:39
> Para: Struts Users Mailing List
> Asunto: RE: DispatchAction forward issue
>
>
> 
> For that, I put in my request the "method" parameter
> 
>
> No you didnt. You put in a "method" ATTRIBUTE. I saw you!
> See:
> 
> request.setAttribute("method", "list");
> 
>
> What you want to do is something like the following:
> ActionForward forward = actionMapping.findForward("do_edition");
> String path = addParam(path,"method","list");
> return new ActionForward(path, forward.getRedirect() );
>
> (btw: that should be a redirecting forward (unless you have a
> very good
> excuse for chaining actions - something that is considered a
> bad idea in
> general))
>
> You addParam method might look something like:
>
> public String addParam(String url, String parameter, String value)
> {
>   return url + ( (url.indexOf("?")==-1) ? "?" : "&" ) +
> parameter + "=" +
> value;
> }
>
>
> -Original Message-
> From: Nicolas Delsaux [mailto:[EMAIL PROTECTED]
> Sent: Friday, 12 September 2003 19:28
> To: [EMAIL PROTECTED]
> Subject: DispatchAction forward issue
>
>
> Hi, I'm using a dispatchaction for displaying/editing
> objects, on which I
> would like to do a forward, through an ActionForward, from an
> other action.
> For that, I put in my request the "method" parameter, that should be
> interpreted (for what I know) by Struts, in ordeer to
> determine the method
> to call.
> And, as you may guess, Struts does not see this mparameter
> and send me the
> following error message :
>
> message Request[/list] does not contain handler parameter named method
>
> How can I make Struts understand what I want ?
> For your information, here are the involved code fragments :
>
> struts-config.xml
>
>   type="com.ListAllFieldsAction"
>name="listAllAttributes"
>scope="request"
> validate="true"
> parameter="method"/>
>
>  type="com.EditTreeObjectAction"
>  name="edit_tree_object"
>  scope="request"
>  validate="false">
>  
> 
>
> And, in my EditTreeObjectAction, the execute method contains
> the following
> code :
>
> request.setAttribute("method", "list");
> return actionMapping.findForward("do_edition");
>
> Thanks in advance
>
> --
> Nicolas Delsaux
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


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



  1   2   >