R: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Andrea M.
Mah Sincerely... there are features in IDEs that I don't know how would I do without.. like code insight... web descriptor (and even struts descriptor) editing.. and so on Of course I could do everything with notepad, but that often means getting crazy just to find a simple syntax error, or event

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 cal

R: Struts Tag Library

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

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 but is designed to work together with ActionServlet, so using it out

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 Then if tou want to use "someCount" property in you scriptlet you have to stick with usual java syntax: <

R: Multiple Databases.

2004-05-20 Thread Andrea M
Hi I don't use Tomcat personally, but in almost all of the appservers out of there you find an implementation of javax.sql.DataSource. What you do usually is to configure your pools in the appserver's configuration file, where you put all of the coordinates, then you access them thru JNDI e.g. Da

R: and tags

2004-05-20 Thread Andrea M
Ops..typed it wrong Correction: -Messaggio originale- Da: Andrea M [mailto:[EMAIL PROTECTED] Inviato: venerdì 21 maggio 2004 7.39 A: 'Struts Users Mailing List' Oggetto: R: and tags Hi Padala Why don't you use instead of manually cycling thru with mailto:[

R: and tags

2004-05-20 Thread Andrea M
Hi Padala Why don't you use instead of manually cycling thru with mailto:[EMAIL PROTECTED] Inviato: giovedì 20 maggio 2004 22.41 A: Struts Users Mailing List Oggetto: RE: and tags Thanks Tim, I could solve my issue with the el tags. Now I am using el tags in other places, Life is easy now.

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 1

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: >Ot

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

R: Filtering ApplicationResources.properties file

2004-05-18 Thread Andrea M.
Ramil - 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

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 ApplicationResources.prop

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.0

R: Struts Taglib recommendations

2004-05-18 Thread Andrea M.
glibs mostly to iterate and display collections of beans. There might be some logical branching ( equals, bigger than, smaller than ) involved. I've used the struts taglibs extensively but find some parts of it, beans nested several levels for example, quite tedious to work with. //Linus &

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 co

R: Struts and JAAS

2004-05-18 Thread Andrea M.
Inviato: martedì 18 maggio 2004 11.05 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

Struts and JAAS

2004-05-18 Thread Andrea M.
Hello all I've got a dilemma trying to implement JAAS in my struts applications. This is the problem: I have more applications running in the same instance of the appserver (jrun 4 in my case, but I think the same thing is applicable to the others). Each application has its own database with its o

R: java.lang.IllegalArgumentException: No bean specified

2004-05-17 Thread Andrea M
Hi Paraman These are the two actions you're talkin' about: Now I see that the first one forwards a processAreasForm to the second, which in turn accepts evaluationForm That's very likely to be your problem So.. you have three options I guess - The one you found: setting the "

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 [mail

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 origin

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. -Messag

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

2004-05-17 Thread Andrea M
Inviato: lunedì 17 maggio 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

R: JSTL 1.1 EL not working :(

2004-05-17 Thread Andrea M.
Hi Daniel Please tell us which container you are using JSTL 1.1 require JSP 2.0 + servlet 2.4 AFAIK the only ones that actually implement those specs are: Tomcat 5 SunOne 8 Jboss 4 If you are using other containers (e.g. Tomcat 4x) you need to use JSTL 1.0, that only require JSP 1.2 + servlet 2.3

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: Kran

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 then 'styleId' attribute might be what you want, since it renders an 'id' attribute (ibid http://jakarta.apach

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: 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 (Local

R: Maintaining form data across pages...

2004-05-16 Thread Andrea M
the JSP controls, even it was in session. -Original Message- From: Andrea M [mailto:[EMAIL PROTECTED] Sent: Sunday, May 16, 2004 1:11 PM To: 'Struts Users Mailing List' Subject: R: Maintaining form data across pages... Hi I'm not sure I've understood properly what you need W

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 yo

R:

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: Where property attribute will be the value

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: 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 i