Using jsp tag in Value attribute of textfield tag in Struts2

2008-04-09 Thread Tauri Valor
Hi Is there a way to include value for textfield tag in struts2 , Im trying the following : But I get tld error.. Please let me know how I could use jsp tag in the textfield tag, or let me know an alternative... Thanks in Advance, Tauri. -- View this message in context: http://w

How to open a page in new window with or tag?

2008-04-09 Thread Mohiit
I am using Struts 2. I want to open the page in the new window when I click on an icon. I am using tag and giving action by tag. i.e., ,/s:url> This way it is opening an action in same page. I want it in the new window like in HTML tag we can do it by link . What

Re: i18n Tags in FreeMarker Decorator for SiteMesh

2008-04-09 Thread Jeromy Evans
mraible wrote: I tried [EMAIL PROTECTED] value="text('key')"/] I've already found that in 2.0.x this OGNL expression executed getText(String) but in 2.1.x it only matches the method "text(String)". I'm not sure when that changed in the OGNL implementation, but the new form seems correct as it's

Re: i18n Tags in FreeMarker Decorator for SiteMesh

2008-04-09 Thread mraible
I tried [EMAIL PROTECTED] value="text('key')"/] and that doesn't seem to work either. I don't have a struts.xml or struts.properties in my project. I tried putting the i18n bundle in all packages using it at the Action level (ActionName.properties), but that didn't work either. Creating a src/main

S2 Textfield tag date formatting

2008-04-09 Thread Steve Akins
I'm trying to use a textfield tag for date input. I need to format this in the form dd/MM/ HH:mm:ss The teaxtfield tag formats the date to a Locale based format DateFormat.SHORT via XWorkBasicConverter. For my locale this turns out to be dd/MM/yy. This is not the format I want. DateTimeP

Most popular classes to be used in Struts

2008-04-09 Thread Sam Wun
Hi, What are the most popular classes to be used in Struts? Thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: i18n Tags in FreeMarker Decorator for SiteMesh

2008-04-09 Thread Jeromy Evans
Hi Matt, is it only the @s.text tag that isn't working? eg. is @s.property working? I've suspected there's a problem with the text tag and i18n tag not finding some resource bundles in the S2.1.1 branch but haven't had a chance to investigate. There's several related issues in JIRA and I rec

i18n Tags in FreeMarker Decorator for SiteMesh

2008-04-09 Thread mraible
I'm using 2.1.1-SNAPSHOT of the sitemesh and rest plugins. FreeMarker/SiteMesh is working fine. However, I'm unable to use i18n tags in my decorator. In src/main/resources/com/company/app/package.properties, I have: webapp.name=Foo webapp.tagline=Bar In my decorators/default.ftl, I have: [EMAIL

Re: Struts2: How to put validation.xml and Action.java in separate folders

2008-04-09 Thread goelshek
"as your build process copies them to the right place on the classpath. I don't think there's a way to have them in a different folder than the .class files though" I don't really have a formal build process for now. So what's in my /WEB-INF/src folder is going to be in my /WEB-INF/classes folder

Re: Struts2: How to put validation.xml and Action.java in separate folders

2008-04-09 Thread Laurie Harper
goelshek wrote: For Struts 2: Does anyone know if it is possible to put the validation.xml for an Action in a folder other than where the action resides? If I have a 100 java classes in my action package, I would like their *-validation.xmls to be in a separate folder such that all .java's are t

Re: Preparable Question

2008-04-09 Thread Laurie Harper
manishbel wrote: Hello, I am trying to use the Preparable but having some problems while the page is being rendered. I will try my best to explain the problem, please ask if you need more information as i might not be able to accurately explain the problem as i am pretty new to struts2. Scenar

Re: Commons Validator Issue with Collections

2008-04-09 Thread Laurie Harper
Neither Commons Validator nor Struts knows how to process XML requests like that out of the box. Assuming Struts 1, the answer is that you will have to write your own logic to populate the form bean from the XML request, after which validation can be performed the same as you would with a regul

Re: [S2] checkboxes in each row of table - set values in action

2008-04-09 Thread Laurie Harper
lbastil wrote: Thank you for the help. But I could not get it to work. Here is a code sample from the Action Class: private Set traegerPermissions; The class TraegerPermissions itself have another collection: private Collection einrichtungen; And both TraegerPermission an

Re: Need help getting started with remote tabs

2008-04-09 Thread Musachy Barroso
There are examples in the showcase application. musachy On Wed, Apr 9, 2008 at 8:55 PM, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote: > Is there a complete working example for the tabbedPanel tag? I found > this example in the tag reference document. How do I set up the result > for Aj

Re: Local Host Error

2008-04-09 Thread Martin Gainty
I hope you have long legs because you're trying to climb 2 very steep mountains simultaneously 1st) subscribe to tomcat-users list..the folks that answer your question eat/live and breathe TC 24/7 http://tomcat.apache.org/lists.html#tomcat-users then of course you'll want to look at getting your T

Local Host Error

2008-04-09 Thread Hartford Cory-C23423
Hello. To preface I am very new to using Apache. I am attempting to experiment locally, however I cannot connect to local host nor the 127.0.0.1 directly. I am looking to try and get the "IT works!" Apache screen to display, but to no avail thus far. I have verified that my host config file in wind

Struts2: How to put validation.xml and Action.java in separate folders

2008-04-09 Thread goelshek
For Struts 2: Does anyone know if it is possible to put the validation.xml for an Action in a folder other than where the action resides? If I have a 100 java classes in my action package, I would like their *-validation.xmls to be in a separate folder such that all .java's are together and all .

Need help getting started with remote tabs

2008-04-09 Thread Jiang, Jane (NIH/NCI) [C]
Is there a complete working example for the tabbedPanel tag? I found this example in the tag reference document. How do I set up the result for AjaxTest.action? I loaded the dynamic contents in that action and directed it to the jsp that displays that content. The action was invoked, but the ta

Re: date conversion

2008-04-09 Thread Alberto A. Flores
the synchronized is not needed Adam Hardy wrote: Actually I use it in a static method on a utility class, and call SimpleDateFormat inside a synchronized block. Brad A Cupit on 09/04/08 13:51, wrote: Consider placing the SimpleDateFormat as a local variable exactly right or, consider using

Re: date conversion

2008-04-09 Thread Adam Hardy
Actually I use it in a static method on a utility class, and call SimpleDateFormat inside a synchronized block. Brad A Cupit on 09/04/08 13:51, wrote: Consider placing the SimpleDateFormat as a local variable exactly right or, consider using a ThreadLocal or, consider using commons-lang's Fas

Re: problem in file upload

2008-04-09 Thread Martin Gainty
If you dont mind using freemarker you can always use exception-interceptor.html http://struts.apache.org/2.x/docs/exception-interceptor.html M-- - Original Message - From: "Rajeev Sharma" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, April 09, 2008 1:59 PM Subject:

Re: struts.xml

2008-04-09 Thread Martin Gainty
ResultTypes are illustrated here http://struts.apache.org/2.x/docs/result-types.html Is there anything specific you were looking for? Tak/ Martin- - Original Message - From: "Ian Meikle" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, April 09, 2008 1:40 PM Subject:

Re: problem in file upload

2008-04-09 Thread Rajeev Sharma
Hi Jeromy, Thanks for the help. I tried to do the same thing with an xml file. Instead of using failed.jsp, I returned an xml file failed.xml with some hard coded error message and error code. What if the file upload interceptor returned "input" for some other reason? I would be returning the err

Re: struts.xml

2008-04-09 Thread Ian Meikle
Hi Lukasz, Thanks very much for that. This has given me the info I needed. Regards Ian CSC Solutions Norge AS Registered Office: Sandsliåsen 57, 5254 Sandsli, Norway Registered in Norway No: 958 958 455 ---

Re: struts.xml

2008-04-09 Thread Lukasz Lenart
> Well this give me some info, but for example > it does not explain what all the valid values of the "type" attribute are > and what each value means. > > Is this documented anywhere ? Look into the struts2-core.jar and find struts-default.xml, that will give more information, then you can loo

Re: struts.xml

2008-04-09 Thread Ian Meikle
Well this give me some info, but for example it does not explain what all the valid values of the "type" attribute are and what each value means. Is this documented anywhere ? Regards Ian

Re: struts.xml

2008-04-09 Thread Randy Burgess
All this is linked right from the Core Developers Guide at http://struts.apache.org/2.x/docs/guides.html. Click the result types link and there you go. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Ian Meikle <[EMAIL PROTECTED]> > Reply-To: Struts Users Mail

struts.xml

2008-04-09 Thread Ian Meikle
Hi, Can anyone point me to where the seperate sections of the struts.xml file is described ? I am specifically looking at what the valid values in the element are ? Many thanks Ian ---

RE: date conversion

2008-04-09 Thread Brad A Cupit
>> Consider placing the SimpleDateFormat as a local variable exactly right or, consider using a ThreadLocal or, consider using commons-lang's FastDateFormat http://commons.apache.org/lang/api-release/org/apache/commons/lang/time/ FastDateFormat.html Brad Cupit Louisiana State University - UIS e-

Re: date conversion

2008-04-09 Thread Alberto A. Flores
Consider placing the SimpleDateFormat as a local variable (within the method) to avoid non-thread safe operations (guaranteed by the jvm spec). Brad A Cupit wrote: the static SimpleDateFormat (assuming this code is in an S2 Action that is instantiated per request) is not thread safe. http://j

RE: date conversion

2008-04-09 Thread Brad A Cupit
the static SimpleDateFormat (assuming this code is in an S2 Action that is instantiated per request) is not thread safe. http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html#sy nchronization Brad Cupit Louisiana State University - UIS -Original Message- From: Zoran Avtar

Re: Problem with struts in JSP

2008-04-09 Thread Jeromy Evans
This line: should read: The first from instructs the container to evaluate the expression as EL. The second form instructs the tag to evaluate the expression as OGNL. You must be using struts < 2.0.10 as the first form is no longer permitted within struts tags. Assuming your deployments

Re: problem in file upload

2008-04-09 Thread Jeromy Evans
Rajeev Sharma wrote: When I try to upload a file which is bigger then the max allowed size, the file upload interceptor returns "input" and the control does not come to the execute method of my action class. In this case I can redirect the result to some JSP, to some other action etc, but how do

Re: date conversion

2008-04-09 Thread Alberto A. Flores
Also, consider to inject the format in your IoC container (Guice, Spring, etc). Zoran Avtarovski wrote: We had the same issue and went with writing a new converter (shown below). And then created a xwork-conversion.properties file pointing to it. Z. private final static SimpleDateFormat D

how to set dynamic name for html:radio

2008-04-09 Thread balaji.m.cs
hi... i am using tag lib in struts 1.3.5, I am in a requirement that we need to give the names of the html form components dynamically...(ie) if i say above code goes inside an interation the html outputs as

Re: Struts 2 URL tag problems

2008-04-09 Thread 袁嘉铭
hi try it View Your Account My english is not good hope this can help you gordian On Wed, Apr 9, 2008 at 6:00 PM, ancatdubher <[EMAIL PROTECTED]> wrote: > > Hi, > > I use the Struts 2 tag to generate my URLs. > For example to generate the URL /account/view.action, I do: > > > View

Struts 2 URL tag problems

2008-04-09 Thread ancatdubher
Hi, I use the Struts 2 tag to generate my URLs. For example to generate the URL /account/view.action, I do: View Your Account But each click on this URL inserts an extra "namespace" prefix into the generated URL. I mean, after clicking 5 times on the "View Your Account" link, my addres