RE: Forwards and frames

2001-03-07 Thread Corbishley, Damien
we have a similar situation. What we did to solve it was this. The login page was a normal HTML page, no frames, this sent the details to our server (username / password) , where the server validated the request and forwarded it to our Welcome.jsp. This Welcome.jsp is actually a frameset

Unable to execute any examples ...

2001-03-07 Thread Raymond
Hi, I've dowloaded last version of Struts, and I'm trying to execute first example of bluestone. I've always the same error : org.apache.jasper.JasperException: Unable to open taglibrary /WEB-INF/struts-bean.tld : Parse Error in the tag library descriptor: com.sun.xml.parser/V-036 web-app

Database pooling code

2001-03-07 Thread Jim Richards
Has anyone got the database pooling code/DataSource to work or specifically had it fail? I've been having problems (documented previously) and I've read about a few others who can't seem to get the pooling to work as well, and I want to get an idea of specifically where the problem might lie in

URGENT RE: token issue in hyperlink

2001-03-07 Thread Nanduri, Amarnath
Hello, I have posted this before. This is extremely urgent for me. I know that the token support exists for posting Form(s). How can i ensure that this same token will be issued to a hyperlink so that i can validate that the user will click on the hyperlink only once ? Any help is greatly

Re: simple forward/redirect

2001-03-07 Thread Matthias Bauer
Thanks for the quick response. Ana Narvaez Vila wrote: You could define a 'general' ForwardAction that simply makes the forward in its perform. Something like this. public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse

setting token in jsp page...

2001-03-07 Thread Nanduri, Amarnath
Hello all, Is there a way that i can set a token in a jsp page ? When the user enters the first page in a web application, i want to set a token (to guard agains't double submission). The reason for this question is that..the user HAS TO BE IN THE FIRST PAGE , before he/she can go to

Re: Database pooling code

2001-03-07 Thread Matthias Bauer
Database pooling works pretty well for me. But there are some pitfalls, when a connection times out or the database server is restarted. As the framework does not check if a connection is still valid before returning it to the application you will run into an exception when trying to use a

Re: JSP design

2001-03-07 Thread Martin Quinn
How do i get off this list ? [EMAIL PROTECTED] wrote: Hi I am a new-comer in the struts area and trying to evaluate the framework to use for our new B2B project. I have been going thru the examples and documentation where capturing the request and further delegation is explained. I have

Re: simple forward/redirect

2001-03-07 Thread Martin Quinn
Please take me off this list. Matthias Bauer wrote: Thanks for the quick response. Ana Narvaez Vila wrote: You could define a 'general' ForwardAction that simply makes the forward in its perform. Something like this. public ActionForward perform(ActionMapping mapping, ActionForm

RE: Database pooling code

2001-03-07 Thread Johan Compagner
Do you just test the isClosed() method? My plan was to execute a small sql code that has a very little overhead and alway's returns normal for every db if the connection is still good. But i don't know what kind of sql statement works for every db. johan -Original Message- From:

Struts Framework Class Model

2001-03-07 Thread JeffTaillon
Hello I say a request for the class model of the struts framework. I attached the model file. Unzip and open the readme file. For me it helped a lot... A+ Jeff StrutsFrameworkModel.zip

RE: Populating a Form

2001-03-07 Thread Johan Compagner
Mostly at my place this is nothing more then setting one id!! I would love to have the abillity that i didn't need any action for this. johan -Original Message- From: Michael McCallister [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 4:16 PM To: [EMAIL PROTECTED]

RE: Database pooling code

2001-03-07 Thread Deadman, Hal
Weblogic's connection pooling lets you specify the SQL statement that you want to test with. In Oracle you would typically test a connection with "select dummy from dual". I think you need to allow the test SQL statement to be configured for each pool. If an exception is raised when it is

Parallel Forms Bean Instances, does Struts support it

2001-03-07 Thread Sarbjit Singh
Hello, I am new to Struts. One thing that is key in making a decision on weather to use or not to use Struts is this. Suppose I have an ActionForm with class type com.myapp.MyServiceForm. This would be a form bean that would represent some sortr of service in an application that is

RE: Parallel Forms Bean Instances, does Struts support it

2001-03-07 Thread Nanduri, Amarnath
Correct me if i am wrong One way to do it would be to give 'request' scope to the form. In the Action class, you set the form to a session scope, under a different key...one for each different service. Make sure that only one kind of Action can handle one kind of service. i.e for

Re: URGENT RE: token issue in hyperlink

2001-03-07 Thread Michael McCallister
Here is what I do in a similar situation: html:link paramId="role" paramName="role" page='%="/user/saveUser.do?action=Removeorg.apache.struts.taglib.html.TOKEN=" + session.getAttribute("org.apache.struts.action.TOKEN")%' Removenbsp;Role /html:link It's ugly, but it works

Re: Database pooling code

2001-03-07 Thread Steve A Drake
On Wed, 7 Mar 2001, Jim Richards wrote: Has anyone got the database pooling code/DataSource to work or specifically had it fail? I've been having problems (documented previously) and I've read about a few others who can't seem to get the pooling to work as well, and I want to get an idea

Minimizing Action class proliferation

2001-03-07 Thread DONNIE HALE
I'm certainly not the most experienced Struts person around, so weigh my opinions accordingly. However, it's repeatedly occurred to me that one of the "barriers to entry", so to speak, of using Struts is the rapidity with which Action classes proliferate. The project we're working on, which

RE: URGENT RE: token issue in hyperlink

2001-03-07 Thread Nanduri, Amarnath
Mike, Thanks a lot. It works. I did vote for this enhancement to take place. One question i have is...how come i don't see the session id in the address bar ? Is it because GET limits the number of characters that can be kept in the Address Bar ? Also i did not see the sessionid when i

yet another interesting question on tokens

2001-03-07 Thread Nanduri, Amarnath
Hi all, In the Action class , on calling the isTokenValid() method, we can find out if a token is valid (or) not and send the user to an error page (or welcome page). My question is..when the user double-submits, how can i ignore the second submit i.e. i don't want to kick the user off

RE: URGENT RE: token issue in hyperlink

2001-03-07 Thread Michael McCallister
I can't speak about the address bar (different browsers probably behave differently), but if you aren't seeing it in the generated source then there is a problem. To confirm, you don't see the org.apache.struts.taglib.html.TOKEN=4bb7c9e6084fbf88acc2aa976ea9e3 string in your

RE: WLS5.1/SP8 Problem defining JSP class

2001-03-07 Thread BAlappatt
Hi Bob! Thanks a lot... the problem is solved. I think earlier my SP8 was not active due to wrong positioning in the weblogic path. Much appreciated. Biju Isac

RE: URGENT RE: token issue in hyperlink

2001-03-07 Thread Nanduri, Amarnath
I was able to see the Token . I am talking about the jsessionid that will be created for a hyperlink. If the html:link tag is used, it automatically re-writes the url to include a jsessionid. I was unable to see this. Thanks. cheers, Amar.. -Original Message- From: Michael

Re: Database pooling code

2001-03-07 Thread Ted Husted
Work is under way on a database connection pool that can be used by Struts and other Jakarta products. The codebase includes several requested features, including monitoring expired connections. For a few additional details, see http://www.webappcabaret.com/rwald/dbcp/ . Rodney Waldhoff is

Any reference on how to handle errors in web applications?

2001-03-07 Thread Shamdasani Nimmi-ANS004
Hi, Does anyone have any references like articles, etc. on the best practices for handling errors in web application. Are there any guidelines available anywhere? Thanks in anticipation. -Nimmi

Re: Parallel Forms Bean Instances, does Struts support it

2001-03-07 Thread Sarbjit Singh
Hi, thanks for the quick reply/ That would beok if we had a well defined number of services. These services are dinamically created by the user. For example: Do give a scop of what i am trying to do: Imagine an application that would allow you to create and mantain multiple Instances

Re: URGENT RE: token issue in hyperlink

2001-03-07 Thread Ana Narvaez Vila
I think you must disable the cookies of your browser "Nanduri, Amarnath" wrote: I was able to see the Token . I am talking about the jsessionid that will be created for a hyperlink. If the html:link tag is used, it automatically re-writes the url to include a jsessionid. I was unable to

Re: Database pooling code

2001-03-07 Thread DONNIE HALE
Ted, I've seen a lot of discussion re: connection pooling, etc. Perhaps you can answer my question as to why people just don't use the connection pooling in drivers supporting the JDBC 2.0 spec (apart from the obvious situation where the drivers don't yet support 2.0, in which case,

RE: Problem for connecting DB

2001-03-07 Thread Wang, Meng
Here is the whole exception info: Error: 500 Location: /database-test/logon.do Internal Servlet Error: java.lang.NoSuchMethodError at com.sapmarkets.isa.cic.LogonAction.perform(LogonAction.java:117) at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja

Re: Interface testing

2001-03-07 Thread Zach Thompson
Thanks - I think JUnit will help a lot to improve my development process. I'm still interesting in hearing about techniques people use to separate the design of the UI (jsp pages) from the backend implementation (Action classes). Currently, I have to write ActionForm's and Action's so the jsp

RE: Parallel Forms Bean Instances, does Struts support it

2001-03-07 Thread Nanduri, Amarnath
Don't predefine id's. Generate them dynamically. For example the id may be based on the appservername + port on which it runs. Since you will be storing all this info in the same session, you can get to any appserver that you want to and start/stop the services (or) whatever you want to do

RE: Minimizing Action class proliferation

2001-03-07 Thread Hines, Bill
I know what you're saying, but hopefully your action classes are small, and you haven't emulated the example application, which places business logic in the Action class. That stuff should be in separate business logic beans (code to do the database access, business logic, etc). Maybe that's what

Question/Problem using Multiple Select Options

2001-03-07 Thread Spencer Smith
Help! Unable to send back muliple select options. // Define the Array protected String[] geography; // Get the Array public String[] getGeography() { return (geography); } // Set the Array public void setGeography(String[] geography) { { this.geography = geography; } }

Re: Tomcat 3.2.1

2001-03-07 Thread Donnie_Hall
I've found the problem and will post it as a bug. I just wanted to see if anyone else has run into this situation. We've tested it on several machines here and have encountered the same error. First of all the environment. struts - 1.0-b1 - installed in c:\jakarta-struts-1.0-b1 tomcat -

RE: Interface testing

2001-03-07 Thread Hardee, Tony
I have a SuccessAction which is just an simple action that forwards to success. To test a JSP with the request first flowing through the ActionServlet you need only specify a mapping for the JSP to test in the struts-config.xml file. In the mapping specify SuccessAction as the type and your jsp

RE: Minimizing Action class proliferation

2001-03-07 Thread DONNIE HALE
Bill, Thanks for responding. I understand what you're saying re: keeping the action classes simple. However, it still makes the whole cycle more tedious than perhaps it needs to be. It's harder to write "helper" methods, perhaps for bean manipulation, that can be shared across action classes.

Problem with using logic:equal tag

2001-03-07 Thread Thai Thanh Ha
I want to use logic:equal with a boolean attribute of a bean. But I always received error: -- Exception Report: javax.servlet.ServletException: No bean found under attribute key currentSupplier at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp

RE: Tomcat 3.2.1

2001-03-07 Thread Sudheendra Hebbagilu
Hi.. This is the from the archive... dated: Tue 2/13/01 Subject: Classpaths and the "struts.jar" file From: Craig R. McClanahan [[EMAIL PROTECTED]] Hope this helps Sudhi There has been some confusion around the issue of

build problems, finding javax.sql.DataSource

2001-03-07 Thread Mike Begeman
I am having problems building any of the applications found in struts. It can't seem to import the javax.sql.DataSource package. Does anyone know where I might find this package? Here are the details of the error: [javac]

Re: Problem with using logic:equal tag

2001-03-07 Thread Dung Hoang
Hello, There's nothing wrong with the Struts logic handling the boolean value. The problem is that you misunderstood the iterate syntax. Looking at the thrown exception, it seems that it couldn't find your bean. In your code, logic:iterate id="currentSupplier"

Re: Struts Framework Class Model

2001-03-07 Thread Joel Cordonnier
Could you repost the model with a XMI format ? Thanks Joel --- JeffTaillon [EMAIL PROTECTED] a crit : Hello I say a request for the class model of the struts framework. I attached the model file. Unzip and open the readme file. For me it helped a lot... A+ Jeff ATTACHMENT

Re: can't get struts working w/ orion ...

2001-03-07 Thread Wayland Chan
This has been discussed in length on both the struts-user and orion-interest mailing lists. I suggest you search www.mail-archive.com for hints. If I recall correctly, Struts-1.0b1 won't work in Orion (for exact reasons, search the above). Try Struts-0.5 and it should work fine. --- "G.L.

RE: Minimizing Action class proliferation

2001-03-07 Thread Dan Cancro
Bill Hines said: I know what you're saying, but hopefully your action classes are small, and you haven't emulated the example application, which places business logic in the Action class. Are there plans to revise the example application so it doesn't have these problems? Personally, I think

question about ActionForm reset()

2001-03-07 Thread Sean Giles
I have a Actionform with request scope populated using PropertyUtil.copyProperties() and forwarded another page. All the properties display correctly on that page but when I actually submit I see the reset() method being called and then validate(), however between reset() and validate() the form

a simple struts test

2001-03-07 Thread G.L. Grobe
Should my struts-config.xml have to be configured if I'm just testing to see ifI can get struts working w/ Orion. I've been having trouble getting struts working with orion 1.4.5. I've done everything the struts docs have said for the install and taken out all struts*.tld's from the

Re: HTML Radio

2001-03-07 Thread Martin Cooper
It looks like no bean was found for the form in which your radio button is contained. Struts is trying to obtain the actionType property from this bean to set up the radio button. Since your html:radio tag does not specify the name attribute, Struts looks for the bean for the html:form tag. You

select options

2001-03-07 Thread Nick Pellow
Hi, Looking at: http://jakarta.apache.org/struts/struts-html.html#select I notice that for the name attribute, the following description is given: name The fully-qualified java class name of the bean containing the underlying property. [RT Expr] Is this correct? I thought 'type' was usually

Indexed and nested references

2001-03-07 Thread John Tangney
Hi I have been away from this list for a while, so please forgive me if this is a known problem. I was not able to find a reference... I am using a JSP with a form bean that has the following properties: Vector questions; String foo; There are the usual accessors: public

Re: Cannot find message resources underkeyorg.apache.struts.action.MESSAGE

2001-03-07 Thread Martin Cooper
In a word, internationalization. (OK, it's a very long word! :-) ) Different users may be running in different locales, so the message resources need to be stored on a per-user basis. -- Martin Cooper - Original Message - From: "Jeff Schnitzer" [EMAIL PROTECTED] To: [EMAIL PROTECTED]

RE: Form tags

2001-03-07 Thread Ted Bergeron
Does anyone have any ideas about this? -Original Message- From: Brian Knorr [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 06, 2001 12:16 PM To: [EMAIL PROTECTED] Subject: struts -- Form tags Ted, Hi... I was wondering if you ever heard anything back from the struts user group on the

Dynamic selections from Option tag

2001-03-07 Thread Cameron Ingram0
Hi All, The scenario is this, I have 2 option boxes I would like to make what is available in the 2nd option box dependent on what is selected in the first option box, is this possible? Ifnothow can I achieve the same affect. Thanks in advance Cameron Ingram

Re: Dynamic selections from Option tag

2001-03-07 Thread Nick Pellow
Cameron Ingram0 wrote: Hi All, The scenario is this, I have 2 option boxes I would like to make what is available in the 2nd option box dependent on what is selected in the first option box, is this possible? If not how can I achieve the same affect. This is possible, and i believe

RE: Problem for connecting DB

2001-03-07 Thread Wang, Meng
So, Did you figure out the problem? Thanks! Meng Wang -Original Message- From: Jim Richards [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 06, 2001 7:17 PM To: [EMAIL PROTECTED] Subject: Re: Problem for connecting DB Can you send the top few lines from the exception stack trace? I

Re: Anyway to onFocus without Javascript?

2001-03-07 Thread Eric Rasmussen
Well, there is, but I don't think this answers the original question. You can use the focus attribute of the html:form tag: html:form action="[action]" focus="[name of field to focus on]" Alas, this will make it so that that field is always focussed on, not the field that gave the error. I

RE: Minimizing Action class proliferation

2001-03-07 Thread Niall Pemberton
Donnie, How about this as an alternative. I have created a subclass of Action called StandardAction which uses reflection to invoke a method with the same name as the "actions" path (defined in the struts-config.xml file). So all you have to do is extend the Standard action and implement methods

Re: setting a property from a parameter

2001-03-07 Thread Martin Cooper
Would somebody please tell me the proper way to set a form property from a request parameter? The short answer to this is that you don't - Struts does all the work for you. If the submitted query string contains 'mode=foo', then Struts will call setMode("foo") on your form bean before your

Re: JSP design

2001-03-07 Thread Martin Cooper
1. Dispatch schedule entry screen When your input form is submitted, Struts will populate a form bean with the values from that form, and pass the form bean to your Action class's perform() method. Your perform method would then prepare and issue the database query (or have some other business

Re: Preferred HTML Editor

2001-03-07 Thread Paul Jackson
DONNIE HALE wrote: It's got Tomcat built into it, so you can right-click on a JSP and say "Execute". It also has auto-completion for custom tags - once you put the prefix:tag in, it will show the list of parameters for that tag. ... Of course that means we'll all get Alzheimer's at

Re: URGENT RE: token issue in hyperlink

2001-03-07 Thread Martin Cooper
The session ID will only show up in the URL in two cases: 1) On the first request in the session (i.e. session creation time). 2) When cookies are disabled in the browser. On the first request, the server sends the session ID back to the browser both in the URL and in a cookie, because it

Help in deciding weather or not to use struts

2001-03-07 Thread Mindaugas
I'm new to struts, but I've had expierence with MVC, JSPs, and the like. I'm using Resin1.2.3 as my servlet runner. I've come into a bunch of problems using Resin + Struts and I don't know if its because of resin, or because of struts. First of all, when i put struts.jar into my

Re: Parallel Forms Bean Instances, does Struts support it

2001-03-07 Thread Martin Cooper
In your example, if the app servers have the same set of configuration items, then you only need one ActionForm class to represent that common set of items. One of the properties of your form bean would be the identifier you use to identify the particular app server associated with a request. You

Re: Minimizing Action class proliferation

2001-03-07 Thread Martin Cooper
I'm not sure if you would consider this a brute force approach or not, but here goes. You could add a parameter to your requests to identify the "sub-action" or "command" you want to invoke. At the top of your perform() method, you can call getSubAction() on your form bean, and take whatever

Re: question about ActionForm reset()

2001-03-07 Thread Martin Cooper
Could you post your JSP, or a fragment of it? That would probably help us help you. Thanks. -- Martin Cooper - Original Message - From: "Sean Giles" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 07, 2001 2:57 PM Subject: question about ActionForm reset() I have a

Re: select options

2001-03-07 Thread Martin Cooper
It seems the documentation is wrong. It should be something like this instead: - 8 - The attribute name of the bean whose properties are consulted to determine which option should be pre-selected when rendering this input field. If not specified, the bean associated with the form tag we

how does a jsp find the resource file

2001-03-07 Thread G.L. Grobe
I've been following the examples trying to get struts working w/ orion. When I go to a url like http://localhost/cais/index.jsp, I expect the following jsp test page to show up. But since it's mapped to the action servlet in the web.xml file (below), and since the jsp page has no reference to a

Re: can't get struts working w/ orion ...

2001-03-07 Thread Alan Yackel
Yeah, same here. I noticed that when I use tomcat I get this message: Resolving to alternate DTD 'jar:file:/usr/local/jakarta-tomcat/webapps/struts-upload/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd' But when I use orion it says this: Resolving to alternate

Re: can't get struts working w/ orion ...

2001-03-07 Thread Thierry Cools
Follow the instructions below and it should work - Original Message -From: "Ate Douma" [EMAIL PROTECTED]To: "Orion-Interest" [EMAIL PROTECTED]Sent: Friday, December 15, 2000 20:19Subject: Re: Struts 1.0 - Anyone Do It? Ok, once more: Deploying the stuts 1.0 pre-release example web

Help with BeanUtils.populate()

2001-03-07 Thread J.Teo
Hi, First off, let me say that I'm not building on top of the Struts framework. Rather, I'm leveraging the libraries and tag libraries. I'm writing my own controller servlet and I tried to use BeanUtils to populate my bean with: public class MyController { . . . public static void

question about access property value?

2001-03-07 Thread JeanX
Hi struts-user, How to get property value that defined in the struts_config.xml by set-property tags? And how does it work? :=) Best regards, JeanX pacificnet.com(GZ)