Re: How to check if an array is null

2001-05-04 Thread Chris Butler
logic:present checks for null: whether the bean or bean property exists. it works fine with arrays. c At 03:08 PM 5/3/2001 -0400, Alex Colic wrote: Hi, I have a class which has a method 'Columns' which is a one dim array of Strings. How can I check to see if that method returns null. I want to

RE: locating .properties files

2001-05-04 Thread Matthew O'Haire
Hi all, We've found a solution to this, so for the benefit of the list here it is... It seems Class.getResourceAsStream() and ServletContext.getResourceAsStream(), the Javadoc for the latter says as much: This method has a different purpose than java.lang.Class.getResource, which looks up

pleaseeee help!!! please help guys....is it possible to update properties of an object in an iteration?

2001-05-04 Thread Dudley [EMAIL PROTECTED]
-Original Message- From: Dudley Butt@i-Commerce [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 2:47 PM To: [EMAIL PROTECTED] Subject: very important please help guysis it possible to update prope rties of an object in an iteration? pleeaaasssee help What i have is

nesting logic:equals tags

2001-05-04 Thread Richard Murray
Hi, I'm iterating over an array of Strings containing the following dummy data { 1, 2, 3, 4, true, 6, 7}. I want to apply the following logic: if the String is true or false display a checkbox, else display the String. I attempted to nest the tags as follows, but this does not work:

URL for struts archive?

2001-05-04 Thread Dudley [EMAIL PROTECTED]
Can someone please give me the URL to go search thru all the struts archives? thanx

RE: URL for struts archive?

2001-05-04 Thread Richard Murray
The struts user archive is at: http://www.mail-archive.com/struts-user%40jakarta.apache.org/ Richard. -Original Message- From: Dudley Butt@i-Commerce [mailto:[EMAIL PROTECTED]] Sent: Friday, May 04, 2001 10:32 AM To: [EMAIL PROTECTED] Subject: URL for struts archive? Can someone

regd. action classes --- please help

2001-05-04 Thread Manabendra Sarkar
Hi All, is there init() and destroy() like methods in Action class so that we can be sure that those methods will always be called by the action servlet? actually i need to aquire some resources (like database connection) and initialize the action class. i want to hold thoise

RE: Antwort: RE: Visual Age 3.5.3 Tomcat with Struts

2001-05-04 Thread Jon.Ridgway
Hi Darren, One way to install Tomcat into VAJ 3.5.3 is to first install into 3.5. Store the 3.5 repository and IDE/features/com-ibm-tomcat folder away. Install 3.5.3 and import tomcat from 3.5 repository and put the stored tomcat folder back in place. Jon. -Original Message- From:

RE: nesting logic:equals tags

2001-05-04 Thread Richard Murray
Hi, I've used a scriptlet as follows to achieve what I want, but I'd rather user the struts tags if possible struts_logic:iterate id=element name=rows % if ( element.equals( true ) ) { out.println(

RE: URL for struts archive?

2001-05-04 Thread Young, Wayne
I like these. http://marc.theaimsgroup.com/?l=struts-userr=1w=2 http://marc.theaimsgroup.com/?l=struts-devr=1w=2 -Original Message- From: Dudley Butt@i-Commerce [mailto:[EMAIL PROTECTED]] Sent: Friday, May 04, 2001 4:32 AM To: [EMAIL PROTECTED] Subject: URL for struts archive? Can

Re: Servlets, Beans, Struts, and Threading

2001-05-04 Thread William Jaynes
This is definately not true. You need to make a distinction between web containers and EJB containers, or to be more specific EJBs themselves. There are some restrictions on EJBs with respect to threading. I'm not sure what they are exactly. But creating your own threads is perfectly fine in

RE: regd. action classes --- please help

2001-05-04 Thread Nanduri, Amarnath
I would advise that you subclass the Action class, like ObjectAction. the below piece of code would work fine for you... The parameters in the perform method will be send to the execute() method in your subclasses. Hope this helps for ya all If you want, you can also make the init() and

Dynamic Error Messages

2001-05-04 Thread Darryl
I can't figure out how to return dynamic error messages in the ActionErrors collection. In other words, if an exception is thrown in an Action object, I want to use the e.getMessage() to get the message description and use that to populate an ActionError. The ActionError class doesn't seem to

Bean:message with args

2001-05-04 Thread Jon.Ridgway
Hi all, Is there a way to acheive the following : bean:message key=prompt.password.sent arg0=bean:write name=email// without resorting to scriplets, ie : bean:parameter id=email name=email/ bean:message key=prompt.password.sent arg0=%=email/ would work but just doesn't sit right with me.

RE: database connection

2001-05-04 Thread Ying Teng
Yes, I can get the DataSource reference in the ServletContext object of the ActionServlet class. But I want to get the reference to the dataSource in the DatabaseServlet class. Can anyone tell me how to get the reference to the dataSource from the databaseServlet class? Thanks. Ying

Struts questions for evaluation

2001-05-04 Thread laurent.delvaux
Hello Struts users, We are currently evaluating Struts and other web (MVC) frameworks and would like to ask you some questions: - Is there some struts-config XML-generation from some modeling tool (Rose for instance) ? We would like to design a state or activity diagram in such a tool

javabean getters setters and how properties are inferred.

2001-05-04 Thread Young, Wayne
I had a developer question how Struts infers property a name from a getter setter... and vice-versa. This was the problem: property: vTasks getter: getVTasks() At runtime, a getter not found for property vTasks error occurred. I decided to research exactly what was going on... here's

How can I get a data source from custom tag?

2001-05-04 Thread Anna Hristova
Hi All, I have different data sources defined in 'struts-config.xml'. I want to use one of them from a custom tag. I know how to this from an Action class: DataSource ds = (DataSource) servlet.findDataSource("dsUsers"); But in the custom tag I don't have reference to the 'servlet' as

struts newbie trying to get onboard

2001-05-04 Thread Procek, Brett
Hello all, this is my first posting. I'm trying to get onboard here with one of those simple login application I'm sure you've all seen. I've spent some time trying to get this to work. I went through all steps to install struts on my workstation for Tomcat 3.2.1 and verified them several

RE: Bean:message with args

2001-05-04 Thread Nanduri, Amarnath
Hello everybody, I am trying to test the iterate tag and i am getting the following error.. Can somebody point out as to what i am doing wrong ? Thanks a lot. I am including the jsp code also. I am using Tomcat 3.2 and struts 1.0 cheers, Amar.. ERROR - javax.servlet.ServletException:

A Question about Transaction Tokens

2001-05-04 Thread yogesh kapoor
Hi All, I have just installed the struts1.0 b1 and the struts-example app. I wonder how the transaction token key works.Can anybody explain that to me please(it is a great stuff). I checked out the code a bit and found out that struts is creating a transaction token key by convereting the

basic forms/config question

2001-05-04 Thread Jeremy Mann
I have been trying to create a hello world with struts based on the login example. I have to the best of my knowledge done everything correctly as stated in examples and documentation. All I have is a simple page with a form and 2 text fields in the form yet I still get the following error.

Re: Servlets, Beans, Struts, and Threading

2001-05-04 Thread John Raley
Per Paul's comment, Servlets are allowed to create threads (EJB's are not). However, a Servlet instance does get any special guarantees from the container regarding synchronization. Even a Servlet that is marked with the SingleThreadModel is not, to my knowledge, protected from concurrent use by

possible bug? object is not an instance of declaring class message

2001-05-04 Thread Iraklis Kourtidis
Hi fellow struts users, I have been toiling with the following problem, and have not been able to solve it even after looking at the Struts source and thoroughly checking the mail archive. I wonder if it is a bug with Struts (?). The reason I dare say that the problem may lie with Struts is that

RE: database connection

2001-05-04 Thread Gogineni, Pratima
in the databaseservlet class do: getServletContext().getAttribute(key); -Original Message- From: Ying Teng To: [EMAIL PROTECTED] Sent: 5/4/01 8:17 AM Subject: RE: database connection Yes, I can get the DataSource reference in the ServletContext object of the ActionServlet class. But I

RE: Dynamic Error Messages

2001-05-04 Thread Gogineni, Pratima
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(view.construction.error, e.getMessage())); in the application.properties you should have: view.construction.error=liCould not construct view because: {0}/li e.getMessage() is substituted instead of {0} -Original Message- From:

RE: database connection

2001-05-04 Thread Gogineni, Pratima
look at your web.xml file - you should have two servlet elements there one for DatabaseServlet and the other for ActionServlet. each of them has a load-on-startup element. set the load-on-startup element of the actionservlet to 1 and that of databaseservlet to 2. to indicate that the database

Re: How can I get a data source from custom tag?

2001-05-04 Thread Dan Miser
This is now in the nightly build. Download it, and you should be able to do what you want. -- Dan Miser http://www.distribucon.com From: Anna Hristova [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts-User [EMAIL PROTECTED] Subject: How can I get a data source from custom tag? Date: Fri,

RE: struts newbie trying to get onboard

2001-05-04 Thread Deadman, Hal
Is the struts ActionServlet configured and starting up OK? You should not be using struts-form.tld either, it's deprecated. If you are using Struts 0.5, don't, use the Struts 1.0 beta. -Original Message- From: Procek, Brett [mailto:[EMAIL PROTECTED]] Sent: Friday, May 04, 2001 12:56

TEST (Please ignore it)

2001-05-04 Thread majid kamal
my first posting. -- majid kamal [EMAIL PROTECTED] - email (781) 685-1450 x2371 - voicemail/fax __ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com

RE: A Question about Transaction Tokens

2001-05-04 Thread Nanduri, Amarnath
The token is send as a hidden name=value pair in your html page. I believe a copy of the same value is stored in session object. When the user submits information back to the server, both these values are compared to make sure that they both match. If they both match, then the

RE: Internationalised strings and scriptlets

2001-05-04 Thread Gogineni, Pratima
I havent tried this but I am guessing you could get hold of the pagecontext object and get a reference to the applicationresources from it - similar to what you would do in a custom tag implementation. -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 5/3/01 1:45 AM

RE: basic forms/config question

2001-05-04 Thread Abraham Kang
This is one of the banes that I have been working with on WebLogic 5.1 sp8. I don't know if sp9 fixes it but what it means is one of the custom tags within your html:form tags is misconfigured, misspelled, missing a end tag or throwing an exception. To debug these I had to view the source of the

Re: A Question about Transaction Tokens

2001-05-04 Thread yogesh kapoor
the html:form tag creates a hidden field where it stores the trandsaction token key from the session transaction token key. This key is compared back to the session transaction token key while saving form to database. From: "yogesh kapoor" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To:

Re: struts newbie trying to get onboard

2001-05-04 Thread Arlo Emerson
are your tld's in /WEB-INF/struts-form.tld or in /WEB-INF/TLDs/struts-form.tld? To: [EMAIL PROTECTED] cc: From: [EMAIL PROTECTED] Subject: struts newbie trying to get onboard Hello all, this is my first posting. I'm trying to get onboard here with one of those simple login application I'm

Re: struts newbie trying to get onboard

2001-05-04 Thread Donnie_Hall
Don't include struts.jar in your classpath. Make sure that struts.jar is in your WEB-INF/lib directory. See http://www.husted.com/about/struts/threads.htm for an explanation. -Donnie Hall |+--- || procek@lucent| || .com

Re: NEED HELP

2001-05-04 Thread Scott Walter
With the checkboxes only the checkboxes that are checked will be sent to the http header. In other words only checked checkboxes will have values from a request.getParameter() call. To pass a value onto the next page you could either store in a hidden field on the first page or pass it on the

RE: struts newbie trying to get onboard

2001-05-04 Thread Procek, Brett
You are correct, my ActionServlet is not starting up property. I looked at the output and I listed some of it below. For some odd reason Struts cannot resolve a certain DTD that it needs. Please take a quick look. Thanks for the help! Brett Starting tomcat. Check logs/tomcat.log for

Re: struts newbie trying to get onboard

2001-05-04 Thread tpeters
The sample application shows how to do a login. If you have that working, then you should be able to extract the needed code from there. If you go through the example you will see that there are several supporting classes for doing the login. One in paticular is the 'Constants.java' file which

RE: basic forms/config question

2001-05-04 Thread Jeremy Mann
I tried that - In fact I tried a % System.out.println(Hello) % just inside my html:form tag and it's not getting there. This means that there is a problem with the tag itself but I don't know what it is. Jeremy -Original Message- From: Abraham Kang [mailto:[EMAIL PROTECTED]] Sent:

RE: basic forms/config question

2001-05-04 Thread Jeremy Mann
One more thing Here is my enter.jsp %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % html:html locale=true head title/title html:base/ /head body bgcolor=white html:errors/ % System.out.println(This is a Test); %

RE: struts newbie trying to get onboard

2001-05-04 Thread Procek, Brett
Actually, I must include the struts.jar file in my classpath. However, this is done automatically in the tomcat.sh script. The script automatically includes all jar/zip files in the /lib directory. Should I remove this functionality? Brett -Original Message- From: [EMAIL PROTECTED]

RE: struts newbie trying to get onboard

2001-05-04 Thread Procek, Brett
Ok, what I did was simply remove the reference to the DTD in the struts-config.xml file. Now, the ActionServlet does load up. However, I am getting one more problem: javax.servlet.jsp.JspException: Cannot retrieve mapping for action /login at

Re: Bean:message with args

2001-05-04 Thread Stephen Schaub
Is there a way to acheive the following : bean:message key=prompt.password.sent arg0=bean:write name=email// without resorting to scriplets I was looking for a way to do this a while back; currently you have to resort to a scriptlet. I proposed and created an implementation that allows you

ping - ignore me

2001-05-04 Thread Harald Kornfeil
sorry - just checking - i am having problems sending mail to the list