I have a Struts application (1.0beta3) that I'm trying to deploy into a
J2EE reference implementation (J2EE1.3beta2).
I've tried a few ways now to get the struts.jar into the right piece of the
chain.
Something is still wrong though, because the first JSP compile throws:
Hi,
Is anyone using the STRUTS framework in a production environment yet?
We're currently developing a MVC based webapp and are looking at
potentially taking a step backwards and basing it around STRUTS. One area
of concern is the dynamic creation of the Action objects using 'forName'.
Hello,
i have one action bean for changing language and the relative mapping
in Struts-config.xml.
This mapping can be called from many page so i can't
use mapping.findForward(mapping.getInput()) !!
How can i do to to forward request to the page which from this request
comes???
Thanks
Hello salinaale,
Tuesday, June 19, 2001, 1:34:12 PM, you wrote:
sli Hello,
sli i have one action bean for changing language and the relative mapping
sli in Struts-config.xml.
sli This mapping can be called from many page so i can't
sli use mapping.findForward(mapping.getInput()) !!
sli How
Hello struts gurus,
I started with the struts tutorial and could not really start off.
I copied struts-stub.war (from StrutbyStrut.htm tutorial )
in my webapps directory.
When I started tomcat , it gave lot of error messages.
Then I tried
http://localhost:8080/struts-stub
and tomcat sent some
Just make sure that struts.jar is in your war file under WEB-INF\lib.
- Original Message -
From: Peter Davey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 2:38 AM
Subject: Deploying Struts into J2EE RI
I have a Struts application (1.0beta3) that I'm trying to
Hi,
Could anyone tell me why I am getting the following error message. It occurs
when I try to access any Jsp page. I have Struts1.0b-3 set up and running in
the Websphere Test Environment within Visual Age for Java 3.53. The struts
'ActionServlet' servlet seems to get instantiated correctly in
Hello,
Has anyone done any work with a table custom tag that can pull directly
from a TableModel class? The need for this stems from the fact that my table
columns are potentially dynamic both in number and content.
CEB
_
Is there a way I can override the ActionServlet class to allow for multiple
struts-config.xml files to be parsed for a single application? Our struts-config.xml
file is getting rather large and it would be nice if we could split the
struts-config.xml into multiple .xml files and have the
wasn't it nicer under that rock?
-Original Message-
From: Bill G [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 5:04 PM
To: [EMAIL PROTECTED]
Subject: RE: java report article says bye-bye struts
Hi Craig,
Although excellent in dealing with Web-based applications, Struts is not
I've been half working on it conceptually, but there's nothing to show for
it - I never get time to implement it. :( So I'd be interested too. :)
Chris
-Original Message-
From: Charles Baker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 9:07 AM
To: [EMAIL PROTECTED]
Subject:
How to implement this is shown in book called Professional JSP by wrox
publication ( chapter titled custom tag . I think u can download the code
from www.wrox.com site)
Original Message -
From: Charles Baker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 2:07 PM
Are you using the html:form tag?
It looks as though that tag requires that you have a bean associated
with the form.
I am using struts 1.0 beta 3 (so maybe this is different in the 1.0
release) but, the form tag
trys to retrieve a bean from the pageContext, if it does not find one,
then it
For example in the struts-blank.jar in the ApplicationResource.properties
there is a key with a value that contains an apostrophe (0x27 ASCII Code):
index.message=[...]Place it in your container's webapp folder[...]
In the JSP file that call
bean:message key=index.message/
the
escape it using \'
Mikkel
-Oprindelig meddelelse-
Fra: Matteo Di Giovinazzo [mailto:[EMAIL PROTECTED]]
Sendt: 19 June 2001 15:47
Til: [EMAIL PROTECTED]
Emne: apostrophe in an application resource properties file does
disappear in the JSP file compiled!!!
For example in the
THE ESCAPING \' DOESN'T WORK
Matteo
- Original Message -
From: Mikkel Bruun
To: '[EMAIL PROTECTED]'
Sent: Tuesday, June 19, 2001 3:47 PM
Subject: SV: apostrophe in an application resource properties file does
disappear in the JSP file compiled!!!
escape it using \'
Mikkel
see mail archive:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg06172.html
(use two apostrophes)
Pete
Matteo Di Giovinazzo wrote:
THE ESCAPING \' DOESN'T WORK
Matteo
- Original Message -
From: Mikkel Bruun
To: '[EMAIL PROTECTED]'
Sent: Tuesday, June 19,
Hi,
I would like to dynamically disable a text field
based on a boolean property.
I have tried the following but it does not
work.
strutshtml:text property="employeeBean.fax"
size="20" maxlength="10" disabled="strutsbean:write
name=\"personalInfoForm\"
?. Struts IT'S NOT an alternative to J2E. It's a MVC framework (on top
of a J2E layer or over anything else). It's like comparing apples with
oranges .
-Original Message-
From: Hogan, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 8:09 AM
To: '[EMAIL PROTECTED]'
Just a few comments. I picked up a book while out at JavaOne called core
J2EE patterns which is hot off the press and written by a few guys that
work at Sun Java Center. Personally, I did not find any breakthrough ideas
in here, but it is a well written book that also describes what not to do
Bob,
As you mentioned, ActionForms don't always match your VOs 1 to 1. In those
cases, the ActionForm classes would just contain the necessary VOs or
collections of VOs as required.
JohnH
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19,
Hi Bob, you make some great comments in this posting. The scenario you describe in
keeping value objects in sync with ActionForms will strike a familiar chord with
many developers.
Check this out, the Appserver that I am most familiar with is unfortunately a very
small player in the j2ee
Pete,
You are correct on all counts.
Thanks!
--Bill
At 08:35 AM 6/19/2001 -0500, you wrote:
Are you using the html:form tag?
It looks as though that tag requires that you have a bean associated
with the form.
I am using struts 1.0 beta 3 (so maybe this is different in the 1.0
release) but, the
Hi everyone.
I have now finished updating several html Struts tags to produce indexed names
such as
input type=text name=parameter[0].value value=Mac
when used within an iterate tag. These tags involve only minor changes to the
existing tags, and to trigger them, indexed=true is added
hi michelle,
try this:
logic:equal name=\personalInfoForm\
property=\employeeBean.empInfoReadOnly\ scope=\session\ value=true
html:text property=employeeBean.fax size=20 maxlength=10
disabled=true/
/logic:equal
logic:notEqual name=\personalInfoForm\
property=\employeeBean.empInfoReadOnly\
Hi,
I also encountered the same problem as Ho Soo.
Any work-around?
Shu, Kwang-shi | Tel 732-460-7848
Village Networks, Inc. | Fax 732-460-9851
246 Industrial Way West |
Eatontown, NJ 078724| email: [EMAIL PROTECTED]
-Original Message-
From: Ho Soo Aun
this is a test to see is I can post messages or not.
--
majid kamal
[EMAIL PROTECTED] - email
(781) 685-1450 x2371 - voicemail/fax
__
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com
Two years ago I came across an articlein JDJ comparing Servlets and CORBA and
when you would use one vs. the other. I had just finished a project that made
extensive use of both with servlets in the front end and CORBA as the middle
layer to talk to data access objects that were distributed
On Sun, Jun 17, 2001 at 07:34:47PM -0400, Ted Husted wrote:
entitled Strut by Strut. Feedback is welcome. A followup article
regarding using a database with Struts (Stepping Out) is nearly
complete. Stay tuned.
When I deploy struts-stub.war under Resin, I get the following error:
500
Hello TODD,
Tuesday, June 19, 2001, 5:11:49 PM, you wrote:
TH Is there a way I can override the ActionServlet class to allow for
TH multiple struts-config.xml files to be parsed for a single
TH application? Our struts-config.xml file is getting rather large
TH and
TH it would be nice if we
On Tue, Jun 19, 2001 at 06:20:27PM +0200, Felix von Delius wrote:
And I wonder why nobody else got this problem: The struts-config.xml
is indeed not well formed XML. Or isn't the stub intended for direct
deployment?
After cleaning up struts-config.xml (putting struts-config
tags at the
I want to show/hide links in a page based on the role that an authenticated
user is in. Is it possible to write the following with a TagLib?
%@page contentType=text/html%
%@page import=java.security.Principal %
html
headtitleJSP Page/title/head
body
%
Principal principal =
Norman,
Yes, that worked.
Thanks,
Michelle
- Original Message -
From: Norman Timmler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Michelle Popovits
[EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 11:10 AM
Subject: Re: dynamically disable text field
hi michelle,
try this:
logic:equal
THIS ESCAPING DOESN'T WORK TOO!!
- Original Message -
From: Peter Alfors
To: [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 3:56 PM
Subject: Re: apostrophe in an application resource properties file does
disappear in the JSP file compiled!!!
see mail
struts.jar is on your CLASSPATH or in \tomcat\lib. Don't put it there. It
belongs in webapp\WEB-INF\lib.
--
Dan Miser
http://www.distribucon.com
- Original Message -
From: Isomorph Pty [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 17, 2001 6:47 AM
Subject: Re:
logic:present role=ADMIN
html for administrator
/logic:present
logic:notPresent role=ADMIN
non admin links
/logic:notPresent
- Original Message -
From: Matt Raible [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 12:06 PM
Subject: Tag Libraries for Checking
Hi ppl,
We are trying to get struts 1.0 and weblogic 6.0 service
pak 2.0 to work...Does anyone know how to do that? Any
success with this combination?
Cheers,
---
Ken Chan, SS8 Networks
Work: 613-592-2100 x3253
Using 2 single quotes does indeed work. And yelling about it doesn't really
help. Can you debug the problem at all to figure out why 2 quotes isn't
working for you?
--
Dan Miser
http://www.distribucon.com
- Original Message -
From: Matteo Di Giovinazzo [EMAIL PROTECTED]
To: [EMAIL
we are using struts 1.0 and weblogic 6.0 service
pak 2.0. No problem so far. to me there is no difference for the
weblogic and any other app servers (and web servers). that is simplely a
war file anyway.
-Original Message-
From: Ken Chan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June
I have a small architectural question...
I have a LoggingForm bean for displaying the logging parameters on our own
server. This contains several variables - boolean whether logging enabled,
String current severity, Vector of possible severities, along with Vector of
categories, each of which
Everyone is saying use value objects. So you have your ServerBean return a
java class that just implements java.io.Serializable which is passed back to
your client. Client does what it wishes to this value object, which is
where all the get/set methods are. You can do validation here if you
Hi,
You should definetely check out EJBDoclet on sourgeforge.
(http://sourceforge.net/projects/ejbdoclet/) It is javaDoc plugin
that creates both valueobjects, remote and home interfaces interfaces,
primary key classes you name it!! It is independent of the appserver
(it is basically an ant
I have the same problem as Felix. After modified the code as Felix
suggested, I could run the test program. However, there is no data
validation whatsoever.
Shu, Kwang-shi | Tel 732-460-7848
Village Networks, Inc. | Fax 732-460-9851
246 Industrial Way West |
Eatontown, NJ
Torsten, great lead! Thanks for the info, I am going to check it out and if it works
as reported it will save many hours.
Again, thanks for the pointer (oops, this is a Java group, I should have said
reference :)
--Steve
-Original Message-
From: Torsten Terp [mailto:[EMAIL
what are you talking about, do you have anything of value to add?
-Original Message-
From: Hogan, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 6:09 AM
To: '[EMAIL PROTECTED]'
Subject: RE: java report article says bye-bye struts
wasn't it nicer under that rock?
Oops, sorry Bill. I missed the quotes and attributed the Struts is not
ready to take on EJB to you. Please forgive me. I should have read
closer, but just found the quote so pompous and uninformed I couldn't
resist.
JohnH
-Original Message-
From: Bill G [mailto:[EMAIL PROTECTED]]
The missing message for index.title error message indicates that it cant
find your ApplicationResources.properties file that should be in the
WEB-INF/classes directory. This file will contain index.title=Strtuts
Starter Application and some other values necessary to build index.jsp.
-Becky-
Looks like your index.jsp? Is trying to use the bean:message key=?/ tag
and the key does not exist in your message props file or your message prop
file can not be found. In your web.xml you should have an entry
init-param
param-nameapplication/param-name
param-valueclass name of
Well said.
I agree. Struts has its place and so does EJB.
You can not compare them because they are apples and oranges.
I've had similar problems with articles from various magazines and Journals,
which shall rename nameless.
I don't think it is the magazine. It is the author.
Which
Hi John,
Your forgiven, Thanks!
Somewhat off topic but - I'm in the process of buying/deciding which
development tool to purchase, I am down to Borland Studio and WebGain
Studio. Any opinions on this with regard to Struts and EJB's. I am a one man
shop with finite resources.
Email me directly
No, but we'd like one too. We're looking for something to allow the user to choose a
date, and then probably populate a string field that's eventually converted to a date.
Right now the closest we've come is a popup JavaScript calendar like that found at
On Tue, 19 Jun 2001 [EMAIL PROTECTED] wrote:
Hi,
Is anyone using the STRUTS framework in a production environment yet?
We're currently developing a MVC based webapp and are looking at
potentially taking a step backwards and basing it around STRUTS. One area
of concern is the
So in my web.xml, I have:
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameapplication/param-name
param-valueApplicationResources/param-value
/init-param
And in my deployed app, I have
This problem is documented for JRUN as well.
Change html:html locale=true to html:html local=%= true %
I can only assume this will work, as I don't even get this error with JRUN.
Of course, I get a different error that I can't figure out.
-Original Message-
From: Matt Raible
Terp,
Thank you for the reply. However, I did exactly as you suggested
and it did not work. That's why I posted for help.
Shu, Kwang-shi | Tel 732-460-7848
Village Networks, Inc. | Fax 732-460-9851
246 Industrial Way West |
Eatontown, NJ 078724| email: [EMAIL PROTECTED]
Title: RE: Extending ActionServlet
I have done this and it works great. I load several struts-config.xml files into one mapping in the servlet.
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 1:39 PM
To: [EMAIL PROTECTED]
Cc:
I have a page with a series of rows and an update
button. When the update button is pressed, updates are made to the DB and
the page is redisplayed.
1) What is the normal way to do this?
Right now, to get to the page you follow an action listItems, and the form is
hooked to another action
To be honest, personally I like nothing more then Textpad and maybe Forte
(free) for debugging. :)
Chris
-Original Message-
From: Bill G [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 4:40 PM
To: [EMAIL PROTECTED]
Subject: RE: java report article says bye-bye struts
Hi John,
On Tue, 19 Jun 2001, Becky Moyer wrote:
Hi all...
I've read all I can find in the archives about the html:multibox tag, and
I have gotten farther, but I still would like to ask for some help.
In my jsp, I have the following:
logic:iterate id=item1 name=entryData
html:multibox
Title: register the DTD in struts application
Hey guys,
Does anybody know how to register a DTD in struts application. i had call overwrite the registrations[] string array inside my ActionServlet. and in my ActionServlet's init() mehtod, i had called super.init() then a callback to
Hi,
I am trying to see if there is a less clumsy way of doing the following ...
I have a boolean bean property - I was trying to use one of the logic tags
to test if this value is true.
my question is why do I need to supply a value attribute even for bean
properties that are boolean?
I guess
Terps,
You're right. I made the mistale just as you said. Now it works
fine. Thank you for your help.
Shu, Kwang-shi | Tel 732-460-7848
Village Networks, Inc. | Fax 732-460-9851
246 Industrial Way West |
Eatontown, NJ 078724| email: [EMAIL PROTECTED]
-Original
On Tue, 19 Jun 2001, TODD HARNEY wrote:
Is there a way I can override the ActionServlet class to allow for
multiple struts-config.xml files to be parsed for a single
application? Our struts-config.xml file is getting rather large and it
would be nice if we could split the
On Tue, 19 Jun 2001, Matt Raible wrote:
Has anyone solved this error before?
html:html locale=true seems to be causing the
following error:
This will happen on containers that do not correctly implement the latest
errata for JSP 1.1, which can be found at
Craig,
There are a few problems with that approach:
1. If you just have multiple struts-config elements, you end up not having
a root element. That will cause the Digester to throw an exception when
starting up.
2. So I added an element named root and put multiple struts-config
elements under
On Tue, 19 Jun 2001, See Yam Lim wrote:
Hey guys,
Does anybody know how to register a DTD in struts application. i had
call overwrite the registrations[] string array inside my ActionServlet.
and in my ActionServlet's init() mehtod, i had called super.init() then a
callback to
On Tue, 19 Jun 2001, Dan Miser wrote:
Craig,
There are a few problems with that approach:
1. If you just have multiple struts-config elements, you end up not having
a root element. That will cause the Digester to throw an exception when
starting up.
Argh, I knew there had to be
Does anyone know an easy way or other tag libraries to handle the AND, OR,
and ELSE conditions for presentation logic in JSP.
The struts-logic.tld seems not so easy.
Thanks,
-Leon
Hi All:
I don't know if i am doing something wrong or not. Either i am really stupid
or i am totally misunderstanding something here - as i have tried for the
last serveral hrs getting options tag to output the 'selected' text in html.
I basically followed the example(subscription.jsp) on this,
Got it, while going throught search of old mailing list emails.
html:select name=userprofileForm property=preferredLanguage
value=en_uk
html:options collection=languageTypes property=value
labelProperty=label/
/html:select
But look at what it produces:(instead
Why dont you do what ANT does? You can include an external reference inside
the struts-config which acts like an include. Digester will parse
struts-config.xml which will have external references to your external xml
fragments.
- Original Message -
From: Oleg V Alexeev [EMAIL
I have been developing on Struts with a beta1 struts.jar taken from a
nightly build dated around 4/13/01.
When switching to the new struts.jar (size: 326441 bytes) from the 1.0 final
release, got the following error in the error page of a JSP:
java.lang.IllegalArgumentException: cant remove
Hi Jacob,
Sounds like you're lucky enough to be running one of IBM's, not quite J2EE
web container's..
There's actually been quite a bit of activity on the list about this issue.
For a starting point check:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg09580.html
Regards,
Levi
Yes, it will.
--
Dan Miser
http://www.distribucon.com
using. Do we know if Tomcat 3.2.1 downloaded from apache.org will fix the
problem?
register the DTD in struts applicationThe problem is most likely due to your
servlet container not respecting getResource/getResourceAsStream according
to the servlet spec. If you're using WebSphere, take a look at the following
document for where to place the DTD files:
The problem most likely stems from the fact that before you moved the box,
you were getting the DTD from the external link via http (see the top of the
DTD file for the location). When you moved the box inside the DMZ, that
access was blocked, which means Struts needs to fall back to a local copy
Change the param value inside WebSphere's Application Console.
--
Dan Miser
http://www.distribucon.com
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 8:56 AM
Subject: ApplicationResources, strange behavior with WAS 3.5.3
I have a
Hi Felix and Shu,
Thanks a lot for your postings.
I have been struggling with this same problem for two days and I feel
consoled to see this thread :) .. I was thinking it must be all my mistake
:) ..
Please do post any other thing you guys are able to do to make
struts-stub.war work
The reason you see 'selected=selected' is for XHTML compatibility. In
XHTML (and XML) a value must always be specified for an attribute, so you
can't just say 'selected'. The spec states that, in cases like this, the
value should be the same as the attribute name. Hence 'selected=selected',
Hi there,
I want to implement an applicatif lock mechanism.
In my web-site, I have a set of pages that can modify some global informations (let's
say for example the list of administrators).
I want to refuse access to these modification pages when somebody is currently
modifying this
Hello Craig,
Interesting question and clear answer... 8)
What do you think about such caching for Class? With this approach we
call forName() method only once - no other overhead.
public class EntityMapping {
protected Class cach = null;
protected String type = null;
hello folks
,
I install Struts sample web
application on JRUN 3.0 and
modify some jsp according to
"Installing Struts with your servlet container--JRUN 3.0
sp2a".
when I try to log on , it
always show following message :
javax.servlet.ServletException: Compilation
error occured:
What ideas do people have about where is the best
place to perform validation of items that come back
from ActionForms?
Example: check to see if the user's choice of
motherboard, memory, and cpu are compatible with each
other.
Following the struts example, it seems like the
validate() method in
83 matches
Mail list logo