Re: logic tag

2004-05-09 Thread Craig McClanahan
[EMAIL PROTECTED] wrote: I am new to struts. I have a question regarding logic tag. I was replacing those if else if . end if stuffs with logic tags on jsp pages. For example: if num==1 {// condition 1 block 1; }else if num==2 {// condition 2 block 2; } Usually if condition 1 is true, con

Re: Storing global data in the servletContext

2004-05-09 Thread Craig McClanahan
Jacob Weber wrote: I have a lot of data that needs to be available to all users, at any time (for example, the contents of drop-down menus, which I loaded from an XML file). From all the posts I've seen here, the recommended place to store global data seems to be the servletContext. Most people

Re: Storing global data in the servletContext

2004-05-09 Thread Joe Germuska
At 10:43 AM -0400 5/9/04, Jacob Weber wrote: Thanks. I'm glad you made sense of my question. :) If I do this, can I still use Struts tags that refer to a bean? Taking the drop-down menu example, if I store it directly in the servletContext, I can do: But if I store it in the servletContext as "m

Re: How to get http and https port # from struts-config in filter?

2004-05-09 Thread Mark Lowe
Okay I see what you mean now, I don't use sslext as it seems like a struts plugin that could just as well be done using a filter or even mod_rewrite in apache (for deployment). If you're using a filter anyway why not write another one to deal with all this stuff the sslext does? On 9 May 200

Re: upgrading to jstl

2004-05-09 Thread Mark Lowe
Hi dean The tomcat examples all use the 2.4 web xml spec and the el is setup from there. If you're web apps are 2.3 and/or 2.2 flavoured Copy the jstl and standard jars from the Tomcat 5 JSP examples WEB-INF/lib into your lib directory in your jsps no need to configure web.xml its all the JAR

RE: How to get http and https port # from struts-config in filter?

2004-05-09 Thread Martin Alley
The point is the current request is not using the http port. The only thing that tells me the port # I require is in a config file - struts-config.xml (or potentially tomcat server.xml) -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 09 May 2004 18:41 To: Struts Users

Re: How to get http and https port # from struts-config in filter?

2004-05-09 Thread Mark Lowe
I see what you mean.. Seeing as you got as far as reading the getScheme() bit of the javadoc you could push the boat out and explore it further for something more up your street. request.getServerPort() The 2.4 servlet spec has some other methods to do the same thing. http://jakarta.apache.o

[ANN] FCKEditor 1.6 released

2004-05-09 Thread Simone - Dev
Hello all, Since previously I mentioned my being involved in the development of this HTML editing tool I want to announce the first release of FCKEditor with real integration with JSP. (Struts will come in a future time). This HTML editor (DHTML editor), for Java, ASP, ASP.NET, ColdFusion, PHP and

Re: Storing global data in the servletContext

2004-05-09 Thread Brian Lee
OK, that makes a bit more sense. I guess I got thrown by your "It sounds like you are the use case for EJB!" statement that I thought when you said bean in the next sentence you meant EJB. Also, I believe that some application servers will cluster the servlet context along with the httpsessions

Re: logic tag

2004-05-09 Thread Sven Kiesewetter
[EMAIL PROTECTED] wrote: I am new to struts. I have a question regarding logic tag. I was replacing those if else if . end if stuffs with logic tags on jsp pages. For example: if num==1 {// condition 1 block 1; }else if num==2 {// condition 2 block 2; } Usually if condition 1 is true, con

Re: upgrading to jstl

2004-05-09 Thread Dean A. Hoover
Thanks. I am using Tomcat 5 but I could not figure out how to get at the JSTL stuff. I ended up grabbing the JSTL from sun and copying TLDs and jars into my local lib directory for the application (struts is there) and that works. I got version 1.1. I am currently reading the final spec for JSTL a

logic tag

2004-05-09 Thread vancega
I am new to struts. I have a question regarding logic tag. I was replacing those if else if . end if stuffs with logic tags on jsp pages. For example: if num==1 {// condition 1 block 1; }else if num==2 {// condition 2 block 2; } Usually if condition 1 is true, condition 2 does not be eva

[OT]evaluation aspects

2004-05-09 Thread Ajay Brar
hi! i read somewhere that there are 6 aspects of evaluation in an IT context ie applications requirements, IT requirements, resource requirements and so on can someone tell me more about these and/or any place where i coud find out more about these evaluation aspects. thanks

Re: Storing global data in the servletContext

2004-05-09 Thread Jacob Weber
In article <[EMAIL PROTECTED]>, Joe Germuska <[EMAIL PROTECTED]> wrote: > Looking back at the original email, I would guess that the things > read from XML config files could pretty safely be stored in each > ServletContext -- assuming they don't change after initialization -- > drop down menu

Re: Storing global data in the servletContext

2004-05-09 Thread Joe Germuska
At 9:37 AM -0400 5/9/04, Brian Alexander Lee wrote: That's interesting, so you recommend having an EJB (running in the ejb container) to manage data put into user sessions and servlet contexts (running in the web container)? I wouldn't go that far -- but then again, I'm not much of an EJB develope

Re: DynaValidatorForm in struts

2004-05-09 Thread Sven Kiesewetter
Zhang, Larry (L.) wrote: When using DynaValidatorForm, you just put the fields in the struts configuration xml file, and you don't need a formbean to set all the fields manually, which in turn saves your developing time. I am asking in struts community, is there any reason/encouragement for not us

Re: Storing global data in the servletContext

2004-05-09 Thread Brian Alexander Lee
That's interesting, so you recommend having an EJB (running in the ejb container) to manage data put into user sessions and servlet contexts (running in the web container)? What's the advantage to this technique? Because it seems to have a lot of overhead if you have to serialize the entire servle

Re: Storing global data in the servletContext

2004-05-09 Thread Joe Germuska
It sounds like you are the use case for EJB! As for your "other question," I would always advise using one (or a few beans) to manage everything you put into a session or application context, as much as you can logically encapsulate that. It'll make your life easier in the long-run, believe

Re: Overriding RequestProcessor for sesion validationi

2004-05-09 Thread Jacob Weber
Thanks for all your help. I decided to ditch RequestProcessor and just make base action classes. I made one for Action, one for DispatchAction, and one for ForwardAction. It means a little redundancy, but I feel like this is better integrated into the Struts framework. This way I have access to

Re: Overriding RequestProcessor for sesion validationi

2004-05-09 Thread Michael McGrady
Why don't you just use MessageResources? At 03:13 AM 5/9/2004, Sven Kiesewetter wrote: GMaine wrote: Hi. I wonder if someone can help me. I'm trying to override RequestProcessor to check whether a user has logged in. If he has, I'll let the request proceed. If not, I'd like to forward him somewher

Storing global data in the servletContext

2004-05-09 Thread Jacob Weber
I have a lot of data that needs to be available to all users, at any time (for example, the contents of drop-down menus, which I loaded from an XML file). From all the posts I've seen here, the recommended place to store global data seems to be the servletContext. Most people are setting up a

Tiles - getting parent attribute?

2004-05-09 Thread John Moore
I've just started getting into Tiles, and am having some difficulty getting my head around some of the nesting concepts. I'm hoping someone can show me the way to do what is rather a simple task. I seem to have ended up again with the requirement to have a JSP tag evaluated to provide the value

RE: BaseDispacthAction?

2004-05-09 Thread Erez Efrati
Hi James, could you please be more specific about this recursion bug? I am using the 1.1 version so it would help.. Erez -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 7:50 PM To: 'Struts Users Mailing List' Subject: RE: BaseDispacthAction?

Re: Overriding RequestProcessor for sesion validationi

2004-05-09 Thread Sven Kiesewetter
GMaine wrote: Hi. I wonder if someone can help me. I'm trying to override RequestProcessor to check whether a user has logged in. If he has, I'll let the request proceed. If not, I'd like to forward him somewhere. The problem is, I need to display an error message if I'm redirecting the user. I'm t

Referer http header not set for struts redirects

2004-05-09 Thread Martin Alley
Hi, It would appear the http redirect header is not set when struts does a redirect as dictated by a forward element with redirect attribute true. Is this a quirk of struts, or standard behaviour for http redirects? Thanks Martin ---