Template Problems

2001-05-24 Thread Jon.Ridgway
Hi All, I have just started looking at the template tags and have run into a problem : Root Error-1: Server caught unhandled exception from servlet [jsp]: Server caught unhandled exception from servlet [jsp]: OutputStream already obtained javax.servlet.jsp.JspException: Server caught unhandled

Options tag problem

2001-05-24 Thread Mikkel Bruun
Hi Guys! I have an ActionForm which contains a HashSet named Persons that contains several instances of Person In my jsp i want a dropdown box showing the Person's name. code: This points to the getPersons() method in the ActionForm that'll return a HashSet... Now I need to access each ele

Error - unable to extract the files in the jar files

2001-05-24 Thread shirleyl
Hi, I have created an applet application. The applet is residing on an Apache web server 1.3 and Servlet Exec 3.0 AS. When I try to access the application from another PC, there is an error, that is 1 of the file in the jgrid.jar file cannot be extracted. All the other files in other jar files c

removing request parameters before action forward

2001-05-24 Thread Stefan Seidel
Hello to all, I don't know how to remove request parameters just before leaving a perform(...) method. 1) Is this a bad practice or wrong design? 2) if not, how can I do this? What I'am trying to do: A jsp page displays some items. If one clicks an item, the same page shows again with an incre

RE: struts framework without its TAG LIBRARIES in jsp pages how?

2001-05-24 Thread Nanduri, Amarnath
You can ignore the Tag Libraries and still use the ActionServlet, Actions and ActionForms functionality. Write your own html . The beauty of using the Tag Libraries is that they are fully internationalized. But if internationalization is not an issue, then by all means write your own html without

Re: Template Problems

2001-05-24 Thread Dan Miser
Be sure you're using at least Beta 2, and you can add the flush='true' attribute to the template:get tags. -- Dan Miser http://www.distribucon.com - Original Message - > Root Error-1: Server caught unhandled exception from servlet [jsp]: Server > caught unhandled exception from servlet [j

Re: struts framework without its TAG LIBRARIES in jsp pages how?

2001-05-24 Thread Peter Alfors
You sure can. just use HTML or your own custom tags. Pete Sanjay Melinamani wrote: > > hi, > > I am trying to make use of struts framework in our application. But can I > > implement the frame work "without" using its Tag libraries? If so how can > > I do it? Basically I do not wnat to use Stru

Re: dynamic button names

2001-05-24 Thread Peter Alfors
It looks as though the ButtonTag and SubmitTag do not allow you to do this. Therefore, you have a few other options. 1. Use HTML along with the message tag... "> 2. Write your own custom tag. You could extend the SubmitTag and over-ride the getValue() call to retrieve a resoure bundle key.

Re: removing request parameters before action forward

2001-05-24 Thread Andrew Steady
I have a similar question which perhaps could be asked at the same time. I have a JSP that submits to an Action with a certain set of parameters, the ActionClass then forwards to another ".do" if succesful, when this ".do" is called the corresponding form bean is created and populated with reques

what is 'input' for

2001-05-24 Thread Blue, Neil
Hello, I am trying to figure out what the input attribute in the action mappings is for. Could anyone help please. Cheers Neil

RE: How to use the new iterate tag?

2001-05-24 Thread Deadman, Hal
It seems like overkill because the alternative would be simple scriptlet: <% int i=0; %> <%= ++i %> But I think it makes sense to have a tag, my opinion is that the overhead from tags should be insignificant compared to the overhead from network and database access. Nobody has to use the tag

RE: what is 'input' for

2001-05-24 Thread Firmin David
If the validate() method of the actionform returns errors, the framework will call the page specified by the mapping's "input" attribute so that they can be displayed. The idea is that the input attribute specifies the page from which the input required for the action is obtained. HTH Dave

RE: Cancel an upload form (Problem not solved yet)

2001-05-24 Thread Peter Doyle
Hi, I'm currently faced with this problem. I'm uploading a zip file. My servelt renames the file, unzips it then returns. All grand. The problem is if the user presses cancel of there is some delay or file access issue, the files become locked. When the user tries to repeat the procedure it canno

RE: dynamic button names

2001-05-24 Thread Deadman, Hal
Isn't this what you want to do? > -Original Message- > From: Peter Alfors [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 24, 2001 9:39 AM > To: [EMAIL PROTECTED] > Subject: Re: dynamic button names > > > It looks as though the ButtonTag and SubmitTag do not allow you to do > this. >

Re: dynamic button names

2001-05-24 Thread Scott Walter
just set the property attribute on the struts submit tag. scott. --- Neil Blue <[EMAIL PROTECTED]> wrote: > Hello, > > I am planning a struts app and I would like to know > please if there is a > way to set the text of a submit button, based on a > key from the > ApplicationResources.propertie

RE: dynamic button names

2001-05-24 Thread Blue, Neil
Thank you Peter, It has also now been pointed out to me that you can set the value of a submit button by using a two part tag or something close to this if I remember correct. I have found it hard to get some docs on this. Cheers Neil -Original Message- From: Peter Alfors [

Re: dynamic button names

2001-05-24 Thread Peter Alfors
Yep that will work. I've never used that tag (SubmitTag) before, but now that I look at the code a little closer. You are right. Ya learn something new every day. :) Pete "Deadman, Hal" wrote: > Isn't this what you want to do? > > > > > -Original Message- > > From: Peter Alfors [mail

RE: Template Problems

2001-05-24 Thread Jon.Ridgway
Hi Dan, Many thanks, I now have a beautiful looking webapp.. Jon. -Original Message- From: Dan Miser [mailto:[EMAIL PROTECTED]] Sent: 24 May 2001 14:08 To: [EMAIL PROTECTED] Subject: Re: Template Problems Be sure you're using at least Beta 2, and you can add the flush='true' attribute

64K limit

2001-05-24 Thread Mat Diss
Has anyone come across the problem whereby the 64k method limit is reached as Jasper puts all the generated Java into the _jspService method? If I have a page with a lot of custom tags in it, I get this problem. If you have come across the problem, have you found a way around it? Cheers Mat.

RE: dynamic button names

2001-05-24 Thread Thane Eisener
Title: RE: dynamic button names I'm not able to get this to work since I upgraded to b2. The following shows a button with the text "Click" (I assume "Click" is the HTML default). All the other internationalized strings are working fine. Any ideas?   -Original Message- From:

RE: 64K limit

2001-05-24 Thread Nanduri, Amarnath
yeah ... check the archives . Somebody has posted a solution. Alternately you can go to http://husted.com/about/struts for the solution -Original Message- From: Mat Diss [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 4:13 PM To: [EMAIL PROTECTED] Subject: 64K limit Has anyon

Re: 64K limit

2001-05-24 Thread Mat Diss
Has anyone found a solution that doesn't involve using includes? We have a custom tag that needs to surround the entire page and you can't use jsp:include whilst you are inside a custom tag. Mat. Nanduri, Amarnath wrote: >yeah ... check the archives . Somebody has posted a solution. Alternate

RE: dynamic button names

2001-05-24 Thread Deadman, Hal
It looks like this was broken in a recent update. The ButtonTag.java needs a doAfterBody() method in order to set the text instance variable to the body content. That will make it work like the SubmitTag.java. You should submit this as a bug on Bugzilla. http://nagoya.apache.org/bugzilla/ If you c

Re: tool for the struts-config.xml

2001-05-24 Thread Mikael Eriksson
Hello I think the portability has to do with that the file is read from the WEB-INF directory and that it is not always possible to store thing there. So probably a struts-config-config application would not have the same problem, depending on how it wanted to handle the file. A way to handle i

Struts Example on WebSphere 3.5.3

2001-05-24 Thread Alexander, Glynn (LIT)
Has anyone tried to get the Struts Example to work on WebSphere 3.5.3. I have followed the installation instructions as described in http://jakarta.apache.org/struts/installation-was352.html omitting the fix for 3.5.2 assuming it has been fixed in 3.5.3. I have then followed the instuctions to g

RE: Options tag problem

2001-05-24 Thread Deadman, Hal
I don't think the option tag will work like that. You can either put your Hashset in some scope, call it something like "persons" and then use the Or you could have two methods on your form, one that returns a collection of Strings for the label and another that returns a collection of Strings

Using tags from Java code

2001-05-24 Thread John Raley
Having functionality in taglibs is great, until you want to use the functionality outside of a JSP (i.e. in the implementation of your own tag). It would seem fairly easy to write a 'tag player' that would instantiate a tag and run it from within code - is this really necessary? Any other id

uploading files.

2001-05-24 Thread Andy Wicks
Hi, I'm using jakarta-struts-1.0-b1 with a Resin 1.2.5 container running on hpux11. When I post a form with a form struts tag including method="POST" enctype="multipart/form-data" The servlet throws an exception like this: java.io.IOException: No such file or directory at java.io.UnixFileSys

RE: uploading files.

2001-05-24 Thread GIBSON,ROB (HP-Boise,ex1)
Andy, If you haven't already, you might want to check out: http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config= struts-dev_jakarta_apache_org&restrict=&exclude=&words=enctype and http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config= struts-user_ja

Re: Using tags from Java code

2001-05-24 Thread John Raley
Yes, my own tags tend to be factored such that most of what they do is available from other contexts. This is not necessarily the case with other taglibs I'm interested in... Mostly I was looking for a general solution to this problem - I'd prefer to use a tag as its author expects over pori

RE: Struts Example on WebSphere 3.5.3

2001-05-24 Thread Ravindran Ramaiah
Follow the Steps: - · Start the WebSphere Administrative Console · Once it's started, select "Convert a War File" from the tasks toolbar option, or from the Console->Tasks menu. This will cause a "Convert War File" Wizard dialog to appear. · Select a Servlet E

enctype.

2001-05-24 Thread Andy Wicks
Hi, I'm using jakarta-struts-1.0-b1 with a Resin 1.2.5 container running on hpux11. When I post a form with a form struts tag including method="POST" enctype="multipart/form-data" The servlet throws an exception like this: java.io.IOException: No such file or directory at java.io.UnixFileSys

RE: struts framework without its TAG LIBRARIES in jsp pages how?

2001-05-24 Thread Sanjay Melinamani
but my question is how? If we use HTML, how is the "ActionForm" gets delegated to Action::perform() method? I guess we have to explicitly use the ActionForm bean and call its "set" methods...I am not sure about this ! If u suggest me as how is the ActionForm will be delegated to the Action::perf

Re: struts framework without its TAG LIBRARIES in jsp pages how?

2001-05-24 Thread Peter Alfors
when you submit a form, you just need to set the action to the action class that you want in invoke. If you have your web.xml set up to use the Struts ActionServlet whenever the desired mapping is encountered, then you should be fine. Check out the Struts example application to make sure that y

Regarding making your own tags with Struts

2001-05-24 Thread Raj Malhots Surrey
Hi, I have a field called email in my form. I do have an error with this field.So, in my ActionForm I add an ActionError for that and I can access it in my JSP file using tag. But can you tell me if there is some way or some tag in Struts by which I can change the font of the label Email in r

tricky mapping

2001-05-24 Thread Yuriy Zubarev
Hello everyone, I'm not quite sure that my question is truly struts-related, but since I'm developing a web-application using struts as a framework, I decided to post it here. A little proem. I'm in the middle of developing a web-mail facility and I've come to the point where I have to display m

Re: Struts Example on WebSphere 3.5.3

2001-05-24 Thread Dan Miser
I wouldn't use the directions from the web site. Some steps are obsolte, some aren't needed, and some are fine. I've combined everything into one HOWTO and posted it here before, but I don't see that it's made it up to the Struts web site yet. I'll upload the writeup to my web site tonight whe

RE: Regarding making your own tags with Struts

2001-05-24 Thread Deadman, Hal
You can change the font of the header by modifying the values for errors.header and errors.footer in your application resources properties files. errors.footer= errors.header=Validation ErrorYou must correct the following error(s) before proceeding: You can write your own tags in struts the same

struts example application query

2001-05-24 Thread B Manikandan
Hi, In the example implementation, what is the reason for having Subscription and SubscriptionForm. They are essentially the same. Is this out of a cleaner design approach ?? Mani

form out of order in struts-example?

2001-05-24 Thread andrew_hart
I have downloaded the Struts framework for evaluation. I have it installed on a Sybase Enterprise Application Server (EAS) aka Jaguar. Most of the installation issues seemed to be similar to JRUN's... I had to manually copy the xml files from the WAR files... and I had to edit the same tag prop

RE: tricky mapping

2001-05-24 Thread John Schroeder
Yuri, I have run into something similar with Excel files, but I'm not sure if it will address your current issue. My problem: when users run a report, return to them an Excel worksheet instead of HTML. Our particular approach used JSP's to easily handle the formatting of the Excel doc, but you b

RE: what is 'input' for

2001-05-24 Thread Blue, Neil
Thank you Dave, That will explain the error messages that I have been getting too :) Neil -Original Message- From: Firmin David [mailto:[EMAIL PROTECTED]] Sent: 24 May 2001 15:34 To: '[EMAIL PROTECTED]' Subject: RE: what is 'input' for If the validate() method of the actionform return

RE: tricky mapping

2001-05-24 Thread Yuriy Zubarev
John, Thanks a LOT!!! "Content-disposition" header made my day. There is still a problem when user selects "Save target as..." but when he clicks the link a browser suggests the default name as expected. Thanks again! Best of luck, Yuriy Zubarev --- John Schroeder <[EMAIL PROTECTED]> wro

RE: New ActionMapping Class

2001-05-24 Thread Michael Binette
Great. It worked. I am using this so that I can easily use one action class for multiple actions such as "view", "edit", "delete" and "save", where it makes sense. I wanted multiple Action mappings such as /editUser.do and /saveUser.do but have them both use the same Action class. I used your T

more connection pool problems ....

2001-05-24 Thread Gogineni, Pratima
I see the following strange behavior or JRUN and *Not* on TOMCAT. I have an access database that is registered as an ODBC "user dsn" - the connection pool finds the datasource the runs fine in tomcat but when the same war file is running in JRUN a URI not found exception is thrown. But if create

RE: struts framework without its TAG LIBRARIES in jsp pages how?

2001-05-24 Thread Nanduri, Amarnath
Sanjay, Use the tag . It will automatically create your bean. Use jsp tags to set the properties of the bean. In your form post, when you call the action.do , the ActionServlet will automatically populate the bean (the bean that is mapped to this action in the struts-config.xml file), call it

RE: Options tag problem

2001-05-24 Thread Deadman, Hal
I don't think the option tag will work like that. You can either put your Hashset in some scope, call it something like "persons" and then use the Or you could have two methods on your form, one that returns a collection of Strings for the label and another that returns a collection of Strings

RE: what is 'input' for

2001-05-24 Thread Deadman, Hal
That's where you will forwarded back to if the validate() function on the ActionForm returns errors. > -Original Message- > From: Blue, Neil [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 24, 2001 10:22 AM > To: [EMAIL PROTECTED] > Subject: what is 'input' for > > > Hello, > > I am tryi

Re: digester and whitespace in XML text body

2001-05-24 Thread Mark Simms
I believe the digester must be rewritten to support the JAXP 1.1 specs. wow, almost everything in digester is now deprecated... - Original Message - From: "Nick Afshartous" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, May 24, 2001 1:25 PM Subjec

RE: more connection pool problems ....

2001-05-24 Thread Roman Fail
The most likely reason is that Jrun runs under the SYSTEM account or some other account besides the one you are logged in with. A "User" DSN works with one specific account only. I guess Tomcat runs under the currently logged in user. Consult the JRun docs to find out what account it runs u

struts-upload.war

2001-05-24 Thread Ken Torimaru
Hi Are there any known problems with struts-upload.war When I try to run it I get the following: 500 Servlet Exception java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1159)

RE: more connection pool problems ....

2001-05-24 Thread Gogineni, Pratima
Title: more connection pool problems Thanks - there is no problem with running under the system dsn - I was just wondering why I should see different behavior on the two appservers.   I didnt see anything in the documentation but the JRun news groups seems to have several threads and w

subclassing ActionServlet?

2001-05-24 Thread iwanek
Hello struts-users, My webapp needs bunch of beans that should be available all the time and accessible from all JSP pages, so I guess I have to create the beans at the startup time and set them to the application context. How should I do this? My candidates are, 1) create a subclass of ActionS

Possible to access Init Params from JSP??

2001-05-24 Thread Peter Smith
I have access to the parameters in my web.xml file from a class which extends ActionServlet using: getServletConfig().getInitParameter( SOME_KEY ); I'd like to access those same parameters from a JSP which is 'forwarded' to. Can it be done? Thanks. --Peter-- __

Re: Possible to access Init Params from JSP??

2001-05-24 Thread George Craig
Yes you can. Here is how to do it: <%= application.getInitParameter(SOME_KEY) %> - George - Original Message - From: "Peter Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 24, 2001 9:48 PM Subject: Possible to access Init Params from JSP?? > I have access to th

who provides ActionMapping class?

2001-05-24 Thread iwanek
Hello struts-users, A newbie question: Who is responsible for providing ActionMapping class? My prototype webapp runs fine with descriptions in the struts-config.xml, I did not have to write ActionMapping.java for this myself. I must be missing something. Digester documetation seems to me to i

Re: subclassing ActionServlet?

2001-05-24 Thread Jim Richards
I made a sub-class of ActionServlet an overloaded the initXXX() method that created the connecion pool. I did this because my database manager beans needed access to the connection pool parameters. The other choice is to use something like a singleton or factory bean pattery that generates the o

Re: Possible to access Init Params from JSP??

2001-05-24 Thread Jim Richards
George Craig wrote: > Yes you can. Here is how to do it: > > <%= > application.getInitParameter(SOME_KEY) > %> Does this actually work? I've had report that in Tomcat and JRUN, it doesn't seem to return the values. Has anyone used it?

How to run example ?

2001-05-24 Thread Mahesh
Hi all, can any of you tell me how to run the struts example ? I am using Jakarta-tomcat as my webserver ? Thanks heaps. Mahesh.

Request from contributer user.....

2001-05-24 Thread Jonathan Asbell
Hello all.  I am still only a few months playing with struts but I would like to ask if you wouldn't mind putting more detailed debugging in the framework.  I personally am studying the framework by reading about it, but most importantly by watching how it performs step by step.  I do this b

digester and whitespace in XML text body

2001-05-24 Thread Nick Afshartous
I'd like to follow up on my original post. It looks like the digester.CallMethodRule.body method doesn't remove whitespace from both ends of the XML body text. However, other rules like digester.CallParamRule.body actually do by calling method String.trim. Maybe the call to String.trim should