Why using scriplet when you have struts ?
A better solution should be
html:link page=/viewUser.do paramId=UserID paramName=userid
link string
/html:link
the paramName parameter is a bean which contains the value to pass to
request.
hope this helps
Ivan.
- Original Message -
From:
Hi!
uhm... ok... Let me get to the point real quick..
I am having trouble getting Apache to forward the .do call to the
ActionServlet.. it think .do call is an actual file sitting somewhere in the
webserver and gives me the dreaded 404 error(File not found).
I have successfully installed
hello,
This could be a nesting error. Take a look at struts developer guide
http://jakarta.apache.org/struts/doc-1.0.2/index.html
It is possible that u have a html:text tag not in html:form. This is just an
example.
regards,
srinivas.
-Original Message-
From: Ryan Norman
Hi,
I've been using Struts and JDeveloper RC1 for a while without any problems.
I just got RC2 and was trying to compile my system and I keep getting errors
such as:
Error: java.lang.ExceptionInInitializerError:
org.apache.struts.taglib.logic.EqualTag
As far as I could see in the javadocs,
hi,
the reason is that errors tag looks for errors.header,errors.footer
properties.
the first null is because of errors.header
last one is because of the errors.footer
regards,
srinivas.
-Original Message-
From: Juan Alvarado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002
hi,
you don't need a form bean to call struts action.
a simple form with action to the main search page would do, or u can have a
link to the struts action which forwards to the main search page.
hope this helps,
regards,
srinivas
-Original Message-
From: sanjeev_dutt [mailto:[EMAIL
My vote:Chapter 21. Struts Design Strategies
It looks like I'm going to get approval to post preview chapters from my
OReilly Struts book somewhere on the net. There are still a few preliminary
things that have to be worked out, but I don't think they will be a big
deal.
Hello,
I'm trying to use DreamWeaver Ultradev 4 for Struts JSP developpement. I
followed the tutorial of jakarta ultradev extension, but I've got a
NullPointerException when Dreamweaver requests the
http://localhost:8080/TLDParser/servlet/TLDParser
Her is what I've done:
I use a local Tomcat
I vote to start with Chapters 2 3.
People who have reviewed them can then vote for or review other chapters.
-Original Message-
From: Thinh Doan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 5:39 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Preview
Hi,
is there anyway to access the ActionServlet from inside a formBean or Action
class?
Thnx,
Bhaskar
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Bhaskar Gopalan [EMAIL PROTECTED] writes:
Hi,
is there anyway to access the ActionServlet from inside a formBean or Action
class?
Both Action and ActionForm have a protected member called servlet, to
which all subclasses have access.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
The Action.getServlet() method provides access to the ActionServlet.
-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 9:09 AM
To: Struts Group (E-mail)
Subject: Accessing ActionServlet from Action class
Hi,
is there anyway to access the
Hi,
I have extended the ActionServlet, so can I access the
ExtendedActionServlet from MyAction class?
Any help would be highly appreciated.
--Ajay
-Original Message-
From: Jim Crossley [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 6:23 AM
To: Struts Users Mailing List
Subject:
Sure, assuming you've called super.init(config) in your init method,
which of course you did, or little else would be working. :-)
Of course, you may need to downcast it if you need to invoke a
non-overridden method.
-- Jim
Ajay Mallik [EMAIL PROTECTED] writes:
Hi,
I have extended the
Here is my problem, I have a java bean class that keeps track of who changes
what on the table (e.g. modifiedby). When a caller class changes something
to the underlying table, I want to know who. The problem is that this Java
bean class doesn't have access to the session object. In addition,
Hi,
I am implementing Struts on Weblogic 6 and i am getting the error:
Feb 20, 2002 6:19:43 PM IST Error HTTP [WebAppServletContext(4865448,Defa
ultWebApp,/DefaultWebApp)] Root cause of ServletException
javax.servlet.jsp.JspException: No getter method for property action of bean org
Your html:form is trying to use a field action that is not part of your
form declared on struts-config.xml.
-Original Message-
From: Murali SN Rao [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 8:41 AM
To: [EMAIL PROTECTED]
Subject: javax.servlet.jsp.JspException: No getter
Hmm. Sure are a lot of people interested in a chapter on EJBs when this is
supposed to be a book about Struts.
;-)
-Original Message-
From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 2:19 AM
To: Struts Users Mailing List
Subject: Re: Preview OReilly
Hi all,
I keep getting errors when using the latest builds or the Beta 1.1-b1. When
I turn back to a version from January 19, all errors disappear and I can
work. This is very strange and I couldn't figure out what if the problem is
with JDeveloper.
I'd appreciate any suggestions..
Thanks!
Subject: Struts Console and JDeveloper 9i
From: Patrick Schilling [EMAIL PROTECTED]
===
Hello,
Does anyone use the struts-console,
http://www.jamesholmes.com/struts/console/index.html , as an add in for
JDeveloper 9i? I have been unable to get it to work correctly and was
wondering if anyone
My vote is for 21, 16, 8 and as many others as you can get out there. I
wouldn't object to any additional email on the list if you post there.
Thanks for doing this - you're providing us all with a real service. I
*will* buy the book.
George Phillips
[EMAIL PROTECTED]
Chapter 2. The Web
I was trying to download the latest rev today but
the website for Struts Console seemed to be down.
One thing that could be an issue is that, as noted
in the release notes of our Release Candidate 2 build
that was published this week on OTN, the format of
the Addin manifest file changed between
I works just fine. Download 1.7 and unzip in a new directory, then copy
console.jar from the struts-console\lib directory to jdev\lib\ext directory.
Start JDeveloper and include your struts-config.xml file in your project.
Double-clicking on the file in system navigator automatically loads
Subject: Re: Struts Console and JDeveloper 9i
From: Patrick Schilling [EMAIL PROTECTED]
===
Thanks for the response.
Actually, I have tried it for both RC1 and RC2, both with no results. I
even tried creating my own new manifest file with the correct format for
RC2. Is there any way to tell
All,
I have been migrating a smaller Tomcat/MySQL application to Struts and have run into a
problem.
I have completely converted the app to Struts and hit a snag when I inserted the
DataSource tag into the struts-config.xml. It began to generate Cannot fond
ActionMappings errors in the html
I vote for chapters 8, 10 and 21. Thanks for giving us the opportunity to see it.
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 12:03 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Preview OReilly Struts Chapters
On Friday, March 29, 2002, 11:19:25 AM, Maturo, Larry wrote:
ML We define a separate bean that mirrors our
ML EmployeeBean, but has string fields. We then
ML get a list of EmployeeBeans and manually convert
ML them to a list of EmployeeStringBeans. :-) It's
ML a pain, but it works. Note that
I am using JDeveloper too with Struts 1.0.1 and it works fine. But when I upgraded to
Struts 1.1 I was receiving the same problem except it was with the InsertTag instead
of the EqualTag. I am planning to upgrade to RC2 relatively soon so I will let you
know if I run into similar issues.
All,
I have been migrating a smaller Tomcat/MySQL application to Struts and have
run into a problem.
I have completely converted the app to Struts and hit a snag when I inserted
the DataSource tag into the struts-config.xml. It began to generate Cannot
find ActionMappings errors in the html and
Thanks Jim that took care of it.
Jose Casas
E-Commerce Applications
(501) 277-3112
[EMAIL PROTECTED]
**
Notice: The area code for the Wal-Mart General Office has
changed from 501 to 479. Please make sure that you are
Hi
My question is not really related to Struts, but i thought i could ask
you guys about this so that i can get some answer
this might help some developers.
When i looked at the source code for Sun's Java class ArrayList i found
something interesting.
The private member of the
Hi
My question is not really related to Struts, but i thought i could ask
you guys about this so that i can get some answer
this might help some developers.
When i looked at the source code for Sun's Java class ArrayList i found
something interesting.
The private member of the
Hi
My question is not really related to Struts, but i thought i could ask
you guys about this so that i can get some answer
this might help some developers.
When i looked at the source code for Sun's Java class ArrayList i found
something interesting.
The private member of the
Hi
My question is not really related to Struts, but i thought i could ask
you guys about this so that i can get some answer
this might help some developers.
When i looked at the source code for Sun's Java class ArrayList i found
something interesting.
The private member of the
Thanks, at least I know I'm not alone on this.
- Original Message -
From: Honman Lee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 29, 2002 12:07 PM
Subject: RE: ExceptionInInitializerError in JDeveloper
I am using JDeveloper too with Struts
Jim,
Making the s in property=selectBox1List lower case helped fix the error
that I was getting. Now that I added my select tag I get another one which
says
java.lang.IllegalArgumentException: No name specified
Does this mean I'm missing a name attribute in either the select or options
tag?
Kumari, Ramana [EMAIL PROTECTED] writes:
My question is not really related to Struts, but i thought i could
ask you guys about this so that i can get some answer this might
help some developers.
Maybe, but it's still not an appropriate list topic.
So My question is if i have an ArrayList
As a tip, if you do run into the problem with RC2,
please let us know what JVM you're using when you
hit the problem in case that's relevant to investigating
the issue.
__
Steve Muench - Developer, Product Mgr, Evangelist, Author
Oracle
You're not specifying enough attributes in html:options. See the
docs for that tag, and previous examples recently posted to this
list.
Jose Casas [EMAIL PROTECTED] writes:
Jim,
Making the s in property=selectBox1List lower case helped fix the error
that I was getting. Now that I added my
Ryan,
. Go to http://jakarta.apache.org/struts/doc-1.0.2/api/index.html
read Class ActionMapping
. ActionMapping is the object that holds the value of action tag
validate is explained here
. same for ActionFormBean only name and type.
. html:form action=X with the action
X is
I'm using RC2 as it comes out of the box (or out of the zip). I also emptied
all system CLASSPATH to try to avoid conflicts and still can't compile JSP
when they make references to the Struts tag libraries.
In RC1 the JVM was clearly jdk1.3 as per the directory installation,
whereas now for RC2
Subject: Comments on Struts framework
From: Sriniavs Paruchuri [EMAIL PROTECTED]
===
Gurus,
I started reading about Struts only y'day and thanks to many articles, I
could get some knowledge about Struts in a short time.
Here are some of the comments made by my colleague and I want your opinion
I'm new to struts too. All this is my opinion, older hands may have better
explanations.
1) Struts is a framework for a web application (web server
centric) not for
an Enterprise J2EE Application (EJB centric).
[srinivas] As per my reading till now I disagree with him. Struts does not
Hello, It's me again.
Yesterday and this morning I posed a question about a bean:define tag
problem. I was getting a Cannot find bean logonForm in scope null error.
Somebody told me that i was getting this error because I was accessing the
jsp directly. Well, now I'm using a login.jsp which
I thought that by going through the login.jsp (which invokes my
actionservlet)
Do you mean going through the login.do ?
-Original Message-
From: Jose Casas [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 3:40 PM
To: 'Struts Users Mailing List'
Subject: error
Hello, It's
Hi,
I am getting the following error
ServletException in:/delegateIds1.jsp] Cannot find
message resources under key
org.apache.struts.action.MESSAGE'
I tried looking at the archive but none of the
solution mentioned in there resolved it.
I am using nightly build from 03/27. I am also using
Is there a way to configure so that if we make any
change in application defination files for Tiles, it
can get automatically be reloaded. Right now I have to
reboot the web server every time I make changes to it
and at times its really frustrating.
-Sanjay
Subject: Re: Multiple Selects in a JSP
From: Ken Holzer [EMAIL PROTECTED]
===
Thanks Larry,
I was able to get this to work. I do have a related question.
I have a jsp page that shows a history of activities I have the same two
select fields on this jsp. Each row on the page is its own form so
Actually, no.
this is what I have in my login.jsp
html:form action=login.do
and this is in the struts-config file:
form-bean name=loginForm
type=com.walmart.telecomorder.formbeans.LoginForm /
action path=/login
do u have the XML parsers in your class path.
-Original Message-
From: Sanjay Choudhary [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 10:50 PM
To: Struts Users Mailing List
Subject: Cannot find message resources - URGENT
Hi,
I am getting the following error
ServletException
Yes, I am using xerces.jar
-Sanjay
--- srinivas [EMAIL PROTECTED] wrote:
do u have the XML parsers in your class path.
-Original Message-
From: Sanjay Choudhary [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 10:50 PM
To: Struts Users Mailing List
Subject: Cannot find
html:form action=/login.do
should be the right way of accessing login action
hope this helps,
srinivas.
-Original Message-
From: Jose Casas [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 11:07 PM
To: 'Struts Users Mailing List'
Subject: error
Actually, no.
this is what I have
I changed my action to action=/login.do. I still get the Cannot find bean
logonForm in scope null error.
Thanks for your suggestion.
html:form action=/login.do
should be the right way of accessing login actionhope this helps,
srinivas.
Hi,
is there anyway to set the color of a row from the bean being iterated?
My code is given below:
logic:iterate id=loan name=loans
type=com.mortgagehub.cba.business.LoanSummaryBean
tr
td align=left valign=middle colspan=1
font size=2 color=#00 face=Verdana
bean:write name=loan
Bhaskar,
Try looking at
http://www.husted.com/struts/resources.htm#taglibs
from Amarda.
-Sanjay
--- Bhaskar Gopalan [EMAIL PROTECTED] wrote:
Hi,
is there anyway to set the color of a row from the
bean being iterated?
My code is given below:
logic:iterate id=loan name=loans
Try this
logic:iterate id=loan name=loans
type=com.mortgagehub.cba.business.LoanSummaryBean
tr
td align=left valign=middle colspan=1
font size=2 color=%=loan.color()% face=Verdana
bean:write name=loan property=status filter=true/
/font
/td
/logic:iterate
-Original Message-
From:
sorry that should be loan.getColor()
-Original Message-
From: Jakkampudi, ChandraseKhar [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 3:41 PM
To: 'Struts Users Mailing List'
Subject: RE: Setting Color inside logic:iterate
Try this
logic:iterate id=loan name=loans
try setting scope attribute in action definition in struts-config.xml
action path=/login
type=com.walmart.telecomorder.formbeans.LoginAction
scope=session
name=loginForm
forward name=success path=/f_Relocation.jsp /
Jose,
What we are trying to say is, in order to be able to see struts bean on your
jsp page you need to make the request through Struts.
you should call .do on your browser - http://localhost:8080/login.do
The controler (actionservlet) will look into your struts-config and get the
action
We have a resource management scheme that will take a relative pathed
resource, and for a particular user (based on some session variables) will
resolve this relative pathed resource into an absolute resource (i.e. if the
user belongs to ACME company, we will resolve the resource
jsp/SomePage.jsp
Why don't you try it and tell us what happens?
Mark
-Original Message-
From: Kumari, Ramana [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 12:16 PM
To: Struts Users Mailing List
Subject: about ArrayList
Hi
My question is not really related to Struts, but i thought i
On Wed, 2002-03-27 at 09:48, Ryan Norman wrote:
Hi,
I am Ryan Norman.
Are there frameworks available in other commercial Java Web Servers like Web Sphere,
iPlanet, JRun, etc.
. If so why should somebody use struts framework rather than using the Web Server's
native framework?
. Are
When I run tomcat with security (-security) the
console puts out the message logClassName=null
and struts throws an error trying to load my application
(see below).
The struts and commons-* jars are in my WEB-INF\lib
directory and are granted java.security.AllPermission
in catalina.policy.
in the tag docs I see a [RT Expr] in a lot of the attribute definitions.
What does this mean? I can't find a def anywhere in the struts docs.
thanks
bill page
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
This is a JSP thing. It stands for Runtime Expression, and indicates that
the value of a JSP tag attribute is to be evaluated at runtime.
-Original Message-
From: Bill Page [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 2:11 PM
To: Struts Users Mailing List (E-mail)
it works fine for me
...
html:form action=/pub_logon
...
html:image property=camp src=/images/butn_go_white_bg.gif
alt=campaign /
...
-Original Message-
From: Park, Dongwon [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 5:06 PM
To: Struts Users Mailing List
Subject: [Q] Using
thanks, that is what I was guessing, but then can you tell me why this
doesn't work:
html:link page=%=ActionDisplay%?nextsection=testsbean:message
key=jobbrief.label.section.tests//html:link
I end up with the link as %=ActionDisplay% rather than the value of it.
I'm try to include the same
I had this one and works fine
html:submit property=action value=Next/
And then, changed it to use gif image and the following is not working.
html:image property=action src=/images/btn_action.gif alt=action
value=Next/
-Original Message-
From: Leonardo Maciel [mailto:[EMAIL
Hi Gurus,
Help me out with this one pls.
-Sanjay
--- Sanjay Choudhary [EMAIL PROTECTED] wrote:
Yes, I am using xerces.jar
-Sanjay
--- srinivas [EMAIL PROTECTED] wrote:
do u have the XML parsers in your class path.
-Original Message-
From: Sanjay Choudhary [mailto:[EMAIL
I'm wondering if this a decent design architecture for a non-EJB web
application using Struts. I'd appreciate any comments or advice. (Does
it break any J2EE principles or not follow any, etc.) For this small
example, this architecture is just for wanting to display a list of
employees in a JSP
Howdy,
Thanks for the reply. By looking at the code in
org.apache.commons.logging.LogFactory.findClassLoader() it seems to be doing
what you've suggested. I've found similar messages with this same problem in
the struts-dev list. The subject is 'Problems with 1.1b1'. It seems
Tomcat3.3a is
I would argue that it is quite easy to reuse your regular classes
as struts form beans. This strategy may involve putting code
into your so-called 'business' classes who's purpose is to help
with certain kinds of 'presentation' level logic. The real question
is, do you want a 2-tier architecture
On the contrary it means request time expression.
Vimal
--- Dan Cancro [EMAIL PROTECTED] wrote:
This is a JSP thing. It stands for Runtime
Expression, and indicates that
the value of a JSP tag attribute is to be evaluated
at runtime.
-Original Message-
From: Bill Page
You should be able to search the archives for Visual Age for Java or
WebSphere, there is a small change you have to make to the FormBean
Class or the Action class. I can't remember which right now and I don't
access to our code. But I'm pretty sure this question was answered on
this list.
Sorry
Subject: Weird problem with tiles and struts forward.
From: Jack Gao [EMAIL PROTECTED]
===
Hi, List
I'm new with this struts and tiles issues.
My problem is: when define a jsp page in struts-config.xml to forward to if
success or failed, it works fine. But if I jump to tiles, and forward to a
Hello,
Sometimes, the bean:write tag (and presumably others) can't find a certain
property on one of my beans. The bean is User, and the property is id.
The tag is nested inside a set of logic:iterate tags which fish each
element out of a List. Specifically, the error is:
Well, anyway...
Changing the property from id to userId seems to correct the problem,
which probably has nothing to do with Struts and everything to do with
reflection/introspection. id is probably a dangerous name anyway.
Just something to watch out for.
Cheers,
David
-Original
the simples way how to do this
u should use :
td color=bean:write name=loan property=color/ cell content as in urs
letter/td
- Original Message -
From: Bhaskar Gopalan [EMAIL PROTECTED]
To: Struts Group (E-mail) [EMAIL PROTECTED]
Sent: Saturday, March 30, 2002 5:30 AM
Subject: Setting
There is one problem/issue with the EmployeeForm objects. It is likely
the attributes for EmployeeForm will have to be all Strings
after all. The reason is as follows: Let's say you have a web form
where you enter new employee information. This form has a numeric
field. Let's say it's something
79 matches
Mail list logo