Removing all beans from a session

2001-11-29 Thread antony
Hi Folks Whats the best way to remove all beans in a session? Should I use getAttributeNames() and then loop through this and delete each one or is there a quicker way? Cheers Tony -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Directory structure of a Struts project

2001-11-29 Thread Shri
really depends on the complexity of your application. If you have just a few action classes, it may be OK. If there are far too many action classes, then perhaps it is good to separate actions and beans. WEB-INF/'YOUR TAG LIB' is preferred to keeping taglib under WEB-INF/classes/ Shri -Orig

Directory structure of a Struts project

2001-11-29 Thread antony
Hi I have a configuration layout question. At the moment I have all my Java programs in one directory both beans and Action classes, ie WEB-INF/classes/com/iamtestdomain/testproject -(1) and my taglibs in a the directory WEB-INF/classes/taglib -(2) Is this a good way to organize thing

RE: check for null collection

2001-11-29 Thread Thinh Doan
Thanks Joey, I got it working. does the trick. Thinh -Original Message- From: Joey Gibson [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 2:33 PM To: [EMAIL PROTECTED] Subject: Re: check for null collection If the collection is truly null, then will be false so you won'

RE: Getting line number in stacktrace

2001-11-29 Thread Brett Porter
compile with -g If you use ant, set debug="on" in the javac task. Also, don't compile with -O (set optimize="off"). - Brett -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, 30 November 2001 1:08 PM To: Struts Users Mailing List Subject: Getting line nu

Getting line number in stacktrace

2001-11-29 Thread antony
Hi I want to get a little more info when exceptions are thrown in my servlets. Here is an example of the output I am getting at the moment, TopAction.performAction() exception occured executing prepared statement. java.sql.SQLException: ERROR: parser: parse error at or near "" at org.p

RE: Problem with tag - still not working

2001-11-29 Thread Miroslav Stojanovic
> -Original Message- > From: BinhMinh Nguyen [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 29, 2001 5:42 PM > To: Struts Users Mailing List > Subject: Re: Problem with tag - still not working > > > Ted, > thanks for reply, I did what you suggested, but it > still does not work

Re: Problem with tag - still not working

2001-11-29 Thread BinhMinh Nguyen
Ted, thanks for reply, I did what you suggested, but it still does not work, I also double check the tld import statement. Do you have any idea why? thanks Binh --- Ted Husted <[EMAIL PROTECTED]> wrote: > Double check that the taglib is imported at the top > of the JSP. > > You can also set

Re: Does struts provide a function to escape special characters received from a form?

2001-11-29 Thread Ted Husted
I use prepared statements which escapes the text for me ;-) I've seen other people use utilities to escape the text, but this is not something that is provided by the framework. Struts is model neutral. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- T

Does struts provide a function to escape special characters received from a form?

2001-11-29 Thread antony
Hi Ladies and Gentlemen I want to insert data into a database. I have the database connection set up and in the case of data without special characters the insert works fine. However, the data is coming from a form on a html page and the user can insert special characters, in particualar cha

Re: Problem with tag

2001-11-29 Thread Ted Husted
Double check that the taglib is imported at the top of the JSP. You can also set null false in the web.xml so that it will report any missing message keys. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463

Problem with tag

2001-11-29 Thread BinhMinh Nguyen
For some reasons, this is no longer working for me :( can some one help me out? In the web.xml, I added this application ApplicationResources In the struts-config.xml, I added this: in the ACtionForm bean my validate method

RE: File Upload Problem.

2001-11-29 Thread Marli Satyadi
Hi Jon, I am trying to do file upload programatically, not using the browser and I want to use the struts file upload library to achieve this. So I want to try the library first by writing a simple html file and a simple servlet for testing. Does this mean that I cannot use the upload code if I

RE: File Upload Problem.

2001-11-29 Thread Marli Satyadi
Hi Mike, I tested both with IE 6.0 and Netscape 4.5. Both give the same problem. Any idea whether I'm sending the CRLF correctly ? Thanks. Marli. At 07:49 AM 11/29/2001 -0800, SCHACHTER,MICHAEL (HP-NewJersey,ex2) wrote: >Hi, > >What browser are you using to submit the form? Also, >you may alre

Mutliple lines of Form Fields from Iteration

2001-11-29 Thread MacKellar, Kimberly
I have a class called Tags which contains 5 fields each of which is a String. In an action form, I have a Vector of Tags. I need to be able to iterate over the vector to print out the values contained in tags as form fields that will then be submitted and hopefully put back into the Vector of Ta

RE: Design Help

2001-11-29 Thread Hicks, James
1) The relationship is a starting point. Basically, I would not pass an ActionForm to my business delegate (RentalBean). Doing so ties that delegate to the web interface. If you were wanting to create a Swing client in the future, you would have to create seperate business delegates for it. Try

RE: <%@ include File =" <%= includefile%> " %> is there a way doto this

2001-11-29 Thread Brett Porter
<%@taglib uri='/WEB-INF/tlds/struts-bean.tld' prefix='bean' %> <%@taglib uri='/WEB-INF/tlds/struts-logic.tld' prefix='logic' %> <%= content %> <%@include file="/welcome.jsp" %> The logic:present parameters might not be right - its first up in the morning :)

Re: Struts 1.1 HTML tag functionalities

2001-11-29 Thread Matt Raible
You might try the "JSP Standard Tag Library" currently under development at http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html - it has a tag that iterates and even handles RowSets! Matt --- Regis Brochu <[EMAIL PROTECTED]> wrote: > Hi, > I'm wondering if someone has implemente

Design Help

2001-11-29 Thread Naphtali Visser
Hi there... I'm a Java/Struts newbie, but a web developer oldie (Perl, ASP, Cold Fusion, blah blah blah). This is my first attempt. If someone could look at this design and give me some comments, I'd appreciate it. Excuse the pseudo-code or comments-instead-of-code in some places. Here are s

Re: Help with perform method

2001-11-29 Thread David Lauta
I meant action Perfor() method David Lauta wrote: > I sounds like you need to do three things: > > 1) Struts-config.xml add an input > > name="StrutsTestForm" >path="/StrutsTest" >type="web.StrutsTestAction" >input="/StrutsTest.jsp" >attribute="StrutsTestForm" > > >

Re: Help with perform method

2001-11-29 Thread David Lauta
I sounds like you need to do three things: 1) Struts-config.xml add an input Input is the path to return to on errors 2) In the JSP add the error tag 3) In either the Form.Validate() method or the action Validate method create the ActionErrors public ActionErrors validate(ActionM

Re: Hidden Field in a form. Do I use struts taglib or vanilla html?

2001-11-29 Thread Ted Husted
The cleanest thing is to put the ArrayList on the ActionForm. The syntax of the options tag is suboptimal, so you need to expose the property as a bean. So, you go through an Action, and have it setup the names list. If there's validation involved, use the same Action as the input path, s

Re: Hidden Field in a form. Do I use struts taglib or vanilla html?

2001-11-29 Thread David Lauta
Wow, Thanks Ted this is great info. I have narrowed my problem down to: I want to use a Tag on a form and I want the options to be populated when the form is first displayed. To do this I need to set an ArrayList of valueLabel pairs in the page Context pageContext.setAttribute("names", actionF

Re: Hidden Field in a form. Do I use struts taglib or vanilla html?

2001-11-29 Thread David Lauta
WOW Thanks Ted thisis great info. I have narrowed my problem down to: I want to use a Tag on a form I want the options to be Ted Husted wrote: > The general order of things is > > 1) Client requests an Action URI (the path from the ActionMapping) > 2) The container passes the request to the Ac

RE: session id is same for different Browser

2001-11-29 Thread Steve Bendiola
Gang, If you are using the same browser (opening 2 versions of IE, Netscape...), they could be sharing cookies, and thus the same session. "Gao, Gang" <[EMAIL PROTECTED]> wrote: >Hi, >I have a very strange case, When I logon to my site using two different >Browser, I print out the session id a

browser & platform compatibility

2001-11-29 Thread Elena Yee
Hi, I was wonder if the HTML generated by the Struts tag libraries are compatible in IE & Netscape as well as on Windows, AIX, solaris & HP systems? I don't seem to recall any documentation on this subject. Have anyone integrated and tested their applications on these platforms? Thanks, Elena

Re: check for null collection

2001-11-29 Thread Joey Gibson
If the collection is truly null, then will be false so you won't get into the tag body. To see if the collection is just an empty collection: Inside your you can use a combo of tags from the bean and logic taglibs: No records. record(s) And you don't have to do the since most o

Re: Help with perform method

2001-11-29 Thread Joey Gibson
> What I would like to do is that if there is some type > of error in this > method, I want to be able to do a > mapping.findForward("failure") and at the > same time be able to include some type of error > message to the user in the > failure page. My failure page is probably the same > form the

session id is same for different Browser

2001-11-29 Thread Gao, Gang
Hi, I have a very strange case, When I logon to my site using two different Browser, I print out the session id and find it is same. Actully I open two different Browsers on same machine. How does it have same session id. Please help me out. I use struts and weblogic6.0 as web server. I put some v

RE: Security for Actions or ActionClasses?

2001-11-29 Thread Fyodor Golos
Hmmm... So, what is the bottom line - stick to one particular servlet container? Or is it possible (and/or feasible) to implement security handling for multiple containers, say tomcat and resin? -Original Message- Subject: RE: Security for Actions or ActionClasses? Date: Thu, 29 Nov 20

Help with perform method

2001-11-29 Thread Juan Alvarado \(Struts List\)
Hi: I have a class called AddUserAction which of course extends Action. In the perform method what I will do is add a record to a table in a database. The values I will add I will of course get from the form object the method takes as one of its parameters. What I would like to do is that if the

Re: Hidden Field in a form. Do I use struts taglib or vanilla html?

2001-11-29 Thread Ted Husted
The general order of things is 1) Client requests an Action URI (the path from the ActionMapping) 2) The container passes the request to the ActionServlet 3) The ActionServlet looks up the mapping for the path 4) If the mapping specifies a form bean, the ActionServlet sees if there is one alread

Struts 1.1 HTML tag functionalities

2001-11-29 Thread Regis Brochu
Hi, I'm wondering if someone has implemented the following feature that appears in the Struts 1.1 todo list ? Or may be is it already available in the nightly build ? Improved Iteration Support. Improve the ability to use the tag over a collection, and generate a set of input fields for

Re: Hidden Field in a form. Do I use struts taglib or vanilla html?

2001-11-29 Thread David Lauta
Thanks for the reply, I understand that you would like me to seperate the UI from the Model Can you be more specific about 'The recommended control flow is to go through an Action first' I'm trying to get a one page does it all UI - Is there a tag I should use to invoke some kind of preprocess

RE: check for null collection

2001-11-29 Thread Thinh Doan
Thanks Bill. It works! Yes I do check for the presence of the collection. T. -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 9:16 AM To: 'Struts Users Mailing List' Subject: RE: check for null collection The way I do it is to creat

RE: Logout Action

2001-11-29 Thread Siggelkow, Bill
I am using form-based authentication on WLS 6.1 sp1 and do not see this behavior. -Original Message- From: Cameron Ingram [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 11:17 AM To: [EMAIL PROTECTED] Subject: Logout Action Hi all and thanks in advance! I have a link that I

Re: Removing session scope form bean on short-circuit

2001-11-29 Thread JEWeaver
Ah, thanks Ted. That is even more generic than a clean up form bean action. Sweet. Jim Jim Weaver Software Developer - ThoughtWorks -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Problem: JavaScript in StrutsForm

2001-11-29 Thread Wolfgang Frank
Hi David and Rob & everybody ! Thanks for your help! Your ideas were right. The problem is caused by the tag at the end of the form. I can still use this strus submit tag, when i give it a different 'propertyname' than 'submit' - which ist the default value. Here ist the code that works:

RE: Removing session scope form bean on short-circuit

2001-11-29 Thread JEWeaver
Thanks for the responses. >From Andrej: > what about subclassing the Struts Action and add a new method (that will be > available to all your new Actions) like > > protected void removeFormBean(ActionMapping mapping, >HttpServletRequest request) { I have a super

Re: Removing session scope form bean on short-circuit

2001-11-29 Thread Ted Husted
If they wander off and come back later, then I would call it a feature ;-) If they press cancel, though, it really should go away. You could use a utility Action in place of the global forwardings, that would remove the session bean, and then continue on to the original destination. The name of

Re: Struts Error Page Approach - Recommended / Struts Support

2001-11-29 Thread Ted Husted
Sometimes there is only a "business exception", other times there is an underlying exception followed by a business exception. So the business object is thrown a SQL error, wraps it, and throws its own version. Other times, there can be a business logic error that doesn't wrap anything else. Sand

Logout Action

2001-11-29 Thread Cameron Ingram
Hi all and thanks in advance! I have a link that I map to a logout.do action. In this action it basically cleans up the resources and so forth. It clears the objects that I loaded in to the session. It then invalidates the session and then sends the user to a new page. So here is the problem. T

Re: Hidden Field in a form. Do I use struts taglib or vanilla html?

2001-11-29 Thread Ted Husted
In Struts 1.0.1, init() is called if the ActionForm is instantiated by the JavaServer Page. In Struts 1.0, this only happens when the ActionForm is instantiated by the ActionServlet. Of course, any default values assigned to the fields in the ActionForm class itself will be available in either cas

RE: [ANNOUNCEMENT] Struts 1.0.1 Release Candidate 1

2001-11-29 Thread George, Carl
-Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 4:28 PM To: [EMAIL PROTECTED]; Struts Developers List; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [ANNOUNCEMENT] Struts 1.0.1 Release Candidate 1 The first Release

RE: File Upload Problem.

2001-11-29 Thread SCHACHTER,MICHAEL (HP-NewJersey,ex2)
Hi, What browser are you using to submit the form? Also, you may already be aware, but as mentioned by the other reply there's an easy way to handle multipart form data in Struts, you can check out the struts-upload webapp in the distribution for an example. As with your use of MultipartItera

RE: Help with DiskMultipartRequestHandler...

2001-11-29 Thread SCHACHTER,MICHAEL (HP-NewJersey,ex2)
Hi David, You don't use DiskMultipartRequestHandler directly. Multipart form handling is done transparently after you set up the correct form bean and html form. See the struts-upload example in the distribution. -Original Message- From: Firmin David [mailto:[EMAIL PROTECTED]] Sent: Thur

RE: Hidden Field in a form. Do I use struts taglib or vanilla html?

2001-11-29 Thread Jon.Ridgway
Hi, No. You need (I think) to code it yourself. See my previous response to 'hidden tag and request object'. It would be nice if you could specify that you wanted your form pre-populated. Jon. -Original Message- From: David Lauta [mailto:[EMAIL PROTECTED]] Sent: 29 November 2001 14

Re: Struts Error Page Approach - Recommended / Struts Support

2001-11-29 Thread Sandeep Takhar
Thanks Ted & Paul. As always, a useful piece of the puzzle. Just wondering what you need the isCause() method. I read the article about exception handling, but when you write the detail message -- won't this write the cause out for you? Where would you not have the cause? Also: the business

RE: check for null collection

2001-11-29 Thread Siggelkow, Bill
The way I do it is to create a variable using the bean:size tag that represents the size of the collection ... Then I check if that value is 0 as follows ... (in addition you might want to also check if the collection is present as you are doing)

RE: Security for Actions or ActionClasses?

2001-11-29 Thread AJ Morris
True, ultimately it is the container reports back the roles. The security methods are part of the JDK, such as isUserInRole(), getUserPrinciple(), etc. However, each container implements the underlying architecture differently, including the assignment of users, roles, and groups differently. For

Re: Form problem

2001-11-29 Thread Kris Thompson
I found out that the problem was getting the mapping.getInput() The login page used a struts form as you can see from the struts-config file. However 5, 6, n number of pages later when the user tried to go to login.do struts would look for the input for that ActionMapping which most likely did n

RE: Removing session scope form bean on short-circuit

2001-11-29 Thread Sobkowski, Andrej
Jim, what about subclassing the Struts Action and add a new method (that will be available to all your new Actions) like protected void removeFormBean(ActionMapping mapping, HttpServletRequest request) { // Do not create the session if it doesn't exist...

Re: [ANN] Routines to validate Data in Struts

2001-11-29 Thread Iñigo Serrano
Hello, I don´t know if it is a validator in the commons, but the Struts version 1.1 have one. The ISValidator was originaly developed to work in diferents scenarios. I was searching routines to validate data but the routines that I found were focused in form validation. I thought: Why I can´t u

Re: Hidden Field in a form. Do I use struts taglib or vanilla html?

2001-11-29 Thread David Lauta
Is there a method in the framework that gets invoked allowing you to initialize the ActionForm before the JSP is displayed? Brett Porter wrote: > That's an interesting design decision. I have always had a form bean and > then another bean containing the actual data. The action copies it across,

Re: Problem: JavaScript in StrutsForm

2001-11-29 Thread Rob Breeds
Wolfgang You probably have a tag? Struts generates a button with a name of 'submit' so JavaScript gets confused. It wasted so much of my time! You need to give your submit button a different name - can't recall how to do that right now because I stopped using the submit buttons and used links

Re: Need to embed some jsp in link tag

2001-11-29 Thread Martin Fekete
or - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 29, 2001 1:11 PM Subject: Help: Need to embed some jsp in link tag > Hello all, > > I am trying to do the following > > >target="main"><%= childFolder.getName() %> > > > It doesn'

Re: hidden tag and request object

2001-11-29 Thread Ted Husted
If the values are not in the ActionForm, then you don't have to use the html tags. You can use standard JSP techniques to access the request and the session and write the HTML tags. Jakarta Taglibs has some very nice request and session tags that would work well in that use case. It can still be

How to leave a Radio button selected by default?

2001-11-29 Thread Alvin Kutttikkat Antony
Thanks Alvin alvin kuttikkat antony Internet und Virtuelle Hochshule Directory Universität München Leopoldstr .3 80802 München Germany Office Tel + 49.89.21025979 Office Fax + 49.89.21025980 -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Problem: JavaScript in StrutsForm

2001-11-29 Thread David Lauta
Here is what I have found to work: I think there might be a bug though function submitForm() { document.forms[0].submit(); return ( true ); } Populating the options was a little tricky. The bug comes from the use of: This tag adds a submit object to the docume

RE: hidden tag and request object

2001-11-29 Thread Jon.Ridgway
Hi Derek, This is a recurring question in the list. The solution (Ted etc please correct me if I'm wrong) is to forward to an action first, this creates an instance of the form (if required) and sets the properties (userloggedin) before forwarding to the jsp containing the form. Ted etc. Can we

Re: Security for Actions or ActionClasses?

2001-11-29 Thread Fyodor Golos
Nic's package looks very interesting! However, in the end it's the container that reports back which role the user is in, correct? I am still puzzled as to how to implement that part. Is it container-specific? In other words, when I implement role-based security, do I just lock myself into, say, T

Problem: JavaScript in StrutsForm

2001-11-29 Thread Wolfgang Frank
Hello there, may someone help me please? I tried to call a javascriptfunction from a Struts-Form. I need to do this because I want to calculate values in another SELECT box depending on the choice of this one ... and because a value changed event in a form doesn´t cause a submit ... i need this?

Multiple servlet instances

2001-11-29 Thread Jin Bal
Hi I have subclassed the ActionServlet multiple times to provide slightly different initialisations. These multiple instances have been mapped in web.xml and each assigned it's own extension mapping (*.xxx, *.yyy ...) Are there any major issues with doing this with regards to resources stored i

Re: <%@ include File =" <%= includefile%> " %> is there a way doto this

2001-11-29 Thread Jin Bal
No, I dont think so, I mis-read your original mail. The "jsp:usebean" tag is used to access properties from the request/session/page contexts thus: > > > SourceBean mysourcebean = (SourceBean)session.getAttribute("source"); would become : which would give you access to a variable called sourc

hidden tag and request object

2001-11-29 Thread Derek M Wayland
Hi, i am trying this below and it is not working as i would like. the problem lies with the hidden tag. i want the value to be populated with the 'request' objects', 'userloggedin' variable. is this possible? can someone advise the correct syntax? thanks dmw -- To unsubscribe, e-ma

Re: <%@ include File =" <%= includefile%> " %> is there a way doto this

2001-11-29 Thread Mohammed
I actually have a content.jsp file in which I want to include another jsp file. the name of the jsp file to include is know at runtime so I am fetching the file name as a variable. would the "jsp:useBean " in my case do as you suggested" Mohammed - Original Message - From: "Jin Bal" <[E

AW: [ANN] Routines to validate Date in Struts

2001-11-29 Thread juraj Lenharcik
Hello, is there not already a validator present in the commons? /1 can yo explain what the essentials differences are? perhaps a documentation of the abilities. your side is not so meaningful for a non spanish speaker. ;-) thanks 1- http://home.earthlink.net/~dwinterfeldt/ -Ursprüngli

Re: <%@ include File =" <%= includefile%> " %> is there a way doto this

2001-11-29 Thread Jin Bal
ignore what I just said I need to learn to read properly ;o) - Original Message - From: "David Cypers" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 29, 2001 12:19 PM Subject: RE: <%@ include File =" <%= includefile%> " %> is there a way d

Re: <%@ include File =" <%= includefile%> " %> is there a way doto this

2001-11-29 Thread Jin Bal
Use the "jsp:usebean" tag instead and specify scope="session" , the one you've been trying to use is for including files such as other pages. HTH Jin - Original Message - From: "Mohammed" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 29, 2

RE: <%@ include File =" <%= includefile%> " %> is there a way doto this

2001-11-29 Thread David Cypers
Is it allowed to use uppercase-F in \%@include File ?? -Original Message- From: Mohammed [mailto:[EMAIL PROTECTED]] Sent: donderdag 29 november 2001 12:49 To: Struts Users Mailing List Subject: <%@ include File =" <%= includefile%> " %> is there a way doto this Hello evreybody, in an a

Help with DiskMultipartRequestHandler...

2001-11-29 Thread Firmin David
Hi all, We're trying to use the file upload package with little success... Is there an example of how to use the DiskMultipartRequestHandler anywhere (the Struts file upload example doesn't seem to use it), as we have tried and always receive the following problems: 1) The files are being up

Help: Need to embed some jsp in link tag

2001-11-29 Thread Stephen . Thompson
Hello all, I am trying to do the following <%= childFolder.getName() %> It doesn't want to play. The childFolder.getId() is not processes as jsp. Can anyone please help? Thnaks. Stephen. --- Copyr

Re: Struts Error Page Approach - Recommended / Struts Support

2001-11-29 Thread Ted Husted
I basically do the same thing as Paul. My business objects throw their own exceptions, which I can catch. These exception classes are "chained" and often include more than one message: the initial cause and my business explanation. I use the ActionError class to send this to the JSP. Since the

Re: specifying sub-targets in paths

2001-11-29 Thread Joe Faith
The solution is to specify the forward as a redirect: joe Joe Faith wrote: > I'm having a problems specifying a target in an ActionForward. > > I want to do something like this in a struts-config.xml file: > > > > But I get a '404:resource not available' error. > > Trying the same fo

Re: Hidden Field in a form. Do I use struts taglib or vanilla ht ml?

2001-11-29 Thread Ted Husted
If the ActionForm were a business object, then you would be right in thinking that the data is logically different. But since the ActionForm is a presention object, it makes perfect sense to store the "action" here. The purpose of the ActionForm is to store the user gestures, which then are map

<%@ include File =" <%= includefile%> " %> is there a way doto this

2001-11-29 Thread Mohammed
Hello evreybody, in an action class SourceAction I am setting a variable in the session SourceBean sourcebean = new SourceBean(); sourcebean.setSource( myform.getcommand()); session.setAttribute("source", sourcebean); in the jsp file I want to do the following <% SourceBean mysourcebean = (So

Re: Hidden Field in a form. Do I use struts taglib or vanilla html?

2001-11-29 Thread Ted Husted
Brett Porter wrote: > This can trip you up though - at least once I have added the form element, > added it to the bean, added it to the form bean, and forgetten to do the > setter in the action :) The way around that is probably a function in the > form bean that says "fill my business class" and

Re: Struts Error Page Approach - Recommended / Struts Support

2001-11-29 Thread L. Yeung
Hi Paul! Can you send a sample file? Your workaround seems interesting. Regards, L. Yeung --- Paul Dillon <[EMAIL PROTECTED]> wrote: > You need two strategies - one for errors you can > handle and recover from, > and another for everything else. > > For errors I can handle (includes exceptions

RE: Is Struts using a Deprecated API?

2001-11-29 Thread Arnaud Héritier
Your certainly using JSP API 1.2 and Servlet API 2.3 (From TomCat 4.X ???). With this new APIs this constant is deprecated. let's see : http://jakarta.apache.org/tomcat/tomcat-4.0-doc/servletapi/javax/servlet/jsp/tagext/BodyTag.html It's not a problem. Only warnings. Arno > -Message d'ori

Is Struts using a Deprecated API?

2001-11-29 Thread Moneesh Walia
Hi, I am using jdk version: java version "1.3.1_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01) Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode) When compiling JSPs that use struts1.0 or even the latest nightly build I get this warning- warning: EVAL_BODY_TAG i

RE: Page Expiration

2001-11-29 Thread Tom Lister
Hi You need to set a token that is unique for the request. The Action class has methods to do this for you protected boolean isTokenValid(HttpServletRequest p0) protected void resetToken(HttpServletRequest p0) protected void saveToken(HttpServletRequest p0) I thnk saveToken plants the token in t

Re: Page Expiration

2001-11-29 Thread Sean Owen
You can tell Struts to automatically set all the usual no-cache headers in the HTTP response it sends back to the browser. This will get the effect you are after. In web.xml: action org.apache.struts.action.ActionServlet ... nocache true ... Sean - Original Message - Fro

struts-user@jakarta.apache.org

2001-11-29 Thread Arnaud Héritier
It's really strange because TC 4.0.1 uses xerces (TC/common/libs) and not jaxp. It was true with TC 4.0 and TC 3.2.X where a conflict between jaxp and xerces could appear. Aren't there new XML APIS in JDK 1.4 which can produce this conflict ??? arno > -Message d'origine- > De: Dragom

RE: File Upload Problem.

2001-11-29 Thread Jon.Ridgway
Hi Marli, I might be missing something here, but you don't appear to be using struts. Are you aware that there is a strurs tag for file upload? Have a look at the struts examples. Jon. -Original Message- From: Marli Satyadi [mailto:[EMAIL PROTECTED]] Sent: 29 November 2001 01:23 To: [E

RE: Removing session scope form bean on short-circuit

2001-11-29 Thread Alexander Jesse
Hi, do you have a "entrypoint" into this multipage-form? If yes, put it behind an action and reset old leftover stuff in that action... hope this helps Alexander -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 12:13 AM To: [EMAIL P

RE: How to use SytleSheet in Structs?

2001-11-29 Thread DUPRAT Alexandre
I think you can look at "style", "styleClass" and "styleId" in html tags. we use something like : in the head of page. and for struts tags Hope this helps Alex. -Message d'origine- De: Hou Da Jun, App Cnsl, PHS-Technology [mailto:[EMAIL PROTECTED]] Date: jeudi 29 novembre 2001 09:4

How to use SytleSheet in Structs?

2001-11-29 Thread Hou Da Jun, App Cnsl, PHS-Technology
Hi, I do not quite understand how to use styleSheet together with Struct custom tag. Will much appreciate if you can help me. Thanks Dajun