RE: CHARACTER ENCODING !

2002-01-24 Thread Wasniewski Arkadiusz
Polish chars in index.jsp are in iso-8859-2 not UTF-8! Arek -Original Message- From: wojtek [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 10:19 PM To: Struts Users Mailing List Subject: Re: CHARACTER ENCODING ! Here it goes, thanks for help. Wojtek --

Re: Using CSS with struts jsp's

2002-01-24 Thread Martin Fekete
Hi, using html:base / and relative paths are OK but not when using templates. solution that works fine is simple ... LINK REL=stylesheet HREF=html:rewrite page=/pathToCss / TYPE=text/css Feky - Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL

Re: CHARACTER ENCODING !

2002-01-24 Thread Martin Fekete
problem is that file is not saved in encoding you have declared. when you want to use UTF-8 your page must be writen in that encoding. Try to save it in some editor which supports saving in different encodings (f.e. jEdit). Feky - Original Message - From: wojtek [EMAIL PROTECTED] To:

Re: CHARACTER ENCODING !

2002-01-24 Thread Martin Fekete
encoding of property files don't affect encoding of JSP files. i write my .properties files in Cp1250. then i convert it using native2ascii. all my JSP are Cp1250 (contentType=text/html; charset=windows-1250) and everything works fine. problem in this case might be that your JSP is not saved in

DTD validation

2002-01-24 Thread Jin Bal
How do I cleanly switch off or force struts and the web.xml to validate the dtds that are on my local machine as opposed to trying to resolve the url declared in the xml file (which sometimes can be unavailable). I've commented out the doctype declaration as a stop gap measure but this isn't an

Re: persistance for wizard type forms

2002-01-24 Thread Christian Bouessay
Ted Husted wrote: One approach to a wizard is to group the properties into pages, and pass the page number as a hidden property. The reset and validation methods can then use the page number to decide which set of properties to validate. I'm using this approach, but don't store page

Re: Model Persistence Survey

2002-01-24 Thread Francisco Hernandez
thanks for the clearification of that, I thought had used a DAO to implement the persistence so that itself was the persistence mechanism - Original Message - From: Keith Chew [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 23, 2002 11:55 AM

RE: property 'property' not set in NestedSubmitTag

2002-01-24 Thread Tom Klaasen (TeleRelay)
I believe you :-) But even in that case, the tag should not throw an NPE. IMO, it would be better then to adapt the tld to make property required. tomK, loving the Belgian beer ;) -Original Message- From: Arron Bates [mailto:[EMAIL PROTECTED]] Sent: woensdag 23 januari 2002 23:43

RE: Using CSS with struts jsp's

2002-01-24 Thread David Bolsover
Hi Why is everyone making this so difficult? !-- @import ./styles/style.css; -- works fine! David Bolsover -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 24 January 2002 02:48 To: Struts Users Mailing List Subject: Using CSS with struts jsp's Hi, I am

How to have internationalized selectboxes???

2002-01-24 Thread Dirk Storck
How can I have internationalized and configurable selectboxes? I need selectboxes wich have depending on the uses local different labels but the values must be the same and it should not be hardcoded somewhere. Any suggestions are welcome! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

Re: Using a tag to compare two beans

2002-01-24 Thread Martin Fekete
you got two beans (b1, b2) and properties in each of them (b1.p1, b2.p2) then this should work bean:define id=p name=b2 property=p2 / logic:equal name=p1 property=p value=%= p % ... /logic:equal Feky - Original Message - From: Afshartous, Nick [EMAIL PROTECTED] To: [EMAIL PROTECTED]

RE: Should all validation be done in the Action class instead of the ActionForm class?

2002-01-24 Thread Tom Klaasen (TeleRelay)
FWIW, according to the book professional site programming which I started to read recently, the recommended design pattern is to do basic validation in the ActionForm (is a number, is a date), and the more business-oriented validation in the Action (is a positive smaller than 10, is a date AD).

Re: Re[2]: CHARACTER ENCODING !

2002-01-24 Thread wojtek
BINGO !!! You are great Daigo! Wojtek - Original Message - From: Daigo Moriwaki [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 3:07 AM Subject: Re[2]: CHARACTER ENCODING ! Hi, wojetk 2002/01/24 Thu AM 05:53 wojtek [EMAIL

Re: way to use bean:write with label value beans

2002-01-24 Thread Keith Bacon
Hi Rob, struts handles this for you in it's usual brilliant style! in jsp== html:select name=linkListForm property=selectedLinkSelectionOption html:options

RE: How to have internationalized selectboxes???

2002-01-24 Thread Andres Marcel (KASO 211)
Hello Dirk, You can use a select like this: html:select property=select value=defaultValue size=1 html:option value=/defaultValuebean:message key=fromApplicationRessource1 / /html:option html:option value=/secondValuebean:message key=fromApplicationRessource2 //html:option html:option

Re: Includes and processing time

2002-01-24 Thread Keith Bacon
Hi all, I tend to think that %@ include file=my_page.jsp % is bad, %jsp: include page=my_page.jsp % is best. Any opinions on this? If you change an included file I assume all the jsp's that access it are recompiled next time they are used (or can be manually recompiled). Which could be very

A pure Java Question ---Urgent --please help

2002-01-24 Thread Alvin Kutttikkat Antony
Hi there, we are working on a Directory Project. Yesterday we made it online.We are using Novel E-directory as backend and JRun as Web server running on a linux server. The real problem is the memory for the Ldap server is getting dumped with ldap requets . My

RE: Should all validation be done in the Action class instead of the ActionForm class?

2002-01-24 Thread Keith Bacon
IMHO.. The simple design is to do all validation in your business logic classes none elsewhere. Easier to maintain less code. Business logic classes shouldn't make any assumptions that validation has already been done in the GUI so anything done in the GUI must still be duplicated in the

Re: Solved: Splitting ApplicationResource.properties

2002-01-24 Thread Keith Bacon
got me past all my confusion was printing out the relevent classes and writing all sorts of notes all over. Then I slapped my forehead and said Duh!, and put the code together this morning. That's where I've been going wrong - I left out the going Duh step. Thanks Becky. My office is full of

Re: Should all validation be done in the Action class instead of the ActionForm class?

2002-01-24 Thread Ted Husted
The Struts/Commons validator offers a very nice approach in that it lets you do domain type validations up front. The validations are defined in an XML file, and the library can then generate both JavaScript and server-side Java validations from the same source. This is a helpful precursor to

[ANNOUNCE] Second Edition draft article Best Practice with Expresso

2002-01-24 Thread Peter Pilgrim
Hi Just a quick note This might be relevant to those of you interested Jakarta Struts and Expresso. -- Peter Pilgrim ++44 (0)207-545-9923 Swamped under electionic mails -- Forwarded by Peter Pilgrim on

Re: Includes and processing time

2002-01-24 Thread Arron
Actually... for performance, the first one is best. Why?... as when the main page is compiled, the files included by this method are included as if they were written in the one file, and then compiled. If a change is made to the include, it wont be picked up unless the main page is

Re: How to get List/Collection from request attribute withform validation.

2002-01-24 Thread Brian Holzer
Hi there, I just went through this exact same issue. What I ended up doing, is in the struts-config file I changed the validation to false and then called the ActionForm.validate() method from my Action class. If the ActionErrors returned from that method is not empty, then I had to get

RE: DTD validation

2002-01-24 Thread Witt, Mike (OH35)
You can have a public and a system doctype tag. Though, I've found problems with this because our production machine is a Solaris server using Iplanet, and I am developing on a NT box with tomcat. So I'm always doctoring the tags to make them work on my local box and then undoctoring them

Forwarding to a jsp in different war file

2002-01-24 Thread Chokshi, Arpit (CAP, GEFA)
Hi, I have two war files, on a button press on the A.jsp in the first war file I want it to forward it to B.jsp in a different war file. Both the war files are in the same ear file. I tried giving the path of the B.jsp file in the first war files struts config, but it try's to find that path in

RE: DTD validation

2002-01-24 Thread James Holmes
Struts uses its own DTD resolver and *should* be able to resolve DTDs with or without a connection to the internet. I would not comment out the DOCTYPE declaration in the config files. If you do not want your config files validated for some reason you can turn this off by setting the validating

HREF issue

2002-01-24 Thread Sidhartha Jain
Hi I am waiting for the solution for my problem for someone and seems no one is responding to it.I dunno know why this is happening.I would highly appreciate if someone could help me solve my problem. here i am stating my problem once again. I am having an issue with html:link tag of struts.

RE: DTD validation

2002-01-24 Thread Andrew B Forman
we have the same problem so we just turned off the dtd validation in the web.xml servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class ... !-- set to false to disable dtd validation -- init-param

Re: DTD validation

2002-01-24 Thread Jin Bal
I'm compiling from source and and the dtd's are in WEB-INF is this the right place for them? Also the validating param in the web.xml is already set to false howver we still had probs... Thanks Jin - Original Message - From: James Holmes [EMAIL PROTECTED] To: Struts Users Mailing List

RE: HREF issue

2002-01-24 Thread Andrew B Forman
I've used the following style and it's worked could probably streamline it a bit with a custom tag or something: SCRIPT language=JavaScript function openWindow() { window.open( , CreateNew, height=500,width=550,resizable=1,scrollbars=1 ); } /SCRIPT html:link

Reload classes and Application Resources

2002-01-24 Thread BARIS GUZELORDU
Hi there, I use VAGE for Java 3.5.3 with BEA Weblogic 5.1 as integration kit. I use struts. (Just for info) I import all the classes to Unix. And I start weblogic 5.1 server. Could anyone tell me that when I change any class (Action or anyother) or ApplicationResources, I export it onto weblogic

RE: Anomalies with sl:present (possibly AIX JVM issue?)

2002-01-24 Thread DONNIE HALE
Thanks for responding. I dumped the value of those constants, and they're identical on both platforms. I've tried one other thing to help determine what's going on. Seeing that the Struts code in RequestUtils and PropertyUtils sticks raised exceptions in the request context, I added the

AW: Reload classes and Application Resources

2002-01-24 Thread Hudayioglu, Fehmi
Hi, You can hot deploy anything you want. However, if you a change something in struts-config.xml or web.xml file, you have to restart your application server. By the way, you shouldn't move those classes to the weblogic's classes directory. Instead, move them to your

Re: Should all validation be done in the Action class instead of the ActionForm class?

2002-01-24 Thread Dick Starr
Thanks to all. Dick Starr - Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 7:05 AM Subject: Re: Should all validation be done in the Action class instead of the ActionForm class? The

RE: DTD validation

2002-01-24 Thread Witt, Mike (OH35)
I realize the struts-config.xml dtd is in the struts.jar and this seems to work fine on tomcat. But, on iPlanet, I was unable to get this to work. -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 9:47 AM To: Struts Users Mailing List

RE: DTD validation

2002-01-24 Thread Witt, Mike (OH35)
I put the web.xml dtd in WEB-INF\lib and do not specify a system dtd for the struts-config.xml. Tomcat seems to find this one just fine in the struts.jar. -Original Message- From: Jin Bal [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 9:57 AM To: Struts Users Mailing List

bean comparison using tags

2002-01-24 Thread Afshartous, Nick
(sorry if this got posted twice). Hi, I'm trying to perform an equal test on two String values accessed via two beans. So I'd like to do something like: logic:equal name=b1 property=p1 value=b2/ Yes, the two are equal /logic:equal but it seems that only literal

Re: Fw: Servlet.service() for servlet action threw exception java.lang.ClassCastException: com.nexgen.signup.SignupForm

2002-01-24 Thread Leo Amigood
- Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 23, 2002 7:16 PM Subject: Re: Fw: Servlet.service() for servlet action threw exception java.lang.ClassCastException: com.nexgen.signup.SignupForm Is

RE: way to use bean:write with label value beans

2002-01-24 Thread Rob Parker
Thanks Keith - I probably didn't explain my problem well enough. I am not having problems with the html:options at all. The problem that I am having is that when I save an option in the database from my form, I save the value portion instead of the label portion of the option. The value is an

Re: Question about forms and validation.

2002-01-24 Thread Ted Husted
You must be using the action as the input page, rather than the JSP. This is fine, especially if you are populating other fields which need to be displayed, but are not part of the ActionForms (select boxes, and so forth). You may need to set a flag in the ActionForm so that your action knows

Re: persistance for wizard type forms

2002-01-24 Thread Ted Husted
Christian Bouessay wrote: What are the good reasons to store page number in a hidden form? Is it a design issue? The Struts/Commons Validator lets you assign a page number to the various validations, and then performs those which are equal to or less than the page number in the request. This

RE: Anomalies with sl:present (possibly AIX JVM issue?)

2002-01-24 Thread DONNIE HALE
In case anyone's interested, this does appear to be a JDK issue. What I did was create a very simple main program: static void main(String[] args) throws Exception { HostessDollarBean hdb = new HostessDollarBean(); Object obj = getProperty(hdb, tables);

file upload

2002-01-24 Thread Ivan Siviero
I have this kind of problem but i don't know if it either depends on the struts framework or something else. The system configuration is Tomcat 4.0 and Apache Web Server. So, i have a file upload in my web page and it works fine when i access the application through the port number. When i

Re: bean comparison using tags

2002-01-24 Thread Fernando Esteban Barril Otero
Try to use the bean:define to get the property of the second bean (b2) first and then use logic:equal. bean:define id=strProp name=b2 property=p2/ logic:equal name=b1 property=p1 value=strProp Yes, the two are equal /logic:equal Fernando - Original Message - From: Afshartous, Nick

RE: way to use bean:write with label value beans

2002-01-24 Thread Keith Bacon
Not sure if I totally understand but - here's another try I usually have a class that 'wraps' the collection used in the select list. it has static methods like getSortTypeValueFromLabel getSortTypeLabelFromValue. I use these in my action class to translate between the formBean (uses the

[ANNOUNCE] Chiki v0.23 Source Available

2002-01-24 Thread Emaho, Ghoot
The Source Code for Chiki, the Wiki-like Community Building Tool is now available. See http://chiki.emaho.org http://chiki.emaho.org for details. There is now a mailing list for following all Chiki developments. If you are interested in further Chiki developments then please subscribe to the

RE: bean comparison using tags

2002-01-24 Thread Afshartous, Nick
From: Fernando Esteban Barril Otero Try to use the bean:define to get the property of the second bean (b2) first and then use logic:equal. bean:define id=strProp name=b2 property=p2/ logic:equal name=b1 property=p1 value=strProp Yes, the two are equal /logic:equal Thanks but the

RE: bean comparison using tags

2002-01-24 Thread Keith Bacon
Thinking about this I suspect the esteemed designers of struts think you shouldn't want to do this! It means you are putting logic in the jsp that should be in the Action class (or even the business logic). example:- for Cust Type = DisplayParm.CustTypOption1 display is in one format for

RE: Forwarding to a jsp in different war file

2002-01-24 Thread Jesse Alexander (KADA 12)
Hi, a war is a web-application. The servlet-engines consider different web-applications as if they were on different servers. That's why the ONLY way to get from webapp_1 to webapp_2 is redirect. hope this helps Alexander -Original Message- From: Chokshi, Arpit (CAP, GEFA)

How to use a URL as a parameter in another URL?

2002-01-24 Thread Alex Paransky
I need to build a URL which contains, as one of it's parameters on the query string, yet another full URL with parameters. Something like this: /url1?p1=ap2=/url2?pp1=app2=bp3=b I know its confusing (and wrong syntax), however, the intent is for /url1 to have the following parameters: p1=a

Re: How to use a URL as a parameter in another URL?

2002-01-24 Thread Nathan . Smith
I've used URLEncoder when passing URL's as parameters. Works on both JRun and WebLogic. Never seem to get any conflicts. Nathan Smith Data Warehouse [EMAIL PROTECTED] (207) 761-3305

RE: Proposed solution for HTTP vs. HTTPS

2002-01-24 Thread Ditlinger, Steve
Struts-folk: Please see the attached file as a demonstration of our proposed extensions for Struts. In the course of our work, we have had numerous projects where it was necessary to switch between using the http https protocols on a page

ActionForm and request parameters

2002-01-24 Thread Bryan P. Glennon
Morning - Is there anyway to get access to the request parameters in an ActionForm bean? I need one of the parameters to do a lookup so that I can correctly populate the form. Thanks, Bryan -- Bryan Glennon (mailto:[EMAIL PROTECTED]) BPG Consulting, Inc. (http://www.bpgc.com) Tech Question?

RE: ActionForm and request parameters

2002-01-24 Thread Martin Farrell
Hi You can just use the get set methods within a form, and use the validate method to control what variables are filled in when. alternatively use the action.perform method to check what parameters should be collected when martin -Original Message- From: Bryan P. Glennon [mailto:[EMAIL

RE: ActionForm and request parameters

2002-01-24 Thread Bryan P. Glennon
But what about the initial display? In order to populate the fields so that the initial getXXX() calls will display the correct data, I need to use a request parameter as a lookup key. Thanks, Bryan -- Bryan Glennon (mailto:[EMAIL PROTECTED]) BPG Consulting, Inc. (http://www.bpgc.com) Tech

How to redirect to login page

2002-01-24 Thread Sivasankaran, Vijay
Hi, I have three jsp which uses the struts framework first.jsp-second.jsp-third.jsp the second.jsp and third.jsp use the action form data of the first.jsp using html:text tag. All these works fine. But this poses a problem. I want the user to be redirected to first.jsp whenever they

RE: How to redirect to login page

2002-01-24 Thread Jeff Oberlander
Set a session variable in first.jsp, then create a custom tag that checks for that session variable and place the custom tag in second.jsp and third.jsp. If the session variable isn't there, forward to first.jsp. The sample app does this exact process with the CheckLogonTag. Go look at how

RE: ActionForm and request parameters

2002-01-24 Thread Brian Holzer
If you are doing an initial display, are you not loading the form values from within an Action? If so, request parameters are easily accessed as the request is one of the parameters to your perform() method by using the request.getParameter( paramName ); Brian [EMAIL PROTECTED] 01/24/02

RE: Forwarding to a jsp in different war file

2002-01-24 Thread Chokshi, Arpit (CAP, GEFA)
Hi Alexander, Thanks for your reply ! When you say redirect, does that mean that I have to use jsp:forward page=B.jsp /. Here again the issue is that this will only work in case the same context as of the A.jsp file. Also I will be calling it on a button press from a controller class (servlet),

Error using Struts example

2002-01-24 Thread Subhadra Vemuri
Hi, I downloaded struts release version 1.0.1. An example war file came along with it. I deployed the struts-example.war on Tomcat 3.2. I can see the index.jsp page. However, I get the following error when I click on either of the links (register and login) on index.jsp. A few of my colleagues

using logic tags and ApplicationResources values

2002-01-24 Thread McClung, Brian
I have a need to validate whether a Resource has a value associated with it. I was hoping to use the logic:messagesPresent tag but it I can't seem to get it to read from the bean:message tags. How do I nest the bean:message tag into another tag set so that the returned value of the tag is

RE: bean comparison using tags

2002-01-24 Thread Afshartous, Nick
Comments embedded below. From: Keith Bacon [mailto:[EMAIL PROTECTED]] Subject: RE: bean comparison using tags Thinking about this I suspect the esteemed designers of struts think you shouldn't want to do this! It means you are putting logic in the jsp that should be in the Action

help : iterate

2002-01-24 Thread Philippe Hodapp / 1genia
I don't know how to translate this in Struts Tag. This is killing my head. Can somebody help me please. Vector articles = (Vector)aLaUne.getArticles(); Article article = (Article)articles.get(0); out.println(article.getNoArticle()); -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

RE: help : iterate

2002-01-24 Thread Sahni, Ishtmeet
Hi Philip, Try this: I am assuming u have a formbean names aLaUne with a property articles which is a vector. Ypu can use following iterate tag. Do not forget to add taglibs logic:iterate id=articles name=aLaUne property=articles tr td bean:write

Help with simple iterate through an array

2002-01-24 Thread Andrew . Goodnough
I am trying the most basic iteration I can do on an array and I'm getting an error. My bean does have a getter on it so I'm not sure what's happening. Am I missing something obvious? I've included code from the JSP Page, the error, and the Java Bean. JSP Page %

Using JavaScript in Struts

2002-01-24 Thread chris williams
Hello, I would like to use javascript comes with struts 1.0. But, It expects me to have config directory in all the directories under the webapps/classes directory. For an example: I have webapps/classweb/abc/abc.jsp file, Struts expects to have webapps/classweb/abc/config/ directory and

Session in multiple windows on same machine

2002-01-24 Thread Sahni, Ishtmeet
Hi, I am using a singlr form bean for a couple of HTTP requests. This form bean has a session scope. As the session is related to a user through cookie or URL rewriting what happens if a user opens another instance of application (using open new window in browser) from existing instane. As the

redirect vs forward

2002-01-24 Thread Brian Holzer
Hey there, I am kind of confused about what the difference is between a forward and a redirect. In reading the documentation on the logic:forward and redirect tags. With the forward tag, whether a forward or redirect is sent, is determined by the redirect param in the action definition.

RE: ActionForm and request parameters

2002-01-24 Thread Bryan P. Glennon
I feel like I am being really dense here...I must be missing something. I understand that an action is executed after a submit (or am I wrong here as well?). So what I want to do is this: page1.jsp // This has a link to page2.jsp?parm=X I have a form bean for page2 that should

RE: Session in multiple windows on same machine

2002-01-24 Thread Keith Chew
Hi Let's start on url-rewriting. When you open a browser, eg http://localhost/page1.jsp;jsessionid=111 All the browser has is the session id, right? Now, clicking on Ctrl-N (new window) is no different from clicking on Refresh. Let's assume you did a Ctrl-N, you now have 2 windows. Ok,

Arggghhh...

2002-01-24 Thread Salsby, Kent
I've been battling with my Struts installation for a couple of days now and can't get rid of this error on Tomcat Startup. cannot load servlet name: action: org.apache.struts.action.ActionServlet I've seen several postings from other people (around the web) having this error but haven't seen

Re: redirect vs forward

2002-01-24 Thread Sean Owen
Say a browser requests page A in an application. If the application responds by forwarding to B, then a server-side forward takes place; the server sends back the contents of B but the browser doesn't know the difference. It asked for A and got something back that happened to actually be B.

RE: redirect vs forward

2002-01-24 Thread Robert Nocera
A redirect tells the browser to load a new page whereas a forward sends the current request on to a new action or page. The big difference is that in a redirect the browser is making a *new* request, in a forward, the current request is carried on to wherever with all the attributes of the

RE: redirect vs forward

2002-01-24 Thread Alex Paransky
A forward is something that occurs on the server side and the browser is not aware of it. A redirect, is something that comes back to the browser, and causes it to make a new requires (redirect) right way. The browser is aware of it and that changes the URL that the browser is pointing to. For

Re: help : iterate

2002-01-24 Thread Philippe Hodapp / 1genia
Hi Sahni, Thanks for your response, but this response only partielly to my problem. No i'm not using a FormBean, is it really necessary ? I use jsp:usebean tag to have a session of the aLaUne a instance of class ArticleContainer that contain the vector articles which is composed of a lot of

RE: ActionForm and request parameters

2002-01-24 Thread Brian Holzer
Okay, so here is what you do. Use an strutshtml:link tag like this that references an action instead of directly to the next jsp. in page1.jsp strutshtml:link href=page2.do?parm=X page2 /strutshtml:link define this action in your struts-config file action path=/page2

RE: ActionForm and request parameters

2002-01-24 Thread Pedone, Tim
If I'm not mistaken, if you link directly to the action (MyAction?parm=X), then Struts should put X into the ActionForm associated with that action if it has a parm attribute. It that what you are tring to accomplish? Tim -Original Message- From: Bryan P. Glennon [mailto:[EMAIL

RE: help : iterate

2002-01-24 Thread McDowell, Mark
I'm curious... Are you trying to figure out what Struts does to see if you might use it to solve problems, or has someone said to you, Use struts! and you are trying to follow directions? If you are trying to figure out what Struts does, see http://husted.com for some pretty good information.

RE: help : iterate

2002-01-24 Thread Sahni, Ishtmeet
Hi, You do not need to use form beans. It shouls=d work the way you are doing. See below how you can get the element from vector and use the object to get values of its attribute. logic:iterate id=articles name=aLaUne property=articles %Article art =

RE: redirect vs forward

2002-01-24 Thread Chokshi, Arpit (CAP, GEFA)
How do we redirect in struts ? .. I know we can use forward name=logon path=/logon.jsp/ in the struts-config.xml to forward to another jsp. Thanks -Original Message- From: Alex Paransky [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 3:57 PM To: Struts Users Mailing List

Re: redirect vs forward

2002-01-24 Thread Ted Husted
Here's a neat circumstance for a redirect. There's a batch process that the user's can run to get the latest whatever. When it runs, it marks the current records as being done, since the process is meant to run once per record. A good way to do this is to run the process, and then redirect to

Re: redirect vs forward

2002-01-24 Thread Joel Barnum
Chokshi, Arpit (CAP, GEFA) wrote: How do we redirect in struts ? .. I know we can use forward name=logon path=/logon.jsp/ in the struts-config.xml to forward to another jsp. How about: forward name=logon path=/logon.jsp redirect=true/ Joel --

Re: Help with simple iterate through an array

2002-01-24 Thread David M. Karr
Andrew == Andrew Goodnough [EMAIL PROTECTED] writes: Andrew I am trying the most basic iteration I can do on an array and I'm getting Andrew an error. My bean does have a getter on it so I'm not sure what's Andrew happening. Am I missing something obvious? I've included code from

Tempates

2002-01-24 Thread Lakshmi Anantharaman
I am trying to do something like this . I want a standard template and many pages to be rendered by one Template insert by passing variable to the content . Will is work . Is architecture proven to work in production situations . I like the templates tags and would like to use them this way !

RE: Tempates

2002-01-24 Thread Lakshmi Anantharaman
Some more information! This is defined in a page called umsManager.jsp For the firt time call to http://localhost:7001/umsManajer.jsp?action=viewOrg works fine but from the next time onwards when we make calls like from the current page like http://localhost:7001/umsManajer.jsp?action=viewOrg

html:option and the 65k wall

2002-01-24 Thread Danny Collins
Hello all, I have a jsp page that has a ton of very long option lists. These are all generated dynamically from the DB. The problem is, if we try to use the html:option tag we exceed 65k. What I would like to do is move each html:select with all of it's generated options into it's own

RE: redirect vs forward

2002-01-24 Thread Chappell, Simon P
I found a valid (for me) reason to choose redirection over forwarding. As part of switching to using cookies for user tracking ... When setting a cookie in an action, I was orginally forwarding to the next page and then wondering why I couldn't see the cookie that I had just set. This is

RE: redirect vs forward

2002-01-24 Thread Chokshi, Arpit (CAP, GEFA)
Hi, I'm trying to redirect on a button press from A.jsp in A.war file to B.jsp in B.war file. I tried to implement it using forward name=gotoEM path=http://localhost:8080/ExMEARWeb/jsp/start.jsp; redirect=true/ in my A.war's struts-config.xml file. So as per couple of mails that are going

Re: Question about forms and validation.

2002-01-24 Thread Dick Starr
Mike: I used your suggestions in RE: getting validation errors on initial display of a form and Ted's hint below and have had good success. I put out a post about validation and it appears that there should be validation logic in the java bean validate method (also, the Validator package, which

Re: html:option and the 65k wall

2002-01-24 Thread Arron Bates
Scott, it's not a data delivery question, but the fact that Java wont run a class over 64K. ...but what you recommend is cool, I've done apps like that myself. Most cool. :) Danny, it really is a case of optimising stuff until the class size is down Apollo 13 style. Any Javascript, get

Re: Model Persistence Survey

2002-01-24 Thread Mark Galbreath
You know, I've just been hearing a lot about Sun's JDO on the lists and just today by a developer in the office. I d/l all the stuff but haven't had a chance to check it out yet. Would someone give us a summary of what this tech is all about? Thanks! Mark PS It isn't necessary to simply

Re: Model Persistence Survey

2002-01-24 Thread Mark Galbreath
No, no, no. A DAO is a design pattern that acts as a conduit for data from your persistent objects (entity beans) that improves system performance. Mark - Original Message - From: Francisco Hernandez [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday,

Re: html:option and the 65k wall

2002-01-24 Thread Ted Husted
Might be an interesting use-case for Velocity templates. It's not an election of remedies; these can be used along side of JSPs as needed. So you could just pop one in here, and then go back to JSPs. http://husted.com/struts/resources/velstruts.zip -- Ted Husted, Husted dot Com, Fairport NY

RE: Arggghhh...

2002-01-24 Thread Anthony Martin
Do you have any data-sources defined? I can't tell by your email if you're using the nightly build, but they just deprecated the data-source parameter. You need to use set-property. Anthony -Original Message- From: Salsby, Kent [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24,

Re: html:option and the 65k wall

2002-01-24 Thread martin . cooper
I'm not sure I understand the problem you are having in relation to the form tag. I have several cases where I have select and option tags in a JSP page which is included within another JSP which actually contains the form tag. For example: A.jsp = ... html:form ... ... jsp:include

RE: html:option and the 65k wall

2002-01-24 Thread Danny Collins
Ted, thanks for the velocity stuff, I will check it out tonight. Scott, We tried the pop up approach but for some unknown reason our users are insanely against the popups. Although they won't be if we end up using the Javascript solution we have right now because even on big beefy

Re: Session in multiple windows on same machine

2002-01-24 Thread Jorge Ruiz \(SX\)
My conclusion is if you have designed your application to handle the Back and Refresh buttons, then you have inherently solved the Ctrl-N problem. How could you possibly do that? HTTP protocol has no way to tell the difference from a first GET, ot the GET from a refresh. I have the same

RE: How to redirect to login page

2002-01-24 Thread Reid Pinchback
Jeff Oberlander [EMAIL PROTECTED] wrote: Set a session variable in first.jsp, then create a custom tag that checks for that session variable and place the custom tag in second.jsp and third.jsp. If the session variable isn't there, forward to first.jsp. The sample app does this exact

RE: Session in multiple windows on same machine

2002-01-24 Thread Keith Chew
All I am saying is that the Ctrl-N is not a *special* case. Having 2 browsers is no different from having a single browser because on a single browser, you have the Back and Refresh buttons. In other words, whatever problems you have with multiple browsers, I can create the exact problem using

required attributes for 'Action' tag in struts-config.xml

2002-01-24 Thread Sriram Nookala
I have the following action mapping in my struts-config.xml: action path=/campaign/main type=com.proteusmobile.actions.CampaignMainAction /action When I build and run the application I get the following error: javax.servlet.ServletException: Cannot create rewrite URL:

  1   2   >