RE: Page does not refresh after action

2006-06-09 Thread manoj.tripathi
What browsers are you working on... Try it on firefox as well Also where are u persisting the order (session db ..where)that you change in the action that is not reflected in the forwarded page Cheers -Original Message- From: Rizwan Merchant [mailto:[EMAIL PROTECTED]

Re: tiles and forwards

2006-06-09 Thread Rudolf Lang
Antonio Petrelli ha scritto: Can you post the code of your action? At least the part when you return the forward in the "execute" method? I have a suspect. Now I use my own LocaleAction (extends Action !) with the following returns : if (page != null && page.length() > 0) return new Act

Re: best way to send parameters through more requests

2006-06-09 Thread Madhav Bhargava
there is another option. you can use apache JCS cache or open symphony's OScache for caching all objects that are required during user interaction. On 6/9/06, Emilia Ipate <[EMAIL PROTECTED]> wrote: Hello, all! Is there a solution besides using session, to send some request parameters from o

Re: [OT] Re: Encryption / decryption problem in multi threading

2006-06-09 Thread Scott Van Wart
Shshank Jain wrote: the problem was muti threading (the sychronized block) plus the database had the password field as varchar i encoded the data and make the character encoding base 64 ( http://forum.java.sun.com/thread.jspa?threadID=555631&messageID=2729521) and it works now So was it solely

Re: Thank you to the list.

2006-06-09 Thread Scott Van Wart
Hi Albert, Nicely done; I'm sure the developers appreciate it. I'm in the same situation as you. What I like the most about this list is everyone has a positive attitude towards answering questions. I'm sure it's tough to be a part of the brains behind a project, to know the code intimately

Page does not refresh after action

2006-06-09 Thread Rizwan Merchant
Hi, I have a page with a bunch of orders, and each order has a "Cancel" button next to it and the status text of that order. When I cancel a particular order, the appropriate action is called, the order is canceled and the action then returns to the same page. I can see the page being reloade

RE: Digester Error while reading struts config file

2006-06-09 Thread RickD
Thanks Adam. -- View this message in context: http://www.nabble.com/Digester-Error-while-reading-struts-config-file-t1755486.html#a4802823 Sent from the Struts - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTEC

Re: Variable 'input' attribute in struts-config.xml

2006-06-09 Thread Scott Van Wart
Michael Jouravlev wrote: After you filled in the form, you call EntityAction with "store" command. It validates the input and then tries to update/store data. If input is not valid, the action checks the state field and forward to a JSP that corresponds to that state. The page will be displayed a

Thank you to the list.

2006-06-09 Thread Albert L. Sapp
Guys, I want to thank everyone on the list for all the new ideas and technologies that have floated up as answers to many of the questions posed here. I have learned that I need to get a good book on Struts, because I am sure we are missing a lot of stuff that would make our current project

Re: Variable 'input' attribute in struts-config.xml

2006-06-09 Thread Michael Jouravlev
What I would do is having an AvailableItems web resource with two states: "no items" (default) and "items found". For "no items" it would render a search page, for "items found" it would render items list. Michael. On 6/9/06, Albert L. Sapp <[EMAIL PROTECTED]> wrote: Scott, I think your approa

Re: Variable 'input' attribute in struts-config.xml

2006-06-09 Thread Michael Jouravlev
Hi Scott, this is how I would implemented it. What we have is a standard CRUD stuff for Entity object. There are two ways to navigate to Entity. Either you simply navigate to it and it renders itself according to its state, or you navigate to it with a certain command, like "view" or "update" or

Re: best way to send parameters through more requests

2006-06-09 Thread Albert L. Sapp
Michael Jouravlev wrote: On 6/9/06, Samere, Adam J <[EMAIL PROTECTED]> wrote: Emilia Ipate wrote: > Is there a solution besides using session, to send some request > parameters from one request to another? > I would like to implement something like a shopping cart (a > functionality which need

Re: hotkeys

2006-06-09 Thread Miguel Galves
well...I dont know if ther is a problem with F1..but I think the best way to do it is to use javascript to bind so keyactions to your page. On 6/9/06, Dave Newton <[EMAIL PROTECTED]> wrote: Miguel Galves wrote: > What exactly do you want to do ? > > On 6/8/06, Marcus <[EMAIL PROTECTED]> wrote:

Re: best way to send parameters through more requests

2006-06-09 Thread Michael Jouravlev
On 6/9/06, Samere, Adam J <[EMAIL PROTECTED]> wrote: Emilia Ipate wrote: > Is there a solution besides using session, to send some request > parameters from one request to another? > I would like to implement something like a shopping cart (a > functionality which needs about4-5 steps) and I do n

Re: best way to send parameters through more requests

2006-06-09 Thread Albert L. Sapp
Emilia Ipate wrote: Al, your solution is good, except for one thing: what do you do if the user leaves the application at step2? You will have in DB all the items the user checked, but they are no longer necessary Emilia -Original Message- From: Albert L. Sapp [mailto:[EMAIL PROTE

RE: [SOLVED] struts-config xml file throws a java exception

2006-06-09 Thread Olivier Bex
Yes it did... Regards, Olivier -Message d'origine- De : Dave Newton [mailto:[EMAIL PROTECTED] Envoyé : vendredi 9 juin 2006 13:31 À : Struts Users Mailing List Objet : Re: [SOLVED] struts-config xml file throws a java exception Olivier Bex wrote: > The problem is solved. The struts-conf

check invalid date with validator framework

2006-06-09 Thread Shoukat, Faisal
Hi Is there a way to check if the date is a valid date in the validator framework. If I enter a invalid date such as 67/06/2006 it returns me the error message Created Date is not a valid date format (dd/mm/). Which is the error.date in my message resources. However I want to not check the

Re: [OT] Re: Encryption / decryption problem in multi threading

2006-06-09 Thread Shshank Jain
he dave !! problem solved !! the problem was muti threading (the sychronized block) plus the database had the password field as varchar i encoded the data and make the character encoding base 64 ( http://forum.java.sun.com/thread.jspa?threadID=555631&messageID=2729521) and it works now Thanks fo

Re: best way to send parameters through more requests

2006-06-09 Thread Dave Newton
Emilia Ipate wrote: > Al, your solution is good, except for one thing: what do you do if the > user leaves the application at step2? You will have in DB all the items > the user checked, but they are no longer necessary > 1) Not if they come back, in which case they'll be delighted you care

RE: best way to send parameters through more requests

2006-06-09 Thread Emilia Ipate
Al, your solution is good, except for one thing: what do you do if the user leaves the application at step2? You will have in DB all the items the user checked, but they are no longer necessary Emilia -Original Message- From: Albert L. Sapp [mailto:[EMAIL PROTECTED] Sent: vrijdag 9

Re: Re: Extending Struts with Spring

2006-06-09 Thread Dakota Jack
I cannot tell if this is a question or a statement. Do you want to know how to use AOP or are you saying you don't think that would be a good idea? On 6/9/06, starki78 <[EMAIL PROTECTED]> wrote: Ciao! Do you have experience with AOP and specially using a Interceptor for metrics? I really can

Re: best way to send parameters through more requests

2006-06-09 Thread Albert L. Sapp
Emilia Ipate wrote: Hello, all! Is there a solution besides using session, to send some request parameters from one request to another? I would like to implement something like a shopping cart (a functionality which needs about4-5 steps) and I do not want to store the objects in the session

Re: best way to send parameters through more requests

2006-06-09 Thread Dave Newton
Emilia Ipate wrote: > So I cannot just hold these objects in session forever, Fortunately sessions don't generally _last_ forever. > that's why I think a session mantaining functionality is > required: > 1. have a configuration file that specifies exactly what objects > can be hold in sess

Re: Uncompress

2006-06-09 Thread Monkeyden
I haven't done it but a Google search returns an example as the for the result. http://www.devx.com/getHelpOn/10MinuteSolution/20447 On 6/9/06, Shabada, Gnaneshwer <[EMAIL PROTECTED]> wrote: Hello all, I have a question which is unrelated to Struts but wanted to try it out here considering th

Re: tiles and forwards

2006-06-09 Thread rula2005
What expect you with the returned ActionForward? Is the pageAttribute correct set in the jsp like: the forward works well with the tilesDefinition, but if not, the forward in struts-config do not work well with the tileDefinition. - Original Message - From: "Antonio Petrel

RE: best way to send parameters through more requests

2006-06-09 Thread Emilia Ipate
>The thought here(base64 encode) was to store the data on the client. This would also be a large effort requiring all POST requests, making sure you always send the data in both > directions, extra network etc. Got that, thanks for the explaination. >Bottom line, storing state for a particular c

Re: [OT] Re: Encryption / decryption problem in multi threading

2006-06-09 Thread Shshank Jain
i will run some test cases here and get back... i ran it sequentially it worked fine On 6/9/06, Dave Newton <[EMAIL PROTECTED]> wrote: Shshank Jain wrote: > making the decryt/encrypt synchronized didnt help Ok. Dave PS If the only difference is single- vs. multi-threaded then I'll almost

Re: [OT] Re: Encryption / decryption problem in multi threading

2006-06-09 Thread Dave Newton
Shshank Jain wrote: > making the decryt/encrypt synchronized didnt help Ok. Dave PS If the only difference is single- vs. multi-threaded then I'll almost guarantee you you're walking on something, somewhere, even if it's in your test code. -

[OT] Re: Uncompress

2006-06-09 Thread Dave Newton
Shabada, Gnaneshwer wrote: > Hello all, > I have a question which is unrelated to Struts but wanted to try it out here > considering this as a huge java based group. I am trying to uncompress a .Z > file using java on windows. Have anyone of you tried this out, if so please > share the solution..

RE: best way to send parameters through more requests

2006-06-09 Thread manoj.tripathi
Do not get into encoding and decodingas you might be aware that you can specify the charset at many places like web.xml, in javascript tag and also when you encode/decode in java. This means that decoding result can be different from what you expect if a different charset is used...It might

Re: [OT] Re: Encryption / decryption problem in multi threading

2006-06-09 Thread Shshank Jain
making the decryt/encrypt synchronized didnt help -Shanky On 6/9/06, Dave Newton <[EMAIL PROTECTED]> wrote: Shshank Jain wrote: > Thanks in advance. Still OT, but anyway. Can't read your code. I'd still check to see if you're using a single-instance of an unsynchronized variable so it's gett

Re: tiles and forwards

2006-06-09 Thread rula2005
Correct, i used the internal strutsAction: org.apache.struts.actions.LocaleAction and the source could something like this, which i found in the validator struts-example: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest req

Uncompress

2006-06-09 Thread Shabada, Gnaneshwer
Hello all, I have a question which is unrelated to Struts but wanted to try it out here considering this as a huge java based group. I am trying to uncompress a .Z file using java on windows. Have anyone of you tried this out, if so please share the solution.. I checked Java API with no luck. TI

Re: [OT] Re: Encryption / decryption problem in multi threading

2006-06-09 Thread Dave Newton
Shshank Jain wrote: > Thanks in advance. Still OT, but anyway. Can't read your code. I'd still check to see if you're using a single-instance of an unsynchronized variable so it's getting corrupted when being hit by multiple threads. Dave --

Re: Variable 'input' attribute in struts-config.xml

2006-06-09 Thread Albert L. Sapp
Scott Van Wart wrote: Michael Jouravlev wrote: I suggest to look at your issue from another perspective. Do you really need the functionality you are asking for? First, a small clarification. There is no input page for an action, "input" attribute is poorly named, it should be called "error" o

RE: best way to send parameters through more requests

2006-06-09 Thread Samere, Adam J
The thought here(base64 encode) was to store the data on the client. This would also be a large effort requiring all POST requests, making sure you always send the data in both directions, extra network etc. Bottom line, storing state for a particular client is what the session is there for. Anyth

Re: best way to send parameters through more requests

2006-06-09 Thread Dave Newton
Emilia Ipate wrote: > Now the question comes: when does the object come useless? It is useless > when users gets to step 5 and also when from a middle step (like 3) > decides to get out of the this 5 step request-chain. In both cases, the > object should be removed from session. I would say to have

Re: [OT] Re: Encryption / decryption problem in multi threading

2006-06-09 Thread Shshank Jain
i have made a static instance of it in the services and do it at that level..here is the code - code static { try { // theBigSecret : contains the 128 bit encrption key // ENCRYPTION_ALGORITHM : "AES" SecretK

RE: best way to send parameters through more requests

2006-06-09 Thread Emilia Ipate
I was more thinking of something like: - store the complex object in the session and remove it when it becomes useless! Now the question comes: when does the object come useless? It is useless when users gets to step 5 and also when from a middle step (like 3) decides to get out of the this 5 step

RE: best way to send parameters through more requests

2006-06-09 Thread manoj.tripathi
Frequent deleting from session is not very good In a cluster that would mean updating the states of session on so many servers on the clusteryou can appreciate that this is an overhead and a great performance hit Request, hidden fields and java script for validation is the work around Also if

RE: best way to send parameters through more requests

2006-06-09 Thread manoj.tripathi
Not sure that you are asking the user to submit the form 5 times (like a wizard corresponding to a user journey) You are hitting the server possibly the back end so many times may be worse if that is a transaction as well The first think is reduce if possible the steps from 5 to possibly 3 Al

Re: best way to send parameters through more requests

2006-06-09 Thread Thomas Joseph
One way can be to use the values in session and somehow explicitly delete these attributes after they have been used. Event listeners can I think help here. Just pump an event when you are done with. This should delete the session attributes. Any good patterns in this regard?? References? > Usi

Re: [OT] Re: XML Help

2006-06-09 Thread Meenakshi Rm
I have had such scenarios, sometimes in your xml if you have tabs or other escape characters it adds them on as text nodes while parsing. So you may have to modify your xml to be free of such characters. To find it out print out each node type, you will be able to resolve. Hope this helps. Rega

RE: best way to send parameters through more requests

2006-06-09 Thread Samere, Adam J
Typically the best solution is to keep this data in the session. That is what the session is for. As I mentioned, the other option would be to encode the data using base64 encoding (or something similar) and store it in a single hidden field. What makes you so sure you have "too much" data in the

RE: best way to send parameters through more requests

2006-06-09 Thread Emilia Ipate
Using hidden fields is good, but what if you have like 4-5 request steps? You will end up at step 5 to send to server a long list of hidden fileds (all the fields used in step 1,2,3 and 4)... And this sounds like a unmaintable code!!! Emilia -Original Message- From: Samere, Adam J [mailt

RE: best way to send parameters through more requests

2006-06-09 Thread Samere, Adam J
You also may be able to store state in hidden fields in the rendered markup, or by encoding the raw binary data in a single hidden field. This goes a bit beyond the scope of this list though. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 09, 2006

Re: tiles and forwards

2006-06-09 Thread Antonio Petrelli
Antonio Petrelli ha scritto: Can you post the code of your action? At least the part when you return the forward in the "execute" method? I have a suspect. Uh sorry, I didn't notice that you used an internal Struts action! Anyway let me think about it --

RE: best way to send parameters through more requests

2006-06-09 Thread manoj.tripathi
Also a word of caution I presume all the objects you store in session are seriallizable. If they are not then your solution wont work if the application is deployed on cluster Small piece of information can be transferred through hidden fields from form to form through struts actions Cheers

Re: tiles and forwards

2006-06-09 Thread Antonio Petrelli
rula2005 ha scritto: Hi, sorry, i misunderstood the meaning of "specified filename", i have already used the tiles-plugin with the tiles-def.xml in the struts-config.xml like this: Mmm... this is strange... Can you post the code of your action? At least the

Re: best way to send parameters through more requests

2006-06-09 Thread Dave Newton
Emilia Ipate wrote: > Is there a solution besides using session, to send some request > parameters from one request to another? > I would like to implement something like a shopping cart (a > functionality which needs about4-5 steps) and I do not want to store > the objects in the session (it is al

Re: [SOLVED] struts-config xml file throws a java exception

2006-06-09 Thread Dave Newton
Olivier Bex wrote: > The problem is solved. The struts-config file had no declaration of the data > source type to use. So it took by default > "org.apache.struts.action.dataSources" instead of : > "org.apache.struts.util.GenericDataSource" > ?! Fixing that removed the error regarding your el

Re: tiles and forwards

2006-06-09 Thread rula2005
Hi, sorry, i misunderstood the meaning of "specified filename", i have already used the tiles-plugin with the tiles-def.xml in the struts-config.xml like this: Tiles works well with the ForwardAction like: but not with the LocaleAction like:

[OT] Re: Encryption / decryption problem in multi threading

2006-06-09 Thread Dave Newton
Shshank Jain wrote: > any ideas ?? Not without any code. If you're doing it inside a Struts Action are you using an instance variable in the Action? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

[OT] Re: XML Help

2006-06-09 Thread Dave Newton
Krishnakanth wrote: > Note : I just took the getElementByTagName("table") that time I got the > length as 2 it is ok.but after that I iterate that NodeList in a for loop and > take NodeList.item(i).getChildNodes, Now I get some 8 or 10 childsSo I'm > totally confused > > Any Idea Please

Re: hotkeys

2006-06-09 Thread Dave Newton
Miguel Galves wrote: > What exactly do you want to do ? > > On 6/8/06, Marcus <[EMAIL PROTECTED]> wrote: >> Is there a way of adding hotkeys to a form field in struts? >> I would like to add the keys F1-F4 to my form fields 1-4. I think he wants to use F1-F4 as hotkeys into the form fields. I'm g

best way to send parameters through more requests

2006-06-09 Thread Emilia Ipate
Title: Message Hello, all!   Is there a solution besides using session, to send some request parameters from one request to another? I would like to implement something like a shopping cart (a functionality which needs about4-5 steps) and I do not want to store the objects in the session (i

Selecting and setting Bean Object from html:select

2006-06-09 Thread Andrew McDowall
Hi, I am trying to get an html:select with html:optionsCollection to set a property in my ActionForm with the actuall bean that was selected rather than the associated value: // Bean class public class Item { int id; String name; public int getId() { return id; } public void setI

[SOLVED] struts-config xml file throws a java exception

2006-06-09 Thread Olivier Bex
The problem is solved. The struts-config file had no declaration of the data source type to use. So it took by default "org.apache.struts.action.dataSources" instead of : "org.apache.struts.util.GenericDataSource" Thanks for your help... -Message d'origine- De : Samere, Adam J [mailto:[E

Re: Re: Extending Struts with Spring

2006-06-09 Thread starki78
Ciao! Do you have experience with AOP and specially using a Interceptor for metrics? I really cannot imagine how to implement a solution for an application! Do you mean like in a filter implement code for time-stopping or similar? Nice greetings Starki > Don't forget about the AOP aspect (no

Re: tiles and forwards

2006-06-09 Thread Antonio Petrelli
rula2005 ha scritto: I specified no filenames in struts-config.xml That's funny, how do you think that Tiles knows what definition file to use? http://struts.apache.org/struts-action/struts-tiles/installation.html As you can see it states: * *Using Tiles With Struts Action* - You will als

Encryption / decryption problem in multi threading

2006-06-09 Thread Shshank Jain
Hii I m having this strange problem. I m encrypting the password using java JCE AES encryption algorithm and storing the password as varchar(30) in the mySQL database. The Encryption/Decryption is working fine if i am doing it sequentially (single thread) but i m getting a javax.crypto.BadPaddi