R: Servlet filter

2004-06-03 Thread Andrea M.
Hi Shilpa I'm not sure you really need to use Filters for this purpose with Struts. I think if you make sure you never access pages directly (maybe putting them under WEB-INF... I've never done this but I know it's possible) but always thru actions, then it shouldn't be difficult to implement a

R: Struts Tag Library

2004-06-02 Thread Andrea M
I agree with Rick Of corse you could use struts tags without Struts framework, but there's no point in doing so: Tags like bean, logic and iterate are almost entirely supplanted by JSTL The only struts tag that is still useful is html: but is designed to work together with ActionServlet, so using

R: Struts Tag Library

2004-06-02 Thread Andrea M
: Struts Tag Library 2cents If you plan to use model 1 - use jstl If you plan to use model 2 - use struts /2cents :-) Leon -Ursprüngliche Nachricht- Von: Andrea M [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 2. Juni 2004 11:55 An: 'Struts Users Mailing List' Betreff: R: Struts Tag

R: From bean into for loop

2004-05-24 Thread Andrea M.
Hi Andy I'm afraid you are mixing jsp scriptlet with JSTL grammar You can use two approaches: If you want to use scriptlet (like you are doing now) You must of course declare it, e.g. like jsp:useBean id=productData class=com.mypackage.Myclass scope=session|request|page/ Then if tou want to use

R: html:option and c:out tags

2004-05-21 Thread Andrea M
Ops..typed it wrong Correction: html-el:options collection=${optionList} property=${optionList.optionID} labelProperty=${optionList.optionName}/ -Messaggio originale- Da: Andrea M [mailto:[EMAIL PROTECTED] Inviato: venerdì 21 maggio 2004 7.39 A: 'Struts Users Mailing List' Oggetto: R

R: html:option and c:out tags

2004-05-20 Thread Andrea M
Hi Padala Why don't you use html-el:options collection=optionList property=${optionList.optionID} labelProperty=${optionList.optionLabel}/ instead of manually cycling thru with c:forEach ? -Messaggio originale- Da: PADALA, SANDHYA (SBCSI) [mailto:[EMAIL PROTECTED] Inviato: giovedì 20

R: Struts and JAAS

2004-05-18 Thread Andrea M.
A: Struts Users Mailing List Oggetto: Re: Struts and JAAS Each application just logs into a different JAAS realm (each of these has its own stack of login modules, but sounds like you only need one per realm). Hope that guides you a little. regards, Sean On Tue, 2004-05-18 at 09:22, Andrea M

R: Struts Taglib recommendations

2004-05-18 Thread Andrea M.
That's a pretty vague question There's plenty of taglib out there Please specify what you are looking for, cause I don't think you'll find people here writing you a comprehensive list of all of the taglibs existent :) Andrea -Messaggio originale- Da: news [mailto:[EMAIL PROTECTED] Per

R: Struts Taglib recommendations

2004-05-18 Thread Andrea M.
Why that? I use currently Struts + JSTL Actually the only struts taglib I use is html or html-el What have using the mvc and build 3 tier to do with using struts taglib vs JSTL??? -Messaggio originale- Da: Rosenberg, Leon [mailto:[EMAIL PROTECTED] Inviato: martedì 18 maggio 2004 14.06

R: Filtering ApplicationResources.properties file

2004-05-18 Thread Andrea M.
Hi Ramil I don't quite understand what you are trying to achieve Why should you want to filter properties? -Messaggio originale- Da: Ramil Mirhasanov [mailto:[EMAIL PROTECTED] Inviato: martedì 18 maggio 2004 12.46 A: Struts Users Mailing List Oggetto: Filtering

R: Filtering ApplicationResources.properties file

2004-05-18 Thread Andrea M.
- Original Message - From: Andrea M. [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 3:22 PM Subject: R: Filtering ApplicationResources.properties file Hi Ramil I don't quite understand what you are trying to achieve Why should you want

R: Filtering ApplicationResources.properties file

2004-05-18 Thread Andrea M.
?? - Original Message - From: Andrea M. [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 3:47 PM Subject: R: Filtering ApplicationResources.properties file Ramil I don't think you need to filter your properties You display your errormessages thru your

R: R: Struts Taglib recommendations

2004-05-18 Thread Andrea M.
You can find them at http://www.displaytag.org and http://cewolf.sourceforge.net/ -Messaggio originale- Da: Dean A. Hoover [mailto:[EMAIL PROTECTED] Inviato: martedì 18 maggio 2004 15.05 A: Struts Users Mailing List Oggetto: Re: R: Struts Taglib recommendations Andrea M. wrote: Other

R: R: Struts and JAAS

2004-05-18 Thread Andrea M.
Could you provide an example of how to do it? I think if it's a matter of application configuration then the appserver should not make any difference, as long as I use jdk 1.4 and j2ee 1.3 -Messaggio originale- Da: Sean Radford [mailto:[EMAIL PROTECTED] Inviato: martedì 18 maggio 2004

R: Sharing what I've learned: locale switching

2004-05-17 Thread Andrea M.
Hi Jan What do you mean with sharing user chosen locale? Does your user access thru a common login application? If it's something like that, then you might share your Locale putting it in session Session.setAttribute(myLocale, myLocale); Then retrieving it in the other applications with

R: About multiple Resourcebundles

2004-05-17 Thread Andrea M.
Yes that's the way you access the bundles. Your web.xml has nothing to do with message resources However... instead of asking will it work? perhaps it would be a better idea to try it out first, and eventually ask why didn't it work? then :) Andrea -Messaggio originale- Da: SMETS

R: Struts 1.1 XHTML [html:form]

2004-05-17 Thread Andrea M.
Hi Yoann Why do you need a name on your form? In Struts it usually identifies the name of the actionForm it uses, but that is usually set in struts-config. If a unique identifier of the form then 'styleId' attribute might be what you want, since it renders an 'id' attribute (ibid

R: [very OT] 16 kb limit in XML from Tomcat?

2004-05-17 Thread Andrea M.
Hmm I don't know about this 16k limit, but AFAIK you can set any kind of content type in your jsp. JSPs are ultimately servlets (once translated), so you have no limit in content types e.g. I used to set text/xml for creating dynamic JNLP files with jsps -Messaggio originale- Da:

R: R: Sharing what I've learned: locale switching

2004-05-17 Thread Andrea M
2004 14.31 A: Struts Users Mailing List Oggetto: Re: R: Sharing what I've learned: locale switching Andrea M. wrote: Hi Jan What do you mean with sharing user chosen locale? Does your user access thru a common login application? If it's something like that, then you might share your Locale putting

R: App-level globals

2004-05-17 Thread Andrea M
Yeah Probably Struts' plugins are the most straightforward thing for you. Plugins are components that Struts loads once at startup, and they are often used (I use them in that way too) to load shared resources (like datasources) in servletcontext before every other component is load.

R: Indexed property throws exception - HELP!

2004-05-17 Thread Andrea M
I've seen in another list someone resolving a problem like this using ArrayList instead of the interface List It's odd but the guy claims it worked. Maybe a bug in PropertyUtils.. don't honestly know. This is the link if you are interested http://www.junlu.com/msg/45025.html -Messaggio

R: use of session object in Action Form?

2004-05-17 Thread Andrea M
Correct Whatever the reason you need to access the session, you can do that using the request passed to the two methods Atta mentions. Getting a reference to the session from the request is trivial: HttpSession session = request.getSession(); -Messaggio originale- Da: atta-ur rehman

R: java.lang.IllegalArgumentException: No bean specified

2004-05-17 Thread Andrea M
Hi Paraman These are the two actions you're talkin' about: action path=/selectProcessAreas name=processAreasForm scope=session type=cmmieval.web.struts.actions.SelectProcessAreasAction input=/prepareEvaluation.do forward name=success path=/executeEvaluation.do/ /action action

R: **--Message Resource problem--**

2004-05-16 Thread Andrea M
Hi Raman Can you post here your Properties file? Maybe it's a matter of caps Another chance is that you have more than one message-resources entries in your config, and that ApplicationResources.properties is not the default one: if it's so, then you have to specify which one to use with bundle

R: html:options

2004-05-16 Thread Andrea M
Hi Raman I would rather suggest you to put in your scope an ArrayList of beans, each one eventually with getName() and getLabel() (or whatever you like) So.. in that case, if your collection is stored as dummyList then you could access it like this: html:options collection= dummyList

R: Maintaining form data across pages...

2004-05-16 Thread Andrea M
Hi I'm not sure I've understood properly what you need What I understand is that you are trying to populate the same actionform using several pages. The problem is that struts *always calls reset()* every time it access the form. What you can do is making your pages set a flag in the request, so

R: How to set an ActionForm to null

2004-05-15 Thread Andrea M
Well.. this is how it usually works: - Your jsp posts the data to the mapped Action - The ActionServlet intercepts the request, checks on your struts-config.xml which actionform it needs to use and in which scope it can be found. - If there's no such actionform in the scope then the ActionServlet