use html:link pass two param

2003-10-31 Thread javen fang
I have a bean list that have two property id / name code: -- html:link action=next.do paramId=first paramName=list paramProperty=id next action /html:link -- And how can I pass the second

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 another

Re: Iterating List of Lists

2003-10-31 Thread javen fang
Where is member tag from??? Your own taglib? --- Choopong C. [EMAIL PROTECTED] wrote: Try like this table logic:iterate id=organization name=organizations member trtd bean:write name=organization property=title/

Re: Hidden Field

2003-10-31 Thread Manish Singla
You may use html:hidden property=keyValue value=%= username%/ just a note: you may use . bean:parameter id=username name=REMOTE_USER value=null/ instead of request.getRemoteUser(); Manish Singla Caroline Jen wrote: html:hidden property=dispatch value=author/ works well because author is

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

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 member 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

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 : BODY marginheight=0 marginwidth=0 table border=0 cellpadding=0 cellspacing=0 width=100% tr bgcolor=cyan !-- banner -- td height=70 valign=toptiles:insert

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: action path=/setupModifyData type=activegroup.hdb.struts.action.LockDatasetAction scope=request

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

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 html:errors/). I have previously done it in the validate method in the Form bean, but don't know

Re: euro date

2003-10-31 Thread Mark Lowe
Just define the form property as a string form-property name=date type=java.lang.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

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

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 (the

RE: tiles and margins

2003-10-31 Thread Holman, Cal
Try taking the html and body tags out of the header and body tags. They should be tables 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

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,

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 =

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 style tags in the head, or use a linked stylesheet -- you can declare that in a definition, if you use a controller you can dynamically set it. set: body { padding: 0px; margin: 0px; } use

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

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

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] To:

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: html:text property=users.userName size=10 maxlength=10/ i want to do something like : bean:write property=users.userName/ 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: html:text property=users.userName size=10 maxlength=10/ i want to do something like : bean:write property=users.userName/ but this is not

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) bean:write name=users property=userName/ and also c:out value=${users.userName} should work F. - Original Message - From: struts [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]

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 List

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

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

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 bean:write name=users property=userName/ 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,

RE: html:text i'm lost

2003-10-31 Thread Mike Jasnowski
The name you provide for the name attr in bean:write/ 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

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: bean:write name=userForm property=users.userName / Susan On 10/31/2003 08:57:41 AM Mike Jasnowski wrote: The name you provide for the name attr

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 bean:write name=users

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 PROTECTED]

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

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

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

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

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 of

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:

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 bean:message * any of your jsp pages use tags that use MessageResources (which are any that use

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 connection

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:

Re: use html:link pass two param

2003-10-31 Thread Kris Schneider
web.xml: !-- mapping for ActionServlet -- servlet-mapping servlet-nameaction/servlet-name url-pattern/do/*/url-pattern /servlet-mapping Quoting Ruth, Brice [EMAIL PROTECTED]: How do you go about enabling path mapping v. extension mapping in web.xml (or struts-config.xml)? James

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: !-- mapping for ActionServlet -- servlet-mapping servlet-nameaction/servlet-name url-pattern/do/*/url-pattern /servlet-mapping Quoting Ruth, Brice [EMAIL PROTECTED]: How do you go about enabling path mapping

Re: struts plugin

2003-10-31 Thread gianluca
Really good. How can i clear xtask cache ? http://www.xmoon.it 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

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: html:link action=next.do ... when he said, you should never have to put .do any where in your

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)

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

html-el:form tag question

2003-10-31 Thread Jim Kennedy
Here's my standard html form tag: form name=main action=doit method=post 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: html-el:form name=main action=/doit.do method=post scope=request name has another meaning for this tag.

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

Re: html-el:form tag question

2003-10-31 Thread Ruth, Brice
The name attribute on the HTML generated by html:form 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.

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: html-el:form 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 List

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

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

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 web site

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 Method) at

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

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

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

RE: Requiredif error?

2003-10-31 Thread Ramadoss Chinnakuzhandai
Try var-namefieldTest[0]/var-name -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 -

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

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 bean:message .. tag, but it does not work in my action class where i want to set messages from message resource So bean:message key=approval.001 bundle=approvals/ works

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 html:errors tag or some other mechanism? in your JSP page have you tried: html:errors bundle=approval / ATTA - Original Message - From: Ashish Kulkarni [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 31, 2003

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 ... -

forward ... redirect=true 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 IP

sending object with query.

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

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, October

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

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

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, what

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

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! html:errors / html:errors bundle=approval / 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

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

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

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 jasper2 validateXml=false uriroot=/salesweb webXmlFragment=${WEB-INF.dir}/generated_web.xml outputDir=${WEB-INF.dir}/src / the uriroot, webXMLFragment, and outputDir? Are they the full path names on the local file system? like c:\whatever or /home/whatever

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);

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

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 c:import and x:parse - I've checked the source for the JSTL XML ParseSupport class to see what its doing, and it seems pretty basic

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: script function foo() { url =

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

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

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 field property=datumIngediend depends=required, date arg0 key=aanvraagForm.datumingediend.toonnaam/ var

Buttons in Struts

2003-10-31 Thread Caroline Jen
We have html:submit for the submit buttion in struts. I am trying to add some additional features to the submit button: BUTTON TYPE=submit NAME=submit VALUE=submit STYLE=font: 10pt Arial Black; background:Teal width:75px; height:25pxRead/Send Mails/BUTTON I wonder if there is something like it

RE: dtd check on validation.xml: date pattern

2003-10-31 Thread Yansheng Lin
I think you can do something like this: !ELEMENT var-name (datePattern| min | max | maxLenght) 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

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. html:submit style=font: 10pt Arial Black; background:Teal width:75px; height:25px - Original Message - From: Caroline Jen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 10:31 AM Subject:

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