Hi!!
I have a checkbox problem.
On my jspA page I have two checkboxes. From this jsp page I go to
saveaAction class A, this class sometimes forwards to a viewAction class
B(depending on a submit value), which forwards to jsp page B, which forwards
so saveAction class B which forwards to
I know none but I made an application doing that, all you have to do is to set up the
content type of the response. Here's the code I made for :
public ActionForward perform(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws IOException,
Hi,
There's been loads of discussion about how to implement this action
chaining..
Last night I cooked up yet another possible way to do it..
The chainToPage class implementation by Keith Bacon posted earlier
seemed like a nice way to do it at first.. But what I'm looking for is
a more generic
Hello,
My question is not directly (but indirectly) related with struts, but
hopefully someone experienced can answer this question.
I wrote a JSP that reaches an XML file, and retrieves the contents. The page
worked fine in TOMCAT4, but didn't work in websphere 4.0. After a few
investigation,
I am an idiot. The solution is too embarassing to mention.
-Original Message-
From: Phase Communcations [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 10:52 PM
To: Struts Users Mailing List
Subject: Passing url parameters using command structure url
I am using commmand
Hello,
I am a bit speed today. Another question of mine.
Are there any choices other than using 'forward' in struts-config.xml? I
remember, once someone said something like 'include'. I search for the
sources, but I couldn't reach anywhere.please let me know if there is a
source for this, or if
Hi all,
I'm totally new on jakarta-struts. As you surely know I've got a mountain of
documentation on my desk and I can't figure out where to start. I've got
JBuilder 5 Enterprise and I' ve got an Oracle db. I' ve got a couple of
things to do in my existence. The first is to write an e-commerce
We are testing the Compuware Struts tag Dreamweaver extension in
MacromediaUltradev as this appears to be the most complete Struts visual
tooling around. However we are not having 100% in achieving what we need.
Our situation is as follows :
We receive HTML files from a design bureau and
Hi Samuele,
A good starting point might be the examples on Ted Husteds site; see
http://husted.com/struts/resources.htm#projects. The link to the Sonic
example on the Bluestone site might be of interest.
Jon.
-Original Message-
From: Samuele Brignoli [mailto:[EMAIL PROTECTED]]
Sent:
Hi!
I have a link to good article to start with, gives a good overview. Examples
are included!
Check:
http://www7.software.ibm.com/vad.nsf/data/document2557?OpenDocumentp=1BCT=
1Footer=1
/Linnéa
- Original Message -
From: Samuele Brignoli [EMAIL PROTECTED]
To: Struts Users Mailing
Hi,
It depends on what you want to do. If you wish to have a link to another
page/action then your best bet is to use an html:link to a global forward.
If you wish to include content within a page then you could use a
jsp:include but your best bet might be to use a templating mechanism such as
Thanks for reply,
But still I have some questions.
Is there really a difference from the functionality perspective between
struts template and jsp:include mechanism. I mean, after I added necessary
table tags, I reached the same output.
the question in my mind is, is it possible to include the
Hi,
Not tried this but something like this should work
logic:iterate id=user name=users property=users
html:checkbox name=user property=userId/
/logic:iterate
Here the iterate 'name' attribute refers to the key value of an object in
request or session scope and the 'property' attribute
Hello,
I am using struts framework for my application.In my JSP page,
I am having a drop-down box,where on change of drop-down box I am calling a
JavaScript function.
In java script I am submitting the form.
script language=JavaScript
document.formName.action=Example.jsp;
Hi..
I posted earlier my suggestion to the action chaining problem...
Well, here's a bare-bones implementation of what I was talking about.
Again, this may be totally f*cked up but it's your job to tell me
what I'm doing wrong :)
I've attached my (partial) implementation to this post..
/tuomo
Sorry.. I forgot one method from the ActionBase - class..
Attached is the new version.
/tuomo
Page A:
- has the following app:returnStamp tag
app:returnStamp to=pageA.do from=pageB.do /
- if there is access to page B from some other page C we should also add the
tag to page C otherwise
Assume one is using a servlet container (like Tomcat or similar).
Is there a way to specify to the servlet container which class
implementations to use for HttpServletRequest and Session ?
I am guessing that there may exist factories for producing
instances of these classes and I am wondering
Hi,
Can anyone help me with this problem?
I have a number of jsp files that varies at a fixed section of each page.
(The reason that I am not using switch statement is 64K limitation of java
method size.) Naturally, I used include directive (header.jsp and
footer.jsp) to eliminate duplicated
I' ve got a couple of
things to do in my existence. The first is to write an e-commerce
application suitable for all my customers and really easy to maintain and
customize. The second is to put up a sort of content-manager with role-based
authentication to permit to my customers to publish
Hi all, I know that this goes against the idea of Struts , but
nevertheless please help if possible.
I have created a web service for a particuler department. that calls
from a Postgresql Database details pertaining to Planning Applications
as follows
Planningdb.jsp retrivieve data form
Hi folks,
I am sending two values to form bean and then user have the privilege to
change these two values. To restore the database I must also store the old
values that I have conveyed to screen from the formbean but as the user
alters the data my old values are vanished. What will be the
Hi Fehmi.
I think you should do things like this in your Action
class rather than the Form bean - which should
strictly be used for data that goes from forms to
Action class vice versa.
This is part of your business logic (or maybe of DB
integrity checking) - so if your system is large(ish)
Again hi guys,
lets say that I want to compare these values in the action bean. Is it
possible to use the form bean that stores our old data, and the form that is
populated by the new data for comparison? I hope i am not confusing.
thanks again.
-Ursprüngliche Nachricht-
Von: Keith
Tomcat 3.2.3, server.xml excerpt:
!-- ... If you wish to suppress the use of cookies for session
identifiers, change thenoCookies attribute to true --
RequestInterceptor className=org.apache.tomcat.request.SessionInterceptor
noCookies=false /
-Original Message-
From: [EMAIL PROTECTED]
Thank you Frank,
I understood what happened
After creating a new edition for the project IBM XML Parser for Java,
I removed org.* packages from this new one, but then I erroneously imported
them from Xerces again in IBM XML Parser for Java itself!
So, to let Tomcat be successfully started, I
Keith,
I will need global forwards to jsp pages anyway.
I have to forward to a JSP page in perform() method of my action class.
Otherwise nothing
will be returned/displayed to client.
forward name=edit path=/EditEntry.do/
forward name=editShow path=/entry.jsp/
In perform method
I am working on a CRUD application. When a user prepares to update a
record, I have to confirm his choice before making the update. Therefore,
to add a new record, the states are like this:
1. Show a blank form to get the user input
2. Validate the form and ask Are you sure
I am anew Struts user running Apache and
Resin 2.0.4 as my servlet container. I have successfully tested the Apache and
Resin configurations. (I am also running WebLogic 6.1as my application
server).
If I drop the struts sample .war files into the
resin/webapps directory they work fine. I
hi,
I realized that you have putted your struts-config tag in the xml file to
the wrong place. it should nest all the other items. test your XML by
opening it in the internet explorer.
fehmi.
-Ursprüngliche Nachricht-
Von: Matt Koidin [mailto:[EMAIL PROTECTED]]
Gesendet am: Friday,
Howdy,
I would like to know if you have any mentoring services for struts/expresso
and what your fees are?
What I am looking for is to be able to call a person up, ask a specific
question, and have that person either answer the question, point me in the
right direction or give me sample code.
How
Yep -- I just realized that mistake myself... Please ignore... Thanks for
taking a look.
- Original Message -
From: Hudayioglu, Fehmi [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, December 14, 2001 10:25 AM
Subject: AW: Resin Struts Config Help
hi,
Which is the best IDE to develop struts framework ? I 've got JBuilder
Enterprise, is that suited for struts?
--kako
JBuilder is great and so are NetBeans/Forte
(www.netbeans.org). There is also a Struts Console
plugin for both :)
http://www.jamesholmes.com/struts/
-james
[EMAIL PROTECTED]
--- Samuele Brignoli [EMAIL PROTECTED]
wrote:
Which is the best IDE to develop struts framework ?
I 've got JBuilder
Greetings,
I have been evaluating struts and am preparing to present a case to use
struts to our team.
I will be asked about any issues regarding failover and clustering and so on.
I feel that this is a non issue but
here is the reason that I ask.
I know not to overload the session but
Hi, all
Could you tell me why I get this kind of error? I am using weblogic 6.1 on
UNIX and I do have struts.jar in my WEB-INF/lib
[WebAppServletContext(4667798,brd-admin,/brd-admin)] action: Error
creating Action instance for path '/login', class name
Hi, I looked at Ted Husted's example (Ted's catalogue) for using
BeanUtils.populate() to populate beans from a database query, and put them
into an ArrayList.
I am working on some code which queries an LDAP Directory and requires the
same kind of functionality. I reworked Ted's example to fit my
Looks like a Classloader problem. Is the LoginAction class included in
the system classpath when Weblogic is started? Make sure your
application classes and Struts classes only exist in WEB-INF/lib or
WEB-INF/classes.
Greg
-Original Message-
From: Anna Chen [mailto:[EMAIL
is your class public ?
- Original Message -
From: Anna Chen [EMAIL PROTECTED]
Date: Friday, December 14, 2001 4:01 pm
Subject: Weblogic problem...
Hi, all
Could you tell me why I get this kind of error? I am using weblogic 6.1 on
UNIX and I do have struts.jar in my WEB-INF/lib
The _Struts library_ (struts.jar) must be in your Weblogic classpath (and
it's not in your case, as it doesn't find org.apache.struts.action.Action.
Three solutions:
- add struts.jar to your system CLASSPATH
- add struts.jar to your Weblogic classpath by modifying the startup script
(something
Samuele,
snip
The second is to put up a sort of content-manager with role-based
authentication to permit to my customers to publish datas without HTML or
similar knowledge... and maybe some reusable code and configuration
written by some goog guy ?
How about a jump start and be a hero?
Small addition to my previous message (sorry, I responded without reading
with too much attention):
- if yours is a *.war archive only, then adding struts.jar to your
WEB-INF/lib directory should work. My previous suggestions are still valid
but may not solve the problem.
- if yours is a *.ear,
I did get my first app working. It was a combination of faulty
understanding on my part of the exact mapping of the actions and forms
into the struts-config.xml file.
I think that this newbie area is ripe for some more simple examples
and/or step by step HOWTO type documents. If I can get
James,
Have you taken a look at Eclipse [www.eclipse.org]? It's a new IDE that is
entirely plug-in based. I was just wondering if you had thought of making a
Struts Console plug-in for it as well...
Nathan Anderson
-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]]
I've got Visual Age for Java 4.0 working with struts and it works great.
It will save you tons of time in debugging and solving problems.
An good IDE is definetely a must have tool.
Take care
**
Juan Alvarado
Internet Developer -- Manduca
I'm planning to have a plugin for Eclipse eventually.
The only problem is that their whole IDE is written
with proprietary SWT libraries which don't lend
themselves to easily pluggin in existing applications.
The Struts console would basically have to be
re-written in SWT to work with Eclipse
Adding struts.jar to the WEB-INF/lib directory within your web application
is the right way to make it available to your servlets and JSPs, regardless
of whether you deploy in an exploded directory format, as a .war, or as an
.ear with a web app component.
It's not then visible to the EJBs,
That's good to know...
Thanks for the update.
Nathan
-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 9:51 AM
To: Struts Users Mailing List
Subject: RE: which IDE
I'm planning to have a plugin for Eclipse eventually.
The only problem is
Sean,
unfortunately, there are issues when packaging an application as an EAR vs
WAR. I agree that if you only have JSP and Servlets and WEB components in
general (ie only stuff that goes into a WAR), then you're OK with
WEB-INF/lib.
BUT if you deploy your Struts app as part of a EAR, that may
One other interesting tool to have a look at is SilverStream workbench.
It's totally J2EE development and makes J2EE development really easy. One of
the future release will have struts-plugins.
download it for free : http://software.silverstream.com
greetz, Christoph
-Original
I think BEA has acknowledged a bug in that jars residing in the
Applicaiton ClassLoader (included in the EAR) won't be loaded. They
have to be included in the EJB Jars that are placed in the EAR to be
loaded and used by both EJB's and web apps. However as someone pointed
out, the Struts classes
Hello,
RRRHH - there now I feel better.
I am trying to go back into my first attempt at struts and follow some
of the recommendations of the husted.com catalog - specifically
implementing the /do/actionname
I am completely confused on what goes where for what... Let me be more
Jeff,
We have successfully deployed a struts based application on WLS 6.0 in a
clustered environment for a client. The issues that we hit were exclusively
related to serializability of session objects - only one was struts related
and it is fixed in 1.0. Details...
- We were running at the
Thank you very much for the response.
This answer is exactly what I needed.
Rick Kotermanski [EMAIL PROTECTED] on 12/14/2001 02:06:52 PM
Please respond to Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
cc:
Subject: RE: Any experience
How do you set the values from scripting variables or the results of tag
library elements of attributes for output html tags when you are using XML
version of JSP?
E.g.
link rel=StyleSheet href=%= request.getContext %/stylesheet.css/
Simply puts the above string directly in the output
Hi,
I am using html:select and html:options like this:
html:select property=key
html:options collection=organizations property=key
labelProperty=value/
/html:select
The organization is a collection of Hashtable.
Is there any way I can list the
Well, I eventually hit on the correct permutation of all the codes:
for /do/* as an action servelet mapping:
My Global forwards:
forward name=logonpath=/do/logon/
Action mappings:
action path=/mainmenu ...
forward name=failure path=/do/mainmenu/
In my forms they go in as:
I mean to sort labelProperty in alphabetical order.
-Sue
---BeginMessage---
Hi,
I am using html:select and html:options like this:
html:select property=key
html:options collection=organizations property=key
labelProperty=value/
/html:select
The
link rel=StyleSheet
href=jsp:expressionrequest.getContext()/jsp:expression/stylesheet.css/
-Original Message-
From: Luke Studley [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 3:13 PM
To: struts-user
Subject: Setting content attributes
How do you set the values from
When the URL for the action is resolved, it wants to insert the prefix
for you. It sounds like that for some reason, it did not see that the
prefix was already there, and tried to insert it again.
The idea is that you should be able to change the prefix (or suffix)
without touching the JSP's.
I see two primary options ...
(1) use a TreeMap instead of a Hashtable
However, to me this be unnecessary if the sorting is purely for presentation
purposes, or
(2) Create a JavaBean that holds two lists ... one for the option values and
one for the option labels ... sorted according to the
No. I'd already tried that it doesn't work as it is not well formed XML and
so the JSP page does not parse let alone compile.
:(
-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: 14 December 2001 20:43
To: 'Struts Users Mailing List'
Subject: RE: Setting
Hi
I've been hearing a lot about whether an app needs to be EJB compliant or
not. Does anyone know the limits, with regards to traffic, of a single
machine running, say tomcat with a struts application. For example, could
an app running on a single machine handle 500 hits an hour, or 500,000
I have run into that problem before with corrupted class files - you might
want to download a new xerces.jar to replace your current file. Hope that
helps,
Rob
-Original Message-
From: jpablo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 8:57 AM
To: Struts Users Mailing
Hi ,
I am in the process of developing prototype web app
and following is the environment:
1. APache web server
2. JServ
I would like to develop application based on struts
framework.
I would like to know whether I can develop struts app
and run under JSERV AND APACHE environment.
thanks
JSERV!!! kinda outdated don't ya think : )
-Original Message-
From: nandkumar rayanker [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 7:27 PM
To: [EMAIL PROTECTED]
Subject: struts and jserv
Hi ,
I am in the process of developing prototype web app
and following is the
65 matches
Mail list logo