Hello friends,
I have a two problems: one with templates, and another (still) with
internationalization, resp. with tag.
First tag:
Is it possible to have struts render the HTML tag _with_
support for _all_ Javascript event listeners? I need to make rollovers
with my navigation bar. However,
Well, the sample web apps that ship with Struts are distributed as .war
files, so you might want to look at how those are built.
--
Martin Cooper
- Original Message -
From: "SUPRIYA MISRA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 7:09 AM
Subject: WAR f
Hi
If this is the exact code you forgot to end this tag. close the tag
properly it will work.
change that line to this
Sreeram Mohan
- Original Message -
From: "Rajshree Pandya" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 10:23 PM
Subject: W
On Thu, 16 Aug 2001, Tim Fox wrote:
> That seems to make sense, so basically:
>
> 1. At top of the code of the web action I do something like the following:
>
> public final ActionForward perform(ActionMapping mapping,
>ActionForm form,
>
Thanks for your reply. I guess that would work but it seems to break away from the
ActionForm / Action model?
Also is anyone able to tell me where I would find an example of a form bean associated
with a multibox element?
Thanks,
Andrew.
--Original Message--
Date: Thu, 16 Aug 2001 12:03:15 +
Actually, you can do one better than that. Just pass in beans to the
form(can have collections in them), and that way you don't have to put a
bunch of attributes and getter/setters in your form. Of course you will
need a getter for your bean that you put in your ActionForm. As a result,
my Acti
Thanks Pete,
I ended up putting a copy of xerces.jar in the lib directory. When I put
jaxp.jar and crimson.jar in the lib directory I got a "sealing error"
-Original Message-
From: Pete Gordon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 6:51 PM
To: '[EMAIL PROTECTED]'
Sub
hi,
Here is my problem:
I have to use pre-populate method to pre-fill the
toForm based on some data from the previous JSP,
called 'fromForm', but the only HTML components
available for me is to use , since I can
set the property such as
But, as you all know, the text-tag does not provide a
good
Hello there,
Although I have not tried it personally, I read from the list that it
can be done if your ActionForm provides a setter which takes a
collection and a getter which returns a collection.
Thursday, August 16, 2001, 5:03:15 AM, you wrote:
SM> No the last category will overwri
you need to put the jaxp.jar and crimson.jar into the web-inf lib directory
of the war you are running or you can put it in the web-inf/lib of the
container you are running.
That will fix the problem. Had the same problem last week.
Pete Gordon
-Original Message-
From: Craig Johnson [m
Run the following command from where all your files are stored - providing you
have WEB-INF and everything in the proper directory structure.
jar -cf .war *
--- "George, Carl" <[EMAIL PROTECTED]> wrote:
> Take a look at any ant example.
>
> -Original Message-
> From: Zille Hassan [mai
your right, the code snippet I had in my last message won't work...ouch.
You need to grab your form bean out first (out of request, or session
scope depending on what you specified).
Give the formbean a different name than the one you specified in your
struts-config.xml so that when the html:
I tried this and it does not work. The error and the code follows if
you care to comment...
ERROR FOLLOWS
_0002findex_0002ejspindex_jsp_21.java [175:1] cannot resolv
I have a form that submits a file to an action (UploadImageAction). After
the action has finished processing the file it forwards to another Action
that retrieves data to display a page. When the forward is invoked in
UploadImageAction I get the following error
javax.servlet.ServletException: Mu
Struts' html:form tag takes in an optional "focus" property. If
specified, Struts will generate the neccessary javascript to set the
focus on the specified element.
So, one possibility might be to add a focus attribute to your formbeans
which would allow you to do the following:
Adding the fo
On Thursday 16 August 2001 01:55 pm, you wrote:
> I could be wrong but I can't think of anything that would be very
> convenient. The only way I could imagine doing it (and I'm not sure it
> would even work) would be to invoke a javascript function every time the
> page loads. You could add a bean
MVC is an architecture that existed before Struts and will exist long after
it. It is exactly the same architecture that you have seen in UML, it just
uses a different syntax. It is very high level and only deals in concepts.
MVC - UML:
Model - Data Layer
View - Presentation Layer
Controller
I've just been asked to do the same exact thing in our app (what a
coincidence!!) but I haven't determined exactly what do yet. In our app,
ActionErrors are added by the name of the form field that had the error (ie.
field1 is the ActionErrors property and also the html:text property on the
JSP).
I could be wrong but I can't think of anything that would be very convenient.
The only way I could imagine doing it (and I'm not sure it would even work)
would be to invoke a javascript function every time the page loads. You could
add a bean with the data needed by the javascript to the reque
I've installed struts running under Tomcat-4.0-b7.
When I try this url http://localhost:8080/struts-example/index.jsp I get
the following servlet exception:
javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
I'm a beginner and am not sure w
Title: Message
Did
you map an action form to the action path "custom.do"? When using forms,
struts needs to have a form bean associated with it.
Steven
-Original Message-From: Haiying Qiao
[mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 12:10
PMTo: '[EMAIL PRO
Is it not possible to not use a form at all?
Section 1.3 of the user guide says: "At a minimum, a mapping must specify (1) a
request path and (2) the object type to act upon the request.".
However when I try leaving off the form name in config file, and in html:form
tag, I get an error.
I ca
Why don't you modify your homeReview action to add
a forward to seReview. For example:
Then in you homeReview Action class you can do:
return mapping.findForward("seReview");
In your actionclass you want to forward to a .jsp,
or you get an infinite loop. In your action class,
if you want to f
Hello struts-users,
I am having problems passing a Japanese text as a GET
parameter from one JSP to another. I am using struts 1.0
with resin 2.0.0 on redhat linux 6.2.
I have the following JSP file:
---
:
<%@ page contentType="text/html; charset=UTF-8" %>
:
<%
params.put("p
Title: beginner's problem
I tried bluestone tutorial.
the jsp is simple:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
I got the following exception:
javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collect
You
need whatever class that maintains the hash (maybe the hash itself) to implement
the HttpSessionBindingListener. You then need to store the listener as an
attribute to each session that registers with you. When the session dies,
it will notify your object, and it will tell you which se
Is their a nifty way to have the focus automagically go to the field with
the error, on an input form? For example, if I have a form with an 'amount'
field, and the user enters an invalid amount, causing my Action to return an
appropriate error, keyed in the ActionErrors container with the 'amoun
Hi,
I am trying to run a struts program on Tomcat. I get an exception to set the
classpath of Tomcat. How do I set classpath for Tomcat to point to my jsp
files?
Thankyou
Krishna
_
Get your FREE download of MSN Explorer at htt
can someone helping me on the steps necessary to forward the request to
another action?
Suppose I have:
and I have a html:form action=/homeReview.do
Inside my homeReviewAction, I need (in some cases) forward the whole request
to seReviewAction, just lik
rakesh--
you can solve this problem by having the class responsible for managing the
hashtable of session ids implement HttpSessionBindingListener. fill out the
valueBound(HttpSessionBindingEvent event) and
valueUnbound(HttpSessionBindingEvent event) methods so that the appropriate
session i
Hi,
Just wanted to say that I am at exactly this same point now. Thanks for
the tip, Martin, regarding the older jaxp.jar that was lurking in the
Tomcat 3.2.3 lib - that resolved my earlier problem with running the
nightly build under Tomcat. Now I have Todd's problem ;->. I have gotten
the s
Hi Greg,
I know that this sessioncontext api is
currently deprecated.
I require this for a very specific reason. When I
log-in a user,
I save his loginID and the sessionId in a static
hash table.
and when he is logged out, I remove it. Each time
someone tries
to log-in, I check in to
I
don't believe you can get all valid sessionIDs from the server. I
think the API for doing so was deprecated a while back for security
reasons. The way I've solved this in the past was to have each
session register itself into a application-scoped hashmap, and maintain
that map myself.
Yep. That was it.
Thanks for the help!
David.
-Original Message-
From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 2:26 PM
To: [EMAIL PROTECTED]
Subject: Re: validate() interaction with
OptionsTag.getIterator(OptionsTag) - NullPointerException
It loo
Hi,
I'm using the tag with Weblogic and get the following error.
/security/passwordAdmin.jsp(25): The TLD description for tag 'options' requires that
the body be empty.
probably occurred due to an error in /security/passwordAdmin.jsp line 25:
The same code (below) works perfectly well with
you could skip the renaming step entirely by passing the -f flag to the jar
command and a file name argument ending with .war instead of .jar.
something like:
jar cvf yourApp.war foo/
would generate a war file containing all the files in the foo directory and
beneath and place the output war
Title: Re: Digester throwing ClassNotFoundException for ActionFormBean
I'm using Xerces 1.4.* and Xalan 2.2.*. I believe both implement JAXP 1.1.
Thanks,
Todd
> Which version of JAXP and Xerces are you using? The nightly builds require
> JAXP 1.1, so you may find you need a newer version
See the mail archive:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg13197.html
it's in the middle of the message.
Original Message Follows
From: Mike Dewhirst <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: multiple
Thanks for the replies - they have helped a lot. Sorry it's taken me so
long to get back and thank you for them - things have been busy in other
directions.
At any rate, we're still trying to figure out what implementation of
splitting apart struts-config.xml via entities will work best for o
i am not very sure. all i do is pack up my app into a jar file and rename it
with a .war extension.. and it does work :-)
Rakesh Ayilliath
[EMAIL PROTECTED]
- Original Message -
From: "SUPRIYA MISRA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 7:39 PM
Su
Hmmm. I'll have to do some further research on Castor before I can provide
an value.
robert
-Original Message-
From: Zille Hassan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 10:49 AM
To: [EMAIL PROTECTED]
Subject: Re: struts and castor
I know , i have read the documentat
Does this somehow give you the ability to post XML data to a struts
framework and have it mapped to an ActionForm properly? A complaint I've
often heard about struts is it does not map XML data elements to ActionForm
bean elements. If you want to post XML data from , let's say, a browser and
map
I know , i have read the documentation but my problem is the use of castor
mapping tool as well.
Where does that fit in. Let me know.
- Original Message -
From: "Robert Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 3:40 PM
Subject: RE: struts and cast
There have been several discussions on this list concerning how MVC is
implemented. There is some good documentation on the Struts web site
(http://jakarta.apache.org/struts/userGuide/index.html) and Ted Husted's
site (http://husted.com/about/struts/)
I would also check out the mailing list archi
Well, it is a quiet popular tool but i am a bit new
to this sort of technologies and to be honest have been very much into JDBC and
having problems with managing both Castor and struts. But once you get the idea
of the frame work, i have heard that life becomes much more simpler.
---
in your action class, create a collection of objects that the current user
is allowed to access based upon his/her application permissions. i would
envision the class of the collection member containing at least:
String targetUrl;
String linkText;
and anything else that's relevant to your nav
Zille,
I am researching CastorJDO as an alternative to writing DAO (Data Access
Objects). That is, currently I have to write all the SQL to interact with a
database table. It would be nice to perform persistence in a Java-centric way as
opposed to having to write all the SQL. So, to answer
Title: Re: Struts & UML
I know you are looking for UML, but if you are looking for something to show the (partial) flow of your webapplication, you can take a look at what I've done at:
http://members.home.com/dlongmuir/struts.html
The main problem with it is that it doesn't parse the
Here is the template file:
<%@ taglib uri='/WEB-INF/tlds/struts-template.tld'
prefix='template' %>
<%@ taglib uri="/WEB-INF/tlds/struts.tld" prefix="struts" %>
<% String msg = request.getParameter("page"); %>
so the call would be http:///Nav.jsp?p
Hi,
Thanks for the reply. Just a bit of elaboration.
What I should do is have a simple login page. No problem. On successful
login I send them to a framed page. So far so good.
Question about this dynamic links. Could you elaborate on how to create them
using struts?
Alex
---
Hi Rodney,
UML stands for "Unified Modelling Language", and you can use it to model
anything you like; not just the three layers you ask about. I think,
however, that this picture will tell you what you want to know:
http://www.husted.com/about/struts/uml-jps.pdf
The picture shows how the diff
are you familiar with the struts and Castor mapping
tools
- Original Message -
From:
Robert
Taylor
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 3:12
PM
Subject: RE: struts and castor
Hello Zillle,
If I
understand you correctly, you
Take a look at any ant example.
-Original Message-
From: Zille Hassan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 10:12 AM
To: [EMAIL PROTECTED]
Subject: Re: WAR file Info
I have no idea, but i am sure, if we meet up i might be able to think of
something
- Original
may I ask exactly how you implement this? (Passing content in as a
parameter). D you have a paramter called, say "content_id", and dependent on
this you forward to the relevant action? Or include output from a relevant
jsp?
Thanks in advance.
-Original Message-
From: George, Carl [mailto
i am trying to implement i am still confused how it fits into MCV model and
which peices fit in where
Hello
Zillle,
If I
understand you correctly, you have a bean that performs a simple query and you
want to incorporate some business logic. I would create a separate object/bean
for to perform the business logic and it can delegate the appropriate
responsibilities to the simple query bean
I am using struts with iAS sp3.
I am sending all urls through my action servlet with the following mapping:
action
*.do
And I'm protecting this with the following security-constraint:
LDAPSecurity
LDAP-controlled Security
*.do
GET
PO
I have no idea, but i am sure, if we meet up i might be able to think of
something
- Original Message -
From: "SUPRIYA MISRA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 3:09 PM
Subject: WAR file Info
> What is the asiest way to make a war file for your
Erm... I was not giving an answer, I was aaking a question. I got the
impression that you have already implemented all this..
Sorry if I misunderstood. :|
-Original Message-
From: Zille Hassan [mailto:[EMAIL PROTECTED]]
Sent: 16 August 2001 15:09
To: [EMAIL PROTECTED]
Subject: Re: struts
I have always found that frames are bad, that is why I recommend using
templates. We have a default template (with the nav bar, header, footer)
and then pass the content in as a parameter.
Carl
-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 200
What is the asiest way to make a war file for your Struts application?
_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
that was not the answer to my queries
- Original Message -
From: "Mike Dewhirst" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 3:05 PM
Subject: RE: struts and castor
> What's the performance like?
>
> Is it better than J2EE?
>
> Does it cluster seamlessly?
I apologize if this seems to be off topic, I'm designing a typical
e-commerce web application with Struts framework in the web layer but am not
using EJB for managing persistence in the business layer. I have reviewed
the J2EE blue prints and the DAO (Data Access Object) pattern and am curious
to
alex--
i think the best way to do this is not to have the frameset appear until
after a successful login. obviously, you don't want the links to your
functional areas to appear until after the user has been authenticated. so
throw up a non-framed page which contains your login form. after
Does anyone have the source for this gif (photoshop, fireworks, ??) - I would
love to use this to create our own flow of our app. Getting Together to spit
this out would be even better!
Thanks,
Matt
--- Rakesh <[EMAIL PROTECTED]> wrote:
> I found this in the mailer list itself. May be of some
Hi,
I am wondering how the following can be done in Struts.
You have a page with two frames, one being a navigation frame consisting of
a series of links that populate the second frame. On start-up the second
frame has a log in screen and the navigation frame just has a company image.
On success
I found this in the mailer list itself. May be of some help.
http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg01063/StrutsFlo
w.gif
Rakesh Ayilliath
[EMAIL PROTECTED]
- Original Message -
From: "SUPRIYA MISRA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, A
is it possible to have struts-config split over several files? and use some
xml include directive?
=**
If you are not the intended recipient, employee or agent responsible for delivering
the message to the intended recipient, you are here
Hi All,
Thanks for the response, but that is not what I am asking, the question is
in a UML there are specific layers e.g. presentation layer, business layer,
data layer.
The MVC 'Model View Controller is within this UML?
The question is where in UML is the MVC located?
I thought that it was in
I've got this message too.
How can i be removed from this mailing list?
Is there any link with struts?
This project is relly hot :-)
-Message d'origine-
De: Greg Lehane [mailto:[EMAIL PROTECTED]]
Date: mercredi 15 août 2001 00:04
À: [EMAIL PROTECTED]
Objet: RE: ABSOLUTELY WORLDS NO. 1 ..M
try this link:
http://www-106.ibm.com/developerworks/library/j-struts/?dwzone=java
Rakesh Ayilliath
[EMAIL PROTECTED]
- Original Message -
From: "SUPRIYA MISRA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 5:25 PM
Subject: Re: Struts & UML
> M
No the last category will overwrite the previous ones. You need to add an
integer to category.
<%int x= 0 ;%>
<%x++;%>
" value="">
request.getParameterValues("category0")
request.getParameterValues("category1")
The best option is to loop it the value of x times;
>From: [EMAIL PROTECTE
hi all i have a problem in query string.
i have a link in my page the parameters which are separated by & sign.
but when i have values which contains & sign then the value is not read coz
the value is matching ampersand sign.
if anyone has a solution for this then kindly lemme know
thanks in adva
Title: RE: Downloading a file from a action class
Dave,
Thanks for the response. I am going to be writing this today. I will let you know how it goes, but were no using frames, just templates.
Thanks
Jeff
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTE
Model --> Normally a Database (the schema)
Controller-->Action Servlet
View --> JSP
Is that what you are asking?
>From: Rodney Smith <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Struts & UML
>Date: Thu, 16 Aug 2001 10:38:36 +0200 (MEST)
>
>Hi all,
>
>Cou
Hi
How do I implement a JDBC Database Access class ?
Do I have to use the ActionServlet class because of the needed method
"findDataSource" ?
Thanks in advance
Stefan
The token will be always valid in the ActionForward as you save it
and then check vor validity. The token has to be saved/created in
the Action or jsp page which marks the startpoint of your transaction, e.g.
the page or action before this one.
-Ursprungliche Nachricht-
Von: Tim Fox [m
Hi ...
put all .tld files under web-inf directory and ur struts.jar in the lib
directory.
i hope this will work ..
and add ur directory entry (context) to server.xml file
PRAVEEN
-Original Message-
From: Tamanaei, ITS PersWi C500, DA [mailto:[EMAIL PROTECTED]]
Sent: Tuesda
Title: Security frame work
Hi guys
Does anyone have info on the security frame works along with Struts
do we have any application level framework for security
(controlling role based access both at page level and field level)
and authentication/authorization.
thanks
vikashk
Please could some
body help me?
I am trying to
create a simple HTML link which will pass a number of parameters through to a
form. However, struts insists on inserting the Jsessionid into the link in such
a way that it breaks the link. Is there anyway that I can either, build the link
wi
That seems to make sense, so basically:
1. At top of the code of the web action I do something like the following:
public final ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
need something like this
<%
java.util.ArrayList list = new java.util.ArrayList();
list.add("First");
list.add("Second");
list.add("Third");
list.add("Fourth");
Hi All,
Has anyone got an example of Struts web application that retreives data from
a jdbc/odbc?
I have created a .mdb 'Access' and put this into a web application, but seem
to be missing some source code.
I have updated my web.xml and struts-config.xml, but unsure of the source
code in the a
Hi all,
Could some one give me a quick simple solution or a good detailed example of
the following.
My understanding so far of Struts is not so bad I think, but when looking at
the MVC and how it works, I would like to put that into order with UML. I
could image that there is a million of UML exa
all u need to check is if you have added the appropriate messages to ur app
resources file.
Regards,
Rakesh Ayilliath
[EMAIL PROTECTED]
- Original Message -
From: "SUPRIYA MISRA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 15, 2001 8:14 PM
Subject: RE: problem
Hi Tim,
I just installed struts a couple of days ago and have the same problems
regarding docs on this topic.
My "theory" of a token is the following (no warranty ;) :
a. saveToken() generates a unique identifier (MD5 Hash) stored in the users
session ("server-side") and on the jsp page the Ac
86 matches
Mail list logo