RE: html inside an action

2004-03-25 Thread Brendan Richards
There's also jakarkta commons-httpclient http://jakarta.apache.org/commons/httpclient/ -Original Message- From: Qureshi, Affan [mailto:[EMAIL PROTECTED] Sent: 25 March 2004 17:04 To: Struts Users Mailing List Subject: RE: html inside an action HttpUnit is also a neat tool which might

Re: Res: html inside an action

2004-03-25 Thread Richard Yee
. -Original Message- From: ruben [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 10:19 AM To: Struts Users Mailing List Subject: Re: html inside an action Qureshi, Affan wrote: What part of JSP do you want to generate? Is it Java code in the JSP that you

Re: Tile Problem

2004-03-25 Thread Tin Pham
Hi, You need to do the following in the jsp page, tiles:useAttribute name=title/ Then where you want the internationalized text to appear you use, bean:message name=title/ Oh yeah you will need to add your taglib references as follows, %@ taglib uri=/whateverYourPathIs prefix=tiles % %@ taglib

Re: html inside an action

2004-03-25 Thread Mark Lowe
:19 AM To: Struts Users Mailing List Subject: Re: html inside an action Qureshi, Affan wrote: What part of JSP do you want to generate? Is it Java code in the JSP that you want to generate or static HTML/JavaScript? You might want to look at Tag Libraries as well. -Original Message

RE: pre-populating DynaValidatorForm

2004-03-25 Thread Yee, Richard K,,DMDCWEST
Takhar, Yes. If you are using modules, then you'd have to add: fbc.setModuleConfig(mapping.getModuleConfig()); -Richard -Original Message- From: Takhar, Sandeep [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:47 AM To: Struts Users Mailing List Subject: RE: pre-populating

Re: Exception handling in struts

2004-03-25 Thread Tate Austin
PROTECTED] Sent: Thursday, March 25, 2004 10:04 AM Subject: Re: Exception handling in struts Didn't someone already answer this for you? Maybe we need to be more explicit. Try this: global-exceptions exception key=uncaught_exception type=java.lang.Exception path=/jsp/error.jsp

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Robert Taylor
What's the problem? robert -Original Message- From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 2:28 PM To: Struts Users Mailing List Subject: Handling Date objects in ActionForm gracefully All, We are facing a problem when we define

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
Have it as a string and convert it to a date or calendar when you pass it back to the model. On 25 Mar 2004, at 20:28, Sreenivasa Chadalavada wrote: All, We are facing a problem when we define java.util.Date field in ActionForm. Is there any way to override the default behavior provided by

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
. Robert Taylor rtaylor @mulework.com 03/25/2004 02:35 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: Handling Date objects in ActionForm gracefully What's the problem? robert

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: Handling Date objects in ActionForm gracefully Have it as a string and convert it to a date or calendar when you pass it back to the model. On 25 Mar 2004, at 20:28

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Robert Taylor
+1 -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 2:36 PM To: Struts Users Mailing List Subject: Re: Handling Date objects in ActionForm gracefully Have it as a string and convert it to a date or calendar when you pass it back

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Takhar, Sandeep
PROTECTED] Sent: Thursday, March 25, 2004 2:47 PM To: Struts Users Mailing List Subject: Re: Handling Date objects in ActionForm gracefully I am thinking of overriding the struts default mechanism. Override the default behavior of org.apache.commons.beanutils.ConvertUtils by registering a valid

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Sreenivasa Chadalavada
. Takhar, Sandeep Sandeep.Takhar @CIBC.ca 03/25/2004 02:53 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: Handling Date objects in ActionForm

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: Handling Date objects in ActionForm gracefully yes it is. It should be done once per classloader. When struts populates the dyna form it is string array to string array conversion and uses populate method

Re: Struts tag problem (bean:message and bean:write)

2004-03-25 Thread Daniel H A Lima
Marco, can you use bean:define and a scriptlet code inside bean:message ? Something like : bean:define id=suffix name=product property=productType/ bean:message key='%=prompt.productType.+suffix%'/ --- Marco Mistroni [EMAIL PROTECTED] escreveu: Hi all, I was wondering if anyone of you

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread anant.parnami
: Friday, March 26, 2004 1:06 AM To: Struts Users Mailing List Subject: RE: Handling Date objects in ActionForm gracefully What's the problem? robert -Original Message- From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 2:28 PM To: Struts Users

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Takhar, Sandeep
. sandeep -Original Message- From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:11 PM To: Struts Users Mailing List Subject: RE: Handling Date objects in ActionForm gracefully Do you know if the behavior can be overridden? Thanks and Regards, Sree

RE: How to display a bean property with html markup?

2004-03-25 Thread Slattery, Tim - BLS
Anybody knows how to display a bean property with html markup properly in the output. I have the JSP snippet code as follows: HTML abcdefg bean:write name=info property=infoName / bean:write name=info property=infoName filter=false/ filter=false tells the tag not to replace things like

Re: form based auth and session timeout and post data

2004-03-25 Thread Adam Hardy
That's one mean filter. It's not part of struts but judging merely from its name, it's obviously built into the app security. What does xpetstore say it's meant to do? Have you checked the filter's javadoc? Adam On 03/25/2004 10:07 PM Martin Alley wrote: Hi, I've got a struts based app

Re: dynamic widgets

2004-03-25 Thread Adam Hardy
Give us an example. What is the form editing? The iterate tag is probably what you want, if it's simple. Or you could use NestedBeans. If the form edits the actual object, you can get a bunch of beans, each representing x pieces of info, and store them inside the main object. Just throwing

RE: form based auth and session timeout and post data

2004-03-25 Thread Martin Alley
-Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 25 March 2004 21:18 To: Struts Users Mailing List Subject: Re: form based auth and session timeout and post data That's one mean filter. It's not part of struts but judging merely from its name, it's obviously built

RE: Using JSTL Instead of Nested Tags

2004-03-25 Thread Robert Taylor
Mike, you will have to expose the form like: c:set var=form value=${myForm}/ ...where myForm is its name defined in the struts-config file. If its DynaForm then you have to expose the form map: c:set var=form value=${myForm.map}/ Once you do this, you can use JSTL to access and render

Re: form based auth and session timeout and post data

2004-03-25 Thread Adam Hardy
of play is: Container based security Filter ActionServlet Can't work out why the filter would appear to be bypassed. Any ideas? Thanks for helping. Martin -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 25 March 2004 21:18 To: Struts Users Mailing List Subject: Re: form

Re: Dynaform Type Conversion

2004-03-25 Thread Joe Hertz
of the appropriate class, with all the dyna properties set up? -Joe -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 8:38 AM To: Struts Users Mailing List Subject: Re: DynaForm Type Conversion Take a look

Re: Dynaform Type Conversion

2004-03-25 Thread Hubert Rabago
Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 8:38 AM To: Struts Users Mailing List Subject: Re: DynaForm Type Conversion Take a look at BeanUtils.copyProperties. By default, though, it doesn\'t support conversion of dates, since it wouldn

RE: How to display a bean property with html markup?

2004-03-25 Thread S W
Hi Tim, Yes, it solved the problem. Thanks a lot, Shirley Slattery, Tim - BLS [EMAIL PROTECTED] wrote: Anybody knows how to display a bean property with html markup properly in the output. I have the JSP snippet code as follows: abcdefg filter=false tells the tag not to

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
. --- - Mark Lowe mark.lowe @boxstuff.com 03/25/2004 03:17 PM Please respond to Struts Users Mailing List                 To:        Struts Users Mailing List [EMAIL PROTECTED]         cc:                 Subject:        Re: Handling Date objects in ActionForm gracefully Ask yourself why

Re: Tile Problem

2004-03-25 Thread Caroline Jen
I followed your suggestion. Now, when I ran my application, I got article.Main.title???en_US.??? displayed in the browser. Still, cannot pick up the article.Menu.title=Registered Members in the application.properties (which is located in the ApplicationRoot/WEB-INF/classes/resources

RE: Tile Problem

2004-03-25 Thread Avinash Gangadharan
/ tiles:get name=navbar/ /BODY . [/CODE] -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:52 PM To: Struts Users Mailing List Subject: Re: Tile Problem I followed your suggestion. Now, when I ran my application, I got article.Main.title

RE: Tile Problem

2004-03-25 Thread Caroline Jen
: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:52 PM To: Struts Users Mailing List Subject: Re: Tile Problem I followed your suggestion. Now, when I ran my application, I got article.Main.title???en_US.??? displayed in the browser. Still, cannot pick up

RE: Calling Class Methods

2004-03-25 Thread Lokanath
hi u can call the static method by first importing the class in %@ page import = package.* % then use the static method Lokanath -Original Message- From: Sunny [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 8:55 PM To: Struts Users Mailing List Subject: Calling Class

RE: Pls help me in configuring common logger

2004-03-25 Thread Van Riper, Mike
-Original Message- From: sougata [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 9:15 PM To: Struts Users Mailing List Subject: Pls help me in configuring common logger Hi Guys I am facing a problem in configuration apaches common logger using weblogic8.1.I want to

Re: Pls help me in configuring common logger

2004-03-25 Thread Rajat Pandit
: Friday, March 26, 2004 12:37 PM Subject: RE: Pls help me in configuring common logger -Original Message- From: sougata [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 9:15 PM To: Struts Users Mailing List Subject: Pls help me in configuring common logger Hi Guys I

RE: Using JSTL Instead of Nested Tags

2004-03-25 Thread Mike Duffy
Thanks Robert. Your suggestion was helpful. Another key is to use varStatus='status' and the corresponding ${status.index} to reference the objects in the form array: !--SAVED SEARCHES-- c:when test='${not empty

RE: Difference between ValidatorForm and ValidatorActionForm

2004-03-24 Thread Janarthan Sathiamurthy
Hi, ValidatorActionForm - This class extends ValidatorForm and provides basic field validation based on an XML file. The key passed into the validator is the action element's 'path' attribute from the struts-config.xml which should match the form element's name attribute in the validation.xml.

Re: Retrieve a Variable From the DynaActionForm

2004-03-24 Thread Pedro Salgado
On 24/03/2004 06:07, Caroline Jen [EMAIL PROTECTED] wrote: In my Struts application, postForm is of the DynaActionForm type: DynaActionForm postForm = ( DynaActionForm )form; Later on, I want to save one of the fields receiver, which is a String, in the request context. Which is the

Re: html:messages jstl equivalent

2004-03-24 Thread Pedro Salgado
On 23/03/2004 23:39, Joe Germuska [EMAIL PROTECTED] wrote: At 12:06 PM + 3/23/04, Pedro Salgado wrote: html:messages id=error ... /html:messages Does anyone know how do I fill the ${???} to have a JSTL equivalent for the previous html tag? c:forEach items='${???}'

Re: Struts Validator

2004-03-24 Thread Niall Pemberton
Whats missing from your question is how are you identifying which client a user belongs to? Niall - Original Message - From: Matthew Clark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 22, 2004 12:09 PM Subject: Struts Validator Hi there, I am new to Struts and this

RE: Sycnhronizer Token- can someone explain this?Curre

2004-03-24 Thread Takhar, Sandeep
I'm not sure if I understand fully, but if you are using html:link there is a transaction attribute. sandeep -Original Message- From: James Scrimshire [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 5:41 AM To: [EMAIL PROTECTED] Subject: Sycnhronizer Token- can someone explain

RE: Sycnhronizer Token- can someone explain this?Curre

2004-03-24 Thread Janarthan Sathiamurthy
Sandeep, What is this transaction attribute ? Please elaborate.. Regards, Janarthan S -Original Message- From: Takhar, Sandeep [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 5:47 PM To: Struts Users Mailing List Subject: RE: Sycnhronizer Token- can someone explain this?Curre

RE: Sycnhronizer Token- can someone explain this?Curre

2004-03-24 Thread James Scrimshire
i have tried transaction=true from the html link but it doesn't appear to work unless i have called saveToken(requset) For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk

RE: Sycnhronizer Token- can someone explain this?Curre

2004-03-24 Thread James Scrimshire
i have the transaction attribute i check to see if the token is Valid.. this method says the token is not valid For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk

Re: Automatically detecting struts-config changes and reload app.

2004-03-24 Thread Geeta Ramani
Hey Antony: Check out the struts admin functionality: Make sure you have the admin mappings in your struts-config.xml, then point your browser to /yourContext/admin/reload.do and you'll see the magic..:) Regards, Geeta Antony Paul wrote: Is it possible to automatically detect changes in

RE: Sycnhronizer Token- can someone explain this?Curre

2004-03-24 Thread James Scrimshire
sandeep. using transaction=true.. this is what i get from the action the link submits too as you can see the session token is null, and only gets set when i explicitly call saveToken(request) from a prior action 2004-03-24 13:36:34,073 [DEBUG]

RE: EL Tag Libraries

2004-03-24 Thread Pady Srinivasan
Why not use c:out value=${uniqueKey} / instead of c:out value=${myForm.value(${uniqueKey})} / ??? This works for me: c:set var=testVar value=Hello / c:set var=testVar1 value=World / c:set var=hello c:out value=${testVar} /-c:out value=${testVar1} / /c:set c:out value=${hello} / Thanks --

RE: Sycnhronizer Token- can someone explain this?Curre

2004-03-24 Thread Takhar, Sandeep
... sandeep -Original Message- From: James Scrimshire [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 8:39 AM To: [EMAIL PROTECTED] Subject: RE: Sycnhronizer Token- can someone explain this?Curre sandeep. using transaction=true.. this is what i get from the action the link submits too

RE: EL Tag Libraries

2004-03-24 Thread Pat Quinn
] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: EL Tag Libraries Date: Wed, 24 Mar 2004 08:57:41 -0500 Why not use c:out value=${uniqueKey} / instead of c:out value=${myForm.value(${uniqueKey})} / ??? This works for me: c:set var=testVar value=Hello / c:set var=testVar1 value=World

RE: Sycnhronizer Token- can someone explain this?Curre

2004-03-24 Thread James Scrimshire
To: [EMAIL PROTECTED] cc: 24/03/04 14:01 Subject: RE: Sycnhronizer Token

Re: LookupDispatchAction default

2004-03-24 Thread Mark Lowe
unspecified() is the method you want look at the javadoc. you do need the method name though /admin/list.do?method I saw that using submit as the parameter name causes problems so i wouldn't use that. On 24 Mar 2004, at 15:16, Brian Sayatovic/AMIG wrote: I'd like to be able to have someone

RE: LookupDispatchAction default

2004-03-24 Thread Wendy Smoak
From: Brian Sayatovic/AMIG [mailto:[EMAIL PROTECTED] I'd like to be able to have someone hit my action, /admin/list.do, without having to specify a submit paramater. Is there another way to do this? Is it worth suggesting that LookupDispatchAction support a default or null mapping? I'm

RE: LookupDispatchAction default

2004-03-24 Thread Wendy Smoak
From: Mark Lowe [mailto:[EMAIL PROTECTED] unspecified() is the method you want look at the javadoc. you do need the method name though /admin/list.do?method I saw that using submit as the parameter name causes problems so i wouldn't use that. I agree about not using submit, if you end up

RE: generating a text file

2004-03-24 Thread Pady Srinivasan
This is what we did in our Action: // generate the file File file = generate(); // download response.setContentType(text/plain); response.addHeader(Content-Disposition, attachment;filename= + file.getName()); return new ActionForward(/logs/ + file.getName()); Thanks -- pady [EMAIL PROTECTED]

Re: EL Tag Libraries

2004-03-24 Thread Shaul Siboni
List [EMAIL PROTECTED] Subject: RE: EL Tag Libraries Date: Wed, 24 Mar 2004 08:57:41 -0500 Why not use c:out value=${uniqueKey} / instead of c:out value=${myForm.value(${uniqueKey})} / ??? This works for me: c:set var=testVar value=Hello / c:set var=testVar1 value=World / c:set var=hello c:out

Re: LookupDispatchAction default

2004-03-24 Thread Mark Lowe
I agree about not using submit, if you end up needing to use JavaScript to change the value, you run into problems since submit() is already function. Calling either document.forms[0].submit.value=something or document.forms[0].submit() gives an error, I can't remember which. Bad idea, avoid it.

RE: html:javascript question

2004-03-24 Thread Janarthan Sathiamurthy
var myMessage = bean:write name=msg /; alert(myMessage) -Original Message- From: Daniel [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 6:23 PM To: Struts Users Mailing List Subject: html:javascript question I want to put the msg inside a javasript alert (popup with error

RE: LookupDispatchAction default

2004-03-24 Thread Wendy Smoak
From: Mark Lowe [mailto:[EMAIL PROTECTED] It was you post on the thread last week where i pick it up. Sorry, I'm apparently repeating myself! I can't remember last week this early in the morning. Good to know that its been addressed, but I'm on whatever the stable release of 1.1 is. I'd

RE: Automatically detecting struts-config changes and reload app.

2004-03-24 Thread Pady Srinivasan
Subject: Re: Automatically detecting struts-config changes and reload app. Hey Antony: Check out the struts admin functionality: Make sure you have the admin mappings in your struts-config.xml, then point your browser to /yourContext/admin/reload.do and you'll see the magic..:) Regards, Geeta Antony

RE: Sycnhronizer Token- can someone explain this?Curre

2004-03-24 Thread Takhar, Sandeep
. (I can't remember, but I think html:form is in the puzzle as well) sandeep -Original Message- From: James Scrimshire [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 9:07 AM To: [EMAIL PROTECTED] Subject: RE: Sycnhronizer Token- can someone explain this?Curre well at the moment

Re: i18n with Japanese characters and tags....

2004-03-24 Thread carlo latasa
] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: i18n with Japanese characters and tags Date: Tue, 23 Mar 2004 16:12:20 +0900 Carlo, Have you checked the example application included in Struts1.1(or current CVS)? It can show

RE: Using Tomcat declarative security for my app

2004-03-24 Thread Pady Srinivasan
1. Make sure you define a security-role element for 'administrator' in web.xml. Also the auth-constraint has role-name as 'administrador'. Maybe a spelling error ? 2. And the role should be defined in tomcat-users.xml also. And the users in this role would alone be allowed access. Thanks --

Re: File upload location

2004-03-24 Thread Mark Shifman
Deepak wrote: Hi, What is the default location of a file uploaded using html:file ? Can I upload it to one of the folders in my context path ? It goes someplace temporary. If you look at the src for the UploadAction example in Struts, it shows how to save the temporary file. I create a

RE: are you sure?

2004-03-24 Thread McCormack, Chris
If you need this to be in a confirmation box as you say, look in to using a modal window that has 2 javascript backed buttons on it. hth Chris McCormack -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: 23 March 2004 12:22 To: Struts Users Mailing List Subject: Re

Re: html:rewrite action problem

2004-03-24 Thread Mark Lowe
try page=/SomeAction.do On 24 Mar 2004, at 17:50, Ruben Pardo wrote: i've got the next tag html:rewrite action=/SomeAction?prefix=page=/SomePage and in the actionConfig action path=/SomeAction type=org.apache.type=org.apache.struts.actions.SwitchAction /action but i always get an error saying

Re: LookupDispatchAction default

2004-03-24 Thread Mark Lowe
On 24 Mar 2004, at 16:13, Wendy Smoak wrote: From: Mark Lowe [mailto:[EMAIL PROTECTED] It was you post on the thread last week where i pick it up. Sorry, I'm apparently repeating myself! I can't remember last week this early in the morning. Good to know that its been addressed, but I'm on

Re: Using Tomcat declarative security for my app

2004-03-24 Thread Sipe Informática
Thanks for your help, but it is not the problem... I deleted all about security in my web.xml to test only de filter mapping of the struts action servlet: servlet-mapping servlet-nameaction/servlet-name url-pattern/administrator/*.do/url-pattern /servlet-mapping With this

Re: Using Tomcat declarative security for my app

2004-03-24 Thread Mark Lowe
If you're using a javax.servlet.Filter and you then filter-mapping filter-nameMyFilter/filter-name url-pattern/administrator/*.do/url-pattern /filter-mapping you can also map to a servlet name rather than a url pattern but this seems what you want. On 24 Mar 2004, at 18:10,

Re: html:rewrite action problem

2004-03-24 Thread ruben
It works well, thanks. try page=/SomeAction.do On 24 Mar 2004, at 17:50, Ruben Pardo wrote: i've got the next tag html:rewrite action=/SomeAction?prefix=page=/SomePage and in the actionConfig action path=/SomeAction type=org.apache.type=org.apache.struts.actions.SwitchAction /action but i

Re: Using Tomcat declarative security for my app

2004-03-24 Thread Kris Schneider
You can use either path or extension mapping, but not a combination of both. So /administrator/* is okay and *.do is okay but /administrator/*.do is not. Quoting Mark Lowe [EMAIL PROTECTED]: If you're using a javax.servlet.Filter and you then filter-mapping

Re: Using Tomcat declarative security for my app

2004-03-24 Thread Mark Lowe
opps.. sorry for the dodgy info. in fact mine follow the /dir/* pattern. On 24 Mar 2004, at 18:45, Kris Schneider wrote: You can use either path or extension mapping, but not a combination of both. So /administrator/* is okay and *.do is okay but /administrator/*.do is not. Quoting Mark Lowe

RE: Struts Training Recommendations

2004-03-24 Thread Jeffrey Pearson
www.smart-soft.com Jeff Pearson Software Interface Specialist University of Southern California 213.821.0894 [EMAIL PROTECTED] -Original Message- From: Ashi Sharma [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 10:01 AM To: [EMAIL PROTECTED] Subject:Struts

RE: blocking bookmarked actions

2004-03-24 Thread Paul McCulloch
You code code your app to always use http POST, but block GETs. This may not be suitable if you've already written the app though! Paul -Original Message- From: Mark Shifman [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 18:17 To: Struts Users Mailing List Subject: blocking

Re: blocking bookmarked actions

2004-03-24 Thread Mark Shifman
where do I do the blocking? The action I am having problems with is a LookupDispatchAction and I get this kind of error message javax.servlet.ServletException: Request[/RechartFiles] does not contain handler parameter named method

RE: blocking bookmarked actions

2004-03-24 Thread Pady Srinivasan
Use only HTTP POST and send a hidden parameter which identifies the request origin. So if this is not set, redirect to some default page. Thanks -- pady [EMAIL PROTECTED] -Original Message- From: Mark Shifman [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 1:17 PM To:

RE: blocking bookmarked actions

2004-03-24 Thread Paul McCulloch
class. Paul -Original Message- From: Mark Shifman [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 18:32 To: Struts Users Mailing List Subject: Re: blocking bookmarked actions where do I do the blocking? The action I am having problems with is a LookupDispatchAction and I get

RE: Struts validator Regular Expressions

2004-03-24 Thread Takhar, Sandeep
don't quote me but the javadocs for jakarta's regular expression's RE class are ok. Also I believe everything is based on jakarta's oro. sandeep -Original Message- From: Joao Batistella [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 1:33 PM To: 'Struts Users Mailing List

RE: blocking bookmarked actions

2004-03-24 Thread Paul McCulloch
To: 'Struts Users Mailing List' Subject: RE: blocking bookmarked actions The way I achieved this was to extend ActionServlet so that a GET or POST parameter was added to the request, and extended RequestProcessor to deal with the get's differently. If you just need to catch calls

RE: blocking bookmarked actions

2004-03-24 Thread Wendy Smoak
From: Mark Shifman [mailto:[EMAIL PROTECTED] where do I do the blocking? The action I am having problems with is a LookupDispatchAction and I get this kind of error message javax.servlet.ServletException: Request[/RechartFiles] does not contain handler parameter named method

Re: Dynamic forward in tiles

2004-03-24 Thread Pedro Salgado
Below is a reply sent to this mailing list about something very similar to what you are looking for. Hope it helps, Pedro Salgado Hi Robert.. I guess you could achieve the same using the controllerClass attribute and building your class.. For instance, I have this definition in the

Re: blocking bookmarked actions

2004-03-24 Thread Mark Shifman
Thanks. Unfortunately LookupDispatchAction checks for the parameter an throws an error before it gets a chance to use unspecified(), but it should be easy enough to modify it and then override dispatchActions unspecified(). mas Wendy Smoak wrote: From: Mark Shifman [mailto:[EMAIL PROTECTED]

RE: Submit Once, Validate Twice -- but how ?

2004-03-24 Thread Pady Srinivasan
I don't have sample code but are you looking for something like this: // in Action execute... ActionErrors errors = new ActionErrors(); // add errors... ... // set in request request.setAttribute(org.apache.struts.action.ERROR, errors); // forward to same page... Thanks -- pady [EMAIL

Re: Submit Once, Validate Twice -- but how ?

2004-03-24 Thread Frank Schaare
Hi, thank you, that helps. Now i still need to know how to access the input page (set in action mapping with the input=sample.jsp tag)... I don't have sample code but are you looking for something like this: // in Action execute... ActionErrors errors = new ActionErrors(); // add errors...

RE: Submit Once, Validate Twice -- but how ?

2004-03-24 Thread Joe Germuska
At 3:58 PM -0500 3/24/04, Pady Srinivasan wrote: I don't have sample code but are you looking for something like this: // in Action execute... ActionErrors errors = new ActionErrors(); // add errors... ... // set in request request.setAttribute(org.apache.struts.action.ERROR, errors); // forward

RE: blocking bookmarked actions

2004-03-24 Thread Wendy Smoak
From: Mark Shifman [mailto:[EMAIL PROTECTED] Unfortunately LookupDispatchAction checks for the parameter an throws an error before it gets a chance to use unspecified(), but it should be easy enough to modify it and then override dispatchActions unspecified(). What version? I think

Re: Struts validator Regular Expressions

2004-03-24 Thread Frank Schaare
Hi, this should be very close to \d{1,3}[.]\d{1,3}[.]\d{1,3}[.]\d{1,3} I need to validate an IP address and I don't know how is the syntax in the validator config file. take your time to study this: http://java.sun.com/docs/books/tutorial/extra/regex/ It's worth the trouble, regex rox !

Re: Submit Once, Validate Twice -- but how ?

2004-03-24 Thread Haroon Rafique
On Today at 9:58pm, FS=Frank Schaare [EMAIL PROTECTED] wrote: FS Hi, FS FS thank you, that helps. FS FS Now i still need to know how to access the input page (set in action FS mapping with the input=sample.jsp tag)... Hopefully you will see Joe's response in the same thread, which has the

Re: i18n with Japanese characters and tags....

2004-03-24 Thread Jason Lea
:8080/struts-example/tour.do Did you mean that if I were to just take this code and modify it to display these characters? Or is the example somewhere else? From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re

Re: Basic question about ActionForms

2004-03-24 Thread Hubert Rabago
Marco, This could be caused by how your mappings are configured. If you can send more information, someone might spot the cause. Hubert --- Marco Mistroni [EMAIL PROTECTED] wrote: Hi all, In my app I am using a DynaActionForm with scope = session. When I am calling the action for the

Re: redirect=true and Tiles; does it work?

2004-03-24 Thread atta-ur rehman
Any takers? ATTA - Original Message - From: atta-ur rehman [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 10:17 AM Subject: redirect=true and Tiles; does it work? Dear all, I've been struggling with this problem for about two days

Re: redirect=true and Tiles; does it work?

2004-03-24 Thread Hubert Rabago
--- atta-ur rehman [EMAIL PROTECTED] wrote: Any takers? I'll give it a shot. ATTA - Original Message - From: atta-ur rehman [EMAIL PROTECTED] global-forwards forward name=invalidToken path=showInvalidTokenMessage.do redirect=true / /global-forwards I believe the

Re: Dynamic forward in tiles

2004-03-24 Thread Mike Foody
I have a similar question. I would like to insert at runtime multiple instances of the same layout and set a property at that time. I didn't see a way to do this via the documentation and so extended the TilesTool with the following code. Is there something I've missed? If not is the code

Re: Dynamic forward in tiles

2004-03-24 Thread Mike Foody
I apologize if I didn't mention it but I'm using the Velocity tiles tool. Maybe that would be a better place for this question. Mike Mike Foody wrote: I have a similar question. I would like to insert at runtime multiple instances of the same layout and set a property at that time. I

RE: redirect=true and Tiles; does it work?

2004-03-24 Thread David Friedman
, March 24, 2004 5:12 PM To: Struts Users Mailing List Subject: Re: redirect=true and Tiles; does it work? Any takers? ATTA - Original Message - From: atta-ur rehman [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 10:17 AM Subject: redirect

Re: redirect=true and Tiles; does it work?

2004-03-24 Thread atta-ur rehman
calls the test action with the browser confirmation. Does it make better sense now? Thanks for your help. ATTA - Original Message - From: Hubert Rabago [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 2:13 PM Subject: Re: redirect=true

Re: Dynamic forward in tiles

2004-03-24 Thread Pedro Salgado
On 24/03/2004 22:45, Mike Foody [EMAIL PROTECTED] wrote: I apologize if I didn't mention it but I'm using the Velocity tiles tool. Maybe that would be a better place for this question. Well the solution for your problem is the one below. I don't if your using velocity to generate your

Re: html:options where values have embedded quotes

2004-03-24 Thread Doug
Anyone? Doug wrote: We have some customer-supplied selection options that have double quotes in their values, and Struts 1.1 isn't seeming to handle this correctly. Best I can tell from the HTML spec, these should be placed on the page as quot; , which will submit them as %22 , which *should*

Re: redirect=true and Tiles; does it work?

2004-03-24 Thread Hubert Rabago
--- atta-ur rehman [EMAIL PROTECTED] wrote: TestProcessAction just forwards to success forward. But before it does that it check for the valid token and in the case of an invalid token it just forwards (redirects) to the invalidToken global forward. On invalid token message press refresh

Re: redirect=true and Tiles; does it work?

2004-03-24 Thread atta-ur rehman
, 2004 3:07 PM Subject: Re: redirect=true and Tiles; does it work? --- atta-ur rehman [EMAIL PROTECTED] wrote: TestProcessAction just forwards to success forward. But before it does that it check for the valid token and in the case of an invalid token it just forwards (redirects

Re: redirect=true and Tiles; does it work?

2004-03-24 Thread Hubert Rabago
- From: Hubert Rabago [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 3:07 PM Subject: Re: redirect=true and Tiles; does it work? --- atta-ur rehman [EMAIL PROTECTED] wrote: TestProcessAction just forwards to success forward. But before

Re: redirect=true and Tiles; does it work?

2004-03-24 Thread atta-ur rehman
See inline, please. - Original Message - From: Hubert Rabago [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 3:56 PM Subject: Re: redirect=true and Tiles; does it work? Is this correct? 1. User submits the form to /processTest.do

RE: pre-populating DynaValidatorForm

2004-03-24 Thread Yee, Richard K,,DMDCWEST
) dafc.newInstance(); formBean.set(myProperty, someValue); request.setAttribute(myDynaForm,formBean); -Richard -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 7:48 AM To: Struts Users Mailing List Subject: Re: pre-populating DynaValidatorForm

<    1   2   3   4   5   6   7   8   9   10   >