Hi,
I'm not a freak, but very interested in wizard-like web-applications, which could be
configured declaratively, without programming ;-)
I've seen a very good example in the book of Turau al. J2EE and JSP, in German.
He extends the ActionMappingBase.class and introduces a
Does anyone have an example of a Tomcat4.0 server.xml
that uses Contexts? I want to run an application that
has it's root outside of Tomcat's root directory but
keep getting XML parse errors for some reason. It was
all working fine on Tomcat3.2.
Any good resource on Tomcat4.0 would also be
To correct it, I think that you could also rename the classes.zip in
classes.jar.
I had a similar problem that I resolved like this.
arno
-Message d'origine-
De: Shamdasani Nimmi-ANS004 [SMTP:[EMAIL PROTECTED]]
Date: mercredi 29 aout 2001 00:57
A: '[EMAIL PROTECTED]'
Objet:
Hi, I am replacing my HTML(input) tags with form:text/ tags , thus no
problem nevertheless what do i use instead of HTML textarea
name=address rows=3 cols=30 align=middle/textarea
br tag. I assume that i can still use form:text property =address
rows=3 cols=30 align=middle/
You may say why don't
Hi Andre,
I picked up on something you said in your message yesterday about removing a bean from session scope. I have 2 pages in my application, the first page (archive.jsp) consists of select boxes, which populate each other without having to click on a submit button and the second page
Hi
I will confess from the start that this is not really a struts problem but I
am sure that members of the group will have seen this before and know the
solution.
I have a link on a jsp page to an external site : a
href=http://www.foo.com; foo.com/a
The problem is that when I browse to the
Nope. It's html:textarea.
David Corbin
- Original Message -
From: Chuck Amadi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 29, 2001 4:32 AM
Subject: Am i on the right lines regarding form:text/ tags
Hi, I am replacing my HTML(input) tags with form:text/ tags , thus
Hi,Depending on what you are trying to do or the scale of the applicationyou are building, you can declare the collection within your jsp pageand put it within the pageContext or you can declare it in your Action subclass and put it in the session. I found the last option to be a neater and
I have a link on a jsp page to an external site : a
href=http://www.foo.com; foo.com/a
When you have this page in your browser and do a View
Source is that really what you see?
Devon
Use many forwards in your action definition in struts-config, like
actionpath=/step3
type=xxx.xxx.xxx.step3Action
forward name=success path=/step4 /
forward name=failure path=/step3 /
forward name=skip path=/step10 /
forward
Hi,
I had a similar problem and tried to find the best way to handle the problem, without mixing JavaScript andjsp syntax. What I came up with was a series ofselect boxes, some ofwhich were dependant on others,that changed their values based onthe selection made in a different select box.I havea
Hi
I am trying the following code:
html:file name=scheme property=fileForm accept=.css
bean:message key=button.browse/
/html:file
and there are two problems with it.
1. the accepts key doesn't work
2. the label of the Browse... button doesn't change. I have the key in my
Hi,
Is there any way to obtain the action forward urls in jsps using their
logical 'struts-config' name? I'd like to code links etc point to certain
action forward urls found in struts config rather than hard coding the url?
Similarly I'd like to be able to change the action url of forms using
Is there anyway to add parameters to a success forward in a mapping? I'm
using iPlanet, so I have to add redirect=true on my forwards in order for
them to work. However, I want to retain some information that was set in my
SaveAction - so I'd like to pass it on via the request.
The options I
Hi, I have exstablished a connection and all but app_code values appear
in my Postgresql Database.
The app_code is A UNQIUE value that is required thru the process . I
have a jsp called planningdb that selects the following and displays the
values from the Database. Thus i have a html input
Hi all,
I am using Struts for an Intranet application (Linux,Sybase,Java) and it is
working very well.
The last thing I would like to do is forwarding automatically the current
client to the welcome page when his session is timeout, through a call to a
particular ActionForward of
this type of processing is better placed in the controller. i would suggest
either subclassing ActionServlet or providing a generic base class for each of
your Action classes which performs a check similar to:
HttpSession session = request.getSession();
if(session == null) {
In order to see if the client has a valid session, you will need to save
some data in the session, and in the beginning of each page check for this
data, for example the session key, or the user name. If the check returns
null then there is no session, and the user has to start over. We usually
I have an idea. Run a thread which continously checks currentTime -
session.getLastAccessedTime(). If that is greatetr than 15 minutes
this thread forwards to the index page.
From: Xavier Brunel [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: 'Struts-User [EMAIL PROTECTED]
Subject: How to
there's no way to do this...
what you can do is to redirect the user as a reaction to one of his actions,
pressing a link, submitting a form...
you just cant make his browser do stuff...
::
Mikkel Bruun
Senior IT Developer
[EMAIL PROTECTED]
Direct: +45 32 88 22 73
Valtech A/S
Hi Brian,
Check the Tiles contribution. Tiles allow to define regions/screens/templates
in a centralized file, and let an action forward to the region id.
For now, if you change the centralized file, you have to restart your webapps.
This can be solved by writing an administration page
I'm getting the following exception from a particular JSP:
org.apache.jasper.compiler.ParseException: .\AddCompany.jsp(58,36)
Attribute value should be quoted
at org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:478)
at
I'm having some problems getting the Logic present tag to fire when I pass
it a request parameter.
Could you be more specific so we can help? :)
Chris
Christopher Assenza
Phone: 412.201.6026
Fax: 412.201.6060
Email: [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/
-Original Message-
From: Mike Bungay [mailto:[EMAIL
Hi,
I am running Tomcat 4.0 and am trying to run the
Struts 1.0 sample application, struts-example.war. I have moved this file
into the Tomcat webapp directory, however when I try to access it I get the
following error:
A Servlet Exception Has Occurred
Exception
Devon
View source shows a href=http://www.foo.com; foo.com/a
Now the strangest thing - the problem has gone away - and I don't think I
changed anything of significance - very odd - I wonder if this could be an
ie6 thing?
david
-Original Message-
From: [EMAIL PROTECTED]
I am passing the success (request.setAttribute(success,yes);) parameter
back to the jsp but in the jsp when I try this code:
logic:present parameter=success
SCRIPT LANGUAGE=JavaScript
window.open(welcome.jsp, popupPage, top=0,left=0,resizable=yes,
status=yes +
What do you mean by 'clicks on the back
button'?
Is it the browser's back button or a button
that 'submits' back to the archive.jsp page?
In case it is the browser's back button, your issue
is related with javascript.
What you see when you click this back button (or
use in some way
You should check with
logic:present name=success scope=request
the parameter checks only for parameters set in the URL or by form fields
G.
-Original Message-
From: Mike Bungay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 6:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE:
Hello All,
I'm going over the Action javadocs and came across several methods that use
the keyword of token. The docs aren't very intuitive on what exactly
defines a token.
What do the token methods do?
generateToken()
resetToken()
saveToken()
isTokenValid()
Have a good one,
Steven
did you have:
String message = blabla;
request.setAttribute(success, message);
in your actionBean?
-juraj
-Ursprüngliche Nachricht-
Von: Mike Bungay [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 29. August 2001 17:17
An: '[EMAIL PROTECTED]'
Betreff: RE: Logic Tags
I am passing the
It is firing it's just false. Parameter checks the url.
try
logic:present name=success
name - checks the session, not sure about the request, you page have to do:
logic:present name=success scope=request
-Original Message-
From: Mike Bungay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
I am trying to verify an installation with the struts-blank app. I am
getting a 500 Servlet Exception at the taglib descriptor:
The message is:
/struts-blank/index.jsp:2: org.apache.struts.taglib.bean.CookieTei
I'm using Resin2.0.1. I've seen this before but I don't know how I got it
to go
I can partially respond..
You can create links that will navigate based on global struts forwards by
using the html:link tag;
html:link forward=mainWidgetMenu/
I don't know of a way to access the local forwards within actions, but my
impression is that these are intended to be related to the
Yes But i just passed in a string value not a variable because I don't
really care what the value is I just want to check that it's present
-Original Message-
From: juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:32 AM
To: '[EMAIL PROTECTED]'
Subject:
The present tag is not firing at all. I tried the scope=request but there
was no change. THe tag still doesn't fire..
-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:34 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags
It is
Try under Tomcat 3.2.3. Otherwise, if you really want to get it to run
under Tomcat 4, research some of the older messages in this archive (you
need to replace the xml parsing jar files which come with Tomcat 4.
but did you change parameter to name?
-Original Message-
From: Mike Bungay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:54 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags
The present tag is not firing at all. I tried the scope=request but there
was no change. THe
do you have
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
in your jsp?
-Ursprüngliche Nachricht-
Von: Mike Bungay [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 29. August 2001 17:52
An: '[EMAIL PROTECTED]'
Betreff: RE: Logic Tags
Yes But i just passed in a string value not
I'm seeing the same error message running under Resin2.0.1. The odd thing
is that the app works just fine on my development box (W2K running
resin2.0.1) but when I move it over to the test environment (Redhat 7
running resin2.0.1) it doesn't work. I've tried recompiling and that
doesn't seem to
I know this is not a Struts question, but I'm looking for a (free) tool
where I can enter in my URL in order to snoop HttpServletResponses so I can
look at the MIME headers. Any help would be appreciated. Thanks
Carl George,
Thanks for the tip, It is finally working...
-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 12:08 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags
but did you change parameter to name?
-Original Message-
Hi Robin, Chiji:
What I do is to create a Bean (called Option)
that I will use tostore this
properties:
optionGroup The group to which our
option is associated (The Country of the Province/State in our
case).
optionValue The value of the option
(The Province/State code or
I would suggest putting them in the form. That way, the form represents all
the data required for the view, whether modifiable or not, and you don't
have multiple pieces of data scattered around in different places. The data
that isn't in input fields won't be populated back into the form, so
I don't know what the relationship is between this error and your JSP, but
it looks like your container is trying to serialize the session for some
reason. Apparently you have a session attribute which is a HashMap, and it
doesn't like that because it can't serialize it.
--
Martin Cooper
-
I figured it out - I was stuffing hashmaps and rowsets into my ActionForms, and
then storing those in the session. Because of the clustering configuration we
have in iPlanet, this error was being thrown for the reasons you state.
I fixed this my moving any non-serializable components into beans
Thanks
so much. This makes thing so much clearer for me.
-Original Message-From: chiji nwankwo
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 29, 2001 2:47
AMTo: [EMAIL PROTECTED]Subject: Re:
html:select html:options tags
Hi,Depending on what you are trying to do
The parser doesn't know what you want, it only knows what it sees. :-) In
this case, it had started parsing an XML entity reference - something like
amp; - and found a parse failure for the reference because it expected to
see sortBy; instead of sortBy=. That is, it expected a semicolon, but what
Here's a free http sniffer tool in perl. Works great for me. It listen
to a given port and forward to another port, host while printing http
stuff.
might need some tweeking, read the script.
Andre Paradis
-Original Message-
From: Tom Tibbetts [mailto:[EMAIL PROTECTED]]
Sent:
I don't recall if this has the level of detail you're looking for (it's been
a while since I used it), but you could take a look at WebDebug:
http://www.cyberclip.com/webdebug/
--
Martin Cooper
- Original Message -
From: Tom Tibbetts [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Hello All,
We are using struts for our application. One of the problem we have
encountered is with the finding of Web-app_2.2.dtd . Seems like the name of
the dtd is hard coded in the ActionServlet java class. During deployment of
the application (using weblogic) the server waits for like 2
We have developers who are familiar with JSP and Java and J2EE. Struts
would be
the only learning curve ( and it's not exactly a small learning curve
).
I have to disagree with you there. I began using Struts when I had less
than 6 months experience in Java, and very little experience in
Are the values in your arraylist Serializable?
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 2:31 PM
To: [EMAIL PROTECTED]
Subject: java.io.NotSerializableException: java.util.HashMap
I am getting the following error on a JSP page that I
Will,
I'm what I would call an intermediate JSP programmer, and switched to
Struts recently. The (one man) project I'm currently working on does not
require modifications in terms of extending the Struts framework with
new factories or the like, but rather focuses on a simple Web interface
and
Don't you have work to do:)
-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 1:47 PM
To: '[EMAIL PROTECTED]'
Subject: RE: java.io.NotSerializableException: java.util.HashMap
Are the values in your arraylist Serializable?
-Original
I have the same 'problem'.
I would like to be able to create a form dynamically depending on the
structure of a table (I used to do this with 'plain' JSP).
Any ideas?
Regards.
Luis Olivares.
[EMAIL PROTECTED]
It doesn't work. Actually I face the same problem for
Struts example application as well. There the image
Powered By Struts does not come the first time, but
comes if I hit a Refresh.
Maybe, it has got something to do with the container
(Tomcat 3.2.2). But I need some help URGENTLY !!
Cheers.
I get this message in the log file:
Cannot find bean org.apache.struts.taglib.html.BEAN in scope null
Does anyone know why this happened and how to fix it?
Thanks,
Gary
--
Gary Kephart | Basis 100
Software Engineer | 4 Park Plaza, Suite 800
[EMAIL PROTECTED] | Irvine, CA
Thanks Martin and Andre. I don't suppose there's something in Java or runs
as a straight app on my machine (Win 98). I'm really bad at PERL and worse
with Python. Tom
At 10:37 AM 8/29/01 -0700, you wrote:
I don't recall if this has the level of detail you're looking for (it's been
a while
Why isn't this allowed :
html:select name=cartItem property=selectedVariant
html:options name=cartItem collection=variantOptions
property=value labelProperty=label /
/html:select
where variantOptions is a property (of type ArrayList) of cartItem.
but this is:
bean:define
I heard Struts 1.1 will address this issue. In the mean time, I too am
interested to a working solution.
Thanks,
Thinh
-Original Message-
From: Luis Olivares [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 1:28 PM
To: [EMAIL PROTECTED]
Subject: Re: Dynamic Form Beans?
I
The one idea that I had was to create a new subclass of ActionForm
called ActionDataForm. This form would have get and put methods that use
keys instead of the usual pattern of numerous getters/setters.
For the process of saving form data, we could add a new override to
Just install activeperl for windows
http://aspn.activestate.com/ASPN/Downloads/ActivePerl/
then open up a dos box and type
perl http.pl
-Original Message-
From: Tom Tibbetts [mailto:[EMAIL PROTECTED]]
Sent: August 29, 2001 2:40 PM
To: [EMAIL PROTECTED]
Subject: Re: how do I snoop
Hi,
Could somebody explain me how struts work behind the scenes. The
particular case being there is template, content and the renderer.
So does it create precompiled jsps or how does it work coz the very
first time you render a page it's very slow
Shelly
Hi,
A big thanks to all that replied and tried to help me get the nightly build working
with Tomcat.
Although I was unsuccessful, I really do appreciate all the advice.
I tried getting the nightly build of struts to work with Tomcat 3.2, 3.2.3, 4 but no
luck. I
rebuilt my applications to use
Gary,
it usually happens to me when I close the html:form too early, meaning
there are some html:text's or others floating around after I did
/html:form.
Hope this helps, tom
Gary Kephart wrote:
I get this message in the log file:
Cannot find bean org.apache.struts.taglib.html.BEAN in
Hi,
how can I pass a javascript function to a link tag?
My present tag is
a href=javascript:doSummarry(A_NUMBER)
The value of A_NUMBER is found in a bean via workrequest.number.
Thanks for the help.
Alex
=
Regards
Alex Colic, HBA, B. Ed
PopWare Inc. Driving down the cost of
Thanks Martin. Gee, finally I have to get my hands dirty on XML ;-)
[EMAIL PROTECTED] wrote:
The parser doesn't know what you want, it only knows what it sees. :-) In
this case, it had started parsing an XML entity reference - something like
amp; - and found a parse failure for the
I have the same problem too, and I'm sure there are many more like us. I
believe this is a problem struts has not addressed yet. Fortunately, they
are working on Dynamic form generation feature for struts1.1. I don't know
when it is going to be ready!!
Here is a work-around: Make your JSPs
Just for your information - turns out this is a bug in Tomcat!
I submitted it (Bug No 3309) and they propose to fix it, maybe by 3.3.1. At the
moment, work around is to stick an uncompiled version in directory, or to use
javascript to perform a forward in a regular html page to your
%
String str = javascript:doSummlkjsdf( + myVar + );
%
html:link href=%=str% .. /
-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 8:30 PM
To: [EMAIL PROTECTED]
Subject: Question about html:link
Hi,
how can I pass a
What about the TITLE attribute? (I know its not quite important, but it
could be cool to be able to use it). :)
Regards.
Luis Olivares.
[EMAIL PROTECTED]
--
Intelligence is the ability to avoid
All,
I have a page with a control which allows the user to add items to a vector
on a bean. Basically it is a company form with an Add Subsidiary button.
Each time the user presses Add, the vector on the company formbean
receives the new element. However, when the page reloads, I want the
Shelly,
I'm not sure I fully understand the question, but I'll give it a shot.
Struts does not generate anything. You write the JSP's that Struts
uses. When your JSP pages are invoked the first time, the web container
(i.e. Tomcat, etc.) compiles the JSP's and renders them. That's why it
is
Please explain the following lines that came from index.jsp of the struts
example app. Specifically what is it checking? Is it
ApplicationResources.properties?
logic:notPresent name=org.apache.struts.action.MESSAGE
scope=application
font color=red
ERROR: Application resources not loaded
IIRC, the struts-example from struts 1.0 was happy with most of the recent
Tomcat 3.2.x releases but with 4.0b7, it's not picking up the
ApplicationResources.properties file. yes, it's in
/struts-example/WEB-INF/classes/org/apache/struts/webapp/example/ApplicationResources.properties
and
Hi,
I meant like when we invoke a jsp page that is using a template to
render itself, does it then take the template, insert the relevant stuff
into the template and then what?
Actually i'm confused too. Lets say i have a template A, renderer jsp B
and a content page say C,
SO are these all
I got this same error running under Jrun. Look into web.xml and make sure
struts stuff is there (tlds etc..)
T.
-Original Message-
From: Ian Kallen [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 4:17 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.0b7 and
On Tue, 2001-08-28 at 00:02, Bryan Field-Elliot wrote:
Also, you go on to say 'ditto for objection creation, and that it's
more expensive to cache an object than recreate it. Where are you
getting this information? It goes against the design considerations of
virtually every highly
This might help
http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html
The template library basically nests the JSP include feature. For more
about Java ServerPages, see
http://husted.com/about/struts/links.htm#jsp
Shelly Dhiman wrote:
Hi,
Could somebody explain me how
Take a look at the 'anchor' attribute on the html:link tag. If you use
that for your Add link, I believe it will do what you want.
--
Martin Cooper
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 29, 2001 2:02 PM
Subject: How to handle an
To be more exact, JSP's are pre-compiled into a
special servlet source (java files). The servlets
are compiled into classes.
There exist mechanism for pre-compiling the JSP to classes,
before the first user request is received.
You can find these special servlet .java files in the
tomcat/work/
Thanks
Shelly
malcolm davis wrote:
To be more exact, JSP's are pre-compiled into a
special servlet source (java files). The servlets
are compiled into classes.
There exist mechanism for pre-compiling the JSP to classes,
before the first user request is received.
You can find these
Hey Calvin,
I know this is old, but did you ever managed to resolve it. I think I am
having exactly the same problem. The struts examples which worked with 3.2
don't with 4.0. They say that the root cause has something to do with a
noClassDefnFound error when looking for a SAXParserException
Just appending to the forum to announce a new Struts-based application that
we've just launched into production for a Customer last week -
http://www.redgalleon.com
It's a Melbourne (Australia) based ASP service that matches member's defined
preference/permission profiles for restaurants,
Hi Gurus,
1. Can someone let me know the steps involved in setting up a connection
pool in struts config files?
2. Also a small snippet of code on how to use it from a action servlet. Is
it as easy as getting a ref. to a connection pool using JNDI.
Your help is highly appreciated.
Sanjay
On the input side, it sounds like what you want is a map that is basically a
copy of the map usually used internally by the servlet container to
represent parameters. If you don't mind having copies in the map of what's
also in any explicit form bean fields, you could just use this at the top of
Hi all
How do I disply a desired value, while populating the select tag?
I'm using the tag like this...
html:select property=grouptype
html:options collection=allgroups property=key
labelProperty=value/
/html:select
It is showing me the dropdown box with the
check this
I think u have to change the select tag a bit -
html:select property=grouptype value=theoneUwantTOSelect
-Original Message-
From: s k m [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 11:14 AM
To: [EMAIL PROTECTED]
Subject: Select tag
Hi all
How do I
89 matches
Mail list logo