Unable to set the radio butons value using form beans

2004-08-20 Thread jacob skariah
Hi , Can any body tell me how to retrive and set the value for the radio buttons.Using the form Beans. what i am doing now is if i want to display the values o the jsp page. I fetch the data from database manually populate the form bean and send it to the jsp page. and all the feilds are populate

Re: accessing collections without iterating.

2004-08-20 Thread Antony Paul
I dont want(In fact I can't) create a new class file for this. I just wanted to know if it is possible. This is not a pure Struts project and using some Java is not a problem. Thanks for the replies. In next project I will use a wrapper class which extends ArrayList with a method as Michael said.

Re: null with Action Error Messages !!

2004-08-20 Thread jacob skariah
Hi, I have given the error messages in my properties file. and the messages also are displayed correctly on the jsps, but the problem is i get two additional "null" string in the front and end of the error messages. I dont know why this happens. Can any body have come accross such a problem.

> does not clear all on the page ?

2004-08-20 Thread lixin chu
Hi, A new problem: I have a Clear button which suppose to clear the input fields. However, when I use bean:write to display the current value on the page, and disable reset() in the ActionForm, after pressing Clear button, the value in Form (session scope) is still displayed on the page. is it exp

Re: mutable variable in ActionForm is always reset to ture ?

2004-08-20 Thread lixin chu
thank you very much for your promopt response ! I found out the problem: I used a wrong attribute name when I save the form in prepareAction, which causing a new form being created after submitting the JSP file (html:form) --- Rick Reumann <[EMAIL PROTECTED]> wrote: > lixin chu wrote: > > > I s

Re: mutable variable in ActionForm is always reset to ture ?

2004-08-20 Thread Rick Reumann
lixin chu wrote: I suspect that the mutable variable is reset when rendering the JSP file. But I do not know why. and if it is true, how do I disable this so 'mutable' will not be reset ? Can you be more specific at the times when the 'mutable' variable is not set as you expect? Remember reset is

mutable variable in ActionForm is always reset to ture ?

2004-08-20 Thread lixin chu
Hi, Could not figure out why the mutable variable is always reset to true. Here is the snipet of my session scoped ActionForm: .. private boolean mutable = true; public void setMutable(boolean mutable) { this.mutable = mutable; } public boo

Re: form problem

2004-08-20 Thread Kishore Senji
On Fri, 20 Aug 2004 18:52:46 -0600, Lucero, Dennis M <[EMAIL PROTECTED]> wrote: > Does anyone know how to do this or why it does not work? > That's how java works. Java copies and passes the reference by value. So assignments to a copy of the reference will not change the original object. Refer:

RE: form problem

2004-08-20 Thread Lucero, Dennis M
Yes thanks, you get the result I wanted by overwriting the bean in request/session scope with the name used in struts config. (name attrib in action mapping struts-config.xml) -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 7:31 PM To: Str

Re: form problem

2004-08-20 Thread Niall Pemberton
Struts creates and stores the ActionForm in request or session scope. If you create a new form to replace the one automatically created by Struts, you also need to store it under the appropriate key in either the session or request. Look at the the processActionForm() method in RequestProcessor -

RE: form problem

2004-08-20 Thread Mick . Knutson
Try the Bean.populate() method. This will make copying from different beans much easier. -Original Message- From: Lucero, Dennis M [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 5:53 PM To: [EMAIL PROTECTED] Subject: form problem Does anyone know how to do this or why it does n

form problem

2004-08-20 Thread Lucero, Dennis M
Does anyone know how to do this or why it does not work? Both these methods would be called from an action class. Function void useMyForm(ActionForm form){ SomeFormClass myForm = new SomeFormClass(); myForm.setName("Blah"); myForm.setAge("289"); etc... form = myForm; } When I get to the j

Re: Help with ProcessDispatchAction?

2004-08-20 Thread Niall Pemberton
Know nothing about scaffold, but looking at the source seems like you need to specify a "Helper" class thats a "ProcessBean" along with a method name as a pair of parameters separated by a semi colon. http://cvs.apache.org/viewcvs.cgi/jakarta-struts/contrib/scaffold/ http://cvs.apache.org/viewcvs.

Re: FormBean values are null

2004-08-20 Thread Niall Pemberton
Without seeing what you're doing all anyone can do is guess, much better if you post a question with full info. Post the jsp showing your form for ActionB on and relevant bits of struts-config and someone might be able to help you. Niall - Original Message - From: "Dhaliwal, Pritpal (HQ

Re: Help with ProcessDispatchAction?

2004-08-20 Thread struts Dude
Sorry I wasn't clear. ProcessDispatchAction is from scaffold package org.apache.struts.scaffold.ProcessDispatchAction - Original Message - From: "Niall Pemberton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, August 21, 2004 12:11 PM Subject: Re

RE: FormBean values are null

2004-08-20 Thread Dhaliwal, Pritpal (HQP)
How am I connecting the actions? I don't quiet get the question. But if I call the action /ActionB.do?EventID=1 And in the execute function, I go request.getParameter("EventID"); I get a null. It seems like as if parameters have been scraped off the request or something. The request is not

Re: Help with ProcessDispatchAction?

2004-08-20 Thread Niall Pemberton
Struts has DispatchAction, MappingDispatchAction and LookupDispatchAction flavours but no ProcessDispatchAction. http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/actions/ So where is ProcessDispatchAction? Niall - Original Message - From: "struts Dude" <[EMA

Help with ProcessDispatchAction?

2004-08-20 Thread struts Dude
Can someone show me how I can use ProcessDispatchAction as DispatchAction in struts-config.xml? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: FormBean values are null

2004-08-20 Thread Ruben Cepeda
How are you connecting the actions? My thinking is that somehow the request is been funfill before you go to action B * Ruben Cepeda [EMAIL PROTECTED] * Original Message Follows From: "Dhaliwal, Pritpal (HQP)" <[EMAI

FormBean values are null

2004-08-20 Thread Dhaliwal, Pritpal (HQP)
So here is the deal.. ActionA is input for ActionB They both share the ABFormBean, ABFormBean has some properties.. For both actions, validate=false, scope=request When I hit submit on ActionA and it goes to ActionB, the values in the ABFormBean are null. I don't know why. I event did request.g

RE: Uploading files to a database

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Jim Barrows > Sent: Friday, August 20, 2004 1:14 PM > To: Struts Users Mailing List > Subject: RE: Uploading files to a database > > > > > > -Original Message- > > From: Ivan Vasquez [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 20, 2004 1:04

RE: Uploading files to a database

2004-08-20 Thread Daniel Kalcevich
We use Struts to Upload files and store them as BLOB's in DB2. We have code similar to the following: **FORM** public void setufile(org.apache.struts.upload.FormFile uFile) { this.uFile = uFile; } private org.apache.struts.upload.FormFile getUFile () { return uFile; } **ACTION**

Re: Uploading files to a database

2004-08-20 Thread Axel Seinsche
Ivan Vasquez schrieb: Hi, What's the preferred way to upload files into a database in a J2EE Web application? Is there any way to stream the file straight from the HttpServletRequest to the database without staging it in the server's filesystem? Thank you, Ivan. That's how I use it. But in m

Re: Uploading files to a database

2004-08-20 Thread Erik Weber
I think Oracle Intermedia lets you create a BLOB directly from an InputStream. But I prefer to keep my files on the file system and just put meta data about them in the database. If you decide to write to the file system, the example file upload webapp that comes with Struts is nice. It uses j

RE: Uploading files to a database

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Ivan Vasquez [mailto:[EMAIL PROTECTED] > Sent: Friday, August 20, 2004 1:04 PM > To: [EMAIL PROTECTED] > Subject: Uploading files to a database > > > Hi, > > What's the preferred way to upload files into a database in a J2EE Web > application? > > Is ther

Uploading files to a database

2004-08-20 Thread Ivan Vasquez
Hi, What's the preferred way to upload files into a database in a J2EE Web application? Is there any way to stream the file straight from the HttpServletRequest to the database without staging it in the server's filesystem? Thank you, Ivan. ---

Re: What's happening with include tags?

2004-08-20 Thread Erik Weber
Yes, if you want to parameterize the included JSP at runtime, you have to do it the way you are doing it. However, you can also use a static include, and just use c:set with page scope before you include your header: <"c" taglib declaration> (included page will have access to the page scoped

Re: What's happening with include tags?

2004-08-20 Thread David Durham
Slattery, Tim - BLS wrote: Beats me. Clearly I don't understand the difference. The header.jsp page needs to have a parameter passed to it, and it looks like the syntax is the only way to do that. You can use the syntax, but you'll have to treat the include as a completely seperate jsp file. E.

Re: What's happening with include tags?

2004-08-20 Thread Kris Schneider
Quoting David Durham <[EMAIL PROTECTED]>: > Kris Schneider wrote: > > > Which may, in fact, be a TC bug. Just tried it on WLS 8.1 SP3 and it > > worked > > I don't think it's a bug. > > > <%@ include file="splitHeader.jspf" %> Body <%@ include > file="splitFooter.jspf" %> > > This is a stat

RE: drop down menu/submenu

2004-08-20 Thread Research labs
Thank to all of you, I will look into your suggestion. Ola. --- "Dhaliwal, Pritpal (HQP)" <[EMAIL PROTECTED]> wrote: > http://www.raibledesigns.com/struts-menu/index.jsp > > -Original Message- > From: Andrew Close [mailto:[EMAIL PROTECTED] > Sent: Friday, August 20, 2004 11:38 AM > To:

RE: What's happening with include tags?

2004-08-20 Thread Slattery, Tim - BLS
> BTW, it seems like you should be using <%@ include %> or am > I missing something? Beats me. Clearly I don't understand the difference. The header.jsp page needs to have a parameter passed to it, and it looks like the syntax is the only way to do that. -- Tim Slattery [EMAIL PROTECTED] --

Re: What's happening with include tags?

2004-08-20 Thread David Durham
Kris Schneider wrote: Which may, in fact, be a TC bug. Just tried it on WLS 8.1 SP3 and it worked I don't think it's a bug. > <%@ include file="splitHeader.jspf" %> Body <%@ include file="splitFooter.jspf" %> This is a static include -- meaning that the contents splitHeader, body, and splitFoot

RE: drop down menu/submenu

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Andrew Close [mailto:[EMAIL PROTECTED] > Sent: Friday, August 20, 2004 11:38 AM > To: Struts Users Mailing List > Subject: Re: drop down menu/submenu > > > On Fri, 20 Aug 2004 19:23:20 +0100 (BST), Research labs > <[EMAIL PROTECTED]> wrote: > > Please, is th

Re: What's happening with include tags?

2004-08-20 Thread Kris Schneider
Which may, in fact, be a TC bug. Just tried it on WLS 8.1 SP3 and it worked fine: Header Body Footer Quoting Kris Schneider <[EMAIL PROTECTED]>: > True. But even if you use the include directive, you can't split your tags. > For > example, try: > > split.jsp: > -- > <%@ page contentType

Re: What's happening with include tags?

2004-08-20 Thread Kris Schneider
True. But even if you use the include directive, you can't split your tags. For example, try: split.jsp: -- <%@ page contentType="text/plain" %> <%@ include file="splitHeader.jspf" %> Body <%@ include file="splitFooter.jspf" %> splitHeader.jspf: - Header splitFooter.jsp

RE: drop down menu/submenu

2004-08-20 Thread Dhaliwal, Pritpal (HQP)
http://www.raibledesigns.com/struts-menu/index.jsp -Original Message- From: Andrew Close [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 11:38 AM To: Struts Users Mailing List Subject: Re: drop down menu/submenu On Fri, 20 Aug 2004 19:23:20 +0100 (BST), Research labs <[EMAIL PRO

Re: Question about Scaffold

2004-08-20 Thread Hubert Rabago
Before somebody flags me, I'll correct myself. IIUC, Apache projects don't have a concept of "lead" developers, at least officially. So saying Mr. X is the lead developer for an Apache project/subproject would be officially inaccurate. On Fri, 20 Aug 2004 13:41:37 -0500, Hubert Rabago <[EMAIL PRO

Re: Question about Scaffold

2004-08-20 Thread Hubert Rabago
Since scaffold is a struts subproject, I think this is the "official" user list for it. There's also a commons-scaffold, though, so may also want to try the commons lists. I believe Ted Husted is the lead developer for the scaffold extensions; not sure if there are other developers now working on

Re: errors get lost on redirect

2004-08-20 Thread Axel Seinsche
Hubert Rabago schrieb: Well, not really set the input, but you can direct the request to the correct one in your java code. First off, set validate=false on the action. Then, in your action, call the form's validate() yourself. Lastly, if there are validation errors, call saveErrors() to save the

Re: drop down menu/submenu

2004-08-20 Thread Andrew Close
On Fri, 20 Aug 2004 19:23:20 +0100 (BST), Research labs <[EMAIL PROTECTED]> wrote: > Please, is there anything built into Struts for > creating drop down menu/submenu? yep. check out theand tags. http://struts.apache.org/userGuide/dev_html.html i believe the users guide has a couple of e

Re: What's happening with include tags?

2004-08-20 Thread Erik Weber
There are two types of JSP includes, static and dynamic. You appear to be using the dynamic variety. A statically included JSP (using jsp:directive.include) becomes part of the same Servlet as the including JSP at JSP compilation/Servlet generation time. A dynamically included JSP's output is p

drop down menu/submenu

2004-08-20 Thread Research labs
Please, is there anything built into Struts for creating drop down menu/submenu? If there isn't, can you please suggest the best way to go about this. I want my users to be able to go from one jsp screen to another by choosing from a menu item. Thank you. Ola.

What's happening with include tags?

2004-08-20 Thread Slattery, Tim - BLS
This isn't strictly a Struts question, but it involves struts tags, and it's driving me NUTS! My page looks something like this: <%@ page language="java" %> <%@ page session="false"%> <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %> <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> <

RE: Struts login with JAAS (Part 2)

2004-08-20 Thread Seaman, Sloan
I'm messing with this right now myself. Quick question that may help (or I may be way off as I am just starting with this).. It the handler you are passing to the LoginContext a singleton? If it is, shouldn't you stay logged in until you somehow call logout()? Again.. Still learning this myself

Re: Deploying Struts ???

2004-08-20 Thread Craig McClanahan
On Fri, 20 Aug 2004 14:14:46 -0300, Lucas Gonzalez Pearson <[EMAIL PROTECTED]> wrote: > If you deploy two different war to a jboss server, the one that is deployed > the latest will be used. > I am experiencing this problem. Maybe Jboss classloader is does not support > hierarchies? I am not a JBo

Re: Deploying Struts ???

2004-08-20 Thread James Mitchell
May or may not be related, but... http://www.mail-archive.com/[EMAIL PROTECTED]/msg08398.html -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Lucas Gonzalez Pearson" <[EMAIL PROTECTED]> To: "Struts Users

RE: Question about Scaffold

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Ruben Cepeda [mailto:[EMAIL PROTECTED] > Sent: Friday, August 20, 2004 9:45 AM > To: [EMAIL PROTECTED] > Subject: RE: Question about Scaffold > > > I am using the Scaffold ResultSetUtils class. Sorry, I mean actively building and extending it. I'm using Ba

Re: Struts + Tomcat 5.0/ JSP 2.0+ JSTL

2004-08-20 Thread Kris Schneider
;-) So, just to clarify, Struts-EL is really only useful with JSP 1.2. It doesn't allow request-time expressions for tag attributes since the EL evaluation is done by the taglib, not the container. In JSP 2.0, however, EL evaluation has been incorporated into the container so that any taglib whose

RE: Question about Scaffold

2004-08-20 Thread Ruben Cepeda
I am using the Scaffold ResultSetUtils class. * Ruben Cepeda [EMAIL PROTECTED] * Original Message Follows From: "Jim Barrows" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts

Re: Deploying Struts ???

2004-08-20 Thread Lucas Gonzalez Pearson
I thought so, but try renaming a .war file, and redeploying it, we had Smith.war and John.war, and whenever Smith deployed his war, all his classes would replace the ones that John had deployed before... The only solution we found was to split tomcat and jboss, and smith and john now have each one

Question: Struts Workflow extension - primary and secondary workflow

2004-08-20 Thread lixin chu
Hi, I am looking for some good document on Workflow extension - especially detail explaination on primary and secondary workflow: * when do I need to define a new primary workflow ? * how does this extension work with LookupDispatchAction ? any example code is very much appreciated ! thanks li x

RE: Deploying Struts ???

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Lucas Gonzalez Pearson [mailto:[EMAIL PROTECTED] > Sent: Friday, August 20, 2004 10:15 AM > To: Struts Users Mailing List > Subject: Re: Deploying Struts ??? > > > If you deploy two different war to a jboss server, the one > that is deployed > the latest wi

Re: Deploying Struts ???

2004-08-20 Thread Lucas Gonzalez Pearson
If you deploy two different war to a jboss server, the one that is deployed the latest will be used. I am experiencing this problem. Maybe Jboss classloader is does not support hierarchies? - Original Message - From: "Jim Barrows" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMA

Re: Struts with Flex

2004-08-20 Thread Vic Cekvenich
also: http://theserverside.com/articles/article.tss?l=RiA .V Dhaliwal, Pritpal (HQP) wrote: http://www.javadesktop.org/articles/JDNC/index.html -Original Message- From: Mike Duffy [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 8:30 AM To: Struts Users Mailing List Subject: Re: Str

Re: errors get lost on redirect

2004-08-20 Thread Hubert Rabago
On Fri, 20 Aug 2004 17:19:24 +0200, Axel Seinsche <[EMAIL PROTECTED]> wrote: > Bill Siggelkow schrieb: > > > I don't understand exactly why you are doing the redirect? Why not > > just set the input attribute to be the page you are redirecting to ... > > then Struts will forward to it when validat

Re: Tiles: multiple layers of layout

2004-08-20 Thread Michael McGrady
Bill Schneider wrote: The idea is that most tiles extend .mainLayout and look like HEADER [body] FOOTER But some tiles extend .nestedLayout instead, which in turn extends .mainLayout for two layers of navigation: HEADER Nested Header [nested body] Nested Footer FOOTER T

RE: Struts with Flex

2004-08-20 Thread Dhaliwal, Pritpal (HQP)
http://www.javadesktop.org/articles/JDNC/index.html -Original Message- From: Mike Duffy [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 8:30 AM To: Struts Users Mailing List Subject: Re: Struts with Flex Could you please provide some good reference links for JDNC. Thx. Mike -

Question about Scaffold

2004-08-20 Thread Jim Barrows
Is anyone developing or working on struts scaffold? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts + Tomcat 5.0/ JSP 2.0+ JSTL

2004-08-20 Thread Rick Reumann
Rick Reumann wrote: This is why in my example I was pointing out to Erez that, even though he's in a 1.2 container, I meant JSP 2.0 ... gets confusing when talking about Struts1.1, 1.2 and then JSP2.0:) -- Rick - To unsubscrib

Re: Struts + Tomcat 5.0/ JSP 2.0+ JSTL

2004-08-20 Thread Rick Reumann
Vic Cekvenich wrote: Good point. 2.0 mens everyting is el. Actually yes, but not necessary the struts html tags. From what I remember you can't just use expressions in the regular html tags in Struts 1.1 because of the way they are declared. In Struts 1.2 they fix this. Look a the ... declaratio

RE: Deploying Struts ???

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Lykins Don H Contr AFSAC/ITS [mailto:[EMAIL PROTECTED] > Sent: Friday, August 20, 2004 8:47 AM > To: 'Struts Users Mailing List' > Subject: RE: Deploying Struts ??? > > > What are you referring to as a "classpath loader"?? Sorry.. class loader. > > Won't

Re: Deploying Struts ???

2004-08-20 Thread Jason King
The container can manage multiple versions of the classes. Each one is living in its own environment. Lykins Don H Contr AFSAC/ITS wrote: What are you referring to as a "classpath loader"?? Won't this cause conflicts if each project has their own WAR with struts inside? What happens if they use

RE: Deploying Struts ???

2004-08-20 Thread Lykins Don H Contr AFSAC/ITS
What are you referring to as a "classpath loader"?? Won't this cause conflicts if each project has their own WAR with struts inside? What happens if they use different versions of Struts in each WAR file? -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Friday, Augus

RE: Deploying Struts ???

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Lykins Don H Contr AFSAC/ITS [mailto:[EMAIL PROTECTED] > Sent: Friday, August 20, 2004 8:25 AM > To: 'Struts Users Mailing List' > Subject: RE: Deploying Struts ??? > > > so how do you suggest we deploy struts? > each developer bundle struts in their own WAR

RE: errors get lost on redirect

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Axel Seinsche [mailto:[EMAIL PROTECTED] > Sent: Friday, August 20, 2004 8:19 AM > To: Struts Users Mailing List > Subject: Re: errors get lost on redirect > > > Bill Siggelkow schrieb: > > > I don't understand exactly why you are doing the redirect? Why not

RE: out getter

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Frers Michael [mailto:[EMAIL PROTECTED] > Sent: Friday, August 20, 2004 1:58 AM > To: Struts Users Mailing List > Subject: C:out getter > > > Hello > can someone explain me how i should use the situation: > > > i have a bean "theBean" with a getter > >

RE: accessing collections without iterating.

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Antony Paul [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 8:32 PM > To: Struts Users Mailing List > Subject: Re: accessing collections without iterating. > > > I think no because there is no property. > The first List(list1) is storing another

Re: Struts with Flex

2004-08-20 Thread Mike Duffy
Could you please provide some good reference links for JDNC. Thx. Mike --- Vic Cekvenich <[EMAIL PROTECTED]> wrote: > I also posted that after developing on Flex and Laslo... I switched to > JDNC becuase I fodun it much faster! > I have a site now on baseBeans.com on RiA/SoA. > .V > > Ovidiu

RE: different inputs in struts-config

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Sebastian Ho [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 6:26 PM > To: Struts Users Mailing List > Subject: Re: different inputs in struts-config > > > Thanks Susan. > > Refer to my comments below > > Sebastian Ho > > > On Thu, 2004-08-19

RE: Deploying Struts ???

2004-08-20 Thread Lykins Don H Contr AFSAC/ITS
so how do you suggest we deploy struts? each developer bundle struts in their own WAR files? -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 11:12 AM To: Struts Users Mailing List Subject: RE: Deploying Struts ??? > -Original Message

Asunto: errors get lost on redirect

2004-08-20 Thread Guillermo Meyer
Sometimes when you MUST perform a redirect for some reason (once we have a problem with multipart forms...) and there are errors in the request scope you lost them. We solve this problem as follows: In the action, where you do saveErrors, just do: this.saveErrorsInSession(request, errors); in a

Re: Templates to Tiles opinion

2004-08-20 Thread bmf5
Thanks for the advice. I've already been in the code this AM and put dynamic screen titles in the header. We'll make it happen. Michael McGrady

Re: errors get lost on redirect

2004-08-20 Thread Axel Seinsche
Bill Siggelkow schrieb: I don't understand exactly why you are doing the redirect? Why not just set the input attribute to be the page you are redirecting to ... then Struts will forward to it when validation fails. Can I set the input attribute in my Java Code? I thought I have to define it in

RE: dealing with check boxes

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 5:19 PM > To: Struts Users Mailing List > Subject: Re: dealing with check boxes > > > Anuj, > Thanks for you reply. But My concern is as follows. > > e.g. > > I display

RE: Deploying Struts ???

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Lykins Don H Contr AFSAC/ITS [mailto:[EMAIL PROTECTED] > Sent: Friday, August 20, 2004 7:57 AM > To: '[EMAIL PROTECTED]' > Subject: Deploying Struts ??? > > > Looking for pointers on how to best deploy struts based, JSP > applications. > I am using JDevelop

Re: errors get lost on redirect

2004-08-20 Thread Bill Siggelkow
I don't understand exactly why you are doing the redirect? Why not just set the input attribute to be the page you are redirecting to ... then Struts will forward to it when validation fails. Axel Seinsche wrote: Hi all, in my struts application I have 4 forms which have to be filled to store an

RE: Complex web 'stacks' in Struts

2004-08-20 Thread Jim Barrows
> -Original Message- > From: Stuart Guthrie [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 11:14 PM > To: Struts Users Mailing List > Subject: Re: Complex web 'stacks' in Struts > > > Thanks for your answer. However this is fine as a technique > to enable me > to fire an '

Re: Templates to Tiles opinion

2004-08-20 Thread Michael McGrady
Pilgrim, Peter wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I've recently inherited a system in development that was started using templates instead of tiles. My question is - is there much effort to convert from templates to tiles. Secondly, is it recommend

Deploying Struts ???

2004-08-20 Thread Lykins Don H Contr AFSAC/ITS
Looking for pointers on how to best deploy struts based, JSP applications. I am using JDeveloper 10G which ships with Struts source... deploying to Jrun. Scenario: I am one of 2 programmers, each developing a separate JSP , but sharing a common database When each JSP is developed and deployed a

RE: Templates to Tiles opinion

2004-08-20 Thread Pilgrim, Peter
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > > I've recently inherited a system in development that was started using > templates instead of tiles. My question is - is there much effort to > convert from templates to tiles. Secondly, is it recommended? Y

Re: C:out getter

2004-08-20 Thread struts lover
Use the Then use --- Frers Michael <[EMAIL PROTECTED]> wrote: > Hello > can someone explain me how i should use the tag in my situation: > > > i have a bean "theBean" with a getter > > > getText(String textid){ > ... > ... > return result; > } > > and somewhere ist set: > > session.s

Re: null with Action Error Messages !!

2004-08-20 Thread struts lover
Check your properties file. --- jacob skariah <[EMAIL PROTECTED]> wrote: > Hi, > >I am having problem while displaying my Action > Errors on the jsp pages. The problem is two "null" > messages are displayed in the begining and end of > the > action error messages displayed on the jsps. >

Re: different inputs in struts-config

2004-08-20 Thread struts lover
Hi , You can validate using LookupDispatchAction class. The validation.xml will take care of it. Also if you want to do other business side validations, you can do it in your methods in the action class. --- Susan Bradeen <[EMAIL PROTECTED]> wrote: > Sebastian Ho <[EMAIL PROTECTED]> wrote on >

Re: different inputs in struts-config

2004-08-20 Thread Susan Bradeen
Sebastian Ho <[EMAIL PROTECTED]> wrote on 08/19/2004 09:25:38 PM: > Thanks Susan. > > Refer to my comments below > > Sebastian Ho > > > On Thu, 2004-08-19 at 21:23, Susan Bradeen wrote: > > Sebastian Ho <[EMAIL PROTECTED]> wrote on 08/19/2004 05:19:35 > > AM: > > > > > hi > > > > > > I us

Re: Struts login with JAAS (Part 2)

2004-08-20 Thread Erik Weber
Hmm, well, I hope that I turn out to be wrong here. I tried it myself and couldn't get it to work. Please let me know how it goes. Erik Leandro Melo wrote: Hi Erik, i was not missing that, i just forgot to tell you that... - JBoss actually propagates it`s security suff to Tomcat and vice-versa. I

Re: Struts login with JAAS (Part 2)

2004-08-20 Thread Leandro Melo
Hi Erik, i was not missing that, i just forgot to tell you that... - JBoss actually propagates it`s security suff to Tomcat and vice-versa. I got this information from the JBoss forum (http://jboss.org/index.html?module=bb&op=viewtopic&t=53202). Then i tested it myself with a simple login using j_

Re: Struts + Tomcat 5.0/ JSP 2.0+ JSTL

2004-08-20 Thread Kris Schneider
What do you mean by, "over the net"? Even though the uri attribute of a taglib directive usually looks like a net location, it's really just a unique identifier for the taglib. If you try hitting http://jakarta.apache.org/struts/tags-html, all you'll get is a 404 error. To me, the simplest thing to

errors get lost on redirect

2004-08-20 Thread Axel Seinsche
Hi all, in my struts application I have 4 forms which have to be filled to store an item in the database. All 4 forms are inherited from one abstract form class. As form 3 depends on data from 1 I didn't find a better solution, but it works. The problem is the following. When I submit form 4 I

Re: Tiles: multiple layers of layout

2004-08-20 Thread Bill Schneider
The idea is that most tiles extend .mainLayout and look like HEADER [body] FOOTER But some tiles extend .nestedLayout instead, which in turn extends .mainLayout for two layers of navigation: HEADER Nested Header [nested body] Nested Footer FOOTER The nested header+body+

Re: Struts login with JAAS (Part 2)

2004-08-20 Thread Erik Weber
Sorry to hear that you are so mad, it is indeed frustrating to try to work with APIs that are poorly documented, but, I think you're still missing one thing I've been saying . . . Leandro Melo wrote: Hi Erik, the point is that i actually changing my approach. I gave up for a moment the action="

Templates to Tiles opinion

2004-08-20 Thread bmf5
I've recently inherited a system in development that was started using templates instead of tiles. My question is - is there much effort to convert from templates to tiles. Secondly, is it recommended? I'm in a time crunch as I'm learning Struts as I go and deadlines have to be met. I'm not

Re: Struts + Tomcat 5.0/ JSP 2.0+ JSTL

2004-08-20 Thread Vic Cekvenich
Good point. 2.0 mens everyting is el. Also, I declare tld to pont to /WEB-INF and not over the net. .V Jason Lea wrote: I also changed to tomcat 5.0 + JSP 2.0. You can stop using the struts-el tags and just use the normal struts tags. Erez Efrati wrote: Hi, I am working with Struts 1.1 + JST 1.0

Re: Struts login with JAAS (Part 2)

2004-08-20 Thread Leandro Melo
Hi Erik, the point is that i actually changing my approach. I gave up for a moment the action="j_security_check" (i'm using j_username and j_password just to make it similar just because they names were already there when i tried something with j_security_check) thing and pointed the action of my

Re: null with Action Error Messages !!

2004-08-20 Thread Erik Weber
Are these form validation error messages you are talking about? Could the two nulls be the header and footer? Seems like if you left those blank you would just get no output, but I always have them set to something so I don't know. Just a guess. Erik jacob skariah wrote: Hi, I am having probl

Re: Language Bundles outside of WAR's

2004-08-20 Thread Markus
One easy way, which I use during editing HTML pages is unpack war, rename folder to webappname.war and copy and paste your changed pages into folder. Kind regards, Markus > I just had a requirement of placing the language bundles for my > webapplication outside of WAR's so they can be more easil

Re: dealing with check boxes

2004-08-20 Thread anuj . upadhyay
OK, so you are having a problem getting the checked state in the first place. I suspect that you are not implementing / using the indexed attribute correctly. Check you implementation or post the code as well. Some websites that may be helpful: http://www.jguru.com/forums/view.jsp?EID=1154155 h

Language Bundles outside of WAR's

2004-08-20 Thread Björn Ingimundarson
I just had a requirement of placing the language bundles for my webapplication outside of WAR's so they can be more easily edited. I´m running JBOSS and it's works to have Language bundles uniquely prefixed with the webapp name and placed in the server/conf directory, but I would like to place

C:out getter

2004-08-20 Thread Frers Michael
Hello can someone explain me how i should use the didnt work Someone knows the solution? Thanks for any help Michael

RE: input and output form

2004-08-20 Thread Paul McCulloch
You don't need to populate a form for output. Forms are needed when you want to gather user input. Using your example I would have a form to gather the search criteria. Submitting the form to the first action would gather a list of employess and store that list in a request scope attribute. It wou

Re: validate() in ActionForm still uses ActionErrors in 1.2.1

2004-08-20 Thread Niall Pemberton
ActionError is deprecated but ActionErrors is not. Replace ActionError with ActionMessage but leave ActionErrors as they are. Niall - Original Message - From: "Alex Lui" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 20, 2004 6:08 AM Subject: validate() in ActionForm s

  1   2   >