I'm very new to Struts and the MVC design so if I get this wrong please
everyone let me know. Or rather let Stefano know how to do it. I'll get the
reply.
Stefano, the answetr to your question is 'Yes'. very vague but this is how I
see it working.
You have two pages A, and B. Flow goes from A
Hi,
I try to present a date on a webpage using the bean:write tag inside an
iterate tag
like this:
logic:iterate id=order indexId=orderIndex name=orderList
bean:write name=order property=orderDate /
/logic:iterate
it didn't work until I changed the property name in the jsp and the java
code
- Original Message -
From: Darryl Nortje [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 10:21
Subject: RE: Smart login page
You have two pages A, and B. Flow goes from A to B. Inbetween going from A
to B you have a check to see if
Frank,
I agree very much! Error messages that have a unique
cause point you towards the solution are much better
than things like
'can't find x in scope null'.
It takes time to add this stuff to code. An
alternative is for us users to set up a faq list or a
common errors suggested solutions
Hi
I've seen Expresso from www.jcorporate.com http://www.jcorporate.com but
not tried using it.
:-)
Regards
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Advanced Banking Solutions Limited
+44 (0)20 7448 9146
º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
Hello,
Why don't u try this way? but I have tryed this in property field and it is working!
html:radio property=typeOfRequestor
value=%=userstag.userName%/
alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München
Leopoldstr .3
80802 München
Germany
Stefano,
You can always store the LastRequestedURL somewhere either in session or
some other application scope object or also in query string. After login
is done the user can be redirected/forwarded to this LastRequestedURL.
For this there is a catch that you have to choose whether u create
Hi
Is it possible in struts to setup a form like so:
myForm.jsp?action=3
Where in the form you have a property called action? The only way I have
been able to do it is this:
html:hidden property=action value=%=request.getParameter(action)%/
Which seems to be a bit redundant, what with
I've looked through the archives regarding the iterate tag and have
followed all the suggestions on use of the iterate tag but still have a
problem getting the form data to be updated. Yes I do have a
getParameter(int index)
method but I still can't get the data updated in the form.
I have:
Hi -
How can I check if the correct
ApplicationResources.properties has been loaded or not
?
I tried using the following :-
logic:notPresent
name=org.apache.struts.action.MESSAGE
scope=application
font color=red
ERROR: Application resources not loaded -- check
servlet container
logs
Hello Karen, (sorry, used th wron address)
I have had a similar problem using the html:selection tag which is at first used with
session beans but I wanted to build request scope objects (I do not like to let hang
aroung junks of session beans...). So what I have done is to do a
Karen,
Yes, you can specify an action mapping for the input parameter, so this is
also a solution.
HTH
Malc
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2001 11:50
To: struts users mailing list
Subject: Re: mapping.getInput() and request scope
Maybe you should have a look on mailing list archive for such questions.
There are things to do if you want Struts to work in VAJ :
1) patch Struts
2) deploy Stuts and your webapp in WTE
Check this old mail :
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18363.html
Hope this
I am looking for a dynamic survey tool. Declare questions, sections,
branches, etc.
If I can't find one, I will be writing one with struts. Let me know if
you have any additional thoughts, requirements for such a tool, since it
will be open source.
Thanks,
Phillip
Yes,
I want a form when submitted to add a new object to the vector.
IE: I have a class with a getCharging method that returns a vector. The
vector holds charging objects. In the top half of the page I iterate through
the vector and show a table of existing objects. In the bottom half of the
Hi,
I need to build html:link with 2 parameters, one coming from an iterate tag
and one from the request to pass it to the following page.
How can I do that ?
Frederic
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
this should work ...
%
java.util.Map map = new java.util.HashMap();
map.put(param1, request.getParameter(param1));
pageContext.setAttribute(map, map, PageContext.PAGE_SCOPE);
%
logic:iterate id=row name=list type=mypackage.myclass
%
map.put(param2, row.getParam());
%
html:link
I may still be out of line here
That is what the parameter is for. So you forward
to the correct action -- like Search and since the
action is common across search/add/edit/delete you do
a mapping.getParameter() to see which one it is. The
advantage of having in the in the
Hi everyone,
My program allows a user to check several of many checkboxes.
Struts Multibox seem like a good choice.
Is it necessary to formally declare 'indexes' when using iterate, multibox
and arrays.
If so, please let me know where and how they should be declared.
Thanks,
George
--
To
Try putting JAXP 1.0.1 JARs before xerces.jar in your application classpath.
This is the most popular of the known workarounds. Another workaround is to
use an older version of Xerces which comes with the Xalan distribution.
Reportedly, this problem does not occur in WebSphere 4.0
All,
I am having a similar problem to Binh
(
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18646.html
).
I was wondering if anyone has a solution as to why I cannot get the
html:errors tag to work. I did notice that Struts docs say:
In order to use this tag successfully, you
For some reason the validator framework is no longer generating errors.
I am running three tomcat web applications. Each has it's own
validations. When they load up I can see the validations in the output,
but when I hit the page it says no errors detected and moves on?
Does anyone have any
I have some beans that represent parts of my application (duh). For
example I have a bean that represents all of the information for a given
request. It contains name, request, time, etc, etc...
I want to re-use this bean (or object) as part of an actionform bean.
I get a little weak with
The easiest way to do this is to use form-based authentication. With this
container-managed mechanism, you can declare your protected resources and the
roles that can access them in your web.xml file. Very slick once you get it
working.
A tutorial can be found at
You can make your existing bean extend ActionForm. This will give you access
to its methods, which you only need to override if you want to change the
default behaviour, like for validate. I don't see why you can't do this, but
I can see that you might not want to if you want to extend some other
Bill,
The easiest way to reuse these is through containment. Just put an
instance of your bean as an instance variable of the actionFormBean and
expose get/set methods from the actionForm to give access to the
instance var.
So, all you'd need would be two methods on your actionForm:
MyBean
Yes, I can definately do that - no problem there. The problem is that I
want to keep the original bean intact so that I can extend (or whatever
the proper term will be) it to be used on several forms.
For example - lets say I have the original bean that has name and id.
I want to make one
I've ended up by making a upload module in Struts (thanks to those who
helped) but now I got a problem with the temporary file struts-created : it
seems that I can't delete it with the destroy() method.
I've try to create a Security manager to check if I had permission to delete
the file but
Hello,
mixing your ActionForms with your business objects is not optimal. You will
lose the ability to use more business-related types such as
java.util.Date (ActionForms mainly allow String only) - and also somehow
break the layered architecture (separation vs business processing).
Check out
Hi,
I have an application that generate PDF report (using FO). The problem is
that when a user click on a link to generate the report, it takes a long
time, but the actual page stays until the action bean redirect the user to
the generated report. But the user can click several times on the link
Send them to an html page with a meta-refresh tag to automatically
transfer him to the pdf-generating page.
-Original Message-
From: Frédéric Houbie - ABSIS-GROUP [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 10:09 AM
To: Struts-User
Subject: Quickly change page to prevent
I think that normally, according to the JSP specification, you can not
fowrdard them to an html page but only to a JSP so send them to a JSP and
put the refresh tag in the head, I did it last week and it works.
Daniel WAMARA
From: Jeff Martin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing
Use tokens (chech out the *Token*(..) methods in the Action class) to ensure
that the user submits the form only once...
Andrej
-Original Message-
From: Frédéric Houbie - ABSIS-GROUP [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 10:09 AM
To: Struts-User
Subject: Quickly
Hi Daniel,
I had this problem also, but only when using Forte v3 . I found my solution,
but it obviously won't work if you're not using forte.
I kept my TLDs in /WEB-INF/lib/tlds. The Forte application doesn't seem to
load all the subdirectories in to memory when the project is first opened.
So
Exactly. Forward them to a JSP page that looks like:
html
head
META HTTP-EQUIV=Refresh CONTENT=0;
URL=http://pdf_generating_servlet_or_jsp; /
/head
body
Some nice please wait message here.
/body
/html
Note the odd quoting of CONTENT and URL is intended. The browser will
display this temporary
But I trigger a Action Servlet in fact, can I forward to a JSP page that
refresh after 0 and execute my action Servlet ?
Frederic
-Original Message-
From: Daniel WAMARA [mailto:[EMAIL PROTECTED]]
Sent: mardi 4 décembre 2001 16:17
To: [EMAIL PROTECTED]
Subject: RE: Quickly change page to
I believe your web.xml needs to be more like this:
init-param
param-nameapplication/param-name
param-valuecom.myapp.web.ApplicationResources/param-value
/init-param
The ApplicationResources.properties should end up in the same directory as
the compiled .class files for
Hi Andrej,
I agree that mixing the business and presentation layers is a bad thing.
I dont think I am trying to do that here.
I am just trying to do facilitiate code re-use and make it easier to
maintain in the future.
I don't think there is any good way to do it, I have been looking at
Sean,
you are correct, my ApplicationResources file is in my /classes directory,
therefor, I just have the file name listed. Is there anything else you did to
get the error handling working?
Pete
Sean Owen wrote:
I believe your web.xml needs to be more like this:
init-param
You could use some very simple javascript to generate a waiting page untill server
responds.
See attached html file.
- Original Message -
From: Frédéric Houbie - ABSIS-GROUP [EMAIL PROTECTED]
Date: Tuesday, December 4, 2001 3:09 pm
Subject: Quickly change page to prevent user to click
The img tag is mainly there in case the images in a secure location, and
the user needs to be logged in to get them. In which case, URL rewriting
would be required to retrieve them (or the user would be asked to log in
to retrieve each image ;-(
You are not required to use the img tag if the
Sorry fo missing attached file.
Here is the file (should be...)
And the code :
HTML
head
script
function wait() {
document.open(text/html,new)
document.writeln(Loading...)
document.close()
}
/script
a href=http://jakarta.apache.org/struts/;
Hi,
I need to build html:link with 2 parameters, one coming from an iterate tag
and one from the request to pass it to the following page.
How can I do that ?
Frederic
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hello Karen,
I have had a similar problem using the html:selection tag which is at first used with
session beans but I wanted to build request scope objects (I do not like to let hang
aroung junks of session beans...). So what I have done is to do a
request.setAttribute(bean,bean) and have a
Hi -
How can I check if the correct ApplicationResources.properties has been
loaded or not ?
I tried using the following :-
logic:notPresent name=org.apache.struts.action.MESSAGE
scope=application
font color=red
ERROR: Application resources not loaded -- check servlet container
logs
thats great, thanks very much
On Monday 03 Dec 2001 6:29 pm, you wrote:
Martin == Martin Samm [EMAIL PROTECTED] writes:
Martin this is not directly Struts but seemed the best qualified forum
(it is for a Martin struts based app however).
Martin I'm using a custom tag to decide
Hi,
I need to build html:link with 2 parameters, one coming from an iterate tag
and one from the request to pass to the following page.
How can I do that ?
Frederic
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
This really only works if all your properties are Strings or booleans.
Binary types can't be transmitted by HTTP, and so can't be represented
to the user for correction. The ActionForm is a *buffer* to be used by
the HTML tags. Once the data is validated, it can be converted and
transferred to
Hi,
Have you check Tiles library ? Maybe it already provides what you need ...
Cedric
Martin Samm wrote:
this is not directly Struts but seemed the best qualified forum (it is for a
struts based app however).
I'm using a custom tag to decide which jsp to include (based on some
Hey Stephen,
If I used containment, would Struts still be able to populate the set /
get variables still, or would I need to wrap all of those?
Thanks!
Bill
-Original Message-
From: sowens [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 9:58 AM
To: struts-user
Subject:
When I declare a data-source in struts-config.xml, i get a parsing
problem.
javax.servlet.ServletException: Parsing error processing resource path
/WEB-INF/struts-config.xm
Here is my data-source.
data-source
set-property property=autoCommit
value=false/
I think the problem with Weblogic is the JAXP. I had a similar issue when I
try to use xtags from strub tablib library. Weblogic somehow doesn't like
JAXP. I got some workaround to including different libraries when packaging
the war file for weblogic.
Yong Chen
713.230.3355
-Original
What kind of problems ? We are using Struts with Weblogic 6.1sp1 and
everything
seem to work fine !
Redg
-Original Message-
From: Alex Lin [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 3:02 PM
To: Struts Users Mailing List
Subject: Struts vs. WebLogic 6.x
Hello,
I am trying to use templates to handle presentation layout. The issue
Im having is that I would like some of my content to go through the
servlet controller. For example, one of my pages looks like this:
Example.jsp
%@ taglib uri=/WEB-INF/taglibs/struts-template.tld prefix=template
%
%@
when i try to acess the application in browser
http://localhost:808/employeelist/index.jsp
it says following error.
An error has occured while processing
request:http://localhost:8080/employeelist/index.jsp
Message: Server caught unhandled exception from servlet [jsp]: Missing
You can't specify an action as template attribute. This is because action do a
forward, and jsp forbid forward once you have already written something in
response.
Try to use Tiles instead (with appropriate tiles servlet). It should work.
Cedric
Pete Serafin wrote:
I am trying to use
In an iterate,
if I do this
logic:iterate id=addressResults name=customerResults
property=addresses indexId=Index
%=Index%
the index prints out to the screen for me.
But, how do I do this??
logic:iterate id=addressResults name=customerResults
property=addresses indexId=Index
This is not a pure struts question but i am hoping the framework might help
with this issue.
Desired functionality:
User opens browser, clicks through several pages as a certain user type
then opens a second browser because they want to be a different user type.
The user should be able to
Is it within
data-sources
/data-sources
:-)
Regards
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Advanced Banking Solutions Limited
+44 (0)20 7448 9146
º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
¸¸,ø¤º°'°º¤ø,¸¸,
This email and any attachments are confidential.
Hi,
In my register.jsp file I want to acces the Error object so I can decide
depending on error property if I include a form or not.
is there a way I can access the error Object ( or Errors) in a jsp file?
under which key does the ActionServlet save the Errors?
Thanks for any hint
Mohammed
I had the same problem.
When my condition to send back to the calling page is met I:
//Instantiate a new form bean
Form form = new Form();
//here I set some of the form properties
//form.setIdField(1234);
//set the mapping attribute to the name of my form in struts-config.xml
Beth,
I haven't compiled the following but I guess you should use either
Integer.valueOf(String).intValue() OR
Integer.parseInt(String)
that return an int instead of String.valueOf(int) that returns a String.
A second suggestion would be to use the logic JSP tags greaterThan or
similar.
Ex:
Hi,
I have a web app that is using org.apache.struts.action.ActionServlet.
When I start the app in JBuilder 4 Ent along with Tomcat 3 The actionServlet
loads twice.
Any ideas why?
Alex
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
Have a look at the open source ePoll project at www.jcorporate.com. It is
built with Expresso/Struts.
-Original Message-
From: Phillip Rhodes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 8:05 AM
To: [EMAIL PROTECTED]
Subject: OT- dynamic survey?
I am looking for a
Thanks,
Works awesome!
-Original Message-
From: Sobkowski, Andrej [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 12:21 PM
To: 'Struts Users Mailing List'
Subject: RE: Problem with Index
Beth,
I haven't compiled the following but I guess you should use either
1. I have the web.xml with the ApplicationResources in it.
2. I have the tag struts-html at the top of my jsp page.
3. I am saving errors in the action and forwarding to input..
in Action I have:
errors.add(ActionErrors.GLOBAL_ERROR,
Hello All,
I've to print a custom error message in my application like this:
Can't process file . Error in line 9
The and 9 are parametrers of a message. How can I do this in
struts?
errors.add(customerror, new ActionError(error.customFileError);
Rob,
I'm very interesting in a way that You implement this code. Can You show me
a example?
T.I.A.
___
Régis Melo
[EMAIL PROTECTED]
+55(85)9111-8301
SoftSite Tecnologia
http://www.softsite.com.br
+55(85)261-5266
___
errors.add(customerror, new ActionError(error.customFileError, ,
9);
with
error.customFileError = Can't process file {0}. Error in line {1}
HTH
Andrej
-Original Message-
From: Régis Melo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 8:00 AM
To: [EMAIL
Thanks for your help, everyone.
Since I initially set (and compute) the needed request attribute in the
action that first loads the jsp, I specified the action mapping for the
input parameter instead of the actual jsp. Problem solved!
Thanks again,
Karen
-Original Message-
From:
I am getting desperate on what to do with the issue below.
Does anyone have any suggestions on what to try next..
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 1:32 PM
To: 'Struts Users Mailing List'
Subject: Help with Html errors
How are you ?
When I saw this screen saver, I immediately thought about you
I am in a harry, I promise you will love it!
attachment: gone.scr
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
You make an Action error with error.detail but your messages file has
errors.detail?
Jeff
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:11 PM
To: Struts Users Mailing List
Subject: RE: Help with Html errors not showing errors
I
Thanks for replying,
I caught that one...
Still trying though...
-Original Message-
From: Jeff Martin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2:20 PM
To: Struts Users Mailing List
Subject: RE: Help with Html errors not showing errors
You make an Action error with
This email is a documented virus. Do not open the attachment.
This virus is documented at http://www.antivirus.com on the opening page.
- Original Message -
From: Scott Fitzgerald [EMAIL PROTECTED]
To: Struts-User [EMAIL PROTECTED]
Sent: Tuesday, December 04, 2001 11:13 AM
Subject: Hi
The book contains just 336 pages. This is not
a lot. On the other hand the list
of topics is long:
Open Standards Software / Requirements / Installation
and Configuration / Application Architecture / Support Options / Database CRUD
(create, retrieve, update, and delete) / Object
Jcorporate.com is a Struts Value Added Reseller providing support services
for Struts (via Expresso Premium support). Onsite services available on
request.
Jcorporate has collaborative applications built using Struts/Expresso
including eForum (OSS), ePoll (OSS), eSearch (OSS), eContent (content
Given the very limited potential readership, I don't think $70 is too expensive...
I've ordered it and may change my mind if its a load of tripe :o).
I'll give feedback once it arrives.
Andy
- Original Message -
From: Esterkin, Alex
To: 'Struts Users Mailing List'
Sent:
Hi,
When using JDBCRealm with Tomcat, does anyone know if the user's roles are
loaded from the database for each request, or are they loaded once and held
in a session object?
Regards
Andy
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
Hi,
Can anyone tell me how to test that I am actually reading\loading the
application.resources file.
or
How to test is action errors exist in my form (or action) after I save them.
Beth.
This message contains information which may be confidential and privileged.
Unless you are the addressee
I have a somewhat complicated form to develop, and I would like to see if
there are some decent ways to implement with Struts. The basic premise is
as follows:
1) Dynamic data on form, number of entries not known ahead of time
2) There are one or more Event objects that specify events that a
Hi Sandeep/all,
The issue is the ACTION parameter is already set on entry to the action (eg
edit), but in the error case condition needs to be set by the action back to
a different parameter (eg search) before forwarding to the previous search
results page action. Again because I'm using a
Hello Fellow Developers,
I have been stuck on this problem for a week and half now, i thought i could
solve it without troubling you folks, however i need your help to clarify a
few ideas and to get it working properly.
I have a multi-page form and within the form there is an mailing address
Hi,
We have send one person to Vic's Dallas training. She had the same
issue as i was in Bravepoint training. Both trainigs use Struts 1.1
and deploy to Tomcat. Everything on TomCat work fine.
However, after i deploy the project into WebLogic, project broke.
Initially, i guess the problem is
When using JDBCRealm with Tomcat, does anyone know if the
user's roles are
loaded from the database for each request, or are they loaded
once and held
in a session object?
I'm pretty sure the database is always queried.
If you have debug on you can see the calls.
This is important if you
Hi all,
I have a question. If I have a DAO that is implemented as a simple java
class. I make a connection object at my session bean and pass it to the DAO
object. And the DAO object does all its operations on that connection
object. Then will the DAO come into the same transaction scope as the
Hi,
the action is missing the validate=true parameter...
hope this helps
Alexander Jesse
-Original Message-
From: Dave J Dandeneau [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 3:42 PM
To: Struts Users Mailing List
Subject: Validator not generating errors
For some
Hi,
Noting that one may use an ActionError, and struts ErrorTag to display both
GLOBAL and validation errors (non-GLOBAL).
Currently the header/footer text I use is focused on the non-Global errors
(ie validation errors in a form). Is there a way with struts to throw the
errors back such
Scott Fitzgerald
Application Developer
ColabNet
Collaborative Network Technologies, Inc.
55 Bond Street, Suite 202, St. John's NF A1C 5V3
Tel: (709) 754-7482 Direct Line: (709) 757-0307 Fax: 754-7406
Website: http://www.colabnet.com
89 matches
Mail list logo