Re: Multiple ActionForms per ActionMapping

2005-03-19 Thread Dakota Jack
SNIP
On Sat, 19 Mar 2005 10:19:31 +0530, Vamsee Kanakala [EMAIL PROTECTED] wrote:
 Joe Germuska wrote:
 
  I don't know if we've all landed on most people's kill-filters or
  what, but one gets the sense that what some of us are interested in
  arguing thoroughly about is of little import to regular users.
 
 I'm as 'regular' a user as you can get, but I thoroughly enjoy these
 technical discussions. For me, it's very educational. I don't understand
 everything, but  I feel really happy when I do. To use a cliche, I can
 stand on the shoulders of giants. I might not go and start playing
 with 1.3 right now, but one of these days, I will muster enough courage
 to do so. Please do whatever you're doing, it's working ;)
 
 Vamsee.
/SNIP

I get the sense that a lot of regular users have these concerns,
Joe.  I would guess you do the same thing, but I spend a great deal of
time sort of watching and making notes on the regular users on
this list.

Jack

-- 
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~

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



Re: Multiple ActionForms per ActionMapping

2005-03-19 Thread Jim Theodoridis
Hello
In an action i am  having the following  

 path = .;
 a.setRedirect(true);
 a.setPath(path.toString());
 ..
at the path assing a URL as http://www.yahoo.com or http://www.google.com
I want my action to access some informations from a database using a 
parameter for example text

http://www.myportal.com/myaction.do?text=jim
and then to pass that informations to the URL
When i test my application with a browser everything works fine
If I want someone to sent some informations to my action for example
http://www.myportal.com/myaction.do?text=jim
and then myaction using the parameter text to access a database and 
retrive some informations
and then to post those informations to a URL as assigned to variable 
path it doesnot work.
The redirect works only with a browser?


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


Redirect work only with browser?

2005-03-19 Thread Jim Theodoridis
Sorry it is a new message
In an action i am  having the following 
path = .;
a.setRedirect(true);
a.setPath(path.toString());
..

at the path assing a URL as http://www.yahoo.com or http://www.google.com
I want my action to access some informations from a database using a 
parameter for example text

http://www.myportal.com/myaction.do?text=jim
and then to pass that informations to the URL
When i test my application with a browser everything works fine
If I want someone to sent some informations to my action for example
http://www.myportal.com/myaction.do?text=jim
and then myaction using the parameter text to access a database and 
retrive some informations
and then to post those informations to a URL as assigned to variable 
path it doesnot work.
The redirect works only with a browser?



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


Re: Proper way to do it

2005-03-19 Thread Jim Theodoridis
Hond4 wrote:
Hallo list members!
I'm looking for best practise how to implement password change for my 
appliaction.
I'm using securityfilter for auth, problem is that i would like to 
create forward to password change page if user password == default.
Is it possible to put some logic into ActionServlet's service() to 
check is user password == default and then forward to PasswordChange 
action? I know that I can crete base action (with passowrd check 
logic) for all action's but i think there should be more proper way to 
solve my problem.

Thanks for help,
H0nd4
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
U must test for the correct password and if the password is wrong to 
thow an global exception
That exception u can use at struts-config.xml at

!-- = Global Exception Definitions --
global-exceptions
/global-exceptions
to forward to a page.
The simplest is to use global-forward

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


Re: Proper way to do it

2005-03-19 Thread Hond4
U must test for the correct password and if the password is wrong to 
thow an global exception
That exception u can use at struts-config.xml at

!-- = Global Exception Definitions --
global-exceptions
/global-exceptions
to forward to a page.
The simplest is to use global-forward
but do I have to test for the correct password in all actions ? is it 
possible to put this test into controller ?

Best regards,
H0nd4

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


RE: TILES Exception

2005-03-19 Thread Jim Douglas
David,
  This is the catalina.out file  There are some errors but it looks like 
they are logging related problems, not Tiles.

Mar 19, 2005 1:43:37 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 19, 2005 1:43:37 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1906 ms
Mar 19, 2005 1:43:37 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 19, 2005 1:43:37 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
Mar 19, 2005 1:43:37 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
log4j:WARN No appenders could be found for logger 
(org.apache.catalina.startup.TldConfig).
log4j:WARN Please initialize the log4j system properly.
Mar 19, 2005 1:43:40 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive tiles-documentation.war
log4j:WARN No appenders could be found for logger 
(org.apache.catalina.session.ManagerBase).
log4j:WARN Please initialize the log4j system properly.
ERROR: Cannot read the configuration file. Please check the path of the 
config init param in web.xml
Mar 19, 2005 1:43:45 PM org.apache.catalina.core.ApplicationContext log
INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer 
size=2048
Mar 19, 2005 1:43:50 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Mar 19, 2005 1:43:50 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Mar 19, 2005 1:43:51 PM org.apache.catalina.core.ApplicationContext log
INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer 
size=2048
Mar 19, 2005 1:43:51 PM org.apache.catalina.core.ApplicationContext log
INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer 
size=2048
Mar 19, 2005 1:43:51 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Mar 19, 2005 1:43:51 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Mar 19, 2005 1:43:52 PM org.apache.catalina.core.ApplicationContext log
INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer 
size=2048
Mar 19, 2005 1:43:52 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig
INFO: Missing application web.xml, using defaults only 
StandardEngine[Catalina].StandardHost[www.iatcorp.com].StandardContext[/struts-mailreader]
Mar 19, 2005 1:43:52 PM org.apache.catalina.core.ApplicationContext log
INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer 
size=2048
Mar 19, 2005 1:43:52 PM org.apache.catalina.core.ApplicationContext log
INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer 
size=2048
Mar 19, 2005 1:43:52 PM org.apache.catalina.core.ApplicationContext log
INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer 
size=2048
Mar 19, 2005 1:44:01 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 19, 2005 1:44:02 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Mar 19, 2005 1:44:02 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/34  config=null
Mar 19, 2005 1:44:02 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 24876 ms

Jim
From: David G. Friedman [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: RE: TILES Exception
Date: Sun, 13 Mar 2005 23:09:04 -0500
Jim,
Have you checked your webapp's log file (or the standard log if you don't
have special logging enabled for your application) to make sure the log
files show that tiles initialized properly and that there were no errors
suggesting Struts or Tiles failed to start up/initialize properly?
Regards,
David
-Original Message-
From: Jim Douglas [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 13, 2005 3:34 PM
To: user@struts.apache.org
Subject: TILES Exception
To all,
  I get the following error when I try to acces my website which utilizes
Tiles.  It was working perfectly on one server and all I did was deploy to 
a
different server copying the root web server directory(Tomcat), which
contained all the files necessary.

  Any help would be appreciated.
Thanks,
Jim
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
javax.servlet.ServletException: Can't get definitions factory from context.

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContext
Impl.java:845)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextIm
pl.java:778)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:72)

Multibox

2005-03-19 Thread Ben Taylor
Hi,

Can anyone let me know how to automatically check checkboxes?

Below is my current code:
html:multibox property=selectedModules
bean:write name=row property=id/
/html:multibox

This is one of the many ways I've tried to get it to work:
html:multibox property=selectedModules property=${row.id}
{some Boolean equation}
/html:multibox


Cheers for you help!

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



checkbox problem

2005-03-19 Thread Hyrum
I have a question for all you experts out there.  I have a really big
ActionForm which I am trying to re-use for two views.  One view is
read-only, and the form properties are displayed with c:out, while the
editable form is displayed with html:text, etc.  This isn't new.  My problem
is html:checkbox.  Here's a quote from the Struts API:

WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

This is fine as long as you only have one view per form, but I really want
to share this form.  I have 26 items on this form, and it's growing.  

Here's the problem:  My read-only view has the box checked.  When I forward
to the editable view, it's corresponding Controller calls reset and wipes
out that checkboxes value so that when it displays, it is unchecked.

I could of course just ditch the checkbox and use a y/n value with some
validation, but I'd rather preserve the data types in the form if possible.

I've tried retrieving the value before displaying the view, but that doesn't
help you when you uncheck the box.  Nothing told the Database you unchecked
the box, so when you go to retrieve the value, it still thinks it's checked.


I know this can be solved with JavaScript, but I want to keep JavaScript to
a minimum.  Do I have any other options besides JS and using two
ActionForms?  I'd like some opinions on which course I should take.  Thanks.

Hyrum Ward
Software Developer
TR Tax Services



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



checkbox problem

2005-03-19 Thread Hyrum
I have a question for all you experts out there.  I have a really big
ActionForm which I am trying to re-use for two views.  One view is
read-only, and the form properties are displayed with c:out, while the
editable form is displayed with html:text, etc.  This isn't new.  My problem
is html:checkbox.  Here's a quote from the Struts API:

WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement setting
the corresponding boolean property to false in the reset() method.

This is fine as long as you only have one view per form, but I really want
to share this form.  I have 26 items on this form, and it's growing.  

Here's the problem:  My read-only view has the box checked.  When I forward
to the editable view, it's corresponding Controller calls reset and wipes
out that checkboxes value so that when it displays, it is unchecked.

I could of course just ditch the checkbox and use a y/n value with some
validation, but I'd rather preserve the data types in the form if possible.

I've tried retrieving the value before displaying the view, but that doesn't
help you when you uncheck the box.  Nothing told the Database you unchecked
the box, so when you go to retrieve the value, it still thinks it's checked.


I know this can be solved with JavaScript, but I want to keep JavaScript to
a minimum.  Do I have any other options besides JS and using two
ActionForms?  I'd like some opinions on which course I should take.  Thanks.

Hyrum Ward
Software Developer
TR Tax Services



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



Re: Multibox

2005-03-19 Thread Wendy Smoak
From: Ben Taylor [EMAIL PROTECTED]
Can anyone let me know how to automatically check checkboxes?
Set the underlying form property and the framework will automatically render 
checked checkboxes.

I have:
c:forEach items=${accountMap} var=item 
  html-el:multibox property=accounts value=${item.key}/
  c:out value=${item.key}/ c:out 
value=${item.value.costCenterDesc}/
/c:forEach

The form property accounts is a String[] containing account numbers.  So 
this displays all of the accounts in accountMap, and 'checks' the boxes next 
to the ones that match the values in the accounts form property.

--
Wendy Smoak 


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


Re: Proper way to do it

2005-03-19 Thread Ek Chotechawanwong

Return Receipt
   
Your  Re: Proper way to do it  
document   
:  
   
was   Ek Chotechawanwong/Thailand/IBM  
received   
by:
   
at:   20/03/2005 08:33:20  
   




RE: TILES Exception

2005-03-19 Thread David G. Friedman
Jim,

 David, This is the catalina.out file  There are some
 errors but it looks like they are logging related
 problems, not Tiles.

I disagree with you.  From the catalina.out file you included, I see a few
critical errors with two webapps: the tiles-documentation.war auto-deploy
and the missing web.xml message in the www.iatacorp.com /struts-mailreader
webapp. The latter (mailreader) suggests to me that the missing web.xml
would prevent Struts from loading and therefore the Tiles plugIn CANNOT be
initialized.  That could cause errors like the ones you included in a
previous message via this thread.

 SO, is your webapp /struts-mailreader or are you using another webapp
or context name?

If the webapp or context is different, then you have either included the
wrong portions of the catalina.out log file or simply given us the wrong log
file because we should have seen the basic info level initialization(s) of
that webapp.  If the log file is not catalina.out, it is often one prefixed
by localhost_log such as localhost_log.2005-03-19.txt

For your information, below is the log segment which explains why the
struts-mailreader failed to startup:

 INFO: Missing application web.xml, using defaults
 only StandardEngine[Catalina].StandardHost[www.
 iatcorp.com].StandardContext[/struts-mailreader]

If you find and post the relevant log sections, I'll be glad to try to
assist you further.

Regards,
David


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



Re: Multibox

2005-03-19 Thread Robert Taylor
The multibox is bound to the selectedModule property of your form.
Prior to displaying the page, populate selectedModule property of the 
form with its corresponding row.id values. When html:multibox .../ is 
invoked on the page, it will recongize the relationship and render the 
checkboxes as checked.

/robert
Ben Taylor wrote:
Hi,
Can anyone let me know how to automatically check checkboxes?
Below is my current code:
html:multibox property=selectedModules
bean:write name=row property=id/
/html:multibox
This is one of the many ways I've tried to get it to work:
html:multibox property=selectedModules property=${row.id}
{some Boolean equation}
/html:multibox
Cheers for you 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: Multibox

2005-03-19 Thread Ben Taylor
Cheers, I've manged to get the ticks appearing now...  However
although they load fine on the first load they do not move after that.
 i.e. I can change which ones are selected and it'll go off and update
the db but when I load the page again the origonal ticks are still
shown.

I've tried calling setting the String[] to null as well as each value
to false but nothing seems to work :o(



On Sat, 19 Mar 2005 18:51:30 -0500, Robert Taylor
[EMAIL PROTECTED] wrote:
 The multibox is bound to the selectedModule property of your form.
 Prior to displaying the page, populate selectedModule property of the
 form with its corresponding row.id values. When html:multibox .../ is
 invoked on the page, it will recongize the relationship and render the
 checkboxes as checked.
 
 /robert
 
 Ben Taylor wrote:
  Hi,
 
  Can anyone let me know how to automatically check checkboxes?
 
  Below is my current code:
  html:multibox property=selectedModules
  bean:write name=row property=id/
  /html:multibox
 
  This is one of the many ways I've tried to get it to work:
  html:multibox property=selectedModules property=${row.id}
  {some Boolean equation}
  /html:multibox
 
 
  Cheers for you 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]
 


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



Re: Multibox

2005-03-19 Thread Vamsee Kanakala
Ben Taylor wrote:
Cheers, I've manged to get the ticks appearing now...  However
although they load fine on the first load they do not move after that.
i.e. I can change which ones are selected and it'll go off and update
the db but when I load the page again the origonal ticks are still
shown.
 

One reason could be that you defined the accompanying form with 
scope=session. If so, are you sure you need this? Then again, it could 
be that a method is pre-populating the checkboxes by retrieving the 
relevant values from the database that you just inserted. Can you post 
more code?

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


Re: checkbox problem

2005-03-19 Thread Wendy Smoak
From: Hyrum [EMAIL PROTECTED]
Here's the problem:  My read-only view has the box checked.  When I 
forward
to the editable view, it's corresponding Controller calls reset and wipes
out that checkboxes value so that when it displays, it is unchecked.
Write your reset method so that it only resets the checkboxes if the form 
was submitted.  For example:

 if ( request.getMethod().equals( POST ) ) {
set( accounts, new String[]{} );
set( includeDetail, Boolean.FALSE );
 }
  }
I make no claims to this being the right or best way... but it does 
work.

--
Wendy Smoak

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


Older Versions

2005-03-19 Thread tarek.nabil
Hi everyone,

How can I download older versions of Struts? I can only find the latest
versions on the distribution servers. I want to download the 1.1
version.

Thanks,
Tarek Nabil

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