extending the Struts custom tags

2002-02-10 Thread Mike D
we have developed a framework on our project which dynamically writes out correct tags on the page, including value data and properties. For example: xx:cmp name=person property=name could either write out an anchor tag or just the value of the person's name property - depending on permissions

Re: Multiple ad-hoc Forms.

2002-02-10 Thread Ted Husted
It doesn't really sound like a framework issue to me. I'd start by thinking about how you would do this with any servlet, JSP, or CGI application, and proceed from there. You probably want to write a dynamic page, based on a configuration record that has been stored someplace. If you have a

FormFile questions

2002-02-10 Thread flare
I've a classic from where users can insert name, last name etc.. and a photo, everything is ok but: 1 - the file is uploaded before the form is validated, so may happen one should wait a couple of minutes before knowing the data inserted is not valid (okok I know that's not a struts issue ;)

TILES: using Defenitions as Forwards in Struts 1.1 dev

2002-02-10 Thread Hertzel Karbasi - OPTinity eBusiness Solutions
Hello All I'm using Contrib/Tiles (Last version) with Struts Nightly build and trying using tutorials: Definitions as forward. It seems that ActionComponentServlet is not compatible with struts nightly build (1.1 dev) as the following occurs:

Setting a Bean in an Action and Getting it on a Page

2002-02-10 Thread cody.burleson
Can someone help me with this? 1. In an Action, I populate the value of a Bean. 2. Then, in the Action, I put the Bean in the session like this: session.setAttribute(theUserList,userList); 3. On a JSP page, when I use tags to try to get at the Bean, however, I think I am only

Re: TILES: using Defenitions as Forwards in Struts 1.1 dev

2002-02-10 Thread Ted Husted
Yes, for the time being, the Nightly Build cannot be used with Tiles. While this is being resolved, you can use recent Struts 1.1 JAR here: http://husted.com/struts/resources/struts_1_1a.zip Hertzel Karbasi - OPTinity eBusiness Solutions wrote: Hello All I'm using Contrib/Tiles (Last

Re: Setting a Bean in an Action and Getting it on a Page

2002-02-10 Thread Ted Husted
You might find the Struts bean tags easier to use that the standard JSP actions, since there is not as much red tape involved. For example, to simply write your test string bean:write name=theUserList property=testString/ is all that is needed. The tag will figure out the rest =:o)

Re: Setting a Bean in an Action and Getting it on a Page

2002-02-10 Thread Gloria Williams
You are putting the bean in the session context (session.setAttribute...) and looking for it in the request context (jsp:bean...scope=request...). Be consistent. bob - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, February 10,

Re: Setting a Bean in an Action and Getting it on a Page

2002-02-10 Thread cody.burleson
Thanks, Ted! You are the almighty Struts super-hero. But, one more question... To use bean:write Do I need to still declare the bean first with jsp:bean - Cody Ted Husted [EMAIL PROTECTED] on 02/10/2002 09:18:18 AM Please respond to Struts Users Mailing List

Re: Setting a Bean in an Action and Getting it on a Page

2002-02-10 Thread Ted Husted
No. That's what I meant by red tape :) [EMAIL PROTECTED] wrote: Thanks, Ted! You are the almighty Struts super-hero. But, one more question... To use bean:write Do I need to still declare the bean first with jsp:bean - Cody Ted Husted [EMAIL PROTECTED] on

performance over iterate

2002-02-10 Thread Alberto Bolchini
hi all. I'm using a nightly build with the nested extension tags. I expose to the View (jsp) a Component bean (GoF Composite pattern) and I need to have a 4 level iteration over the Component's children. These can be Composite (and thus _have_ children) or Leaf (and thus have no

struts-nested defining a root

2002-02-10 Thread CyberZombie
I have an action that creates a form and forwards that to a display-only page. After struggling many hours trying NOT to use an html:form, I gave up. Issues: 1. nested:root needs more than just name. It should include full scope/property semantics. 2. nested:define, nested:iterate et.al.

Screen Flow based on UserAgent in Struts

2002-02-10 Thread Sam Cheung
Hi, Is there a way to config Struts to forward a different jsp based on the User Agent of the HTTP Request? I would like to use the User Agent to identify the client type (e.g. where desktop or a mobile phone) and send out either HTML content or WML content. I come up this idea, I am wondering

RE: Implementing HTTPS in Struts

2002-02-10 Thread Steve Ditlinger
Robert, All: We have added SecureFormTag as an extension to FormTag for our implementation of HTTPS/HTTP web application switching. SecureFormTag will determine if the action specified as the action attribute value should be called using SSL or not. The HTML form element it creates will then

How to use the TEI

2002-02-10 Thread Syed Niaz
Hi, Iam a novice . I dont understand as to how to harness the power of TagExtraInfo . Basically ,I dont understand what exactly it is for . Can anybody help me or point me to a useful resource on the net ?? Thanks Regards, Syed Niaz -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

mapping jsp *.do how to ?

2002-02-10 Thread Arik Levin ( Tikal )
I need to map all my JSP's to - *.something - not just the actions JSP's. How should I do this? Should I write some base action and use it as some handler or there is an other way?

Re: extending the Struts custom tags

2002-02-10 Thread Mike D
(Ted) Well, the main features I'm after is the MVC model: i.e. the Controller with it's action mappings, the Actions and the Form handling. I really like how the ActionForms create a nice request handling and user entry model. The validate() method, the custom tags that populate with data if

Best way to go about learning Views with Struts?

2002-02-10 Thread theron . kousek
Hi Folks: I very versed with Java Swing ui programming as well as server side programming via servlets and jsp. I also understand the MVC architecture having done MFC and then JFC so I understand about models and views and components. Being new to struts, I am familiarizing myself with the

RE: How to use the TEI

2002-02-10 Thread Robert Taylor
Here's the url to the JSP1.2 Spec http://www.jcp.org/aboutJava/communityprocess/final/jsr053/. It may shed some light on the topic. I don't use them much. As I understand it, they are used to expose variables associated with a customer tag(in a specified scope) to the JSP page so that you don't

Returned mail: User unknown

2002-02-10 Thread Mike Campbell
The original message was received at Sun, 10 Feb 2002 16:00:11 0500 - The following addresses had permanent fatal errors - [EMAIL PROTECTED] - Transcript of session follows - ... while talking to mail.s1.com: RCPT To:[EMAIL PROTECTED] 550 [EMAIL PROTECTED]... User

tiles tutorial problem?

2002-02-10 Thread theron . kousek
Hi Folks: I'm doing the tiles tutorial at: http://www.lifl.fr/~dumoulin/tiles/doc/tutorial.html It says: Copy directory tutorial/images from the distribution tutorial directory to your examples root directory

Re: Screen Flow based on UserAgent in Struts

2002-02-10 Thread cody.burleson
I believe the USR AGENT is passed in the request header. You should, therefor be able to easily get a handle on it using your Action object. To enumerate through all header names available: java.util.Enumeration e = request.getHeaderNames(); while(e.hasMoreElements()) { String name =

Re: mapping jsp *.do how to ?

2002-02-10 Thread cody.burleson
You can map JSPs without having to pass through Action objects by simply defining the JSPs as Global Forwards in your struts-config file: global-forwards forward name=addUser path=/admin/admin_userForm.jsp/ /global-forwards So, in the above example, calling addUser.do will just get me

Re: mapping jsp *.do how to ?

2002-02-10 Thread Bob Williams
If you have mapping turned on (*.do) for your Struts servlet, only those url's that end in '.do' will go through the servlet. Or put another way, any url that does not end with '.do' will be processed as is by the servlet engine. bob - Original Message - From: [EMAIL PROTECTED] To:

AW: Ant PropertyFile question - Ant newbie

2002-02-10 Thread Thomas Christen
Nop, Unfortunatly PropertyFile works only at file level. Regards Tomy -Ursprüngliche Nachricht- Von: Jeff [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 29. Januar 2002 16:36 An: [EMAIL PROTECTED] Betreff: Ant PropertyFile question - Ant newbie Thomas, I have been tasked

Re: extending the Struts custom tags

2002-02-10 Thread Ted Husted
The typical approach is to populate existing beans from the ActionForms (in the Action), since most beans are really not suited for data entry in a hostile, String-centric HTTP environment. For output, the existing beans would actually be preferred, since the ActionForm beans are really tuned

Re: performance over iterate

2002-02-10 Thread Arron Bates
Alberto, I've found that the viewable performance is also in the time it takes for the browser to render the Html. NS6 IE6 it usually isn't that bad, but use NS4 and you'll see it. I ran the Monkey example in NS4 and it almost killed it. :) It did render, but it took a while. But, I then

Re: struts-nested defining a root

2002-02-10 Thread Arron Bates
I didn't realise that this was posted on the user list as well. For the benefit of any readers... nested:root requires only the name of a bean which is in scope. For example I use... jsp:useBean id=myBean scope=page class=com.km.struts.test.TesterBean/ nested:root name=myBean ...

String[] for html:select---Urgent

2002-02-10 Thread Rahul Chaudhary
The following error is being generated while using a String[] for html:select.Looking forward to your help. javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774) at

DETAIL/QUESTION: patterns.doc, 1.4.4 Struts CMV,Table 1.5 - Struts view helpers

2002-02-10 Thread cody.burleson
1.4.4 Struts CMV, Table 1.5 - Struts view helpers This part has me confused. I have been using a STRUTS-FORM libary tag that you do not mention here. Either the tag has been somehow wrapped into one of the other tags and I do not know it yet, or maybe you have forgotten it. I am guessing that

Re:Validation of a FormBean used in multiple pages

2002-02-10 Thread cool dude
Hi Guys, I'm a newbee to struts so I'm filled with questions (some of them are outrightly stupid at times :) ... herez one of the problems that I'm facing. The struts User Guide suggests that a form that spans across multiple pages should use form bean. This will lead to a situation where

URL handling problem with struts ...

2002-02-10 Thread cool dude
Hi, First lemme thank all of you guyz for the quick responses that I've got for most of my problems. Few of your suggestions have really helped me. But my problem with relative URL still remains. Maybe I didn't explain the problem in the right manner. Lemme tell you what the exact scenario

Poolman feedback from author

2002-02-10 Thread Adriano Labate
Hi, I recently asked the PoolMan's author whether he will continue the development of PoolMan. Below is its answer. Adriano Labate -Original Message- From: Sean Neville [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 10:47 PM To: 'Adriano Labate' Subject: RE: About