[EMAIL PROTECTED] wrote:
Mark,
Not sure if I understand your question, but I think that Struts will handle it
for you. For example, if you are iterating through a collection a displaying a
text field in each row which is editable, Struts will automatically make any
changes entered to
Hi,
Im trying to make a table which design is based on the page
the user is currently visiting. I.e., in jsp it could look
like this:
%
String[] menuText = {Customer, Manufactures, Machines };
String[] menuLink = {index, ManufacturePage, MachinePage };
%
TABLE WIDTH=100% HEIGHT=30 BORDER=0
Hi,
I have a form with multiple beans on it but the nested beans are not getting
updated when I change the data and submit. I use dot notation to display
the data from the beans and populate the form, that works great. After
submitting, the nested beans are set to null.
I've tried putting the
Cheers Jonathan i will unmount the filesytem and re-config my classpath as
described . Hence get off on the right strut.
Thanx.
Jonathan wrote:
FIRST
you need put the jars that are in the ora directory inside the lib directory
instead
take the struts-documentation, the struts-example
Hi,
Have a look at this snip provided by Ted Husted a couple of days ago. Note
the use of the html:link tag.
'Here's a reference snippet from a working page. The bean result has
accessors for donor, sortName, email, and website, where donor is a unique
key. Here the key is also used as the link
I just managed to install the EmployeeList application from IBM which is
described in the article you also mention. If I look at their
struts-config.xml the DOCTYPE part is put in comments.
What do you mean: comments? Their struts-config.xml starts like this:
!DOCTYPE struts-config PUBLIC
Hi Eda,
I have used the same approach to logging
out, but don't seem to be having any problems. My struts-config (snip) is shown below:
!-- Log the current user --
action
path=/logout
type=net.itwa.view.LogoutAction
forward name=success
I get an error as beanName is not defined as bean whenever i use
jsp:getProperty name=beanName with weblogic 5.1 sp8. Eventhough i
create the bean with
bean:define id=beanName.. But if i use jsp:useBean tag then it is
ok.
Any suggestions..
Regards,
Nagalli
Hi Thomas,
Embedding app specific html in java code is not really a good idea in my
book. I'm using the struts template to build up a menu based on the users
role, each menu item is just a link. So I don't understand why you feel that
the tags are not appropriate for small snippets of code.
The
Never mind. It seems to be working fine now :)
In the course of adding the resources (dtds) to my workspace I copied them
to the wrong directory (doh!). I thank you for your time.
brgds,
S. Bro
_
Get Your Private, Free
ahh of course thats how to play it thank you!!!
Another problem now occurs. If I need to use the bean:message in name
of the link, i.e.,
html:link page=/donor/Select.do paramName=row paramId=key paramProperty=donor
bean:message key=whatever/
/html:link
and this key value should be
Hi, this is one of error examples of my invalid package declarations
any suggestions would be warmly recived and digested.
Cheers Chuck.
WEB-INF/classes/org/breconbeacons/it/ActionMapping.java [66:1] Class
ActionMapping not found in type declaration or import.
import
Hi Bob,
User
authentication is a tricky one. The struts-example app uses a fairly standard
approach. The difficulties start if you choose to use container managed auth.
According to Javasoft we should all be aspiring to
use Form Based auth. But each container has a different config
Hi Jacob,
What you have below will work. Indeed it is the approach used in several of
the examples. If you are asking if parameters can be added dynamically in
the struts-config, then the answer is no. You would have to use the
html:link tag (or equivalent).
Jon.
-Original Message-
Hi, were can i take a look/edit the - import org.struts.aaction.ActionMapping
; Package
Cheers Chuck
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in
Struts
is open source
Feel
free to download it from the jakarta.apache.org/struts
website
Mikkel
-Oprindelig meddelelse-Fra: Chuck Amadi
[mailto:[EMAIL PROTECTED]]Sendt: 18 June 2001
11:57Til: [EMAIL PROTECTED]Emne: Re: take a
peek at struts import packages Hi, were
Hi,
If I understand the question correctly, then you would have to put your
dynamic message key into a scripting variable and use a scriplet. This isn't
very nice, as the point of struts it to remove scriplets from our jsps,
but...
bean:define id='key' name='bean name' property='method name'/
Hi,
You did understand me correctly, infact the code below was exactly what i
wanted to avoid :-) I just thought that there were some other way of doing
it that i might have overlooked (it has happend before :-)
...anyways, thanks for the response!
^terp
-Original Message-
From:
Sorry i slighlty miss lead you , i have found the (import .java classes
residing at the following dir)
C:\jakarta-tomcat-3.2.1\webapps\struts-examples.
Thus onMouse over within the Netbeans IDEv3.2 i get an error message
stating
Errors introspecting class
Hi,
that sounds good; but how is the action-mapping in the struts-config.xml (I
have no ActionForm)
action path=/createImage
type=webTemplate.ImageAction
/action
doesn't work
Michael
|+---
|| Craig R.|
||
Hi all , can someone explain why taglib that are downloaded that result
in launched .war files ,
say for example struts-logon.war that are applications
some are referenced from within, some obviously are the main app's.
My problem is why one can't copy a .war files that has been copied
paste
Hi Don,
I'd be very interested to see this - we currently
use a bunch of custom icons for displaying this inside DW... clunky but it
works...
Cheers
Ned
- Original Message -
From:
Karen
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 1:01
PM
Subject:
Ok, so the fairly standard aproach is to
authenticate the user by hand and shove the user name into a session attribute
that is application defined? i.e.
session.setAttribute(Constants.USER_KEY,
user);
What if I'm using roles andI want to be able
to say
request.isUserInRole("ADMIN");
or
I have a rather strange problem with WAS 3.5.3 and struts 1.0-b1.
I have used the struts-example.war as a starting point for my own
application - renaming it and deploying it on WAS as per the instructions
from you talented people :)
Now, I would like to think that if I:
1.) Specify where the
Hi Mike,
To use roles you need to use the
containers auth mechanism. I.e. basic, digest, form (custom in the case of WebSphere) or certificate based auth. The problem is that
each container sets things up differently. The issues have been discussed on
this group before. See the archive
Hi,
We
here are trying to use our own Authorization stuff hooked into
struts...
there
is a method called processPreProcess in Struts ActionServlet. Now we are
creating a new Servlet,
MyActionServlet extends
ActionServlet,
and
then overriding the processPreProcess method with the code
Rather than storing the message key in a bean, can't you convert the key to
a message and store the message in the bean - then you cna just do a
bean:write.
If thats not appropriate - write your own tag to do it.
Niall
-Original Message-
From: Torsten Terp [mailto:[EMAIL PROTECTED]]
Great article!
I'm fairly new to Struts and am still struggling with ActionForm setters/getters vs.
bean setters/getters. In your template file, all properties for both the form and bean
are Strings. How would you implement an int property -
In the form, it would it be -
public String
Clearly there are too many java magazines and they will publish anything. In
the July issue of Java Report there is an article titled Writing a Reusable
Implementation of the MVC Design Pattern by Prashant Sarode from Brience.
It's interesting because it has a section title of Bye-Bye Struts. The
Hi Hal, yeah I read the same article and couldn't help but laugh. Prashant really
made some outlandish comments and hopefully those comments will diminish any negative
impact his article might have on Struts (or, the adoption of Struts I should say).
Craig, if you read this thread it might
goto:
http://jakarta.apache.org/site/mail2.html
Sachin Mapara wrote:
Please unsubscribe me from this list.
Sachin Mapara.
Trigyn
Technologies Ltd.
Tel :- 518 86 86
(O) Ext.- 537
95251 - 44 10 39 (R)
begin:vcard
n:;
x-mozilla-html:FALSE
org:BRIMG
This is not a struts
specific question, so feel free to switch off now.However, readers of this
listare definitely the most focused and clued-upon JSP/Servlet
issues.
I am trying to
implement various levels of container managed security within my site. I would
like to restrict access to
Mark,
Hi.
I have the following in my jsp (same as yours as far as I can see):
logic:iterate id=parameter name=ParametersForm
property=parameterList
TR
TD WIDTH=40%FONT SIZE=2 FACE=Helvetica,Verdana,Arial
html:text name=parameter property=value size=30//FONT
If a
roleA needs priviledge to another roleB,add the roleA name as a member of
the roleB group in the weblogic admin console.
JohnH
-Original Message-From: Geddes, Mark (ANTS)
[mailto:[EMAIL PROTECTED]]Sent: Monday, June 18, 2001 12:25
PMTo: Struts-User@Jakarta. Apache. Org
On Mon, 18 Jun 2001, Michael Schommer wrote:
Hi,
that sounds good; but how is the action-mapping in the struts-config.xml (I
have no ActionForm)
action path=/createImage
type=webTemplate.ImageAction
/action
doesn't work
This looks fine, as long as your
Hi Jon,
I was trying this out earlier using the Struts beta 1 release and
found that query strings with multiple parameters caused the XML parser to
give errors when it encountered either the '' or '?' character.
forward name=command
Ritter, Steve wrote:
Craig, if you read this thread it might not be a bad idea to send a quick
email to the editor's of Java Report and let them know about some of the
mis-leading statements.
Maybe you could also share with the editor what you view as
mis-leading statements ?
-Rob
Robert
I have hit upon the same problem as this thread, but I didn't see a resolution.
It seems that in Struts 1.0, there must be an ActionForm for every page that has a
form in it -- or, indeed, an ActionForm for every form, including one for each form on
a page.
I had thought that I could have
You do not need an ActionForm. You can read straight from the form parameters in your
action class as you mentioned.
Pete
Bill Firestone wrote:
I have hit upon the same problem as this thread, but I didn't see a resolution.
It seems that in Struts 1.0, there must be an ActionForm for
Remember that the struts controller is a servlet?
Did you know that
javax.servlet.http.HttpServletRequest
implements
public java.lang.String getParameter(java.lang.String name)
( This is how we used to get the parameters from a form in the olden days.
[last year!] )
The struts perform
Hi all,
I am a newbie to struts and this list.
I have been using JSP/Servlets , some JavaBeans recently.
Before that I have mostly used PHP for web applications.
I have been reading through the struts pages on this web site in the last
two days and have a feeling that this could be the next big
I'd be happy to, but I think that it would carry a little more weight coming from the
Struts inventor or even a Struts dev contributor. I'm not one to make a mountain out
of a mole-hill and I sense that this is already becoming that.
--Steve
-Original Message-
From: Leland, Rob
On Mon, 18 Jun 2001, Jacob Thomas wrote:
Hi Jon,
I was trying this out earlier using the Struts beta 1 release and
found that query strings with multiple parameters caused the XML parser to
give errors when it encountered either the '' or '?' character.
forward name=command
Hi,
I followed the struts-example/logon.jsp to create some forms.
I also creates my tlanForm, follows the example from logonForm. However,
when the tlanForm fails the validation, it returns to the original page
with
tlanForm being re-created and resetted (I checked it from servlet.log).
On Mon, 18 Jun 2001, Ritter, Steve wrote:
Hi Hal, yeah I read the same article and couldn't help but laugh.
Prashant really made some outlandish comments and hopefully those
comments will diminish any negative impact his article might have on
Struts (or, the adoption of Struts I should
I doubt whether Prashant was even able to undertsand
Struts framework! After having implemented some
projects using Struts, the only thing I can say is it
Rocks.
Vimal
--- Ritter, Steve [EMAIL PROTECTED] wrote:
Hi Hal, yeah I read the same article and couldn't
help but laugh. Prashant really
Hi,
I'm using weblogic 6.0, and was able to take the struts-example.war,
drop it into the applications directory, and it deployed successfully.
Then I began creating my own application using struts, so i had a copy
of struts.jar in my web app's WEB-INF/lib directory, as well as the
.tlds. My
Oh yeah, I forgot... thanks for 1.0!! :-)
--Steve
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 11:14 AM
To: '[EMAIL PROTECTED]'
Subject: RE: java report article says bye-bye struts
On Mon, 18 Jun 2001, Ritter, Steve
Hi,
I have a small problem in handling the Action form
beans and Action classes. For every action class, we
have a request scope action form bean. My action class
executes before the jsp page displays and it is mapped
to a form bean. The first time JSP is displayed, my
form bean properties are
Craig et. al -- congratulations and thank you. I hope when I get some free
time I can help out on a project like this one. It is an excellent piece of
work and a darn fine help. :)
Chris Assenza
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, June
check out:
http://jakarta.apache.org/site/mail2.html
or to get there, click 'Mailing Lists', then 'here' at the bottom of the
page.
Shaikh, Mehmood wrote:
Can you post the link to Struts Mailing list archive on struts homepage.
Thanks
Title: alternate color support in iterate or subtag
Hi-
I've been thinking about how best to handle alternate colors for tables. One approach is simple but ugly:
table etc...
% String alternatingColor = firstColor; %
logic:iterate name=resultSet id=element
tr
td
Title: Re: alternate color support in iterate or subtag
Forgot to add that I'll be going out of town tomorrow for a while, but I will be reading this thread when I come back. Hope this is not too inconvienent, but I wanted to see what people's thoughts were and I'm too impatient to write a
Hi,
I want to populate a html:options tag inside a html:select from a
collection that is a member of my FormBean.
I've seen lots of examples in the list where the collection is an
attribute of the session. This is not what I have.
My form bean, 'timeForm', has an ArrayList, named
All sounds good, but I get the following error:
Error: 500
Location: /uid/index.jsp
Internal Servlet Error:
javax.servlet.ServletException: Cannot
retrieve definition for form bean null
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at
try removing the 'scope' and 'validate' attributes.
Pete
Bill Firestone wrote:
All sounds good, but I get the following error:
Error: 500
Location: /uid/index.jsp
Internal Servlet Error:
javax.servlet.ServletException:
Cannot retrieve definition for form bean null
at
Does anyone know of JSP Tag Libraries that can be
used to render a Calendar?
Thanks,
Matt
Not
sure if it's just a typo in the email but where's the tag terminator
(/) ?
e.g.
bean:message key="workOrder.Market" /
Thane
-Original Message-From: Kapila, Ranjit
[mailto:[EMAIL PROTECTED]]Sent: Monday, June 18, 2001 4:22
PMTo: '[EMAIL PROTECTED]'Subject: Help:
Hi,
Hi,
I am including some small files to better illustrate my problem. (JSP, XSL
amd XML files are attached)
The bean:message key=workorder.Market/ in the test.jsp reads the value
correctly. The XSL transformation causes the exact string bean:message
key=workorder.Market/ to appear in the
Hi,
I am including some small files in the attached zip to better illustrate my
problem. (JSP, XSL amd XML files are attached)
The bean:message key=workorder.Market/ in the test.jsp reads the value
correctly. The XSL transformation causes the exact string bean:message
key=workorder.Market/ to
Hi Craig,
Although excellent in dealing with Web-based applications, Struts is not
ready to take on EJB.
This is a concern of mine as well but as a newbie to this technology, I am
wondering how to adopt the Struts framework knowing that I will move to
EJB's. Is it worth starting with Struts
Hi
I am trying to run Struts example( IBM's employeelist example) in VAJ's Test
environment. I am using VAJ 3.5.3 and I followed the instructions found at
IBM's VADD site.
http://www7.software.ibm.com/vad.nsf/Data/Document2558?OpenDocumentSubMast=
1
But's its still not working. At initialization
Title: RE: java report article says bye-bye struts
I think we all need to remember that Struts is an excellent framework and 1.0 was only released on Fri. Struts is still a work in progress, therefor many of the concerns that have been raised should be addressed in future releases.
To Anyone It Concerns,
Although I'm relatively new to EJB's, I'm listed on the 1.1 TODO list
to add better EJB support/design patterns. Ideas that anyone has about
things that they'd like Struts to do with EJB's will definately help me
along with this and help Struts quiet this EJB fud. I'm
I didn't know the 2 were competing? How bout using the 2 in conjunction. I
have Struts Action classes that access EJBs, post them to Struts Forms,
etc...
--m
- Original Message -
From: Bill G [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 4:03 PM
Subject: RE:
On Mon, 18 Jun 2001, Bill G wrote:
Hi Craig,
Although excellent in dealing with Web-based applications, Struts is not
ready to take on EJB.
This is a concern of mine as well but as a newbie to this technology, I am
wondering how to adopt the Struts framework knowing that I will move
Bill, although I think this thread needs to die, I really wanted to hopefully relieve
some of your confusion.
EJB and Struts are COMPLETELY complementary technologies and I don't see how they
compete with eachother at all. Struts is a web-application framework based on MVC,
EJB is really a
Pete,
I thank you, but I still get Cannot retrieve definition for form
bean null. XML now is:
action path=/uidstart
type=com.cisco.nm.uid.struts.action.UidAction
forward name=success
path=/engineresult.jsp/
/action
I'm sure I'm modifying correct XML file because if I add
name=FRED
Did you import the struts source code and the associated resources? This
is my directory structure for the struts code with relevant resources
shown:
[d:IBMVJava\ide\project_resources]
[Struts]
[META-INF] --taglib.tld
[tlds] --struts-bean.tld
--struts-form.tld
Hi,
I found out why it did not work. However, I still do not understand why.
Anyway, following is the reason:
The wrong version: (in .jsp file, I declared---)
html:form name=tlanForm action=tlan
type=com.VillageNetworks.tlan.TlanForm
Bill G wrote:
Hi Craig,
Although excellent in dealing with Web-based applications, Struts is not
ready to take on EJB.
This is a concern of mine as well but as a newbie to this technology, I am
wondering how to adopt the Struts framework knowing that I will move to
EJB's. Is it worth
Title: alternate color support in iterate or subtag
I
wrote a tag to do this - you can dowload it from Ted Husted's site
http://www.husted.com/about/struts/resources.htm#contributions
Niall
-Original Message-From: Steve Salkin
[mailto:[EMAIL PROTECTED]]Sent: 18 June 2001
Hi,
I'm stuck on what seems like an easy task and I need some help! Here's my code:
!-- START LOOP --
logic:iterate id=result name=psrBean property=projectByCriteria scope=request
html:link page=/findByName.do paramId=id paramName=result
paramProperty=ID
bean:write name=result
I asked this a while ago, and i was able to find a copy of an old
struts-test.war file on the web somewhere so I was fine. Now that 1.0 is
out I actually want the final version of this war file.
Can someone tell me where to get this? I checked the final release, it was
not present. I
I also have implemented similar code which works fine. Are you sure that its
not a problem with the way you have declared the property (e.g. eMail
instead of email etc)???
As far as I can see this should work, I would guess that your problem is not
that the mailto: tag is not working per se but
I believe struts-test.war became struts-exercise-taglib.war when work
started on the JUnit/Cactus tests for Struts.
--
Martin Cooper
- Original Message -
From: Sean [EMAIL PROTECTED]
To: Struts User [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 7:22 PM
Subject: struts-test.war ?
I
Instead of this:
a href=mailto:bean:write name=result property=email/bean:write
name=result property=manager//a
try this:
bean:define id=email name=result property=email
type=java.lang.String/
a href='%= mailto:; + email %'bean:write name=result
property=manager//a
Hope this helps.
--
Martin
Title: Unsubscribe me...
Please unsubscribe me from this list.
Sachin Mapara.
Trigyn Technologies Ltd.
Tel :- 518 86 86 (O) Ext.- 537
95251 - 44 10 39 (R)
Woohooo
got job devs!!!
I'm in the process of putting a evelatuation of struts together, as I have
recently completed my FIRST project implemented in struts...
Nice!!
-Oprindelig meddelelse-
Fra: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sendt: 16 June 2001 02:23
Til: [EMAIL
79 matches
Mail list logo