use html:link pass two param

2003-10-31 Thread javen fang
I have a bean list that have two property id / name code: -- next action -- And how can I pass the second parameter name after the action next.do?? Thanks. _

Re: [OT]How can i reply to the thread ???

2003-10-31 Thread struts
Your email client should prompt or have an option to use "Reply-To" instead of "From" address. If not, just before you send it substitute "[EMAIL PROTECTED]" for the "To" address. Oscar On Fri, 31 Oct 2003, Looser wrote: > Hi, > > sorry by this OT post, but i need to know how to reply to an

Re: Iterating List of Lists

2003-10-31 Thread javen fang
Where is tag from??? Your own taglib? --- "Choopong C." <[EMAIL PROTECTED]> wrote: > Try like this > > > name="organizations"> > > >property="title"/> >property="items"> > >

Re: Hidden Field

2003-10-31 Thread Manish Singla
You may use just a note: you may use . instead of request.getRemoteUser(); Manish Singla Caroline Jen wrote: > > works well because "author" is expected literally as > the value of a property called "dispatch". > > I also want to pass > String username = request.getRemoteUser(); > as the va

Re: declaring action mappings at runtime

2003-10-31 Thread Ahmet ISIK
Kirk, thanks for the advice, yes, you're right I think. I'm going to change it that way in the first refactoring time available. Kirk Wylie wrote: I know this is a little OT, but had you thought about doing it with xdoclet? Particularly if the Hibernate configurations are coming out of xdoclet

Re: Doing an action and get back to executing page?

2003-10-31 Thread Frers Michael
hello thx for reply as far as i understood you mean i should create for each jsp an extra action mapping entry in the struts config and then doing a mapping.getInputForward() in the action class only problem is that i have about 100+ jsp sites which can call this specifc Action Michael

RE: Workaround for IE "streamer bug"?

2003-10-31 Thread Bjørn T Johansen
Ok, now I have tried adding a dummy=.pdf on the url, but it still tells me that it is downloading a file of Filetype = Adobe Acrobat Control for ActiveX and ask me to open og save file. If I then choose open, IE always ask me which application to use, even if it just told me that the filetype was a

Re: Iterating List of Lists

2003-10-31 Thread Choopong C.
No matter what, just a sign for our debugging in Browser. From: javen fang <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: Iterating List of Lists Date: Thu, 30 Oct 2003 23:03:35 -0800 (PST) Where is tag

euro date

2003-10-31 Thread dutrieux
I declare in struts-config.xml a DynaActionForm class with a property "euroDate" of class java.sql.date. I register on the ConvertUtils instance a new convert class for the the class "java.sql.Date" to support the european date (dd.mm.). That work very fine. But now my problem is that I

tiles and margins

2003-10-31 Thread koen boutsen
hi I'm using tiles for my application. I don't work with definitions, but with layout.jsp pages : I want my header in a certain color and my body in another color, with no margins around them. If I use t

problem with chained actions in IE it work while Mozilla(Firebird) shows 404 (the context path gets lost)

2003-10-31 Thread Martin Grüneberg
Hello togehter, in my application I have a series of chained Actions defined like this:

struts source (newbie)

2003-10-31 Thread J P
Hello, Pardon me, but Struts by nature is configurable / extendable and therefore editable? One would quite frequently like to get into the source of the .javas? I have downloaded and installed 1.1 but can see nothing but classes, JARs and WARs. I for expample want to configure the ActionSer

validate method

2003-10-31 Thread Khandelwal, Rahul
Hi All, For some reason, I have to do some form field validation in my Action class. And, if the validation fails, I have to return the control to the same(input) page to display the error msg (using ). I have previously done it in the validate method in the Form bean, but don't know how to put th

Re: euro date

2003-10-31 Thread Mark Lowe
Just define the form property as a string when you get the date from you model either format it in your referring class, using DateFormat. java.util.Date date = new java.util.Date( dateString ); now you can format and then feed it back to the form. Cheers Mark On Friday, October 31, 2003, a

Re: Connection pool and MessageRessources

2003-10-31 Thread Ovidiu EFTIMIE
Hi James, I've studied your solution, and I've noticed that you use a different connection to the database and not the one that should be availble in an struts application, and I think that could be a point of failure. That is why I'm trying tu use the same connection pool as the rest of the applic

Re: struts source (newbie)

2003-10-31 Thread koen boutsen
you can download the source from the jakarta site -- - Original Message - DATE: Fri, 31 Oct 2003 02:15:03 From: J P <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: >Hello, >Pardon me, but Struts by nature is configurable / extendable and therefore > editable? One would quite

AW: problem with chained actions in IE it work while Mozilla(Firebird) shows 404 (the context path gets lost) (SOLVED)

2003-10-31 Thread Martin Grüneberg
Solved, it was only a Browser caching problem > -Ursprüngliche Nachricht- > Von: Martin Grüneberg [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 31. Oktober 2003 11:10 > An: [EMAIL PROTECTED] > Betreff: problem with chained actions in IE it work while > Mozilla(Firebird) shows 404 (t

RE: tiles and margins

2003-10-31 Thread Holman, Cal
Try taking the and tags out of the header and body tags. They should be s with their own attributes - you can then control the color of the independent tables. That should give you more control. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From

RE: tiles configuration

2003-10-31 Thread Holman, Cal
You cannot use a tiles definition as a URL so you need to use actions. But if you use ForwardAction you get away with having a template and the tiles jsps - like your second example. Cal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 20

Re: Connection pool and MessageRessources

2003-10-31 Thread Ovidiu EFTIMIE
I think I've found a solution. I'll make an object (eventualy a struts PlugIn), DBMessage which receivies a connection from my connection pool and retrives the error messages from the database, and this object will not extend MessageRessources. Then in my actions I'll have : DbMessage dbmesg = (Db

Re: tiles and margins

2003-10-31 Thread khote
use a stylesheet. You can declare it in your tiles definition and discover it in your jsp You can have

Own parameters in an action forward

2003-10-31 Thread Zorn, Otto
Hi, I'm very new in struts and I have a little problem: How can I add own 'key - value - pairs' (parameters) inside an action-class to an action-forward? Hope someone can help me. Otto - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: euro date

2003-10-31 Thread Vic Cekvenich
Or you could use formBeans, one of more befits for update. HOWEVER you said display the date (not update), so no need for a formBean either. You should localize when ever posible using JSTL fmt tag for dates and other things. Mark Lowe wrote: Just define the form property as a string w

Re: validate method

2003-10-31 Thread Ben Anderson
ActionErrors ae = form.validate( mapping, request ); if( ae.size() != 0 ){ saveErrors( request, ae ); return new ActionForward( mapping.getInput() ); } From: "Khandelwal, Rahul" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>

html:text

2003-10-31 Thread struts
This is maybe a stupid question but how can i print the user.userName value on screen instead of in a text box ? eg: i want to do something like : but this is not working. Thanks

Re: html:text

2003-10-31 Thread Marc AMIR-TAHMASSEB
<%=users.userName %> struts wrote: This is maybe a stupid question but how can i print the user.userName value on screen instead of in a text box ? eg: i want to do something like : but this is not working. Thanks - To

Re: html:text

2003-10-31 Thread Firat TIRYAKI
you should use the name too name is the id you define in tags (logic:iterate maybe) and also should work F. - Original Message - From: "struts" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, October 31, 2003 3:18 PM Subject: html:text This i

Re: html:text

2003-10-31 Thread struts
No go , error... javac] location: class org.apache.jsp.userlevel.pickup_jsp [javac] out.print(users.userName ); [javac] ^ [javac] 1 error - Original Message - From: "Marc AMIR-TAHMASSEB" <[EMAIL PROTECTED]> To: "Struts Users Mailing Lis

Re: Own parameters in an action forward

2003-10-31 Thread Susan Bradeen
Otto, this is straight out of "Struts in Action" ... it creates a new actionforward by appending parameters (in this case "dispatch") to the path of an existing actionforward (in this case "article"): ActionForward forward = mapping.findForward("article"); StringBuffer path = new StringBuffer(fo

Re: Please Help!!! A Validation Rule Fail On A Second-Page Causes A Blank Page To Show Up

2003-10-31 Thread Kam Lung Leung
Hi Ted, Thank you for your time in helping me out. After your email message I take a hard look at the jsp file and can not find what was wrong with it. The secondPage.jsp is almost the same as the firstPage.jsp. When I move all the code from the secondPage.jsp to the firstPage.jsp the validation

html:text 2

2003-10-31 Thread Gonzalez Comesaña, Sergio Eduardo
How can I do to change the value of a "Disabled property" to False or True of a field html:text from an Action or some class . Is possible access to "tags properties" in run time like html's Class (styls) or sizes etc. Sergio Gonzalez .

Re: html:text i'm lost

2003-10-31 Thread struts
When i do something like you proposed error: org.apache.jasper.JasperException: Cannot find bean sessionScope.users in any scope In the action i have: usersForm.setUsers(usersValues); //-- assign form object to the request object setForm(mapping, userForm, request); //-- populate the form ob

RE: html:text i'm lost

2003-10-31 Thread Mike Jasnowski
The name you provide for the "name" attr in must match the name you stored it in the request with. -Original Message- From: struts [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 8:41 AM To: Struts Users Mailing List Subject: Re: html:text i'm lost When i do something like you

Re: use html:link pass two param

2003-10-31 Thread Ruth, Brice
If you have the parameters stored in a java.util.Map object, simply specifying the name of that object as the "name" attribute to html:link (without any paramId/paramName/paramProperty attributes, will do the trick for you. If your bean list isn't a java.util.Map, you can create one on the fly

RE: html:text i'm lost

2003-10-31 Thread Susan Bradeen
So, if you stored your form in the request under "userForm", and you stored users objects in your form, then I think something like this should work: Susan On 10/31/2003 08:57:41 AM "Mike Jasnowski" wrote: > The name you provide for the "name" attr in must match the > name you stored it in t

Re: html:text i'm lost

2003-10-31 Thread Firat TIRYAKI
writing in a logic iterate loop or what? F. - Original Message - From: "struts" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, October 31, 2003 3:41 PM Subject: Re: html:text i'm lost > When i do something like you proposed > > > error: org.apach

Re: Iterating List of Lists

2003-10-31 Thread Larry Meadors
Are you saying you use the member tag just so you can look at the html and see that it is being output? Larry >>> [EMAIL PROTECTED] 10/31/03 1:34 AM >>> No matter what, just a sign for our debugging in Browser. >From: javen fang <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL

Re: struts source (newbie)

2003-10-31 Thread Hubert Rabago
You don't need the source to use struts in your application. Some of the classes are meant to be extended and some are meant to be used directly. Check out the user guide http://jakarta.apache.org/struts/userGuide/index.html. -Original Message- From: koen boutsen [mailto:[EMAIL PROTECTED]

Re: Deploying on TOMCAT

2003-10-31 Thread Vinita Keswani
Thanks!! This is a great help Jacob Wilson <[EMAIL PROTECTED]> wrote:Vinitha, Assume 'Tomcat\webapps\root' is your project folder... Create separate folders of images, js, html, styles etc. and place the respective files in the respective folders... Place all your jsps in the root directly

RE: use html:link pass two param

2003-10-31 Thread James Mitchell
First of all, you should never have to put ".do" any where in your application except the web.xml file. That way, you change the mapping in one place and it flows to the rest of the application. Here's what I do: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/

Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread Ruth, Brice
I've been doing some googling on having a webapp precompiled when deployed to Tomcat via an Ant task and I'm a bit intimidated with what's involved. Has anyone out there done this? Right now, I have an Ant build setup as an external build in Eclipse that does a variety of things, including buil

Re: use html:link pass two param

2003-10-31 Thread Ruth, Brice
How do you go about enabling path mapping v. extension mapping in web.xml (or struts-config.xml)? James Mitchell wrote: First of all, you should never have to put ".do" any where in your application except the web.xml file. That way, you change the mapping in one place and it flows to the rest o

RE: Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread Paul McCulloch
In case you didn't know, you can precompile a specific jsp by simply making a reqest to the page with a special paramter: ttp://myapp/somepage.jsp?jsp_precompile If you don't have a huge number of pages this might form the basis of a quick and dirty hack. Paul -Original Message- From: R

RE: Connection pool and MessageRessources

2003-10-31 Thread James Mitchell
You might not be realizing just how deeply the MesageResources is integrated with Struts. Your solution won't work if: * your app is using the validator * any of your jsp pages are using * any of your jsp pages use tags that use MessageResources (which are any that use xyzKey such as

RE: Connection pool and MessageRessources

2003-10-31 Thread James Mitchell
> -Original Message- > From: Ovidiu EFTIMIE [mailto:[EMAIL PROTECTED] > Sent: Friday, October 31, 2003 5:34 AM > To: Struts Users Mailing List > Subject: Re: Connection pool and MessageRessources > > > Hi James, > I've studied your solution, and I've noticed that you use a > different c

Re: Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread Ruth, Brice
Good tip ... thanks! I actually do have a lot of JSPs (especially tiles) ... so this probably won't work for me at this moment. Paul McCulloch wrote: In case you didn't know, you can precompile a specific jsp by simply making a reqest to the page with a special paramter: ttp://myapp/somepage.jsp

Re: use html:link pass two param

2003-10-31 Thread Kris Schneider
web.xml: action /do/* Quoting "Ruth, Brice" <[EMAIL PROTECTED]>: > How do you go about enabling path mapping v. extension mapping in > web.xml (or struts-config.xml)? > > James Mitchell wrote: > > >First of all, you should never have to put ".do" any where in your > >application except

Re: use html:link pass two param

2003-10-31 Thread Ruth, Brice
doesn't this still put 'do' somewhere in the URL? Kris Schneider wrote: web.xml: action /do/* Quoting "Ruth, Brice" <[EMAIL PROTECTED]>: How do you go about enabling path mapping v. extension mapping in web.xml (or struts-config.xml)? James Mitchell wrote: First of all, you shou

Re: struts plugin

2003-10-31 Thread gianluca
Really good. How can i clear xtask cache ? > www.xmoon.it

RE: use html:link pass two param

2003-10-31 Thread James Mitchell
See Section 11.2 of the Servlet 2.3 API Specification or Section 10.2 of the Servet 2.2 API Specification. Then "do" some testingpun intended ;) -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (c) 770.822.3359 (h) AIM:jmitchtx > -Or

Re: Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread Ian Joyce
Try this out: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Web%20Application%20Compilation You may need to do some tweeking, but it worked great for me. >>> [EMAIL PROTECTED] 10/31/03 09:13AM >>> I've been doing some googling on having a webapp precompiled when deployed to

Re: use html:link pass two param

2003-10-31 Thread Kris Schneider
You can call it whatever you want - "admin-tool" from James' example. The difference is this: /app/do/manageUsers vs. this: /app/manageUsers.do I think James was referring to the use of: when he said, "you should never have to put ".do" any where in your application..." You really only need

Re: use html:link pass two param

2003-10-31 Thread Ruth, Brice
Coolio, thanks! James Mitchell wrote: See Section 11.2 of the Servlet 2.3 API Specification or Section 10.2 of the Servet 2.2 API Specification. Then "do" some testingpun intended ;) -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (c) 770.

Re: Connection pool and MessageRessources

2003-10-31 Thread Ovidiu EFTIMIE
The think is we're not using OJB for this application, but your struts extension is very interesting and i'll keep it in my mind for future projects. Thanks for yout response Ovidiu - Original Message - From: "James Mitchell" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL

tag question

2003-10-31 Thread Jim Kennedy
Here's my standard html form tag: I need to be able to "name" my form in my application. How do I do that with the "el" form tag. It is not this: name has another meaning for this tag. what is the equivalent for name in a standard HTML form tag? thanks ---

RE: Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread Holman, Cal
I am using tomcat 5.0.12 and struts 1.1 with tiles and have been successful in precompiling. The tomcat documentation has a pretty good example. The hard part is translating someone else's directory structure into yours to apply all the examples. I posted my solution to my web site at http:/

Re: tag question

2003-10-31 Thread Ruth, Brice
The "name" attribute on the HTML generated by is automatically set to the name of the action that will be receiving the form input, if I'm not mistaken. So, in your case, it would be named "doit", if I'm not mistaken. This, I believe, is done to support validation through javascript. Jim Kenn

R: struts plugin

2003-10-31 Thread Mario
Yes, just point to /struts/console.html You can clear xml cache and see global/session scope objects. -Messaggio originale- Da: gianluca [mailto:[EMAIL PROTECTED] Inviato: venerdì 31 ottobre 2003 17.09 A: '[EMAIL PROTECTED]' Oggetto: Re: struts plugin Really good. How can i clear xtask

Re: tag question

2003-10-31 Thread Jim Kennedy
I figured it out. It's actually set to the name of the form-bean. And I can live with that. Jim Kennedy IT Consultant Mobile Phone: 813-503-1484 - - Original Message - From: "Ruth, Brice" <[EMAIL PROTECTED]> To: "Struts Users Mailing

Re: Connection pool and MessageRessources

2003-10-31 Thread Ovidiu EFTIMIE
Yes I know it is very tighly integrated with Struts, and actualy we're comply with all things you've enumerated below. The validator will not be used because all validation will be done with javascript already present in the jsp page, and the only server side validation we'll have will be to f

Mappings

2003-10-31 Thread Edgar P Dollin
Has anyone encoded map keys as path parameters in the struts config? I am doing this but was wondering if there were any 'gotchas' I haven't forseen. What I am doing (in MockStrutsTestCase) is using the 'success' forward from an action be conditional or hard-coded. If it was conditional (develop

Re: findByProperty() in the scaffold.sql.AccessBase - Need One Additional Parameter to the Pair of Property/Value

2003-10-31 Thread Caroline Jen
Please help. Need your clever ideas. Thank you. --- Caroline Jen <[EMAIL PROTECTED]> wrote: > I am using the findByProperty method in the > org.apache.commons.scaffold.sql.AccessBase. The > findByProperty method takes "one" pair of > property/value as it parameters. As such, visitors > of > the

Requiredif error?

2003-10-31 Thread Greg Hess
Hi All,   I get the following error when I submit my form using the requiredif:   25 Oct 2003 12:03:13,311 - ERROR org.apache.commons.validator.Validator - reflection: null java.lang.reflect.InvocationTargetException     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M

Re: Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread Ruth, Brice
Thanks for the pointer to your blog, between that and the example provided by the Tomcat docs, I was able to get what I was looking for - fully automated pre-compiling & deploying. Excellent! Holman, Cal wrote: I am using tomcat 5.0.12 and struts 1.1 with tiles and have been successful in preco

Deploying struts application on iplanet 6.0 or 4.0

2003-10-31 Thread alok . garg
Hello , I want to deploy the struts application on iplanet 6.0 or 4.0. Thanking you in advance... Alok Garg Polaris Software Lab Ltd. ( + 91 - 022 - 28290019 Ext. # 1308 ) This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an

Re: Design decision for Globals class

2003-10-31 Thread Kirk Wylie
Craig R. McClanahan wrote: Typesafe enums make sense when the underlying data really is an enumeration of values that represents the total set of valid inputs to a method. This is true, for example, when the constants are the integer subscripts into a fixed size array, and you want to avoid the po

RE: Requiredif error?

2003-10-31 Thread Ramadoss Chinnakuzhandai
Try fieldTest[0] -Original Message- From: Greg Hess [mailto:[EMAIL PROTECTED] Sent: Saturday, October 25, 2003 12:21 PM To: Struts Subject: Requiredif error? Hi All, I get the following error when I submit my form using the requiredif: 25 Oct 2003 12:03:13,311 - ERROR org.apache.

Re: Unit Test Actions

2003-10-31 Thread Ted Husted
Steven Woody wrote: I skimmed through the code, but dont get a concrete ideal. Does ProcessAction.java is a part of 'Scaffold'? Would you please point me to a full documentation about the project? Thanks! There's some coverage in the book, but it's really not documented outside of the source co

2 message resource files andmessages in Action class problem

2003-10-31 Thread Ashish Kulkarni
Hi, I have 2 message resource file defines in my struts-config file, it works perfect in jsp where i can use "bundle" keyword on tag, but it does not work in my action class where i want to set messages from message resource So works fine in jsp while errors.add(ActionErrors.GLOBAL_ERROR,

Re: 2 message resource files andmessages in Action class problem

2003-10-31 Thread atta-ur rehman
hi, what do you mean by "when i try to dispay it"? are you using tag or some other mechanism? in your JSP page have you tried: ATTA - Original Message - From: "Ashish Kulkarni" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 31, 2003 10:32 AM Subject: 2 message reso

Re: [OT]How can i reply to the thread ???

2003-10-31 Thread Looser
[EMAIL PROTECTED] schrieb: Your email client should prompt or have an option to use "Reply-To" instead of "From" address. If not, just before you send it substitute "[EMAIL PROTECTED]" for the "To" address. Ok , let´s try ...

question

2003-10-31 Thread Chiming Huang
HI, How does a brower request the main.jsp if forward to "success" from an action class? Does it add a http://hostname before the "/main.jsp"? How does Struts get the hostname information? Please see the action-mapping below. Currently I am having problem if users access our logon page by

sending object with query.

2003-10-31 Thread imran ali
Hi All, I am sending a parameter with query request in this way: function foo() { url = "/LoanGeniusWeb/pricingQuoteDetail.do?"; url += &object + 'abcd'; document.quoteListForm.action = url; document.quoteListForm.submit(); } Now instead of 'abcd' If I want to pass a collection of obje

RE: Deploying struts application on iplanet 6.0 or 4.0

2003-10-31 Thread James Mitchell
You're welcome in advance. Now, what's your question? -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (c) 770.822.3359 (h) AIM:jmitchtx > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, Octobe

RE: Connection pool and MessageRessources

2003-10-31 Thread James Mitchell
As far as what will happen in the future, Struts will be using Resources from the commons sandbox (well, once it is released). You should take a look over there for more ideas. Thanks and good luck!! -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.

Store object in "application" scope

2003-10-31 Thread Ruth, Brice
I'm writing a servlet that will do some init jobs and I'd like to be able to store some objects in "application" scope so that they are visible from my JSPs - how best would I go about doing this from a Servlet? My Servlet class is extending HttpServlet and I'm going to be implementing the init

Re: 2 message resource files andmessages in Action class problem

2003-10-31 Thread Ashish Kulkarni
Hi yes if i do that it works fine, but my problem is the following some error messages come from maps.properties file, which is default and some come from approval.properties file, so is there a way to make a single tag work for both Ashish --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > hi, > >

Re: Store object in "application" scope

2003-10-31 Thread Ruth, Brice
Nevermind, I think I have it, thanks. Ruth, Brice wrote: I'm writing a servlet that will do some init jobs and I'd like to be able to store some objects in "application" scope so that they are visible from my JSPs - how best would I go about doing this from a Servlet? My Servlet class is exten

Re: 2 message resource files andmessages in Action class problem

2003-10-31 Thread atta-ur rehman
i'll add two tags in the jsp page! ATTA - Original Message - From: "Ashish Kulkarni" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, October 31, 2003 11:21 AM Subject: Re: 2 message resource files andmessages in Action class problem > Hi > yes if

Re: Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread David Erickson
We currently have an ant function that just builds the directory structure of a deployed webapp then points tomcat at that build directory.. is there anyway to precompile the jsps in this situation without creating a war? And how does tomcat know to goto the precompiled files when a request for th

Re: Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread Ruth, Brice
Yep, the same setup works in that situation - and the way Tomcat knows to use the precompiled JSPs is that special entries for each of the servlets generated from jasper (the JSP compiler) are entered into the web.xml file (this, of course, can be automated). David Erickson wrote: We currently

idName attribute not in nested:radio TLD file

2003-10-31 Thread Nate Bowler
Is there a reason for this? I need this attribute, so I just added it to the TLD myself. It seems to work fine. Is it an oversight? I only did a quick check, but I couldn't see from the source code why this wouldn't be in there. Nate Bowler --

Re: Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread David Erickson
What values are expected to go into the uriroot, webXMLFragment, and outputDir? Are they the full path names on the local file system? like c:\whatever or /home/whatever or is it web context path stuff like /salesweb/WEB-INF or whatever? Thanks David - Original Message - From: "Ruth

RE: Store object in "application" scope

2003-10-31 Thread Richard J. Duncan
getServletContext.setAttribute(...) Regards,   Rich -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 2:20 PM To: Struts Users Mailing List Subject: Store object in "application" scope I'm writing a servlet that will do some init jobs and I'd

RE: Store object in "application" scope

2003-10-31 Thread Wiebe de Jong
I do the same thing. Here is a code snippet: public class AppStart extends HttpServlet { // this will execute at startup public void init() throws ServletException { // province/state list ArrayList provList = new ArrayList(); getServletContext().setAttribute("appProvList", provList); Wi

Re: Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread David Erickson
Ok I solved that question its looking for an exact directory. But now I'm getting this error when trying to build: java.lang.NoClassDefFoundError: org/apache/xerces/impl/XMLNSDocumentScannerImpl$NSContentDispatcher And I made sure that my path has the newest versions of the xerces jars... any ide

Re: Store object in "application" scope

2003-10-31 Thread Ruth, Brice
OK, I'm having very little luck with this. I'm trying to pre-parse an XML document that is used by a few different JSPs, so that each of them doesn't need to do a and - I've checked the source for the JSTL XML ParseSupport class to see what its doing, and it seems pretty basic (I'm not using

RE: Deploying struts application on iplanet 6.0 or 4.0

2003-10-31 Thread alok . garg
I want to deploy my Struts application which is running in Tomcat in iplanet server version 6.0. with no service packs Alok Garg Polaris Software Lab Ltd. ( + 91 - 022 - 28290019 Ext. # 1308 )

Re: sending object with query.

2003-10-31 Thread Manish Singla
"attribute" ( and getAttribute ) is utility of java servlet container. You cannot have attributes in client script... General HTTP request do not support "attribute". imran ali wrote: Hi All, I am sending a parameter with query request in this way: function foo() { url = "/LoanGeniusWeb/pricin

RE: Deploying struts application on iplanet 6.0 or 4.0

2003-10-31 Thread James Mitchell
You will need to upgrade to 6.1. If I were you, I wouldn't waste my time trying anything less. If your customer/boss says they can't or won't, tell them that they will spend more time trying to "make" it work then they ever would have if they had just upgraded...trust me! -- James Mitchell

RE: Store object in "application" scope

2003-10-31 Thread Nail, Evan Burke
Hey Brice, I would agree I don't think it's finding your bean, as a result its trying to instantiate a Document object, and of course being an interface Document doesn't like someone trying to instantiate it. If your object is in the app scope, your should just be able to use it. You could

RE: Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread Holman, Cal
The jasper2 taskdef should not need your own lib directory - it should load with the tomcat and jdk libs. If so then it is using tomcat's xerces and all should be ok. Also it looks like you have some "\" in the wrong place. The build directory that the URI root points 2 should be the root dir

dtd check on validation.xml: date pattern

2003-10-31 Thread Robert Lamping
I made a stupid mistake. I intended to validate a date and entered the following Pattern dd-MM- On one machine this worked, as the DateFormat.SHORT format was obviously

Buttons in Struts

2003-10-31 Thread Caroline Jen
We have for the submit buttion in struts. I am trying to add some additional features to the submit button: Read/Send Mails I wonder if there is something like it in struts. __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/prom

RE: dtd check on validation.xml: date pattern

2003-10-31 Thread Yansheng Lin
I think you can do something like this: Don't know exact syntax though unfortunately:). -Original Message- From: Robert Lamping [mailto:[EMAIL PROTECTED] Sent: October 31, 2003 4:09 PM To: Struts Users Mailing List Subject: dtd check on validation.xml: date pattern I made a stupid m

Re: Buttons in Struts

2003-10-31 Thread Takis Diakoumis
there is a style tag in the dtd. use as you have in your example. - Original Message - From: "Caroline Jen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 01, 2003 10:31 AM Subject: Buttons in Struts > We have for the submit buttion in > struts. I am trying

Re: use html:link pass two param

2003-10-31 Thread javen fang
Thanks all, thanks James Mitchell! I use the method James Mitchell tell me. And I read JSTL Spec and tutorial in javaword.com http://www.javaworld.com/javaworld/jw-02-2003/jw-0228-jstl-p3.html But I encouter a error,and I don't know why this occur: javax.servlet.ServletException: Invalid propert