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
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
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
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
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
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
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
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.
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
Hello,
I am trying to figure out what the input attribute in the action mappings is
for. Could anyone help please.
Cheers
Neil
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
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
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
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.
>
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
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 [
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
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
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.
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
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
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
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--
__
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
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
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
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?
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.
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
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
61 matches
Mail list logo