Re: setting token in jsp page...

2001-03-09 Thread Robert Leland
Check out the original implementation of the Token classes I submitted in October. It was posted as an attachment to the struts-dev news group. It has full javadocs. Basically it created the Token in a custom tag. So this should work for you. -Rob "Nanduri, Amarnath" wrote: > > Hello all, >

Re: Help! Can't access ActionForm properties in Action perform()!

2001-03-09 Thread Eric Rasmussen
Are you sure you defined the form in the struts-config.xml file correctly? That is the only reason I can think of why you would get a null pointer when trying to access the variable 'form'. The tag should be like: , and the tag (from the path denoted in the html form) should have the attrib

RE: Struts on WebSphere 3.5.2?

2001-03-09 Thread Ravindran Ramaiah
Check out this link http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg00383.html This works fine with the struts-test.war Ravi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 4:35 PM To: [EMAIL PROTECTED] Subject: Struts on W

Struts on WebSphere 3.5.2?

2001-03-09 Thread andreg
Has anyone managed to get struts running under WebSphere 3.5.2? I have trouble getting it to work, it blows up in the ActionServlet when it tries to read action.xml (I'm using version 0.5). The servlet tries to call getResourceAsStream on its ServletContext, which in my case always returns null. M

RE: datasources & action servlet

2001-03-09 Thread Gogineni, Pratima
It looks like one option is to modify the dtd and declare a different entity that holds all the datasources - is there a less intrusive way/ is this recommended/strongly discouraged? thanks pratima > -Original Message- > From: Gogineni, Pratima > Sent: Friday, March 09, 2001 1

Re: Strut Books

2001-03-09 Thread Julia Reynolds
If someone wrote one, I would buy it and my company would probably want one for each developer. I would buy the hardback, even! What about it Craig? Julia Spencer Smith wrote: > Don't I wish! > > - Original Message - > From: "Marty Fisher" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>

Re: Strut Books

2001-03-09 Thread Spencer Smith
Don't I wish! - Original Message - From: "Marty Fisher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 09, 2001 12:36 PM Subject: Strut Books > Hello, > > Are there any decent books on the market now that give you a detailed > account of how to modify/extend/use the s

actionform reset()

2001-03-09 Thread Sean Giles
I'm very confused by the behavior of the reset() method. We populate a page from an action form with request scope which works fine, however unless a property is actually used on the form it does not get repopulated after the reset() method. for example: If I don't use or the reset() sets

Strut Books

2001-03-09 Thread Marty Fisher
Hello, Are there any decent books on the market now that give you a detailed account of how to modify/extend/use the strut classes ? Thanks, Marty

datasources & action servlet

2001-03-09 Thread Gogineni, Pratima
Hi, I was wondering if I could configure the action servlet to pick up the datasources from a different file (not struts-config). I am trying to auto-generate the struts app for different users - the thing is the action mappings are the same for all of them so I would prefer to use a constant s

Re: [INFORMATIONAL] Javasoft J2EE Patterns Catalog

2001-03-09 Thread Martin Quinn
I have tried to remove myself from this list using the known options - but to no avail. How can i get off this list. Wong Kok Wai wrote: > I believe the patterns will be published as a book > soon, hence no PDF download is available. > > --- Maya Muchnik <[EMAIL PROTECTED]> wrote: > > > > __

Re: [INFORMATIONAL] Javasoft J2EE Patterns Catalog

2001-03-09 Thread Wong Kok Wai
I believe the patterns will be published as a book soon, hence no PDF download is available. --- Maya Muchnik <[EMAIL PROTECTED]> wrote: > __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/

Observations on ActionForms, reset(), tags

2001-03-09 Thread Bryan Field-Elliot
I am working wth ActionForms, one of which contains some list boxes and some checkboxes. In building my ActionForm class, I am noticing in the docs (under "Form Construction Tags") warnings like the following: WARNING: In order to correctly recognize unchecked checkboxes,

Getting id attribute in the HTML tags?

2001-03-09 Thread Scott Snyder
Is it possible to get the id CSS attribute generated within the html custom tags available within struts? From what I can see you can only get the style and class attributes generated using the style and styleClass attributes on the html custom tags. Thanks, Scott Scott Snyder Flashpoint Techno

Re: [INFORMATIONAL] Javasoft J2EE Patterns Catalog

2001-03-09 Thread Maya Muchnik
It is very easy to become a member. But nobody can distribute this document (a license issue). Maya "Deadman, Hal" wrote:  Has anyone found a place to download this pattern catalog? It would be nice to have a local copy in either PDF or HTML. This link has the on-line version but you need to be

RE: [INFORMATIONAL] Javasoft J2EE Patterns Catalog

2001-03-09 Thread Deadman, Hal
Has anyone found a place to download this pattern catalog? It would be nice to have a local copy in either PDF or HTML.   This link has the on-line version but you need to be logged in to JDC. http://developer.java.sun.com/developer/restricted/patterns/J2EEPatternsAtAGlance.html   Hal -

RE: user time-zone

2001-03-09 Thread Nanduri, Amarnath
Maya, I get your point :) Amar.. -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 10:37 AM To: [EMAIL PROTECTED] Subject: Re: user time-zone Amar, (I am sorry for a mix up with your last name) Maybe you are correct. My point is time

Re: user time-zone

2001-03-09 Thread Maya Muchnik
Amar, (I am sorry for a mix up with your last name) Maybe you are correct. My point is time zone and offset are two different measures. You cannot calculate a time zone if you know an offset. But you can calculate the offset if you know the time zone. Maya "Nanduri, Amarnath" wrote: > Maya, >

Re: Gratitude

2001-03-09 Thread Maya Muchnik
Welcome a "board", John. We are all gratefully happy that we have Struts and its developers / contributors. Maya John Wright wrote: > Struts developers and other contributors, > > I have been working several months on a project and was really getting > nowhere. I had implemented my own MVC fram

RE: user time-zone

2001-03-09 Thread Nanduri, Amarnath
Maya, It all depends on your design and the project you are working on. Let me give you an example... If lets say i have locations in different parts of the world and i want to reserve tickets for those Locations. I already know the timezone the Location is present (since a locati

Re: user time-zone

2001-03-09 Thread Maya Muchnik
Sorry folks, for this thread, because it does not "concerns" the struts directly (some designing issue). Nanduri, You can not consider an offset as a correct reference to time zone. For example, Cairo - has +2 hours from GMT, Helsinki - the same +2 hours, Israel - +2 hours. They are all in diffe

RE: ActionForm question (repost)

2001-03-09 Thread Nanduri, Amarnath
Hi Anand, Can you post an example of a Form Bean source code which supports all the primitive types that you mentioned. The reason i asked this is...i want to know if in the setter/getter methods i have to do the appropriate conversions or not. Thanks. cheers, Amar.. -Original Messa

Re: Tag Examples

2001-03-09 Thread Marty Fisher
That did not work but thank you for reponding. I was still able to modify the input data. Do you have a site that explains the style attribute and contains some examples ? Thanks again Marty Kartik Sudarsan wrote: > Hi, > > This is in response to Marty's query (part query that is), i t

Gratitude

2001-03-09 Thread John Wright
Struts developers and other contributors, I have been working several months on a project and was really getting nowhere. I had implemented my own MVC framework based on some usely assorted ideas mostly from JavaWorld articles. Then I found Struts yesterday. It blew me away. I intuitively kne

RE: user time-zone

2001-03-09 Thread Nanduri, Amarnath
Keep all the timezone offsets in a database. Send a hidden field to the client which maps the region he/she is in (using Javascript ?). Depending on the region, hit your database and get the time zone offset from your database. cheers, Amar.. -Original Message- From: Maya Muchnik [ma

Re: text tag

2001-03-09 Thread Ratnadeep Bhattacharjee
Sachin, Try using single quotes ('') instead of double quotes (" "). I have the following working for me: -Deep. > yes I imported the file..i also tried the single > quotes but it doesn't seem to work.. > --- Martin Cooper <[EMAIL PROTECTED]> > wrote: > > Did you import th

Re: text tag

2001-03-09 Thread Sachin Tendulkar
yes I imported the file..i also tried the single quotes but it doesn't seem to work.. --- Martin Cooper <[EMAIL PROTECTED]> wrote: > Did you import the FormConstants class at the top of > your JSP? > > -- > Martin Cooper > > - Original Message - > From: "Sachin Tendulkar" <[EMAIL PROTEC

RE: how to config Tomcat for debugger

2001-03-09 Thread frederic Gilbart
You can edit /usr\local\jdk1.2.2\bin\.java_wrapper (find correct path) Then look at the end of the file for lines : # Run. if [ -x "$prog" ] then exec $DEBUG_PROG "$prog" "$@" > /usr/local/jakarta-tomcat-3.2/logs/java.log else echo >&2 "$progname was not found in ${prog}" exit 1 fi

RE: Tag Examples

2001-03-09 Thread Kartik Sudarsan
Hi, This is in response to Marty's query (part query that is), i think we can disable input in the struts text tag by specifying it in the style attribute in the following manner i hope this solves your problem. Regards, Kartik Sudarsan IT Cube India Pvt. Ltd, Unit 1, 8th F

how to config Tomcat for debugger

2001-03-09 Thread Maya Muchnik
Hi, Does anyone configure Tomcat to accept debugger connections? For example, if I am using JBuilder, Forte or Visual Cafe that has a built-in debugger, then how to do this? Thanks in advance. Maya

Re: Tag Examples

2001-03-09 Thread Maya Muchnik
Hi, I would like to ask a question additional to Marty Q. Is it possible with "html:form" tag (I am not sure that it is correct tag) to disable change (input) in some fields when data are restored and displayed in the form. The 2nd Q: is it possible to display default values for some fields when

Re: bundle param in message tag

2001-03-09 Thread Maya Muchnik
Ah, I did not see your "symbol" before!. A good place to work!!! I was there for a study class. I think, the only way you can do this as to read a config file in each package itself. Or overwrite ActionServlet to do this for each action. Maya Ratnadeep Bhattacharjee wrote: > > > > In struts-exa

Re: Forbidden: you don't have permission...

2001-03-09 Thread Maya Muchnik
It is my guess. Because your Tomcat installation is done in other computer you do not know what permission are at Tomcat working directory (tomcat/dist/tomcat/work) where the jasper compiler will put your "java" and "class" files for your servlets - jsp files. Check permissions there and other dir

RE: Business Object Bean Persistence Strategies

2001-03-09 Thread Johan Compagner
Hi, Because i want Database Objects to control them self completely (like Enity beans) I must have a way to get Transaction support and make sure that in on thread the same connection is being used. For example: class Person { private String name; private Country country;

Re: a "_blank" target

2001-03-09 Thread Elod Horvath
Maya Muchnik wrote: > > Hi, > I think struts tag has a target attribute, right? Netscape uses > a "_blank" target in anchor. And it "hide" a HREF itself from a > user. But in IE it does not work (I can see HREF). Is this Netscape > specific? How I can do similar in IE? (Sorry, Craig T., I do no

Re: Iterate an indexed property?

2001-03-09 Thread Elod Horvath
> Katarina Nelson wrote: > > Hi, > > I try on my jsp page iterate an indexed property. > I get this exception: > "javax.servlet.ServletException: Invalid indexed property > 'routingData[<%=s%>]'" > > My code: > <% > int counter = 0; > String s = null > s.valueOf(counter); > for (int i = 0; i <

Tag Examples

2001-03-09 Thread Marty Fisher
Hello, We would like to add a attribute to a form tag. In the case of the text tag, we need to disable the form input from being editted yet display its value. We also need a max length attribute on the text area tag. Can someone direct me to some jsp/servlet examples to extending the strut ta

RE: Iterate an indexed property, again?

2001-03-09 Thread ZACHCIAL,SLAWOMIR (HP-France,ex1)
Hi,   I think that custom tag attribute value can be either all string or all runtime expression:   all string:   all runtime expression:   but these two cannot be combined like this   Best Regards,SlawekSLAWEK ZACHCIALHewlett-Packard FranceSoftware App

Iterate an indexed property, again?

2001-03-09 Thread Katarina Nelson
Hi, I already did this. The same code works perfectly when I hardcode like this: ' but I want use an int to iterate instaed hardcode on the jsp page.   Somebody help me, Katarina    -Original Message-From: Hatinder Chawla [mailto:[EMAIL PROTECTED]]Sent: den 9 mars 2001 00

RE: question about ActionForm reset()

2001-03-09 Thread Sean Giles
Here's part of the struts-config.xml Here's part of the JSP page