Re: struts 1.x, how to create packge and jar file ...?

2009-07-27 Thread Lukasz Lenart
2009/7/27 john lee : > how can i generate 1 single .jar? and put into which folder, then i can > delete those many *.class files, and delete folder packageX as well? Why do you want do that? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ ---

Re: Cleaner way to create this page?

2009-07-27 Thread Paweł Wielgus
Hi, or use logic:equals, and as David stated put RoutingEnginePropertiesMgr.getInstance() in form, there is no client side in struts, page is rendered to html on the server side and travels from server to client as pure html. Best greetings, Paweł Wielgus. 2009/7/27 Musachy Barroso : > add Routin

Re: Struts2 portlet bug found

2009-07-27 Thread Tracy12
For some reason whole application looks very slow, I might choose the other approach where do jsp code changes to access raw Portlet Session. Doest this mean I have to use > Hi Nils-H, > > Thanks for the reply, unfortunately in production we got lot of > functionalities written with #session.s

Re: Struts vs Other competitors

2009-07-27 Thread Musachy Barroso
I would say the biggest help we can get right now is on the documentation and get help testing releases. One thing I have always seems lacking in the struts community, is support from users to help testing releases *before* they are actually released. As for coordinating effort, I am not sure it w

Re: Struts vs Other competitors

2009-07-27 Thread Zoran Avtarovski
I have to agree. Our touch with the JSF Oracle was both painful and fruitless and lead us to truly appreciate how bad things could be. Having said that, I think Martin has raised some points about how S2 can be improved and I think S2 is at a stage where there needs to be some general discussion o

Re: getting listValue back to actionclass from s:select tag

2009-07-27 Thread musomesa
Not sure what you mean when you say it is dynamic -- Why not keep track of the original key-value pairs in the user session? You only need the key. Chris -Original Message- From: Bhaarat Sharma To: Struts Users Mailing List Sent: Mon, Jul 27, 2009 9:52 pm Subject: getting list

Re: struts 1.x, how to create package ?

2009-07-27 Thread musomesa
No offence intended, John but I would strongly counsel you to read some Tomcat documentation before trying to launch your shopping cart. At the very least the official Tomcat docs for you version of Tomcat (http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html) or some such url and a book

Struts 2.x and Java 6 and/or Servlet 2.5

2009-07-27 Thread Lee Clemens
With Java 5's EOL coming on October 30th and the additional features available in Servlet API 2.5 - is there any timeline for updating Struts 2.x's platform requirements? Or have I misunderstood and these are only Minimum requirements? ---

RE: getting listValue back to actionclass from s:select tag

2009-07-27 Thread Lee Clemens
I believe the Label is rather meaningless (from a data point-of-view). Do you know which options have a * after them when you create the drop down? So you would know that key=1 has a *, key=2 does not, etc? Not sure I understand the reason for the label in this scenario, since the key is - the k

getting listValue back to actionclass from s:select tag

2009-07-27 Thread Bhaarat Sharma
I have a s:select tag which is working fine. html code made out of that is: Reason1* Reason2 Reason3* when user selects stuff from this select box and submits what is sent back is listKey. Is there any way to get the listValue (content) back to the acti

Re: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor'

2009-07-27 Thread Musachy Barroso
On Mon, Jul 27, 2009 at 4:44 PM, desi wrote: > is java.lang.Unsupport > edClassVersionError: Bad version number in .class file That means that you are running the application on a jvm whose version is older that the version that the code was compiled for, the code was probably compiled with/for 1.

Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor'

2009-07-27 Thread desi
Hello, I just created a sample application from the blank war and added jars for hibernate and spring. I followed instructions from Struts2InAction book. When I start tomcat I get the following error. I have the persistence.xml in the right spot ie Web-Inf\classes\META-INF\persistence.xml. This i

Re: struts 1.x, how to create package ?

2009-07-27 Thread Jon Senior
On Mon, 27 Jul 2009 15:11:11 -0700 (PDT) john lee wrote: > tks for reply, but should put it in which folder/directory ? then > tomcat/struts can serve to online user? You need to build a war file which can then go in the tomcat webapps directory. See your ant build.xml for details of any war p

Re: struts 1.x, how to create package ?

2009-07-27 Thread john lee
tks for reply, but should put it in which folder/directory ? then tomcat/struts can serve to online user?     --- On Mon, 7/27/09, Musachy Barroso wrote: From: Musachy Barroso Subject: Re: struts 1.x, how to create package ? To: "Struts Users Mailing List" Date: Monday, July 27, 2009, 4:07 P

Re: struts 1.x, how to create package ?

2009-07-27 Thread Musachy Barroso
http://www.google.com/search?q=how+to+make+a+jar musachy On Mon, Jul 27, 2009 at 1:45 PM, john lee wrote: > > i build online store by struts 1.x, and working fine, and all the classes > file under > > /var/apache-tomcat-6.0.16/webapps/store/WEB-INF/classes/packageX/cart/*.class >    

struts 1.x, how to create packge and jar file ...?

2009-07-27 Thread john lee
 I build online store by struts 1.x, and working fine, and all the classes file under   /var/apache-tomcat-6.0.16/webapps/storeX/WEB-INF/classes/packageX/cart/*.class /mail/*.class   

struts 1.x, how to create package ?

2009-07-27 Thread john lee
  i build online store by struts 1.x, and working fine, and all the classes file under   /var/apache-tomcat-6.0.16/webapps/store/WEB-INF/classes/packageX/cart/*.class /mail/*.class   

Re: Handle Japanese characters from jsp page into ActionClass

2009-07-27 Thread Greg Lindholm
That filter will work with struts 1. Just be sure it's early in the filter chain before anyone is reading the request. I always make it the first filter. On Mon, Jul 27, 2009 at 4:23 PM, Ashish Kulkarni < ashish.kulkarn...@gmail.com> wrote: > HiI am using struts 1.2.6 and not yes in struts 2, > S

Re: Handle Japanese characters from jsp page into ActionClass

2009-07-27 Thread Ashish Kulkarni
HiI am using struts 1.2.6 and not yes in struts 2, So should i just put in a general filter to do encoding? Ashish On Mon, Jul 27, 2009 at 4:10 PM, Greg Lindholm wrote: > On Mon, Jul 27, 2009 at 3:34 PM, Ashish Kulkarni < > ashish.kulkarn...@gmail.com> wrote: > > > HiI have a jsp page which disp

Re: Handle Japanese characters from jsp page into ActionClass

2009-07-27 Thread Greg Lindholm
On Mon, Jul 27, 2009 at 3:34 PM, Ashish Kulkarni < ashish.kulkarn...@gmail.com> wrote: > HiI have a jsp page which displays data in UTF-8 encoding, there is a input > text field, when user enter japanese characters in this input text and data > is transferred to Actionclass i get junk value, > > H

Handle Japanese characters from jsp page into ActionClass

2009-07-27 Thread Ashish Kulkarni
HiI have a jsp page which displays data in UTF-8 encoding, there is a input text field, when user enter japanese characters in this input text and data is transferred to Actionclass i get junk value, How do i handle japanese characters in ActionClass, do i have to do anything special in servlet or

Re: Struts vs Other competitors

2009-07-27 Thread Frank W. Zammetti
The phrase "OH GOD KILL IT! KILL IT WITH FIRE!" has been heard exclaimed in relation to JSF on more than one occassion. -- Frank W. Zammetti Author of "Practical Ext JS Projects with Gears" and "Practical Dojo Projects" and "Practical DWR 2 Projects" and "Practical JavaScript, DOM Scripting

Re: How to set Array properties?

2009-07-27 Thread mailtolouis2020-struts
Thank You! From: Musachy Barroso To: Struts Users Mailing List Sent: Monday, July 27, 2009 5:58:02 PM Subject: Re: How to set Array properties? On Mon, Jul 27, 2009 at 7:55 AM, Louis Voo wrote: > Hi, > > For e.g, I've this iteration in my jsp pa

Re: How to set Array properties?

2009-07-27 Thread Musachy Barroso
On Mon, Jul 27, 2009 at 7:55 AM, Louis Voo wrote: > Hi, > > For e.g, I've this iteration in my jsp page > > > > >     > > > and this in action > > public User[] getUsers(){ > return this.users; > } > > public User[] setUsers(){ > return this.users; > } > > > When the user submit

Re: Cleaner way to create this page?

2009-07-27 Thread Musachy Barroso
add RoutingEnginePropertiesMgr.getInstance() to the request attributes map, and use jstl or struts tags in the jsp: ... Dare to stay away from scriptlets ;) musachy On Mon, Jul 27, 2009 at 9:35 AM, laredotornado wrote: > > A couple of things ... > > 1. Struts tag libraries wouldn't apply here

[S2] Get struts.url.http.port value

2009-07-27 Thread Louis Voo
Hi, How to get the value of struts.url.http.port and struts.url.https.port in the Action? Regards Louis

RE: Cleaner way to create this page?

2009-07-27 Thread laredotornado
A couple of things ... 1. Struts tag libraries wouldn't apply here, right? I'm trying to do some conditional if logic and I don't see which of the Struts libraries would fit. I'm using Struts 1.3. 2. You mention to put this, "<%= rePropMgr.getCaptchaPublicKey() %>" in the ActionForm, but I nee

Date Validation using session Locale

2009-07-27 Thread David T. Webb
I am using Struts 1.3.10  and I am trying to achieve client side javascript date validation using the default datePattern from the user's session Locale.  Objective is to validate any date format based on Locale without specifying a specific pattern. My Form field validation rule is this:    

Re: Struts vs Other competitors

2009-07-27 Thread Musachy Barroso
On Mon, Jul 27, 2009 at 4:42 AM, Andrey Rogov wrote: > I agree with Matt Rable that JSF programming based on RAD methods makes us > transition to JSF. I think many, many people have crossed that bridge and came back in rush after a while. musachy -- "Hey you! Would you help me to carry the ston

RE: Cleaner way to create this page?

2009-07-27 Thread Kawczynski, David
Write a taglib or put a getCaptchaPublicKey() method in the ActionForm, and use struts taglibs. > -Original Message- > From: laredotornado [mailto:laredotorn...@gmail.com] > Sent: Monday, July 27, 2009 11:51 AM > To: user@struts.apache.org > Subject: Cleaner way to create this page? > >

Cleaner way to create this page?

2009-07-27 Thread laredotornado
Hi, I'm using Struts 1.3. I have this in my JSP page ... <% final RoutingEnginePropertiesMgr rePropMgr = RoutingEnginePropertiesMgr.getInstance(); if (rePropMgr.isUseCaptcha()) { %> https://api-secure.recaptcha.net/challenge?k=<%= rePropMgr.getCaptchaPublic

How to set Array properties?

2009-07-27 Thread Louis Voo
Hi, For e.g, I've this iteration in my jsp page and this in action public User[] getUsers(){ return this.users; } public User[] setUsers(){ return this.users; } When the user submit the form, I want struts set the firstName & lastName back to users array, how to achieve this? Re

RE: Display Doc or PDF file in JSP

2009-07-27 Thread Martin Gainty
you would use poi-hwpf to create the document http://poi.apache.org/hwpf/index.html you may want to consider a flash enabled document which comes with forward/backward scroll buttons http://www.scribd.com/doc/7395371/JSP-Servlet-JSTL-Specification populate your webpage src attribute in supplie

Re: 2-dimensional array.

2009-07-27 Thread Pascal
Maybe you wanted to do this? String cat_sections[] = {"IP6-Calling-Card"}; String cat_items_sections[][] = { cat_sections }; I'm really not sure if you should use arrays here, though. Especially for storing string constants you should really consider using enums. Pascal On Mon, 27 Jul 2009 23:5

2-dimensional array.

2009-07-27 Thread Sam Wun
Hi, sorry this is not a Struts specific question, but I am working on a JSP file that is related to the Struts. I believe most of you guys are using JSP with struts, so I hope I can get some help here. I want to declare a String 2-dimensional array in JSP as follow: String cat_sections[] = {"IP6

Validation problem in Struts 2.1.6

2009-07-27 Thread Thaminda Karunanayake
Hi, I am migrating from struts 2.0.6 to 2.1.6. Using struts 2.1.6, I created a login page and included the and inside tags of an html table (shown below). But, when I activate client side validation, the error messages appear repeatedly; i.e. previous error messages are not cleared.

Re: Display Doc or PDF file in JSP

2009-07-27 Thread Robert Graf-Waczenski
Paweł Wielgus schrieb: Hi Nitesh, as far as i know it's impossible with DOC, but pretty easy with PDF, just create iframe with source that will point to that pdf file. Most browsers on computers where acrobat reader is installed will display it as an inline document, i don't know if it will work

RE: Display Doc or PDF file in JSP

2009-07-27 Thread Nitesh Jain
Thanks Pawel, It works for PDF file. Cant we find out any solution for DOC. Regards, Nitesh -Original Message- From: Paweł Wielgus [mailto:poulw...@gmail.com] Sent: 27 July 2009 18:01 To: Struts Users Mailing List Subject: Re: Display Doc or PDF file in JSP Hi Nitesh, as far a

RE: Struts vs Other competitors

2009-07-27 Thread Martin Gainty
first started using struts in 02 and have been a strong advocate of Struts implementations since I believe the incorporation of Ajax enabled Dojo controls and interceptor call stack from freemarker pushed usability of Struts ahead of JSF in those areas unfortunately Struts RAD tools are not as

Re: Display Doc or PDF file in JSP

2009-07-27 Thread Paweł Wielgus
Hi Nitesh, as far as i know it's impossible with DOC, but pretty easy with PDF, just create iframe with source that will point to that pdf file. Most browsers on computers where acrobat reader is installed will display it as an inline document, i don't know if it will work with div only. Best gree

Display Doc or PDF file in JSP

2009-07-27 Thread Nitesh Jain
Hi All, I have requirement to display a Doc or PDF file into a div tag of the JSP. It means that JSP will display a DOC/PDF file in half of the page and remaining space will be used to display some other information. Can anyone guide me to achieve this with or without using the

RE: Struts vs Other competitors

2009-07-27 Thread Andrey Rogov
Thank you Martin, Sooner or later we start considering programming as business. It's critical to develop new products or new versions with parameters that would be faster, more quality and less expensive. I agree with Matt Rable that JSF programming based on RAD methods makes us transition to JS

Re: EJB Injection in Interceptor

2009-07-27 Thread Robin Mannering
Just wondering if the below thread has gone any further. After creating another thread on the same subject at an earlier date, we discussed using the EJB plugin here: http://cwiki.apache.org/S2PLUGINS/ejb3-plugin.html However, having started to use this plugin so that I can reference statele