Re: [Announce] Struts Sidebar for Mozilla browsers

2005-09-30 Thread Frank W. Zammetti

Congratulations Laurie!

Funny, it's usually asked the other way around, but here goes...

Where's the IE version?? :)  Maybe a nice toolbar?

Frank

Laurie Harper wrote:
I'm very pleased to announce the availability of the Struts Sidebar, a 
sidebar for Mozilla-type browsers that provides convenient access to the 
reference documentation for Struts. The Struts Sidebar is a free 
resource for Struts users and developers, kindly hosted by Zotech Software.


You can install the sidebar by visiting its homepage [1] and clicking 
the 'Add to Mozilla sidebar' link. The sidebar should work in any 
Mozilla-based browser, including Netscape and Firefox.


Feedback and suggestions are welcome.

Enjoy!

L.

[1] http://www.zotechsoftware.com/products/struts-sidebar


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







--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]


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



[Announce] Struts Sidebar for Mozilla browsers

2005-09-30 Thread Laurie Harper
I'm very pleased to announce the availability of the Struts Sidebar, a 
sidebar for Mozilla-type browsers that provides convenient access to the 
reference documentation for Struts. The Struts Sidebar is a free 
resource for Struts users and developers, kindly hosted by Zotech Software.


You can install the sidebar by visiting its homepage [1] and clicking 
the 'Add to Mozilla sidebar' link. The sidebar should work in any 
Mozilla-based browser, including Netscape and Firefox.


Feedback and suggestions are welcome.

Enjoy!

L.

[1] http://www.zotechsoftware.com/products/struts-sidebar


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



Re: Struts action forms crossing sessions? Any idea why this ishappening?

2005-09-30 Thread Andre Van Klaveren
If the ActionForms are truly in session scope then the shared state isn't in
the ActionForm. It's probably a problem with instance variables in your
Actions.

On 9/30/05, Preston CRAWFORD <[EMAIL PROTECTED]> wrote:
>
> We have a problem. We're working on an application and we have some
> forms in session scope. The strange thing is if someone changes state on
> their form, users on other computers on other browsers hitting the same
> exact page see the state change that was made to the form on another
> computer. I have no idea why this is happening. Problem with the JVM?
> With struts? Something we're doing. Anyone ever seen this?
>
> Preston
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Virtually,
Andre Van Klaveren
Architect III, SCP
Global Public Sector
Unisys Corporation


Re: Struts action forms crossing sessions? Any idea why this ishappening?

2005-09-30 Thread Gary VanMatre
> On 10/1/05, Preston CRAWFORD wrote: 
> > 
> > We have a problem. We're working on an application and we have some 
> > forms in session scope. The strange thing is if someone changes state on 
> > their form, users on other computers on other browsers hitting the same 
> > exact page see the state change that was made to the form on another 
> > computer. I have no idea why this is happening. Problem with the JVM? 
> > With struts? Something we're doing. Anyone ever seen this? 
> 
> 
> Are you sure that the JSPs are displayed only by using ActionForms. 
> This would happen for example if you use instance variables in your Actions 
> to 
> store some state. 
> 

It may also be that there is a proxy caching the page.  You might try adding 
the nocache tag to your struts config if you have not already.


   


Gary

> Tamas 
> 

Re: Action mapping to a Tile

2005-09-30 Thread Greg Reddin


On Sep 30, 2005, at 8:55 PM, Graham Reeds wrote:


I suppose you could do a forward from within index.jsp


That's the best way I can think of.

Greg

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



Re: Action mapping to a Tile

2005-09-30 Thread Graham Reeds
On a related theme... Is it possible to set it up so the application 
automatically starts with a page from the tile-def.xml bypassing jsp's 
entirely...


I suppose you could do a forward from within index.jsp but why waste 
processor power:-)


G.


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



Re: Struts action forms crossing sessions? Any idea why this ishappening?

2005-09-30 Thread Tamas Szabo
On 10/1/05, Preston CRAWFORD <[EMAIL PROTECTED]> wrote:
>
> We have a problem. We're working on an application and we have some
> forms in session scope. The strange thing is if someone changes state on
> their form, users on other computers on other browsers hitting the same
> exact page see the state change that was made to the form on another
> computer. I have no idea why this is happening. Problem with the JVM?
> With struts? Something we're doing. Anyone ever seen this?


Are you sure that the JSPs are displayed only by using ActionForms.
This would happen for example if you use instance variables in your Actions
to
store some state.

Tamas


Empty values for all the ActionForm's attribute

2005-09-30 Thread Vince Law
Hi All,

I am having a problem with ActionForm.  I have spent quite some time to
tackle the problem, but without any luck resolving it.  The problem is.

I have three Actions which share the same ActionForm.  They all work
perfectly fine, until in one of the Action's excecute method, a Httpclient
call is made to a different URL (a third party software) to retrieve some
data from the internet.  Then, from that time on, all the property from the
ActionForm is null.  But when I tried to access the value directly from the
"request" object, the value is there, e.g:

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

   MyForm myForm = (MyForm)form;

   myForm.getSomeThing();  //returned "empty"
   request.getParameter("someThing");  //returned some "value"

   ...
}

The ActionForm is defined in the action with the scope="request".
The Struts version is 1.2.7.

I hope some of you can give me some insight into it, I can't figure out how
to resolve it myself.

Thank you so much in advance!

Sincerely,
Vince






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



Re: Action mapping to a Tile

2005-09-30 Thread Graham Reeds

Van wrote:

On 9/30/05, Graham Reeds <[EMAIL PROTECTED]> wrote:


Now with the above changes and I also read that tiles have a convention
of prefixing period (.) so that has been changed I still get a 404 but
with the new error message of "Invalid path /Tester was requested"

struts-config.xml:




You don't want the extension in the action mapping, just in the URL. Try this:



I can't promise that it will work with this change, but, I do believe
this will address the complaint about "Invalid path /Tester".


Thankyou! Finally this is working. Now I can move onto actually doing 
something useful. Fortunately no one was footing the bill for this 
learning experience.


G.


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



Struts action forms crossing sessions? Any idea why this ishappening?

2005-09-30 Thread Preston CRAWFORD
We have a problem. We're working on an application and we have some
forms in session scope. The strange thing is if someone changes state on
their form, users on other computers on other browsers hitting the same
exact page see the state change that was made to the form on another
computer. I have no idea why this is happening. Problem with the JVM?
With struts? Something we're doing. Anyone ever seen this?

Preston

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



Re: submit buttons - how to put them label from resource

2005-09-30 Thread Laurie Harper

Wendy Smoak wrote:

From: "Borislav Sabev" <[EMAIL PROTECTED]>
I'd like to set a label of submit buttons getting it from property 
file. But seems that this is not possible.
One other problem I see is that value attribute has two purposes: to 
set the label, and on submit to provide value for the request 
parameter. Is there any way they to be different?


No.  I get around it with client-side scripting.  (It's an intranet app, 
so I can guarantee JavaScript is enabled.)


value="Add"/>


function setUserAction(target) {document.forms[0].userAction.value=target;}


Another approach, which avoids the need for client-side scripting, is to 
use a different request parameter for each submit button and test for 
the presence of the parameter, ignoring its value.


L.


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



Re: Action mapping to a Tile

2005-09-30 Thread Van
On 9/30/05, Graham Reeds <[EMAIL PROTECTED]> wrote:
> Now with the above changes and I also read that tiles have a convention
> of prefixing period (.) so that has been changed I still get a 404 but
> with the new error message of "Invalid path /Tester was requested"
>
> struts-config.xml:
> 

You don't want the extension in the action mapping, just in the URL. Try this:



I can't promise that it will work with this change, but, I do believe
this will address the complaint about "Invalid path /Tester".

-Van
--
- Mike "Van" Riper
  [EMAIL PROTECTED]

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



Re: Action mapping to a Tile

2005-09-30 Thread Graham Reeds

Your webapp is under 'test'? (Just for completeness of info.)


Yes it is.

Now with the above changes and I also read that tiles have a convention 
of prefixing period (.) so that has been changed I still get a 404 but 
with the new error message of "Invalid path /Tester was requested"


struts-config.xml:


tiles-defs.xml:

 


Home.jsp:
Tester

Is there anything else I should be doing?

I've never had any real issues with tiles so I suspect you're just not 
paying attention to the docs :)



What docs there are: The Tiles tutorial on Cedric Dumoulin is 4 years 
old and is written for someone who already understands Struts & Tiles, 
which is something I have seen with a lot of struts tutorials - they are 
written from the perspective of someone who already understands the Struts.


The books are even worse, but that is the nature of authorship - by the 
time you have written, proof-read, typeset, reviewed and printed the 
book 1 to 2 years have passed and by that time what you are writing 
about has passed. Hence most books are for Struts 1.02 and 1.1 - not 
1.2x. I suppose that there will be books for 1.3 but I hope that they 
improve on the examples ( is for displaying tabulated data - no 
page layout).




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



Re: Action mapping to a Tile

2005-09-30 Thread Dave Newton

Graham Reeds wrote:


I have a jsp page with a link to Tester: Test


Oh, wait.

See, I don't think that will work. If you use an action="pages/Tester">Test that should do it.


 doesn't know about struts.

Are you mapping with *.do? If so, then how would you expect an href="pages/Tester"...> to be able to find the page?


In my struts-config.xml I have a forward mapped: path="pages/Tester" forward="Test.page" />


Put the leading / in there anyway and put it in your link tag. Otherwise 
I get nervous.



However this gives a 404 for the page test/pages/Tester


Your webapp is under 'test'? (Just for completeness of info.)

I've never had any real issues with tiles so I suspect you're just not 
paying attention to the docs :)


Dave



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



Re: Action mapping to a Tile

2005-09-30 Thread Graham Reeds

Dave Newton wrote:

Graham Reeds wrote:

In my struts-config.xml I have a forward mapped: path="pages/Tester" forward="Test.page" />



What happens if you put a leading "/" in the path?

Dave


Still get the 404 error message.

I'm not having a lot of luck with Struts. And the lack of useful 
information really hampers any real progress:-(


It seems like I keep hitting brickwalls.

G.


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



Re: Action mapping to a Tile

2005-09-30 Thread Graham Reeds

[EMAIL PROTECTED] wrote:

just out of curiosity, did you mean to write

Test


No, the lack of .do is deliberate.  Using do denotes an actual form
action whereas I just want the activation of a generated page by tiles. 
 I suppose I could call it "pages/Tester.tile".


This way I can keep all my tiles in the struts-config.xml instead of 
lots of 1 or 2 line jsp files.


G.


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



Re: Action mapping to a Tile

2005-09-30 Thread Dave Newton

Graham Reeds wrote:

In my struts-config.xml I have a forward mapped: path="pages/Tester" forward="Test.page" />


What happens if you put a leading "/" in the path?

Dave



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



Re: logic:redirect w/ query string

2005-09-30 Thread Kishore Senji
You could specify paramId, paramName, paramProperty attributes in the exact
similar way to .

Please take a look at
http://struts.apache.org/userGuide/struts-logic.html#redirect

On 9/30/05, Doug Thomas <[EMAIL PROTECTED]> wrote:
>
> How do I create a logic:redirect element with a query string>
>
> I have:
>
> 
>
> Where ERRORNOTIFY is defined in  of the struts-config.xml
> file and forwards to notifyError.jsp.
>
> I need to generate the following URL:
>
> notifyError.jsp?errMsg=some+error+message
>
> How to append the query string to the URL is the question.
>
> Doug
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Action mapping to a Tile

2005-09-30 Thread Graham Reeds

Greg Reddin wrote:

Are you using the TilesRequestProcessor?  In struts-config.xml:



Also make sure the Tiles Plugin is configured:



  
  
  
  



Yes. They are the exact carbon copies of mine.  I used the default 
struts-blank.war as my starting point for my testing.


Thanks, Graham.


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



Re: embed jstl or other struts tag or scriplets within html:text

2005-09-30 Thread Greg Ludington
>  styleClass="textField" onfocus="this.select(); this.className='fieldActive'"
> onblur="this.className='fieldInactive'; reCalcFields(<%=executionState}%>);"
> size="4" maxlength="10" />

Two comments:
1) You have a closed curly brace in that attribute -- I am assuming
that is a typo in this email only.

2) I do not believe you can mix text and RT expressions in the same
attribute of a tag -- I have not been working in JSP in a while, but
you could combine it into one RT expression.

"
   size="4" maxlength="10" />

or, alternatively, create that variable in a scriptlet beforehand.  If
you are using EL, you would have to do something similar.



On 9/30/05, Dilip Ladhani <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> This does not work for me at all. Anyone have any ideas
>
>  styleClass="textField" onfocus="this.select(); this.className='fieldActive'"
> onblur="this.className='fieldInactive'; reCalcFields(<%=executionState}%>);"
> size="4" maxlength="10" />
>
> I have tried to put jstl (), other struts
> tag (bean:write) instead of the (<%=executionState}%>). Nothing
> worksPlease 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: Action mapping to a Tile

2005-09-30 Thread Mario_Hernandez
just out of curiosity, did you mean to write

Test

Re: Action mapping to a Tile

2005-09-30 Thread Greg Reddin

Are you using the TilesRequestProcessor?  In struts-config.xml:



Also make sure the Tiles Plugin is configured:



  
  
  
  


Greg

On Sep 30, 2005, at 4:47 PM, Graham Reeds wrote:


I'm trying to set an action mapping to a tile.

I have a jsp page with a link to Tester: Test


In my struts-config.xml I have a forward mapped: path="pages/Tester" forward="Test.page" />


And in tile-def.xml I have Test.page defined:

  


However this gives a 404 for the page test/pages/Tester

I thought it might be that the application hasn't been updated so I  
stopped and restarted Tomcat and that had no effect - still 404's.


Anything else I need to check?

Thanks Graham Reeds.


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



Action mapping to a Tile

2005-09-30 Thread Graham Reeds

I'm trying to set an action mapping to a tile.

I have a jsp page with a link to Tester: Test

In my struts-config.xml I have a forward mapped: path="pages/Tester" forward="Test.page" />


And in tile-def.xml I have Test.page defined:

  


However this gives a 404 for the page test/pages/Tester

I thought it might be that the application hasn't been updated so I 
stopped and restarted Tomcat and that had no effect - still 404's.


Anything else I need to check?

Thanks Graham Reeds.


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



Re: [OT] How fast can you code?

2005-09-30 Thread Dave Newton

Nick Heudecker wrote:


Too bad I won't be there. I'd win using just cat and sed to write code. ;)
 


Real men code everything in APL.

(Remember APL? You thought Forth or Lisp were write-only languages!)

Dave



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



Re: [OT] How fast can you code?

2005-09-30 Thread Nick Heudecker
Too bad I won't be there. I'd win using just cat and sed to write code. ;)

On 9/30/05, James Mitchell <[EMAIL PROTECTED]> wrote:
>
> For those who might have missed it (especially if you live in or near
> Atlanta, GA):
>
> There is a coding competition being held on Wed (next week)...check
> it out!
>
> http://edgetechservices.net/snipsnap/space/Web+Atlanta+Users+Group
>
>
> Bring it on!
>
>
>
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> Consulting / Mentoring / Freelance
> EdgeTech, Inc.
> http://www.edgetechservices.net/
> 678.910.8017
> AIM: jmitchtx
> Yahoo: jmitchtx
> MSN: [EMAIL PROTECTED]
> Skype: callto://jmitchtx
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: [OT] Re: embed jstl or other struts tag or scriplets within html:text

2005-09-30 Thread Gary VanMatre
> I am on websphere/wsad 5.1. Do I have to use EL
> 

I think that you can right mouse click on the web project and in one of the 
list items select JSTL tags.  It will automatically update the project and 
include the JSTL 1.0 standard.jar 

wesad rocks!

> 
> >From: Dave Newton <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> >To: Struts Users Mailing List 
> >Subject: [OT] Re: embed jstl or other struts tag or scriplets within 
> >html:text
> >Date: Fri, 30 Sep 2005 15:36:17 -0400
> >
> >Dilip Ladhani wrote:
> >
> >>This does not work for me at all. Anyone have any ideas
> >
> >Yep; use a JSP 2.0-compliant container or the struts EL tags and replace 
> >"<%= executionState %>" with "${executionState}".
> >
> >Dave
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



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



[OT] How fast can you code?

2005-09-30 Thread James Mitchell
For those who might have missed it (especially if you live in or near  
Atlanta, GA):


There is a coding competition being held on Wed (next week)...check  
it out!


http://edgetechservices.net/snipsnap/space/Web+Atlanta+Users+Group


Bring it on!



--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM:   jmitchtx
Yahoo: jmitchtx
MSN:   [EMAIL PROTECTED]
Skype: callto://jmitchtx






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



Re: [OT] Re: embed jstl or other struts tag or scriplets within html:text

2005-09-30 Thread Dave Newton

Dilip Ladhani wrote:


I am on websphere/wsad 5.1. Do I have to use EL


I have no idea. Perhaps you could look in your documentation or on the 
web: I'll just bet it says somewhere.


Dave



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



[OT] Exporting data to Indesign

2005-09-30 Thread Denis Avdic
Hello all,

Sorry for the off topic post. I need to get some data exported into Indesign
format, and I am not sure how to do that.
Is there anyone out there doing this already? I've seen some techniques that
require number of conversions but I would like to keep this to a minimum and
have the whole process automated if possible.
 Please point me in the right direction if you know.
 Thanks,

Denis


RE: [OT] Re: embed jstl or other struts tag or scriplets within html:text

2005-09-30 Thread Dilip Ladhani

I am on websphere/wsad 5.1. Do I have to use EL



From: Dave Newton <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: [OT] Re: embed jstl or other struts tag or scriplets within 
html:text

Date: Fri, 30 Sep 2005 15:36:17 -0400

Dilip Ladhani wrote:


This does not work for me at all. Anyone have any ideas


Yep; use a JSP 2.0-compliant container or the struts EL tags and replace 
"<%= executionState %>" with "${executionState}".


Dave



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





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



[OT] Re: embed jstl or other struts tag or scriplets within html:text

2005-09-30 Thread Dave Newton

Dilip Ladhani wrote:


This does not work for me at all. Anyone have any ideas


Yep; use a JSP 2.0-compliant container or the struts EL tags and replace 
"<%= executionState %>" with "${executionState}".


Dave



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



Re: [OT] CVS question

2005-09-30 Thread erikweber
Hmm yeah, I guess that would accomplish the same thing.

Thanks,
Erik


-Original Message-
From: Larry Meadors <[EMAIL PROTECTED]>
Sent: Sep 30, 2005 3:06 PM
To: Struts Users Mailing List , [EMAIL PROTECTED]
Subject: Re: [OT] CVS question

No, but why not just get the branch in a seperate directory (i.e.,
export it) and copy it over the trunk, then commit it?

Lazy is good.

Larry


On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm having trouble with merging again.
>
> I am trying to merge changes from a branch into the trunk. Since there are a 
> million changes, I don't want to deal with manually resolving conflicts. I 
> just want to replace everything that's in my working copy of the trunk with 
> what's in the branch, and then I'll commit to bring the trunk up to date with 
> the branch.
>
> The problem is that I'm getting conflicts -- the overwrite doesn't seem to be 
> happening.
>
> I am running this command (from within my working copy of the trunk):
>
> cvs update -C -j 
>
> For some reason, the "-C" option doesn't seem to have any effect, or else I'm 
> doing this wrong. It's odd because no conflicts are reported by CVS output, 
> yet, there the conflicts are, in the files.
>
> Anyone know what I'm doing wrong?
>
> Thanks,
> Erik
>
>
> -
> 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]



embed jstl or other struts tag or scriplets within html:text

2005-09-30 Thread Dilip Ladhani

Hey guys,

This does not work for me at all. Anyone have any ideas

styleClass="textField" onfocus="this.select(); this.className='fieldActive'" 
onblur="this.className='fieldInactive'; reCalcFields(<%=executionState}%>);" 
size="4" maxlength="10" />


I have tried to put jstl (), other struts 
tag (bean:write) instead of the (<%=executionState}%>). Nothing 
worksPlease help




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



Re: [OT] CVS question

2005-09-30 Thread Larry Meadors
No, but why not just get the branch in a seperate directory (i.e.,
export it) and copy it over the trunk, then commit it?

Lazy is good.

Larry


On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm having trouble with merging again.
>
> I am trying to merge changes from a branch into the trunk. Since there are a 
> million changes, I don't want to deal with manually resolving conflicts. I 
> just want to replace everything that's in my working copy of the trunk with 
> what's in the branch, and then I'll commit to bring the trunk up to date with 
> the branch.
>
> The problem is that I'm getting conflicts -- the overwrite doesn't seem to be 
> happening.
>
> I am running this command (from within my working copy of the trunk):
>
> cvs update -C -j 
>
> For some reason, the "-C" option doesn't seem to have any effect, or else I'm 
> doing this wrong. It's odd because no conflicts are reported by CVS output, 
> yet, there the conflicts are, in the files.
>
> Anyone know what I'm doing wrong?
>
> Thanks,
> Erik
>
>
> -
> 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 submit buttons

2005-09-30 Thread Michael Jouravlev
On 9/30/05, Warren Bell <[EMAIL PROTECTED]> wrote:
> I am sure this question has been asked before, but I don't know what
> keywords to use to search for it. I have a table where each row has a hidden
> field and two submit buttons, a "buy now" and a "Add to shopping cart". A
> typical layout for most e-commerce sites. How do I figure out which item
> needs to be added to the shopping cart without sending each item on the page
> with the request? Is there a good example of how this should be done?

The simplest choice is to use a separate HTML form for each row. You
can submit each form to a different address, if you want. But more
likely, you would submit all forms to one address, providing an item
ID. You would have a hidden field with item ID in each form, which
would be automatically submitted when form is submitted.

You do not need to send a whole item with request, but you need to
send at least an item ID, so you can send it back to the server when
you submit a form.

Here is live example:
  http://www.superinterface.com/strutsdialog/crudactionlite.do

If you look at the source code, you will see that each row is a form
with a hidden "itemId" field:
   

Also, check out DisplayTag decorators:
  http://www.displaytag.org/example-decorator-link.jsp

Michael.

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



[OT] CVS question

2005-09-30 Thread erikweber
I'm having trouble with merging again.

I am trying to merge changes from a branch into the trunk. Since there are a 
million changes, I don't want to deal with manually resolving conflicts. I just 
want to replace everything that's in my working copy of the trunk with what's 
in the branch, and then I'll commit to bring the trunk up to date with the 
branch.

The problem is that I'm getting conflicts -- the overwrite doesn't seem to be 
happening.

I am running this command (from within my working copy of the trunk):

cvs update -C -j 

For some reason, the "-C" option doesn't seem to have any effect, or else I'm 
doing this wrong. It's odd because no conflicts are reported by CVS output, 
yet, there the conflicts are, in the files.

Anyone know what I'm doing wrong?

Thanks,
Erik


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



multiple submit buttons

2005-09-30 Thread Warren Bell
I am sure this question has been asked before, but I don't know what
keywords to use to search for it. I have a table where each row has a hidden
field and two submit buttons, a "buy now" and a "Add to shopping cart". A
typical layout for most e-commerce sites. How do I figure out which item
needs to be added to the shopping cart without sending each item on the page
with the request? Is there a good example of how this should be done?

Thanks,

Warren Bell


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



RE: How to handle forward instructions within an action class?

2005-09-30 Thread Michael Oliver
I can't say for sure because I can't see the whole Action class execute
method, butit appears you are thinking the Action class is the servlet
and it is not, you cannot forward from the Action class as your Action
returns a forward object.  Try using the Struts mechanisms instead of brute
force, its easier and more flexible.


Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]

-Original Message-
From: Jeff Thorne [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 30, 2005 9:32 AM
To: Struts Users Mailing List
Subject: How to handle forward instructions within an action class?


I have the following code in an action class:

else if(action.equals("sendMessage"))
 {
 String member = request.getParameter("member");
 RequestDispatcher view =
request.getRequestDispatcher("sendMemberInvite.jsp?member=" + member );
 view.forward(request, response);
}


This code works successfully but is causing the following error in the
tomcat log files

Servlet.service() for servlet action threw exception
java.lang.IllegalStateException: Cannot forward after response has been
committed

Can someone shed some light on why I am getting this error and how I should
handle forward instructions within an action class. Any help or insight
would be appreciated.

Thanks,
Jeff


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



logic:redirect w/ query string

2005-09-30 Thread Doug Thomas
How do I create a logic:redirect element with a query string>

I have:



Where ERRORNOTIFY is defined in  of the struts-config.xml
file and forwards to notifyError.jsp.

I need to generate the following URL:

notifyError.jsp?errMsg=some+error+message

How to append the query string to the URL is the question.

Doug



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



Re: Form Bean Question

2005-09-30 Thread Wendy Smoak

From: "Tamas Szabo" <[EMAIL PROTECTED]>


http://struts.apache.org/faqs/indexedprops.html



In my oppinion this page contains an error.
I already reported this (wrote a mail about it on this list
(don't know if this is a way to report an error in the docs)),


http://struts.apache.org/faqs/helping.html

The "official" right thing to do is open a Bugzilla ticket, preferably with 
a patch. :)  For a one-line change like this, posting a message to the dev 
list will often work.


I'll take a look at it this weekend.

--
Wendy Smoak 



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



Re: How to handle forward instructions within an action class?

2005-09-30 Thread atta-ur rehman
Jeff,

Assuming the code snippet in a method that returns an ActionForward, like
the execute() method itself, you can instantiate ActionForward and return
it:

else if(action.equals("sendMessage"))
{
String member = request.getParameter("member");
ActionForward forward = new ActionForward(sendMemberInvite.jsp?member=" +
member);
return forward;
}


as for the exception, I think it's becuase Struts is trying to forward to
ActionForward *after* request dispatcher committed the response. Returning a
null, again assuming that the method is returning an ActionForward, would
tell Struts to leave the response alone.

else if(action.equals("sendMessage"))
{
String member = request.getParameter("member");
RequestDispatcher view =
request.getRequestDispatcher("sendMemberInvite.jsp?member=" + member );
view.forward(request, response);
return null;
}


Hope this helps.


ATTA

On 9/30/05, Jeff Thorne <[EMAIL PROTECTED]> wrote:
>
>
> I have the following code in an action class:
>
> else if(action.equals("sendMessage"))
> {
> String member = request.getParameter("member");
> RequestDispatcher view =
> request.getRequestDispatcher("sendMemberInvite.jsp?member=" + member );
> view.forward(request, response);
> }
>
>
> This code works successfully but is causing the following error in the
> tomcat log files
>
> Servlet.service() for servlet action threw exception
> java.lang.IllegalStateException: Cannot forward after response has been
> committed
>
> Can someone shed some light on why I am getting this error and how I
> should
> handle forward
> instructions within an action class. Any help or insight would be
> appreciated.
>
> Thanks,
> Jeff
>
>


How to handle forward instructions within an action class?

2005-09-30 Thread Jeff Thorne

I have the following code in an action class:

else if(action.equals("sendMessage"))
 {
 String member = request.getParameter("member");
 RequestDispatcher view =
request.getRequestDispatcher("sendMemberInvite.jsp?member=" + member );
 view.forward(request, response);
}


This code works successfully but is causing the following error in the
tomcat log files

Servlet.service() for servlet action threw exception
java.lang.IllegalStateException: Cannot forward after response has been
committed

Can someone shed some light on why I am getting this error and how I should
handle forward
instructions within an action class. Any help or insight would be
appreciated.

Thanks,
Jeff


[OT] Re: This is my 1st blog

2005-09-30 Thread Dave Newton

netsql wrote:


Ooops. that would be a bug w/ 1.3 roomity :-(
(a blog does not post! huh)


No no, you've got it all wrong...

It's a feature!

Ship it and call it "syndication."

Dave



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



Re: submit buttons - how to put them label from resource

2005-09-30 Thread Wendy Smoak

From: "Borislav Sabev" <[EMAIL PROTECTED]>
I'd like to set a label of submit buttons getting it from property file. 
But seems that this is not possible.
One other problem I see is that value attribute has two purposes: to set 
the label, and on submit to provide value for the request parameter. Is 
there any way they to be different?


No.  I get around it with client-side scripting.  (It's an intranet app, so 
I can guarantee JavaScript is enabled.)


styleClass="addButton" titleKey="button.add.prospect" value="Add"/>


function setUserAction(target) {document.forms[0].userAction.value=target;}

--
Wendy Smoak 



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



Re: submit buttons - how to put them label from resource

2005-09-30 Thread Michael Jouravlev
On 9/30/05, Borislav Sabev <[EMAIL PROTECTED]> wrote:
> One other problem I see is that value attribute has two purposes: to set
> the label, and on submit to provide value for the request parameter. Is
> there any way they to be different?

No.

> (consider i18n problem: my buton can have German, English, Italian etc
> labels but the parameter value I'd like to recieve always "save",
> "cancel" etc.
> Does somebody know something about this problem?

See LookupDispatchAction, it adds a level of indirection allow you to
use arbitrary caption. Or try my SelectAction:
See bug #30292:
  http://issues.apache.org/bugzilla/show_bug.cgi?id=30292
or download from here:
  http://struts.sourceforge.net/strutsdialogs.
Docs are here:
  http://struts.sourceforge.net/strutsdialogs/selectaction.html
Live demo:
  http://www.superinterface.com/strutsdialog/selectaction.html

Michael.

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



Re: This is my 1st blog

2005-09-30 Thread netsql

Ooops. that would be a bug w/ 1.3 roomity :-(
(a blog does not post! huh)
.V


netsql wrote:

I wonder if it works, this blogger of mine.


-
http://Struts_User_List.roomity.com";>roomity.com
roomity.com is broadband internet. ~~1128092353449~~
-




--
thx,
.V

roomity.com is the broadband portal 

cell: 917 825 3035 in DFW
email: netsql at roomity.com


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



Re: submit buttons - how to put them label from resource

2005-09-30 Thread atta-ur rehman
 
 



On 9/30/05, Borislav Sabev <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'd like to set a label of submit buttons getting it from property file.
> But seems that this is not possible.
> One other problem I see is that value attribute has two purposes: to set
> the label, and on submit to provide value for the request parameter. Is
> there any way they to be different?
> (consider i18n problem: my buton can have German, English, Italian etc
> labels but the parameter value I'd like to recieve always "save",
> "cancel" etc.
> Does somebody know something about this problem?
>
> Borislav
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


submit buttons - how to put them label from resource

2005-09-30 Thread Borislav Sabev

Hi all,

I'd like to set a label of submit buttons getting it from property file. 
But seems that this is not possible.
One other problem I see is that value attribute has two purposes: to set 
the label, and on submit to provide value for the request parameter. Is 
there any way they to be different?
(consider i18n problem: my buton can have German, English, Italian etc 
labels but the parameter value I'd like to recieve always "save", 
"cancel" etc.

Does somebody know something about this problem?

Borislav




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



using scriplets within tags

2005-09-30 Thread Dilip Ladhani

Hey guys,

I am using tiles to construct a page using bunch of jsps, say jsp1, jsp2, 
jsp3. The layout page is called jsp0 (say)


Now in jsp1, I have html:text element, I have a javascript, that I need to 
execute "onblur" of this textfield. The javascript function, needs to pass 
an attrbute (as a parameter) which is present in my form.

Here's what I have in jsp1 at the top.
property="preliminaryContract_ContractExecutionState" />


and then here's my html:text element
styleClass="textField" onblur="this.className='fieldInactive'; 
reCalcFields('');" size="4" maxlength="10" 
/>


I keep getting the error "Attribute ${executionState} has no value "  How do 
I do this?


I have tried everything, including using jstl, bean:write etc. Any 
suggestions?


Thanks guys.



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



Re: reset form in session scope

2005-09-30 Thread atta-ur rehman
The fundamental question is, can you afford a page submit for so callled
'reset' button? please change the 'reset' to 'submit' as shown below. Now
when user hits Reset, page is submitted with submit=reset; from this point
onwards you can clean stuff from session.

> 
> 
> 
> 
> 
> 
> 
 Reset  <-
> 
> 

ATTA

On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> To do it the way you have shown then I would have to have a reset
> button/link next to the edit/delete link at the bottom of the page. Is
> that right?
>
> -Original Message-
> From: atta-ur rehman [mailto:[EMAIL PROTECTED]
> Sent: 30 September 2005 15:52
> To: Struts Users Mailing List
> Subject: Re: reset form in session scope
>
> Faisal,
>
> Are you saying you want to do it on client side? Using the 'normal' HTML
> reset? If so, I don't see how. That's why I assumed you're submitting
> for
> reset. The reset button only resets your form elements; and you can use
> javascript to call reset on more than one forms. But I don't see how can
> you
> get rid of results shown.
>
> Submitting for reset and claring sesion data would be easiest way. You
> can
> also use DHTML to remove results table from the current document if you
> absolutely want to do without a submit.
>
> I hope this helps.
>
> ATTA
>
> On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > The reset button from the search form does not go to the
> > actionclientaction class. Maybe I have explained it badly.
> >
> > My jsp has some search fields and the user enters criteria into these
> > then clicks submit.
> >
> > This returns a table of results further down the page with checkboxes
> > associated with each line of result. And a edit or delete link at the
> > bottom. The user can select multiple checkboxes then edit or delete
> the
> > results.
> >
> > Next to the submit button below the search criteria is a reset button.
> > How would I blank the search criteria and get rid of the results
> > displayed below by clicking on reset.
> >
> > At the moment I have
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > in my jsp and in my form I have a blank reset method. But this does
> not
> > get called.
> >
> >
> >
> > -Original Message-
> > From: atta-ur rehman [mailto:[EMAIL PROTECTED]
> > Sent: 30 September 2005 15:30
> > To: Struts Users Mailing List
> > Subject: Re: reset form in session scope
> >
> > in the actionClient action class, on reset button click:
> >
> > ActionForm form = (ActionForm)
> session.getAttribute("searchClientForm");
> > if (form != null) {
> > form.reset(...);
> > }
> >
> > only if I understood your question correctly and search form is not
> > doing
> > anything with mapping and/or request in it's reset() method!
> >
> > ATTA
> >
> > On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > I have a search.jsp which contains two forms search form and a
> action
> > > form.
> > >
> > > The search form submits all the search criteria to the action class
> > > which queries the DB then returns a result. The action form then
> > > decides which action to do with what result.
> > >
> > > The problem I have is how do I reset the search form and the action
> > form
> > > with one button.
> > >
> > > I have two buttons on the search form, submit and reset. When I
> press
> > > reset I want to reset the search criteria and clear all the results
> > > which are being displayed.
> > >
> > > My struts config is as follows:
> > >
> > >  > > type="com.medina.web.action.SearchClientAction"
> > > name="searchClientForm"
> > > scope="session"
> > > input="/searchClient.jsp"
> > > validate="true">
> > > 
> > > 
> > >
> > >  > > type="com.medina.web.action.ActionClientAction"
> > > name="actionClientForm"
> > > scope="request"
> > > input="/searchClient.jsp"
> > > validate="true">
> > > 
> > > 
> > > 
> > > 
> > >
> > > I have the search form in the seesion scope so when the results are
> > > validated they are still displayed and do not disappear.
> > >
> > >
> >
> > -
> > 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]
>
>


This is my 1st blog

2005-09-30 Thread netsql
I wonder if it works, this blogger of mine.


-
http://Struts_User_List.roomity.com";>roomity.com
roomity.com is broadband internet. ~~1128092353449~~
-


RE: reset form in session scope

2005-09-30 Thread faisal.shoukat
To do it the way you have shown then I would have to have a reset
button/link next to the edit/delete link at the bottom of the page. Is
that right?

-Original Message-
From: atta-ur rehman [mailto:[EMAIL PROTECTED] 
Sent: 30 September 2005 15:52
To: Struts Users Mailing List
Subject: Re: reset form in session scope

Faisal,

Are you saying you want to do it on client side? Using the 'normal' HTML
reset? If so, I don't see how. That's why I assumed you're submitting
for
reset. The reset button only resets your form elements; and you can use
javascript to call reset on more than one forms. But I don't see how can
you
get rid of results shown.

Submitting for reset and claring sesion data would be easiest way. You
can
also use DHTML to remove results table from the current document if you
absolutely want to do without a submit.

I hope this helps.

ATTA

On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> The reset button from the search form does not go to the
> actionclientaction class. Maybe I have explained it badly.
>
> My jsp has some search fields and the user enters criteria into these
> then clicks submit.
>
> This returns a table of results further down the page with checkboxes
> associated with each line of result. And a edit or delete link at the
> bottom. The user can select multiple checkboxes then edit or delete
the
> results.
>
> Next to the submit button below the search criteria is a reset button.
> How would I blank the search criteria and get rid of the results
> displayed below by clicking on reset.
>
> At the moment I have
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> in my jsp and in my form I have a blank reset method. But this does
not
> get called.
>
>
>
> -Original Message-
> From: atta-ur rehman [mailto:[EMAIL PROTECTED]
> Sent: 30 September 2005 15:30
> To: Struts Users Mailing List
> Subject: Re: reset form in session scope
>
> in the actionClient action class, on reset button click:
>
> ActionForm form = (ActionForm)
session.getAttribute("searchClientForm");
> if (form != null) {
> form.reset(...);
> }
>
> only if I understood your question correctly and search form is not
> doing
> anything with mapping and/or request in it's reset() method!
>
> ATTA
>
> On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I have a search.jsp which contains two forms search form and a
action
> > form.
> >
> > The search form submits all the search criteria to the action class
> > which queries the DB then returns a result. The action form then
> > decides which action to do with what result.
> >
> > The problem I have is how do I reset the search form and the action
> form
> > with one button.
> >
> > I have two buttons on the search form, submit and reset. When I
press
> > reset I want to reset the search criteria and clear all the results
> > which are being displayed.
> >
> > My struts config is as follows:
> >
> >  > type="com.medina.web.action.SearchClientAction"
> > name="searchClientForm"
> > scope="session"
> > input="/searchClient.jsp"
> > validate="true">
> > 
> > 
> >
> >  > type="com.medina.web.action.ActionClientAction"
> > name="actionClientForm"
> > scope="request"
> > input="/searchClient.jsp"
> > validate="true">
> > 
> > 
> > 
> > 
> >
> > I have the search form in the seesion scope so when the results are
> > validated they are still displayed and do not disappear.
> >
> >
>
> -
> 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: reset form in session scope

2005-09-30 Thread atta-ur rehman
Reset only works on the form elements:

http://www.htmlcodetutorial.com/forms/_INPUT_TYPE_RESET.html


On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> The reset button seems to work fine before I do a search. Once I have
> returned some results the reset button does not seem to do anything
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 30 September 2005 15:42
> To: user@struts.apache.org; [EMAIL PROTECTED]
> Subject: RE: reset form in session scope
>
> The reset button from the search form does not go to the
> actionclientaction class. Maybe I have explained it badly.
>
> My jsp has some search fields and the user enters criteria into these
> then clicks submit.
>
> This returns a table of results further down the page with checkboxes
> associated with each line of result. And a edit or delete link at the
> bottom. The user can select multiple checkboxes then edit or delete the
> results.
>
> Next to the submit button below the search criteria is a reset button.
> How would I blank the search criteria and get rid of the results
> displayed below by clicking on reset.
>
> At the moment I have
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> in my jsp and in my form I have a blank reset method. But this does not
> get called.
>
>
>
> -Original Message-
> From: atta-ur rehman [mailto:[EMAIL PROTECTED]
> Sent: 30 September 2005 15:30
> To: Struts Users Mailing List
> Subject: Re: reset form in session scope
>
> in the actionClient action class, on reset button click:
>
> ActionForm form = (ActionForm) session.getAttribute("searchClientForm");
> if (form != null) {
> form.reset(...);
> }
>
> only if I understood your question correctly and search form is not
> doing
> anything with mapping and/or request in it's reset() method!
>
> ATTA
>
> On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I have a search.jsp which contains two forms search form and a action
> > form.
> >
> > The search form submits all the search criteria to the action class
> > which queries the DB then returns a result. The action form then
> > decides which action to do with what result.
> >
> > The problem I have is how do I reset the search form and the action
> form
> > with one button.
> >
> > I have two buttons on the search form, submit and reset. When I press
> > reset I want to reset the search criteria and clear all the results
> > which are being displayed.
> >
> > My struts config is as follows:
> >
> >  > type="com.medina.web.action.SearchClientAction"
> > name="searchClientForm"
> > scope="session"
> > input="/searchClient.jsp"
> > validate="true">
> > 
> > 
> >
> >  > type="com.medina.web.action.ActionClientAction"
> > name="actionClientForm"
> > scope="request"
> > input="/searchClient.jsp"
> > validate="true">
> > 
> > 
> > 
> > 
> >
> > I have the search form in the seesion scope so when the results are
> > validated they are still displayed and do not disappear.
> >
> >
>
> -
> 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: reset form in session scope

2005-09-30 Thread atta-ur rehman
Faisal,

Are you saying you want to do it on client side? Using the 'normal' HTML
reset? If so, I don't see how. That's why I assumed you're submitting for
reset. The reset button only resets your form elements; and you can use
javascript to call reset on more than one forms. But I don't see how can you
get rid of results shown.

Submitting for reset and claring sesion data would be easiest way. You can
also use DHTML to remove results table from the current document if you
absolutely want to do without a submit.

I hope this helps.

ATTA

On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> The reset button from the search form does not go to the
> actionclientaction class. Maybe I have explained it badly.
>
> My jsp has some search fields and the user enters criteria into these
> then clicks submit.
>
> This returns a table of results further down the page with checkboxes
> associated with each line of result. And a edit or delete link at the
> bottom. The user can select multiple checkboxes then edit or delete the
> results.
>
> Next to the submit button below the search criteria is a reset button.
> How would I blank the search criteria and get rid of the results
> displayed below by clicking on reset.
>
> At the moment I have
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> in my jsp and in my form I have a blank reset method. But this does not
> get called.
>
>
>
> -Original Message-
> From: atta-ur rehman [mailto:[EMAIL PROTECTED]
> Sent: 30 September 2005 15:30
> To: Struts Users Mailing List
> Subject: Re: reset form in session scope
>
> in the actionClient action class, on reset button click:
>
> ActionForm form = (ActionForm) session.getAttribute("searchClientForm");
> if (form != null) {
> form.reset(...);
> }
>
> only if I understood your question correctly and search form is not
> doing
> anything with mapping and/or request in it's reset() method!
>
> ATTA
>
> On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I have a search.jsp which contains two forms search form and a action
> > form.
> >
> > The search form submits all the search criteria to the action class
> > which queries the DB then returns a result. The action form then
> > decides which action to do with what result.
> >
> > The problem I have is how do I reset the search form and the action
> form
> > with one button.
> >
> > I have two buttons on the search form, submit and reset. When I press
> > reset I want to reset the search criteria and clear all the results
> > which are being displayed.
> >
> > My struts config is as follows:
> >
> >  > type="com.medina.web.action.SearchClientAction"
> > name="searchClientForm"
> > scope="session"
> > input="/searchClient.jsp"
> > validate="true">
> > 
> > 
> >
> >  > type="com.medina.web.action.ActionClientAction"
> > name="actionClientForm"
> > scope="request"
> > input="/searchClient.jsp"
> > validate="true">
> > 
> > 
> > 
> > 
> >
> > I have the search form in the seesion scope so when the results are
> > validated they are still displayed and do not disappear.
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: reset form in session scope

2005-09-30 Thread faisal.shoukat
The reset button seems to work fine before I do a search.  Once I have
returned some results the reset button does not seem to do anything

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 30 September 2005 15:42
To: user@struts.apache.org; [EMAIL PROTECTED]
Subject: RE: reset form in session scope

The reset button from the search form does not go to the
actionclientaction class.  Maybe I have explained it badly.

My jsp has some search fields and the user enters criteria into these
then clicks submit.

This returns a table of results further down the page with checkboxes
associated with each line of result.  And a edit or delete link at the
bottom.  The user can select multiple checkboxes then edit or delete the
results.

Next to the submit button below the search criteria is a reset button.
How would I blank the search criteria and get rid of the results
displayed below by clicking on reset.

At the moment I have 

 
 
  

  
   
 
  

  

in my jsp and in my form I have a blank reset method.  But this does not
get called.



-Original Message-
From: atta-ur rehman [mailto:[EMAIL PROTECTED] 
Sent: 30 September 2005 15:30
To: Struts Users Mailing List
Subject: Re: reset form in session scope

in the actionClient action class, on reset button click:

ActionForm form = (ActionForm) session.getAttribute("searchClientForm");
if (form != null) {
form.reset(...);
}

only if I understood your question correctly and search form is not
doing
anything with mapping and/or request in it's reset() method!

ATTA

On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a search.jsp which contains two forms search form and a action
> form.
>
> The search form submits all the search criteria to the action class
> which queries the DB then returns a result. The action form then
> decides which action to do with what result.
>
> The problem I have is how do I reset the search form and the action
form
> with one button.
>
> I have two buttons on the search form, submit and reset. When I press
> reset I want to reset the search criteria and clear all the results
> which are being displayed.
>
> My struts config is as follows:
>
>  type="com.medina.web.action.SearchClientAction"
> name="searchClientForm"
> scope="session"
> input="/searchClient.jsp"
> validate="true">
> 
> 
>
>  type="com.medina.web.action.ActionClientAction"
> name="actionClientForm"
> scope="request"
> input="/searchClient.jsp"
> validate="true">
> 
> 
> 
> 
>
> I have the search form in the seesion scope so when the results are
> validated they are still displayed and do not disappear.
>
>

-
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: reset form in session scope

2005-09-30 Thread faisal.shoukat
The reset button from the search form does not go to the
actionclientaction class.  Maybe I have explained it badly.

My jsp has some search fields and the user enters criteria into these
then clicks submit.

This returns a table of results further down the page with checkboxes
associated with each line of result.  And a edit or delete link at the
bottom.  The user can select multiple checkboxes then edit or delete the
results.

Next to the submit button below the search criteria is a reset button.
How would I blank the search criteria and get rid of the results
displayed below by clicking on reset.

At the moment I have 

 
 
  

  
   
 
  

  

in my jsp and in my form I have a blank reset method.  But this does not
get called.



-Original Message-
From: atta-ur rehman [mailto:[EMAIL PROTECTED] 
Sent: 30 September 2005 15:30
To: Struts Users Mailing List
Subject: Re: reset form in session scope

in the actionClient action class, on reset button click:

ActionForm form = (ActionForm) session.getAttribute("searchClientForm");
if (form != null) {
form.reset(...);
}

only if I understood your question correctly and search form is not
doing
anything with mapping and/or request in it's reset() method!

ATTA

On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a search.jsp which contains two forms search form and a action
> form.
>
> The search form submits all the search criteria to the action class
> which queries the DB then returns a result. The action form then
> decides which action to do with what result.
>
> The problem I have is how do I reset the search form and the action
form
> with one button.
>
> I have two buttons on the search form, submit and reset. When I press
> reset I want to reset the search criteria and clear all the results
> which are being displayed.
>
> My struts config is as follows:
>
>  type="com.medina.web.action.SearchClientAction"
> name="searchClientForm"
> scope="session"
> input="/searchClient.jsp"
> validate="true">
> 
> 
>
>  type="com.medina.web.action.ActionClientAction"
> name="actionClientForm"
> scope="request"
> input="/searchClient.jsp"
> validate="true">
> 
> 
> 
> 
>
> I have the search form in the seesion scope so when the results are
> validated they are still displayed and do not disappear.
>
>

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



RE: form bean population confusion

2005-09-30 Thread rahul
I am not sure, what you want to show on jsp2
but let me try..

you said you want to submit some DATA from PAGE 1
then retrieve some info from database and show that data
in PAGE 2

But the mapping you shown is not correct for that
follow these steps

1. Create a mapping for action1 which does not take any
ActionForm.

2. Forward the request from that action1 to some jsp1
which will take the input from user(i.e. searchType,age ...)

3. Create a mapping for action2 which takes a  DynaValidatorForm
for all the user data u received in jsp1

4. Extract the info from database using data received
in DynaValidatorForm

5. Set the data in session or request scope in the form of a Bean

6. Forward the request to jsp2

7. In jsp2 show the data using  tag or in the form
of html form if you want to again send that data to some third
action.


  --Rahul



> -Original Message-
> From: my struts [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 30, 2005 7:19 PM
> To: user@struts.apache.org
> Subject: form bean population confusion
>
>
> Hi,
>
> I am lost in the basics.
>
> Problem: When PAGE 1 DATA is submitted then (back end will
> retrieve the info
> from database) and PAGE 2 should be displayed with DATA. But the
> population
> is not happening, I am lost in basics. Please clarify.
>
> Here is the information on my form-beans and action-mappings.
>
> Form-beans:
> ==
>  type="org.apache.struts.validator.DynaValidatorForm">
>  
>  
>  
> 
>  type="org.apache.struts.validator.DynaValidatorForm">
>  
>  
>  
>  
>   .
> 
>  type="org.apache.struts.validator.DynaValidatorForm">
> .
> 
>
> action mappings:
> 
>  validate="false">
>  
> 
>  input="definition for page 1 display" scope="request" validate="false">
>  
> 
>  input="definition for page 2 display" scope="request" validate="false">
>  
> 
>
> Control Flow:
> =
> 1. When Search link is clicked, search page (/search mapping is
> called) is
> displayed with the search EMPTY fields.
> 2. When search form is submitted (searchType, insId and age fields), then
> results page should be displayed with populated information. This is not
> happening. When search form is submitted the data is being populated and
> when I checked in the action classes in debug mode, I have seen
> the data IS
> POPULATED in the searchForm.  On PAGE 2 jsp's I have  fields
> with no name of the form, so it takes the default from the
> html:form which
> is I have defined it as . I think,
> the fields
> on page 2 are taking resultsForm which is not populated. I am
> lost here, how
> multiple pages are generally managed.
>
> When I did the view source on PAGE  2, it showed
> 
> 
> 
> 
> 
> 
>
> I am confused. Please help in this basics.
>
> Thanks in advance.
>
> _
> Express yourself instantly with MSN Messenger! Download today -
> it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
> -
> 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: reset form in session scope

2005-09-30 Thread atta-ur rehman
in the actionClient action class, on reset button click:

ActionForm form = (ActionForm) session.getAttribute("searchClientForm");
if (form != null) {
form.reset(...);
}

only if I understood your question correctly and search form is not doing
anything with mapping and/or request in it's reset() method!

ATTA

On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a search.jsp which contains two forms search form and a action
> form.
>
> The search form submits all the search criteria to the action class
> which queries the DB then returns a result. The action form then
> decides which action to do with what result.
>
> The problem I have is how do I reset the search form and the action form
> with one button.
>
> I have two buttons on the search form, submit and reset. When I press
> reset I want to reset the search criteria and clear all the results
> which are being displayed.
>
> My struts config is as follows:
>
>  type="com.medina.web.action.SearchClientAction"
> name="searchClientForm"
> scope="session"
> input="/searchClient.jsp"
> validate="true">
> 
> 
>
>  type="com.medina.web.action.ActionClientAction"
> name="actionClientForm"
> scope="request"
> input="/searchClient.jsp"
> validate="true">
> 
> 
> 
> 
>
> I have the search form in the seesion scope so when the results are
> validated they are still displayed and do not disappear.
>
>


Re: Serializable

2005-09-30 Thread Tamas Szabo
On 9/30/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>
> I'm not sure it is a stupid question... I guess this enters the realm of
> generic Java question, but I can't say I've ever thought about this
> before... what happens if you have a class that implements serializable,
> and you then extend that class and add a member that is NOT serializable?
> Does that get flagged at compile-time?


No. It is an error but it will be detected only at runtime.
A NotSerializableException will be thrown when an instance of the subclass
is serialized.

If you extend a class that is flagged to be Serializable, you must assure
that all the members are Serializable.
Adding a non Serializable member to a subclass of a Serializable class is
the same thing
as adding a non Serializable member to the Serializable class. And that's an
error which will
be detected at runtime.

Tamas


Re: Serializable

2005-09-30 Thread Frank W. Zammetti
Yep, knew I had to be missing something :)  Thanks Atta!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Fri, September 30, 2005 10:08 am, atta-ur rehman said:
> from:
>
> http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html
>
> "When traversing a graph, an object may be encountered that does not
> support
> the Serializable interface. In this case the NotSerializableException will
> be thrown and will identify the class of the non-serializable object."
>
> ATTA
>
>
>
>
> On 9/30/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>>
>> I'm not sure it is a stupid question... I guess this enters the realm of
>> generic Java question, but I can't say I've ever thought about this
>> before... what happens if you have a class that implements serializable,
>> and you then extend that class and add a member that is NOT
>> serializable?
>> Does that get flagged at compile-time? No, it wouldn't seem to:
>>
>> public class test implements java.io.Serializable { }
>>
>> class Nonser { }
>>
>> class test1 extends test {
>> private Nonser ns = new Nonser();
>> }
>>
>> This compiled without error or warning. Unless I'm missing something,
>> class Nonser is NOT serializable, so by extension test1 should not be,
>> even though it is extending a class that is itself serializable.
>>
>> Like I said, this is one of those things I've never thought about
>> before,
>> so I wonder what basic thing I've got messed up in my brain? :)
>>
>> --
>> Frank W. Zammetti
>> Founder and Chief Software Architect
>> Omnytex Technologies
>> http://www.omnytex.com
>> AIM: fzammetti
>> Yahoo: fzammetti
>> MSN: [EMAIL PROTECTED]
>>
>> On Fri, September 30, 2005 3:57 am, Murray Collingwood said:
>> > That's a very good point. I feel like I've asked a stupid question
>> now
>> > - duh!
>> >
>> > Thanks Starki
>> >
>> > On 30 Sep 2005 at 9:52, starki78 wrote:
>> >
>> >> I don't know if you have to use implements at all
>> >> because
>> >> the super-class does already implement it.
>> >> What would you like to achieve?
>> >>
>> >> Regards Starki
>> >>
>> >>
>> >>
>> >>
>> >> -- Initial Header ---
>> >>
>> >> From : "Murray Collingwood" [EMAIL PROTECTED]
>> >> To : user@struts.apache.org
>> >> Cc :
>> >> Date : Fri, 30 Sep 2005 17:27:19 +1000
>> >> Subject : Serializable
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> > Just a quick question.
>> >> >
>> >> > Does anybody follow any rule (personal or corporate) for when to
>> use
>> >> "implements
>> >> > serializable" on a Struts form-bean?
>> >> >
>> >> > Kind regards
>> >> > mc
>> >> >
>> >> >
>> >> > FOCUS Computing
>> >> > Mob: 0415 24 26 24
>> >> > [EMAIL PROTECTED]
>> >> > http://www.focus-computing.com.au
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > No virus found in this outgoing message.
>> >> > Checked by AVG Anti-Virus.
>> >> > Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date:
>> >> 29/09/2005
>> >> >
>> >> >
>> >> > -
>> >> > 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]
>> >>
>> >>
>> >>
>> >> --
>> >> No virus found in this incoming message.
>> >> Checked by AVG Anti-Virus.
>> >> Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date:
>> >> 29/09/2005
>> >>
>> >
>> >
>> >
>> > FOCUS Computing
>> > Mob: 0415 24 26 24
>> > [EMAIL PROTECTED]
>> > http://www.focus-computing.com.au
>> >
>> >
>> >
>> > --
>> > No virus found in this outgoing message.
>> > Checked by AVG Anti-Virus.
>> > Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date:
>> 29/09/2005
>> >
>> >
>> > -
>> > 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]



reset form in session scope

2005-09-30 Thread faisal.shoukat
Hi,
 
I have a search.jsp which contains two forms search form and a action
form. 
 
The search form submits all the search criteria to the action class
which queries the DB then returns a result.  The action form then
decides which action to do with what result.
 
The problem I have is how do I reset the search form and the action form
with one button.
 
I have two buttons on the search form, submit and reset.  When I press
reset I want to reset the search criteria and clear all the results
which are being displayed.  
 
My struts config is as follows:
 









 
I have the search form in the seesion scope so when the results are
validated they are still displayed and do not disappear.


Re: Serializable

2005-09-30 Thread atta-ur rehman
from:

http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html

"When traversing a graph, an object may be encountered that does not support
the Serializable interface. In this case the NotSerializableException will
be thrown and will identify the class of the non-serializable object."

ATTA




On 9/30/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>
> I'm not sure it is a stupid question... I guess this enters the realm of
> generic Java question, but I can't say I've ever thought about this
> before... what happens if you have a class that implements serializable,
> and you then extend that class and add a member that is NOT serializable?
> Does that get flagged at compile-time? No, it wouldn't seem to:
>
> public class test implements java.io.Serializable { }
>
> class Nonser { }
>
> class test1 extends test {
> private Nonser ns = new Nonser();
> }
>
> This compiled without error or warning. Unless I'm missing something,
> class Nonser is NOT serializable, so by extension test1 should not be,
> even though it is extending a class that is itself serializable.
>
> Like I said, this is one of those things I've never thought about before,
> so I wonder what basic thing I've got messed up in my brain? :)
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM: fzammetti
> Yahoo: fzammetti
> MSN: [EMAIL PROTECTED]
>
> On Fri, September 30, 2005 3:57 am, Murray Collingwood said:
> > That's a very good point. I feel like I've asked a stupid question
> now
> > - duh!
> >
> > Thanks Starki
> >
> > On 30 Sep 2005 at 9:52, starki78 wrote:
> >
> >> I don't know if you have to use implements at all
> >> because
> >> the super-class does already implement it.
> >> What would you like to achieve?
> >>
> >> Regards Starki
> >>
> >>
> >>
> >>
> >> -- Initial Header ---
> >>
> >> From : "Murray Collingwood" [EMAIL PROTECTED]
> >> To : user@struts.apache.org
> >> Cc :
> >> Date : Fri, 30 Sep 2005 17:27:19 +1000
> >> Subject : Serializable
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> > Just a quick question.
> >> >
> >> > Does anybody follow any rule (personal or corporate) for when to use
> >> "implements
> >> > serializable" on a Struts form-bean?
> >> >
> >> > Kind regards
> >> > mc
> >> >
> >> >
> >> > FOCUS Computing
> >> > Mob: 0415 24 26 24
> >> > [EMAIL PROTECTED]
> >> > http://www.focus-computing.com.au
> >> >
> >> >
> >> >
> >> > --
> >> > No virus found in this outgoing message.
> >> > Checked by AVG Anti-Virus.
> >> > Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date:
> >> 29/09/2005
> >> >
> >> >
> >> > -
> >> > 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]
> >>
> >>
> >>
> >> --
> >> No virus found in this incoming message.
> >> Checked by AVG Anti-Virus.
> >> Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date:
> >> 29/09/2005
> >>
> >
> >
> >
> > FOCUS Computing
> > Mob: 0415 24 26 24
> > [EMAIL PROTECTED]
> > http://www.focus-computing.com.au
> >
> >
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Anti-Virus.
> > Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date:
> 29/09/2005
> >
> >
> > -
> > 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: How to implement the onchange event in a html-select?

2005-09-30 Thread Frank W. Zammetti
On Fri, September 30, 2005 4:53 am, gollinger said:
> Hi!
>
> I've two html:selects within a form.
> The selected value of the first determines
> the possible values in the second select box.
> Now the onchange-Event fires a client-side Javascript Event.
> Is it better to change this and put the functionaly
> in a Java-Class. Would this be possible?
>
> 
> 
>
> Is this a good practise?

It's not a good practice because it isn't possible :)  The onChange event
handler is strictly client-side, it doesn't know about any Java classes on
the server.  To do what you describe requires some plumbing on the client
that knows how to call back to the server.  Thinks like AJAX comes to
mind.  ASP.Net and JSF do this type of thing too.

There's lots of ways to crack this nut, but they are all going to require
some client-side scripting to call the server, maybe a little, maybe a
lot, depends on the approach.

> Thanks for any opinions!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

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



Re:Serializable

2005-09-30 Thread Frank W. Zammetti
I'm not sure it is a stupid question... I guess this enters the realm of
generic Java question, but I can't say I've ever thought about this
before... what happens if you have a class that implements serializable,
and you then extend that class and add a member that is NOT serializable? 
Does that get flagged at compile-time?  No, it wouldn't seem to:

public class test implements java.io.Serializable { }

class Nonser { }

class test1 extends test {
  private Nonser ns = new Nonser();
}

This compiled without error or warning.  Unless I'm missing something,
class Nonser is NOT serializable, so by extension test1 should not be,
even though it is extending a class that is itself serializable.

Like I said, this is one of those things I've never thought about before,
so I wonder what basic thing I've got messed up in my brain? :)

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Fri, September 30, 2005 3:57 am, Murray Collingwood said:
> That's a very good point. I feel like I've asked a stupid question now
> - duh!
>
> Thanks Starki
>
> On 30 Sep 2005 at 9:52, starki78 wrote:
>
>> I don't know if you have to use implements at all
>> because
>> the super-class does already implement it.
>> What would you like to achieve?
>>
>> Regards Starki
>>
>>
>>
>>
>> -- Initial Header ---
>>
>> From  : "Murray Collingwood" [EMAIL PROTECTED]
>> To  : user@struts.apache.org
>> Cc  :
>> Date  : Fri, 30 Sep 2005 17:27:19 +1000
>> Subject : Serializable
>>
>>
>>
>>
>>
>>
>>
>> > Just a quick question.
>> >
>> > Does anybody follow any rule (personal or corporate) for when to use
>> "implements
>> > serializable" on a Struts form-bean?
>> >
>> > Kind regards
>> > mc
>> >
>> >
>> > FOCUS Computing
>> > Mob: 0415 24 26 24
>> > [EMAIL PROTECTED]
>> > http://www.focus-computing.com.au
>> >
>> >
>> >
>> > --
>> > No virus found in this outgoing message.
>> > Checked by AVG Anti-Virus.
>> > Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date:
>> 29/09/2005
>> >
>> >
>> > -
>> > 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]
>>
>>
>>
>> --
>> No virus found in this incoming message.
>> Checked by AVG Anti-Virus.
>> Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date:
>> 29/09/2005
>>
>
>
>
> FOCUS Computing
> Mob: 0415 24 26 24
> [EMAIL PROTECTED]
> http://www.focus-computing.com.au
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005
>
>
> -
> 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]



form bean population confusion

2005-09-30 Thread my struts

Hi,

I am lost in the basics.

Problem: When PAGE 1 DATA is submitted then (back end will retrieve the info 
from database) and PAGE 2 should be displayed with DATA. But the population 
is not happening, I am lost in basics. Please clarify.


Here is the information on my form-beans and action-mappings.

Form-beans:
==
type="org.apache.struts.validator.DynaValidatorForm">





type="org.apache.struts.validator.DynaValidatorForm">





 .

type="org.apache.struts.validator.DynaValidatorForm">

.


action mappings:

validate="false">



input="definition for page 1 display" scope="request" validate="false">



input="definition for page 2 display" scope="request" validate="false">




Control Flow:
=
1. When Search link is clicked, search page (/search mapping is called) is 
displayed with the search EMPTY fields.
2. When search form is submitted (searchType, insId and age fields), then 
results page should be displayed with populated information. This is not 
happening. When search form is submitted the data is being populated and 
when I checked in the action classes in debug mode, I have seen the data IS 
POPULATED in the searchForm.  On PAGE 2 jsp's I have  fields 
with no name of the form, so it takes the default from the html:form which 
is I have defined it as . I think, the fields 
on page 2 are taking resultsForm which is not populated. I am lost here, how 
multiple pages are generally managed.


When I did the view source on PAGE  2, it showed







I am confused. Please help in this basics.

Thanks in advance.

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



Re: Tiles problem - how to put attr in right context

2005-09-30 Thread Greg Reddin
A very similar question was asked earlier this week.  Check the  
archives for more.


Here's how I've done it, but it's not extremely elegant:

tiles-defs.xml


  
  
  



  


Here's a snippet from mainlayout.jsp:
  
  

  

and here's header.jsp:
Header
Title is: 

The problem is that header.jsp is "contained" in the main.layout  
tile.  It does not inherently have any information about the tile it  
is contained in, so you have to pass any relevant attributes when you  
insert the page.


Greg


On Sep 30, 2005, at 4:59 AM, Java News wrote:


Hello,
I have problem with putting attributes in right context - my tiles
definitions look like:


extends=".mainLayout">







What I would like to achieve is:
1) I would like that .header attribute "title" was passed from
.add_product.form, so i can have only one header definition and many
rendering pages like .add_product.form, .add_product.confirm,
.add_product.thank_you and also i dont want (or other words i  
can't) extend

header definition
2) I tried to put header in .add_product.form as:

extends=".mainLayout">




and use it in jsp page as:



but when I used in header.jsp:



I got an error about lack of attr title in context:

11:38:22,134 ERROR [[action]] Servlet.service() for servlet action  
threw

exception
javax.servlet.jsp.JspException: ServletException in
'/WEB-INF/pages/tiles/header.jsp': Error - tag.getAsString : attribute
'title' not found in context. Check tag syntax
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(
InsertTag.java:921)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java: 
460)

at
org.apache.jsp.WEB_002dINF.pages.add_005fproduct_jsp._jspx_meth_tiles_ 
get_0(

org.apache.jsp.WEB_002dINF.pages.add_005fproduct_jsp:136)
at org.apache.jsp.WEB_002dINF.pages.add_005fproduct_jsp._jspService(
org.apache.jsp.WEB_002dINF.pages.add_005fproduct_jsp:77)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile 
(JspServlet.java:314)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

What should I do to put this attribute in right context - could you  
help me?


Best Regards,
Lee




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



Re: Hibernate data at startup

2005-09-30 Thread Joe Germuska
Note that if you are running in a clustered environment (or want to 
be ready to move to one without rewriting your application) this is 
not a good solution.  The ServletContext is specifically not to be 
shared amongst clustered interests according to the specifications. 
This is particularly a problem if the data will ever be modified in 
the application; if you really are reading it from the database but 
only changing the database between application restarts, you could 
probably get away with it.


Hibernate offers a flexible second-level cache which can provide the 
kind of insulation against repeated trips to the database.  (see 
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#performance-cache) 



If you really aren't using the database to update your menu, i'd 
suggest just making it a Spring bean and populating it in XML; if you 
implement the ServletContextAware and InitializingBean interfaces, 
you can even have your bean put itself into the ServletContext at 
initialization time.


Joe

At 12:12 AM -0500 9/30/05, Nick Heudecker wrote:

You have a few options. To initialize Spring, you can either use the Struts
plugin or the web app context listener. Once that's done you can either use
a startup servlet or a Struts plugin to load the data and put it into the
servlet context. That way it only needs to be loaded once and is shared
throughout the application.

It's pretty simple, but not very obvious.


On 9/30/05, Martin Ravell <[EMAIL PROTECTED]> wrote:


 I have Menu information for my app in the database which I would like to
 be
 able to load somehow when my app server starts up (or app is deployed).
 This
 would be much more efficient than the current method of having each user
 load it when they enter the application.

 Can anyone suggest how to best go about doing this? The architecture is
 Struts, Hibernate and Spring.


 Thanks
 Marty




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





--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex


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



Re: Form Bean Question

2005-09-30 Thread Tamas Szabo
>
> However, before you do that, have a look at this page:
>
> http://struts.apache.org/faqs/indexedprops.html


In my oppinion this page contains an error.

In the List-Backed Indexed Properties the method

public java.util.List getStringIndexed(int index) {
return java.util.Arrays.asList(strAry);
}


shouldn't have a parameter.
I already reported this (wrote a mail about it on this list(don't know if
this is a way to report an error in the docs)), but
nobody corrected the error :-(


Tamas


Re: [shale] I miss ActionForward.. am I missing something?

2005-09-30 Thread David Bowers
Just to try to understand this better... what if the pre-processor did
something like this?

FacesContext fcontext = swcontext.getFacesContext();
UIViewRoot newRoot = fcontext.getApplication().getViewHandler()
.createView(fContext,"login.faces");
fcontext.setViewRoot(newRoot);
return true;

Would I gain anything by doing it this way? The code is a bit longer. Or
would I actually lose a little bit of flexibility because I would have to
forward to a faces controlled view. One advantage is that I am not tied into
the servlet APIs. If I had control over what class was actually
instantiated, I could extend the ShaleWebContext and provide this
functionality in a single method: swContext.setViewRootString("login.faces
").

My preference would be something like this: which looks a bit more like
Struts classic. I would overload the constructor for MyCustomForwardBean (my
own ActionForward "replacement") with an optional boolean property for
redirects.

swcontext.setForward(new MyCustomForwardBean("login.faces"));
return true;

Then this command would be invoked as part of a chain nested under my main
pre-processing Command. When the nested chain completes, my "master"
pre-processing command would pull the forward attribute out of the context
and send it off appropriately. I really liked the abstraction from Servlet
interfaces that an ActionForward bean allowed.

On 9/29/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
>
>
> It should not be necessary to manipulate the request object manually. The
> "preprocess" chain is executed by ShaleApplicationFilter (as the name
> implies) *before* FacesServlet is invoked ... and, from within a command,
> you can do either a redirect or a forward in the usual way. The important
> detail would be to make sure that your preprocessing command then returns
> "true" instead of "false" ... this tells ShaleApplicationFilter that you
> have already created the response, so it skips the usual chain.doFilter()
> call that passes the request along to the original servlet.
>
> To do a redirect:
>
> HttpServletResponse hresponse = (HttpServletResponse)
> swcontext.getResponse();
> hresponse.sendRedirect("foo.jsp");
> return true;
>
> To do a forward:
>
> ServletContext scontext = (ServletContext) swcontext.getContext();
> RequestDispatcher rd = scontext.getRequestDispatcher("/foo.jsp");
> rd.forward((ServletRequest) context.getRequest(),
> (ServletResponse) context.getResponse());
> return true;
>
> It seems like a simple Forward bean could be included in the Shale
> > framework, an attribute could be added to the ShaleWebContext for it,
> > and
> > the ShaleApplicationFilter could pay attention to it, at least for the
> > preprocess part.
> >
> > Also, in my current struts implementation, I assign custom security
> > attributes to each Action, and this is one of the things my custom
> > preprocessor looks at. If I were to move to Shale, it looks like the
> > best
> > place to put these custom security attributes would on my backing beans,
> > unless I wanted a whole new configuration file for these attributes,
> > which I
> > don't. Does that sound right?
>
>
> That would make sense. Then you can use  settings in
> your faces-bean.xml file to set the appropriate security values, without
> having to hard code them.
>
> Thanks in advance.
> >
> > David Bowers
> >
> >
> Craig
>
>


Structs

2005-09-30 Thread Pentareddy, Marreddy \(US - Hyderabad\)
I am new to struts ..


Please give idea abt setting paths and war files to copy.

Marreddy.p

-Original Message-
From: Tamas Szabo [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 30, 2005 5:36 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Serializable

Hi,


But (this is OT): how do you stop Tomcat from doing so? I looked in the
> Tomcat 5.0.x doc and just found nothing really helpful.



http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/manager.html

If you want to stop Tomcat doing this for a webapp only
put a META-INF/context.xml in your WAR with the following content:







If you want to stop Tomcat doing this for all webapps you can do the
same in
${CATALINA_HOME}/conf/context.xml
In this file you even have a comment:


- 

Tamas 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]

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



Re: Serializable

2005-09-30 Thread Tamas Szabo
Hi,


But (this is OT): how do you stop Tomcat from doing so? I looked in the
> Tomcat 5.0.x doc and just found nothing really helpful.



http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/manager.html

If you want to stop Tomcat doing this for a webapp only
put a META-INF/context.xml in your WAR with the following content:







If you want to stop Tomcat doing this for all webapps you can do the same in
${CATALINA_HOME}/conf/context.xml
In this file you even have a comment:


- 

Tamas


Re:R: Display checkbox

2005-09-30 Thread starki78
This is the message in the internet,
was is helpful to you?


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

Probable Causes Trying to use Struts form subelement tags outside of the 
Struts' form tag. Note that this might be because you are using the Struts html 
tags after the closing  tag.

Note that if you accidentaly make your opening html:form tag a no-body tag (you 
put a closing / at the end so that it looks something like ), 
this may be treated by your web server's parser as a no-body tag and everything 
after that tag you meant to be an opening tag will be outside of the form tag 
by default.

Note your prefix may be different than html, but most people seem to use that 
as their prefix for the Struts HTML tags library.






-- Initial Header ---

>From  : "Bianchi Fabio" [EMAIL PROTECTED]
To  : "Struts Users Mailing List" user@struts.apache.org
Cc  : 
Date  : Fri, 30 Sep 2005 11:04:05 +0200
Subject : R: Display checkbox







> purtroppo il proxy aziendale non mi permette di uscire :(
>
> -Messaggio originale-
> Da: gollinger [mailto:[EMAIL PROTECTED]
> Inviato: venerdì 30 settembre 2005 11.04
> A: user
> Oggetto: Re:Display checkbox
>
>
> Ciao Fabio,
>
> Dai un'occiata!
>
> http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html
>
>
> Regards Antonio
>
>
>
>
>
> -- Initial Header ---
>
> From  : "Bianchi Fabio" [EMAIL PROTECTED]
> To  : "Struts Users Mailing List" user@struts.apache.org
> Cc  :
> Date  : Fri, 30 Sep 2005 10:22:57 +0200
> Subject : Display checkbox
>
>
>
>
>
>
>
> > Hi all,
> > 
> > I've this JSP code:
>
> >
> >  > requestURI="wul_search.do?method=search" pagesize="10" export="true" 
> > defaultsort="8" defaultorder="ascending">
> > 
> > select
> > 
> >  > href="wul_search.do?method=load" paramId="id" sortable="true" 
> > headerClass="sortable" media="html excel"/>
> > ...
> > ...
> > ...
> > ...
> > ...
> > ...
> > ...
> > ...
> > ...
> > ...
> > ...
> > 
> >
> > this is my Error:
> >
> > [30/09/05 10.18.37:714 CEST] 28b13200 WebGroup  E SRVE0026E: [Errore 
> > servlet]-[Cannot find bean org.apache.struts.taglib.html.BEAN in any 
> > scope]: javax.servlet.jsp.JspException: Cannot find bean 
> > org.apache.struts.taglib.html.BEAN in any scope
> > at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:992)
> > at 
> > org.apache.struts.taglib.html.CheckboxTag.isChecked(CheckboxTag.java:180)
> > at 
> > org.apache.struts.taglib.html.CheckboxTag.doStartTag(CheckboxTag.java:156)
> > at 
> > org.apache.jsp._webUsersLogResponse._jspService(_webUsersLogResponse.java:337)
> > at 
> > com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at 
> > com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
> > at 
> > com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
> > at 
> > com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at 
> > com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
> > at 
> > com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
> > at 
> > com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
> > at 
> > com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
> > at 
> > com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
> > at 
> > com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
> > at 
> > com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
> > at 
> > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
> > at 
> > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
> > at 
> > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
> > at 
> > org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
> > at 
> > org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
> > at 
> > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
> > at 
> > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> > at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> > at

Tiles problem - how to put attr in right context

2005-09-30 Thread Java News
Hello,
I have problem with putting attributes in right context - my tiles
definitions look like:









What I would like to achieve is:
1) I would like that .header attribute "title" was passed from
.add_product.form, so i can have only one header definition and many
rendering pages like .add_product.form, .add_product.confirm,
.add_product.thank_you and also i dont want (or other words i can't) extend
header definition
2) I tried to put header in .add_product.form as:





and use it in jsp page as:



but when I used in header.jsp:



I got an error about lack of attr title in context:

11:38:22,134 ERROR [[action]] Servlet.service() for servlet action threw
exception
javax.servlet.jsp.JspException: ServletException in
'/WEB-INF/pages/tiles/header.jsp': Error - tag.getAsString : attribute
'title' not found in context. Check tag syntax
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(
InsertTag.java:921)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
at
org.apache.jsp.WEB_002dINF.pages.add_005fproduct_jsp._jspx_meth_tiles_get_0(
org.apache.jsp.WEB_002dINF.pages.add_005fproduct_jsp:136)
at org.apache.jsp.WEB_002dINF.pages.add_005fproduct_jsp._jspService(
org.apache.jsp.WEB_002dINF.pages.add_005fproduct_jsp:77)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

What should I do to put this attribute in right context - could you help me?

Best Regards,
Lee


Problem XHTML Struts 1.1 & &

2005-09-30 Thread Thomas Brogaard
Hi

We are changing our site to XHTML but we have a problem whith .

When we are validating our site it is not valid because html:link use & 
instead of &

Example
?distance=100&kmmax=0&type=0&yearmin=1985

In our jsp page we have placed  in the top of all out jsp 
pages.

Validator: http://validator.w3.org/

Kind regards

Thomas 




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



Re: [OT] where to put the displaytag.properties file for i18n?

2005-09-30 Thread 梁炳場
In my case, it does not work after putting displaytag.properties
under WEB-INF/classes.

My displaytag.properties has only 1 line.
ie. userRole.system.title=System

what else to do next?
Thnx

在 2005/9/[EMAIL PROTECTED] <[EMAIL PROTECTED]> 撰寫:
> Hi leung,
>
> you can put displaytag.properties file under WEB-INF/classes folder and
> classloader will autmatically load it.
> There is no need to define that properties file in struts-config.xml
> because anyway you are not going to put this property file under any
> package structure.
>
> Keep this property file under WEB-INF/classes, it will definitely work.
>
>
> Sunil
>
>
>
>
>
> 梁炳場 <[EMAIL PROTECTED]>
> 09/30/2005 01:20 AM
> Please respond to
> "Struts Users Mailing List" 
>
>
> To
> Struts Users Mailing List 
> cc
>
> Subject
> [OT] where to put the displaytag.properties file for i18n?
>
>
>
>
>
>
> 
> the titleKey gives null.
>
> A single line is input into displaytag.properties
> userRole.system.title=System
>
> I have put displaytag.properties /WEB-INF/
> and /WEB-INF/user
>
> The column title is still blank.
>
> Where is the correct path to put displaytag.properties?
>
> Where can I define the path of displaytag.properties
> just like ApplicationProperties.properties defined in
> struts-config.xml?
>
> Thanks
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>


nested logic:notEmpty tags

2005-09-30 Thread Thierry Ployaert
Hello,

I have the following code :









because





raises Null Pointer exception in case of prd null or prd.fap null

Can I replace the 3 boring  by a single one that will check
automatically the "emptiness" of each subproperty of the property field ?

Thanks for any help


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



R: Display checkbox

2005-09-30 Thread Bianchi Fabio
purtroppo il proxy aziendale non mi permette di uscire :(

-Messaggio originale-
Da: gollinger [mailto:[EMAIL PROTECTED]
Inviato: venerdì 30 settembre 2005 11.04
A: user
Oggetto: Re:Display checkbox


Ciao Fabio,

Dai un'occiata!

http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html


Regards Antonio





-- Initial Header ---

>From  : "Bianchi Fabio" [EMAIL PROTECTED]
To  : "Struts Users Mailing List" user@struts.apache.org
Cc  : 
Date  : Fri, 30 Sep 2005 10:22:57 +0200
Subject : Display checkbox







> Hi all,
> 
> I've this JSP code:

> 
>  requestURI="wul_search.do?method=search" pagesize="10" export="true" 
> defaultsort="8" defaultorder="ascending">
>   
>   select
>   
>href="wul_search.do?method=load" paramId="id" sortable="true" 
> headerClass="sortable" media="html excel"/>
>   ...
>   ...
>   ...
>   ...
>   ...
>   ...
>   ...
>   ...
>   ...
>   ...
>   ...
> 
> 
> this is my Error:
> 
> [30/09/05 10.18.37:714 CEST] 28b13200 WebGroup  E SRVE0026E: [Errore 
> servlet]-[Cannot find bean org.apache.struts.taglib.html.BEAN in any scope]: 
> javax.servlet.jsp.JspException: Cannot find bean 
> org.apache.struts.taglib.html.BEAN in any scope
>   at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:992)
>   at 
> org.apache.struts.taglib.html.CheckboxTag.isChecked(CheckboxTag.java:180)
>   at 
> org.apache.struts.taglib.html.CheckboxTag.doStartTag(CheckboxTag.java:156)
>   at 
> org.apache.jsp._webUsersLogResponse._jspService(_webUsersLogResponse.java:337)
>   at 
> com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
>   at 
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
>   at 
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
>   at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
>   at 
> com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
>   at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
>   at 
> com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
>   at 
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
>   at 
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
>   at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
>   at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
>   at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
>   at 
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
>   at 
> org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
>   at 
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
>   at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
>   at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
>   at 
> com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
>   at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
>   at 
> com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
>   at 
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
>   at 
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
>   at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
>   at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
>   at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)

Re:Display checkbox

2005-09-30 Thread gollinger
Ciao Fabio,

Dai un'occiata!

http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html


Regards Antonio





-- Initial Header ---

>From  : "Bianchi Fabio" [EMAIL PROTECTED]
To  : "Struts Users Mailing List" user@struts.apache.org
Cc  :
Date  : Fri, 30 Sep 2005 10:22:57 +0200
Subject : Display checkbox







> Hi all,
>
> I've this JSP code:
>
>  requestURI="wul_search.do?method=search" pagesize="10" export="true" 
> defaultsort="8" defaultorder="ascending">
>   
>   select
>   
>href="wul_search.do?method=load" paramId="id" sortable="true" 
> headerClass="sortable" media="html excel"/>
>   ...
>   ...
>   ...
>   ...
>   ...
>   ...
>   ...
>   ...
>   ...
>   ...
>   ...
> 
>
> this is my Error:
>
> [30/09/05 10.18.37:714 CEST] 28b13200 WebGroup  E SRVE0026E: [Errore 
> servlet]-[Cannot find bean org.apache.struts.taglib.html.BEAN in any scope]: 
> javax.servlet.jsp.JspException: Cannot find bean 
> org.apache.struts.taglib.html.BEAN in any scope
>   at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:992)
>   at 
> org.apache.struts.taglib.html.CheckboxTag.isChecked(CheckboxTag.java:180)
>   at 
> org.apache.struts.taglib.html.CheckboxTag.doStartTag(CheckboxTag.java:156)
>   at 
> org.apache.jsp._webUsersLogResponse._jspService(_webUsersLogResponse.java:337)
>   at 
> com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
>   at 
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
>   at 
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
>   at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
>   at 
> com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
>   at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
>   at 
> com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
>   at 
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
>   at 
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
>   at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
>   at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
>   at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
>   at 
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
>   at 
> org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
>   at 
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
>   at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
>   at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
>   at 
> com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
>   at 
> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
>   at 
> com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
>   at 
> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
>   at 
> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
>   at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
>   at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
>   at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
>   at 
> com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
>   at 
> com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
>   at 
> com.ibm.ws

RE: Display checkbox

2005-09-30 Thread R.Vijayaraghavan
> Hi all,
> 
> I've this JSP code:
> 
>  requestURI="wul_search.do?method=search" pagesize="10" 
> export="true" defaultsort="8" defaultorder="ascending">
>   
>   select
>   
>href="wul_search.do?method=load" paramId="id" sortable="true" 
> headerClass="sortable" media="html excel"/>

Do you have a corrosponding property for id in the ActionForm.

regards,
vijay.


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



How to implement the onchange event in a html-select?

2005-09-30 Thread gollinger
Hi!

I've two html:selects within a form.
The selected value of the first determines
the possible values in the second select box.
Now the onchange-Event fires a client-side Javascript Event.
Is it better to change this and put the functionaly
in a Java-Class. Would this be possible?




Is this a good practise?

Thanks for any opinions!








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



Re: [OT] where to put the displaytag.properties file for i18n?

2005-09-30 Thread Sunil_Sahu
Hi leung,

you can put displaytag.properties file under WEB-INF/classes folder and 
classloader will autmatically load it. 
There is no need to define that properties file in struts-config.xml 
because anyway you are not going to put this property file under any 
package structure.

Keep this property file under WEB-INF/classes, it will definitely work.


Sunil





梁炳場 <[EMAIL PROTECTED]> 
09/30/2005 01:20 AM
Please respond to
"Struts Users Mailing List" 


To
Struts Users Mailing List 
cc

Subject
[OT] where to put the displaytag.properties file for i18n?







the titleKey gives null.

A single line is input into displaytag.properties
userRole.system.title=System

I have put displaytag.properties /WEB-INF/
and /WEB-INF/user

The column title is still blank.

Where is the correct path to put displaytag.properties?

Where can I define the path of displaytag.properties
just like ApplicationProperties.properties defined in
struts-config.xml?

Thanks

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





Display checkbox

2005-09-30 Thread Bianchi Fabio
Hi all,

I've this JSP code:



select


...
...
...
...
...
...
...
...
...
...
...


this is my Error:

[30/09/05 10.18.37:714 CEST] 28b13200 WebGroup  E SRVE0026E: [Errore 
servlet]-[Cannot find bean org.apache.struts.taglib.html.BEAN in any scope]: 
javax.servlet.jsp.JspException: Cannot find bean 
org.apache.struts.taglib.html.BEAN in any scope
at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:992)
at 
org.apache.struts.taglib.html.CheckboxTag.isChecked(CheckboxTag.java:180)
at 
org.apache.struts.taglib.html.CheckboxTag.doStartTag(CheckboxTag.java:156)
at 
org.apache.jsp._webUsersLogResponse._jspService(_webUsersLogResponse.java:337)
at 
com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
at 
com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
at 
com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at 
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at 
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at 
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at 
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
at 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at 
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at 
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at 
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at 
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at 
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at 
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:4

[OT] where to put the displaytag.properties file for i18n?

2005-09-30 Thread 梁炳場

the titleKey gives null.

A single line is input into displaytag.properties
userRole.system.title=System

I have put displaytag.properties /WEB-INF/
and /WEB-INF/user

The column title is still blank.

Where is the correct path to put displaytag.properties?

Where can I define the path of displaytag.properties
just like ApplicationProperties.properties defined in
struts-config.xml?

Thanks

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



AW: Serializable

2005-09-30 Thread Martin Kindler
Good point!

But (this is OT): how do you stop Tomcat from doing so? I looked in the
Tomcat 5.0.x doc and just found nothing really helpful.

Martin

> -Ursprüngliche Nachricht-
> Von: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 30. September 2005 10:03
> An: Struts Users Mailing List
> Betreff: Re: Serializable
> 
> 
> I wouldn't do it, unless you use distributed sessions. Having 
> serializable forms will cause tomcat to dump everything from 
> the session to a file, and reload it after restart. Unless 
> you explicitely want this (user-invisible restart, but then 
> you need to make EVERYTHING serializable) it makes restarts 
> unneccesary long and sessions quite unpredictable, especially 
> in the development.
> 
> regards
> leon
> 
> 
> 
> On 9/30/05, starki78 <[EMAIL PROTECTED]> wrote:
> > I don't know if you have to use implements at all
> > because
> > the super-class does already implement it.
> > What would you like to achieve?
> >
> > Regards Starki
> >
> >
> >
> >
> > -- Initial Header ---
> >
> > From  : "Murray Collingwood" [EMAIL PROTECTED]
> > To  : user@struts.apache.org
> > Cc  :
> > Date  : Fri, 30 Sep 2005 17:27:19 +1000
> > Subject : Serializable
> >
> >
> >
> >
> >
> >
> >
> > > Just a quick question.
> > >
> > > Does anybody follow any rule (personal or corporate) for 
> when to use 
> > > "implements serializable" on a Struts form-bean?
> > >
> > > Kind regards
> > > mc
> > >
> > >
> > > FOCUS Computing
> > > Mob: 0415 24 26 24
> > > [EMAIL PROTECTED] http://www.focus-computing.com.au
> > >
> > >
> > >
> > > --
> > > No virus found in this outgoing message.
> > > Checked by AVG Anti-Virus.
> > > Version: 7.0.344 / Virus Database: 267.11.9/115 - Release 
> Date: 29/09/2005
> > >
> > >
> > > 
> -
> > > 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: Serializable

2005-09-30 Thread Leon Rosenberg
I wouldn't do it, unless you use distributed sessions. Having
serializable forms will cause tomcat to dump everything from the
session to a file, and reload it after restart. Unless you explicitely
want this (user-invisible restart, but then you need to make
EVERYTHING serializable) it makes restarts unneccesary long and
sessions quite unpredictable, especially in the development.

regards
leon



On 9/30/05, starki78 <[EMAIL PROTECTED]> wrote:
> I don't know if you have to use implements at all
> because
> the super-class does already implement it.
> What would you like to achieve?
>
> Regards Starki
>
>
>
>
> -- Initial Header ---
>
> From  : "Murray Collingwood" [EMAIL PROTECTED]
> To  : user@struts.apache.org
> Cc  :
> Date  : Fri, 30 Sep 2005 17:27:19 +1000
> Subject : Serializable
>
>
>
>
>
>
>
> > Just a quick question.
> >
> > Does anybody follow any rule (personal or corporate) for when to use 
> > "implements
> > serializable" on a Struts form-bean?
> >
> > Kind regards
> > mc
> >
> >
> > FOCUS Computing
> > Mob: 0415 24 26 24
> > [EMAIL PROTECTED]
> > http://www.focus-computing.com.au
> >
> >
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Anti-Virus.
> > Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005
> >
> >
> > -
> > 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:Serializable

2005-09-30 Thread Murray Collingwood
That's a very good point. I feel like I've asked a stupid question now - 
duh!

Thanks Starki

On 30 Sep 2005 at 9:52, starki78 wrote:

> I don't know if you have to use implements at all 
> because
> the super-class does already implement it.
> What would you like to achieve?
> 
> Regards Starki
> 
> 
> 
> 
> -- Initial Header ---
> 
> From  : "Murray Collingwood" [EMAIL PROTECTED]
> To  : user@struts.apache.org
> Cc  : 
> Date  : Fri, 30 Sep 2005 17:27:19 +1000
> Subject : Serializable
> 
> 
> 
> 
> 
> 
> 
> > Just a quick question.
> > 
> > Does anybody follow any rule (personal or corporate) for when to use 
> > "implements 
> > serializable" on a Struts form-bean?  
> > 
> > Kind regards
> > mc
> > 
> > 
> > FOCUS Computing
> > Mob: 0415 24 26 24
> > [EMAIL PROTECTED]
> > http://www.focus-computing.com.au
> > 
> > 
> > 
> > -- 
> > No virus found in this outgoing message.
> > Checked by AVG Anti-Virus.
> > Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005
> > 
> > 
> > -
> > 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]
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005
> 



FOCUS Computing
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005


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



Re:Serializable

2005-09-30 Thread starki78
I don't know if you have to use implements at all
because
the super-class does already implement it.
What would you like to achieve?

Regards Starki




-- Initial Header ---

>From  : "Murray Collingwood" [EMAIL PROTECTED]
To  : user@struts.apache.org
Cc  :
Date  : Fri, 30 Sep 2005 17:27:19 +1000
Subject : Serializable







> Just a quick question.
>
> Does anybody follow any rule (personal or corporate) for when to use 
> "implements
> serializable" on a Struts form-bean?
>
> Kind regards
> mc
>
>
> FOCUS Computing
> Mob: 0415 24 26 24
> [EMAIL PROTECTED]
> http://www.focus-computing.com.au
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005
>
>
> -
> 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]



Serializable

2005-09-30 Thread Murray Collingwood
Just a quick question.

Does anybody follow any rule (personal or corporate) for when to use 
"implements 
serializable" on a Struts form-bean?  

Kind regards
mc


FOCUS Computing
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.9/115 - Release Date: 29/09/2005


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