Thank but I was asking for a way to say it under WAS Gui (admin console).
Because I am not sure to understand : WAS can't read the web.xml file, can
it ? Instead I must register the servlet into the admin console. I have done
with it. But now, how can I specify the automatic redirection ?
Am I wr
Hi All,
Platform: Windows2000
Servlet Engine: Tomcat 4.0-b3
I've resisted submitting this question, but now I'm just lost. I'm trying
to get the struts-example to work. Here is what I did:
1. Placed the struts-example.war file in the webapps directory
2. Started Tomcat (Catalina)
3. Shutdown
Can you expand on this?
If you're saying that I should just change the name to 'action', then how
will Struts know which section of the template to place the data in?
And why direct='true'? That's been used when you want to display an actual
string - not when you want to execute an action.
--
Da
Hello all,
I'm using struts to internationalize my application. In this application I
do use some Java Script to check input from the user before submitting it to
the server.
I have the following code that reports error:
It check the inventory (stored in a Java Beans) when user clicks on the
should be:
- Original Message -
From: "Dan Miser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 8:34 PM
Subject: struts-template and MVC
> I originally wrote a Struts app that acted much like the struts-example. I
> feel it's a good separation of business l
Sounds greatgo for it Dan,
but try to get more info on the component specification.little seems to
be known about it.
- Original Message -
From: "Dan Miser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 8:34 PM
Subject: struts-template and MVC
> I origi
someone in DEV gave this link:
http://java.sun.com/aboutJava/communityprocess/jsr/jsr_126.html
Can anyone provide a "brief" as to the concept as well as the problem it
will be solving ??
- Original Message -
From: "Robert Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesda
> -Original Message-
> From: Mindaugas Idzelis [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 15, 2001 3:31 PM
> To: [EMAIL PROTECTED]; struts
> Subject: What is the current status of Components?
>
>
> When will components be integrated with struts?
>
> Does anyone have any examples usin
...try moving your HelloWorldResource.properties file up a level into the
/WEB_INF/classes directory.
The problem seems to be that struts can't find a message tag and these are
located in the HelloWorldResource.properties file which struts expects to
find in the WEB_INF/classes directory
---
I am trying to run the Hello World example from the Bluestone developer
website, but I am getting the following message:
Error 500
An error has occured while processing
request:http://localhost:8080/HelloWorld/hello.jsp
Message: Server caught unhandled exception from servlet [jsp]: Cannot find
Okay another symptom - the problem persists even when i set the isolation to
read_uncommitted.
-Original Message-
From: Gogineni, Pratima
Sent: Tuesday, May 15, 2001 3:35 PM
To: '[EMAIL PROTECTED]'
Subject: connection pool problem (with Beta release)
I have a very odd problem - I was
I have a very odd problem - I was hoping the symptoms sound familiar to
someone on the list...
I display a database table to the user in the jsp page
the user can insert/delete or update into this table - this is sent to an
action class that uses the struts connection pool and executes the
appro
Greg Ritter <[EMAIL PROTECTED]> writes:
> ...
> page="/images/close.gif"/>
> ...
>
> I would like to be able to specify a local forward for each action in
> struts-config.xml:
How should the jsp-page know, from which action it comes from ?
> ...
> type="com.edifecs.thermonuc
Hello All,
I would like to use the which would
include dynamic parameters.
I need something like,
Hit me
detail.html
This is how it struts generally works incase i have
only one parameter to pass. I'm not sure how to
include the String hit me as the main link. Can
Yeah. Let the link hit an Action class with the forward as a name=value
pair. All the Action will do is forward the user to the corresponding page
(based on the value in the name=value pair).
cheers,
Amar..
-Original Message-
From: Greg Ritter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, Ma
Take a look at the servlet-mapping in web.xml.
action
*.do
--
Dan Miser
http://www.distribucon.com
>From: "Noel Sebastien" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: Antwort: RE: VA 3.5.2
>Date: Tue, 15 May 2001 18:
I originally wrote a Struts app that acted much like the struts-example. I
feel it's a good separation of business logic from presentation, and that it
follows the principles of MVC pretty well.
Now the GUI developers are looking to integrate all of my very ugly HTML
pages into a common look a
My suggestion would be that your action should forward you to a jsp page
that has a custom tag in it. That tag could do 1 of 2 things:
1) search for a bean in the request which has the pre generated html result
from a stylesheet transformation
2) get, process and display the transformed data usin
Hi All,
Is it possible to set the value of a Radio Button at runtime ? I have
an Iterator in my ActionForm containing a list of users.
I have to show this list of users to the client. When the client selects on
a particular user (aka radio button), and submits the form, i want to set
the va
When will components be integrated with struts?
Does anyone have any examples using components? Thanks!
--min
I have a template that I use to generate my pages, that includes a title
bar with a close button on each page:
...
...
I would like to be able to specify a local forward for each action in
struts-config.xml:
...
...
However, the forward that can be specified in can on
Hi Tony,
I get your point. Instead of making the ActionForm an interface (which is
too difficult to do right now because a lot of projects are there in the
works and deployment in which all the forms extend ActionForm). All these
projects will not be compatible with new versions of the Struts
Where do you specify that every URI (*.do) is redirected to the servlet ?
Thanks
> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: mardi 15 mai 2001 12:03
> To: [EMAIL PROTECTED]
> Subject: Antwort: RE: VA 3.5.2
>
>
>
> Hi Ken,
>
> list archive:
>
Tony,
You could make the href point to an action path, and that way you will go
through the action before displaying page...
Dave
"Tony Karas" <[EMAIL PROTECTED]> on
05/15/2001 07:12:40 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Su
Hi Cedric,
So it is not part of struts, yet...
Nice to see that you are looking into it, I think I would go for solution
two...although i believe solution 1 would enable one to make VERY flexible
and powerful templates...
regards
Mikkel Bruun
-Original Message-
From: Cedric Dumoulin
But I won't be able to have a reference of type ABCInterface that knows it
is of type ActionForm.
The primary intent of my original message was to suggest that ActionForm be
an interface and a basic implementation (e.g., BasicActionForm) be provided.
In my opinion this would be a simple change an
Hi all, I got a problem today when I moved my development server to another
network. Struts can't resolve the dtd's it needs at startup, I get a
UnknownHostException. The network I moved my development server to is verry
complex with proxy servers and such so the remote dtd cant be reached.
Can I
Check the Components / Extended Templates proposal. There are solutions for
you.
* Example - first solution :
o Use Components "dynamic templates" : you define your template
attributes inside your action, and insert the template definition in
your jsp page.
BTW, I found that this type of logic (forward) doesn't work if you are using
templates. I needed to resort to redirects.
- jeff
- Original Message -
From: "Jim Richards" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 1:52 AM
Subject: Re: is it a bug of CheckboxT
you could create a seperate "page" servlet to help you...
you could then called like home
it would then append .jsp and perhaps a path to the value in the querystring
and forward to it...
Mikkel Bruun
-Original Message-
From: William Jaynes
To: [EMAIL PROTECTED]
Sent: 15-05-2001 15:35
If I have alot of jsp pages this method would mean alot of entries in
the web.xml file. Isn't there another way?
- Original Message -
From: "Scott Walter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 8:59 AM
Subject: Re: Hidding .jsp files
> Look into the web.
No it won't...
It has no impact on the struts mappings...
Mikkel Bruun
-Original Message-
From: Nanduri, Amarnath
To: '[EMAIL PROTECTED]'
Sent: 15-05-2001 15:09
Subject: RE: Hidding .jsp files
Will this in anyway affect the mapping in the struts-config.xml file ?
-Original Messa
I have studied the documentation for the template mechanism, but it doesn't
seem to fit my needs...
Here's the scenario (I have previously implemented this in my struts like
framework):
I want all requests to forward to index.jsp
index.jsp then uses the template tag to insert the different sect
In your web.xml file set the following ...
action
org.apache.struts.action.ActionServlet
application
ApplicationResources
config
/WEB-INF/struts-config.xml
validate
true
nocache
true
-Orig
Hi Dinesh,
Not sure if this is what you mean, but here goes:
If you set the following headers into the JSPs response, the page will not
be cached.
Use the following scriptlet in the page to take care of this
<%
response.addHeader("Pragma", "NoCache");
response.addHeader("Cache-Control", "no-ca
Will this in anyway affect the mapping in the struts-config.xml file ?
-Original Message-
From: Scott Walter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 9:00 AM
To: [EMAIL PROTECTED]
Subject: Re: Hidding .jsp files
Look into the web.xml file. Since a JSP page is a
servlet,
of course!!
nice!!
thanks!!
Mikkel Bruun
-Original Message-
From: Scott Walter
To: [EMAIL PROTECTED]
Sent: 15-05-2001 14:59
Subject: Re: Hidding .jsp files
Look into the web.xml file. Since a JSP page is a
servlet, you can setup a tag for the JSP
page (instead of specifiying servle
Yes. Now try this.
public abstract BaseActionForm extends ActionForm inplements ABCInterface
, DEFInterface
This will let you implement as many interfaces as you want...
cheers,
Amar..
-Original Message-
From: Hardee, Tony [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001
Hello Every body
I am facing a problem ,i want My JSP Page not
to take content from chache can anybody help me.
Thanks & Regards
Dinesh Chaturvedi
Programmer Analyst
Nihilent Technologies Pvt Ltd.
Pune 091-20-6054452 Ext 349
Look into the web.xml file. Since a JSP page is a
servlet, you can setup a tag for the JSP
page (instead of specifiying servlet-class, use
jsp-file). You will then create a
to specify the url to listen on.
scott.
--- Mikkel Bruun <[EMAIL PROTECTED]> wrote:
> Hi Guys,
>
> Is it possible to ma
Hi,
I have a situation where I want to load a list of the
database tables into a dropdown at server startup and
then use the list on a jsp page.
This is how I did it:
Step 1. Load the table into a collection and store it
as a session variable:
public static void loadTableNames(Connection conn,
Title: iterate header/footer
Ok, you created the "bean"
below from something... let's call it property "superbean" on form
"superform". Then this should work.
Name
name="superform"
property="superbean">
This works for me. I haven't
used the tag. It
Hi,
I'm trying to get an InitialContext in an ActionClass (Tomcat 3.3 -> Unix)
to call EJBs from an EJB-Container (J2EE-reference 1.2.1)
Hashtable env = new Hashtable();
env.put
(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.enterprise.naming.SerialInitContextFactory");
en
Hi,
does anybody have some short example code on how to use a Java Bean collection
with the tag? Thanks!
Best regards,
Joerg Friedrich
Well I suppose that's a point - problem is that I am not doing a submit -
just doing a click via a so my action bean will not get called -
suppose i could do some kind of javascript but it's all a little messy.
>From: Eelco van Kuik <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMA
Title: new window browser for each request
Has anyone tried connecting a Struts application to a
back-end workflow engine?
For instance, WfTK is a workflow engine with
a Source Forge distribution. It demos with a Perl front-end but
many web-ends are possible. A Struts front end would be n
Hi Guys,
Is it possible to make some sort of virtual path, enabling one to hide the
actual .jsp pages???
Example,
i want to avoid a link like /logon/logonform.jsp
replacing it with perhaps /logon (which in turn will point to
/logon/logonform.jsp)
I tried looking at the globalforwards, but i fi
Hi Ken,
list archive: http://www.mail-archive.com/struts-user%40jakarta.apache.org/
For use with Websphere:
1.) you need at least Version 3.5.3 or above(!) (support for JSP 1.1 and Servlet API
2.2 - you know ;)
2.) see: http://jakarta.apache.org/struts/installation-was352-x.html to get an ide
Hi Ken,
WTE in VAJ 3.5.2 does not support Servlet-API 2.2 and JSP 1.1 which is required by
Struts. You should either upgrade to VAJ 3.5.3 (Upgrade is available vom
http://www.ibm.com/vadd) or use Tomcat 3.2.1 together with any Version of VAJ >= 3.5.0.
Getting Struts up and running is not trivi
This looks wrong to me:
> errors.add("invoerGetal1",new ActionError("inleg moet tussen de 0 en
1.000.000 zijn !"));
You shouldn't pass an error message in the constructor of ActionError, it
should be the key to a message in a resources file.
You obviously have a resources file because the f
Hi,
found the same problem... so it is not your fault only...
When I tried this behaviour first I tried to use the validating ActionForm
and received the same behaviour. Then I moved the validation-code to my
Action class and got the correct behaviour (error-messages and form with
old values...)
Hi Elco,
I been fooling around with struts for a couple of days mow...
Let me have a shot,
I have the following ActionForm class that does the validation
-
ActionErrors errors = new ActionErrors();
if ((name == null) || (name.length() < 1))
errors.add
There is an error in your code : try to remove the ending '/' in file
'/template/index.jsp' line
-^-- error
Also, you can have a look to Components/Extended Templates proposal : it provides
more features to deal
with templates / sub-tem
Dear colleague developers,
We are struggling with a problem to get the struts-forms working. It might
be a newbie problem, but it is still difficult to find out which newbie
problem we made. ;-) I included the most important struts problems at the
bottom.
No FAQ/examples/etc. could solve our prob
Thank you for your reply, but I have two problems.
First of all I was not member of the mailing list yesterday, with mean that
I did not get that how-to. Can you repost it, or is there another way for
me to get the information?
Second: What I would like to do is to use WebSphere and Struts tog
At 09:46 15-05-2001 +0200, you wrote:
> Hi Kenneth,
>
>I had almost the same problem yesterday, and I managed to fix it.
>In my installation I ran VAJ3.5, Tomcat (not the test environment) and
>struts...
>
>I posted a how-to on this maling list yesterday, check it out and sse if it
>helps you...
Title: new window browser for each request
Hi
happen that, usign templates, each request opens a new window browser.
Can anybody explane me why and how to solve it?
thanks max
Hi Kenneth,
I had almost the same problem yesterday, and I managed to fix it.
In my installation I ran VAJ3.5, Tomcat (not the test environment) and
struts...
I posted a how-to on this maling list yesterday, check it out and sse if it
helps you...
regards
Mikkel
-Original Message-
Fr
58 matches
Mail list logo