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
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:
path="/logout"
type="net.itwa.view.LogoutAction">
path="/secure/services.jsp"/>
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
Hi Shane,
Juts a guess (not looked at logic tag in full) but value is being
interpreted literally, ie the string itr10.name. Use a bean:define to define
the returned value of itra10.name as a scripting variable, then use a
scriplet in the value tag to reference it :
<%out.println("It
Hi Guillaume,
If you are asking is it possible to have a single link with three parameters
then the answer is yes, *but* you would have to package them up into a Map
see the struts-test webapp for an example.
To generate a single param at a time within an iterate tag you would do
something like
folder of the WTE in Visual Age for Java
Jon these instructions seem to be particular to VAJ 3.5.2 and VAJ 3.5.3. I
am running VAJ 3.5. Will these instructions work for that?
Thanks
Ryan
-Original Message-----
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: 15 June 2001 10:01
To: [EMAIL
Hi Sandeep,
It sounds like you wish to create profiles for each user. You can not use
the struts message classes (as they stand) to achieve this, as users share
the .properties file for each locale.
You could get a default value from the properties file in a specific locale,
but override it if
Hi Sandeep,
You *MAY* be able to edit the appropriate file then call the
getServlet().initApplication() in your action class (you may need to call
getServlet().destroyApplication() first). You could also call the struts
reload action, see struts-example struts-config.xml for details.
Jon.
Hi Anwar,
You can use the ODBCJDBC driver provided in the JDK. Or you could use a
database that comes ready for java, like .cloudscape.com. See
http://industry.java.sun.com/products/jdbc/drivers for a full list of
available drivers.
Jon.
-Original Message-
From: wasims@comsats [mail
Hi Ryan,
Auto deploy WTE? Would be nice wouldn't it. Unfortunately you will have to
wait a couple of months until VAJ4 is released.
Manually extract the war into /ide/project resources/IBM WebSphere Test
Environment/hosts/default hosts/
You will also need to configure a fair bit in WTE. See Ky
Hi Frank,
You can build up a request parameter in the content url :
Then in the included jsp use a bean:parameter tag to define the request
param as a scripting varible avalible to the write tag etc. i.e :
Jon.
-Original Message-
From: Stefan Frank [mailto:[EMAIL PROTECTED]]
Sent
Hi All WTE User,
I have just realised that I have been pointing to the wrong class. See
below. I should have suggested editing
org.apache.struts.taglib.html.FormTag.doEndTag
Apologies,
Jon.
-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: 13 June 2001 15:36
To
Jon.Ridgway previously in this mailing list:
// Remove the page scope attributes we created
pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
pageContext.getRequest().removeAttribute(Constants.FORM_KEY);
but it doesn't seem to work - that means I still get an Exception called
&
Hi Tom,
Welcome to Struts...
> >Try editing org.apache.struts.taglib.FormTag.doEndTag as follows :
> >
> >
> > // Remove the page scope attributes we created
> > pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
> > pageContext.getRequest().removeAttribute(Constants.FORM_KEY);
>
u
could explain some things to me. Is form based auth just a combination of
an element declared by the web.xml and a line or two in the java code?
- Original Message -
From: "Jon.Ridgway" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 13, 2001 4:51
Hi,
Not sure how correct this is but.. when you use DataSource.getConnection ()
in struts your connection will be popped of a pool.
You are responsible for closing statements and the connection when you have
finished with it. These may close automatically when they go out of scope,
but I wouldn
Hi All,
Form based auth is something that I have just been looking at, so I thought
I'd add my two pennies worth.
My login form is using struts html, bean and template tags (no html:form)
and all appears ok. My template has an adapted version of the checkLogin tag
provided with the struts-exampl
Hi Satish,
You don't have to use the tags, you can manually post to the action servlet
and take advantage of the form and action class framework.
Jon.
-Original Message-
From: Satish Khanzode [mailto:[EMAIL PROTECTED]]
Sent: 12 June 2001 07:10
To: '[EMAIL PROTECTED]'
Subject: Custom Ta
al Message-
From: Tom Miller [mailto:[EMAIL PROTECTED]]
Sent: 11 June 2001 14:51
To: [EMAIL PROTECTED]
Subject: Re: User management?
Jon
What is "struts role based templating"? Sounds good but I am not familiar
with
the technique.
Thanks
Tom Miller
"Jon.Ridgway" wrote:
>
Hi Satish,
It is possible to use struts with Dreamweaver UltraDev. I think details have
been posted on this list in the past. See
http://www.mail-archive.com/struts-user@jakarta.apache.org/
You might also want to look at the struts template tags. See the
struts-template example provided with St
riginal Message-
From: Pan Li [mailto:[EMAIL PROTECTED]]
Sent: 11 June 2001 13:01
To: [EMAIL PROTECTED]
Subject: RE: User management?
Hi,
thanks a lot for your response.
--- "Jon.Ridgway" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> User management is a tricky one, have you loo
Hi,
User management is a tricky one, have you looked at form base
authentication? See Section 11.5.3 of the Servlet 2.2 spec.
This works with most containers, but the setup mechanism will be different.
What container are you using?
You may still wish to create a user object based on info looke
Hi Eda,
This all depends on your web.xml and your struts config.
The do extension is the default used by struts and configured in your web.xml to invoke the action servlet.
This will then work out which action bean to invoke. So if your want to run an
action bean directly you would invo
on for the bean:message tag's locale
attribute seems to indicate that a "
session scope bean under which our currently selected Locale object is
stored" can be used as an alternative to the Action.LOCALE_KEY constant.
Kosh
> -Original Message-
> From: Jon.Ridgway
Hi Alex,
Yes you can do this. When the user clicks on the flag, you set the local in
their session. Then use the local option to explicitly set the local when
using the Struts bean:message tag.
Jon.
-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: 07 June 2001 15:0
Hi Chuck,
You shouldn't have to add your webapp to the classpath under
Tomcat. So you might have some other setup config
issue. Have you added your tlds defs into your web.xml ?
-Original Message-
From: Chuck Amadi
[mailto:[EMAIL PROTECTED]]
Sent: 07 June
Atleast I know my container is using Jasper! I
suppose I could look into updating my version of Jasper?
--Steve
> -----Original Message-
> From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 8:05 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Need help with &
Hi Alex,
You can use a logic:equal tag to check result stored in your form. Then a
bean:message to display the appropriate Yes or No message.
Jon.
-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: 06 June 2001 16:11
To: Struts
Subject: setting boolean to yes/no
Hi
, in lieu of that is there
anything else you would suggest?
--Steve
> -Original Message-
> From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 2:10 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Need help with "Can't remove attributes from
>
Hi Marc,
Yes its possible, search the archive as I believe an example has been
posted. See http://www.mail-archive.com/struts-user@jakarta.apache.org/
Jon.
-Original Message-
From: Marc S. Penner [mailto:[EMAIL PROTECTED]]
Sent: 06 June 2001 15:33
To: [EMAIL PROTECTED]
Subject: Nested
Hi Manoj,
Note the application init-param below. So struts will look in
classes/net/itwa for the resource file in this example running under Tomcat.
Snip...
action
org.apache.struts.action.ActionServlet
application
net.itwa.ApplicationResources
confi
Hi Steve,
Try editing org.apache.struts.taglib.FormTag.doEndTag as follows :
// Remove the page scope attributes we created
pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
pageContext.getRequest().removeAttribute(Constants.FORM_KEY);
Jon.
-Original Message-
From: Ritte
Hi,
When using form based auth the web container will under take the auth using
the j_password & j_username supplied. So it all depends on which container
you are using. Tomcat for example allows you to map to a database containing
user and role info in the web.xml. You also have to specify a log
Hi Chico,
Not sure if it will work but try...
if this doesn't work a more elegant way to achieve your scriplet code would
be to use a bean:define.
Jon.
-Original Message-
From: Charlesworth, Chico [mailto:[EMAIL PROTECTED]]
Sent: 06 June 2001 09:0
Hi Peter,
When you start the upload process with web container will store the file in
a temp location. This will vary depending on your setup. The important thing
is that you can access as shown below and then write to a location of your
choosing. This code snippet is an edited version of that fo
Hi Dudley,
See code sample below. The type in the iterate tag must be as shown, you
will then need to use a bean define to put your 'value' into the page
context and cast it to whatever type you have placed in your HashMap value.
Hope this helps,
Jon.
-
.
Bottom line is the change bellow creates other errors.
I made the same changes, I'll let the group know if I am able to update
jasper in WTE
R,
Nick
-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 1:37 AM
To: [EMAIL PROTECTED]
Subject: RE:
Hi Kumera,
If you want to check at the form level, have you considered using a custom
tag, such as the app:checkLogon tag used in the example app provided with
struts. It's perhaps not the best way as others have pointed out on this
list, but it seems to fit your requirements.
Jon.
-Origina
Hi Jonathan,
It certainly is. The template example
provided with struts shows how to use it. The role based templating is
particularly useful.
Jon.
-Original Message-
From: Jonathan Asbell
[mailto:[EMAIL PROTECTED]]
Sent: 30 May 2001 14:16
To: [EMAIL PROTECTED]
Subject
Hi Rene,
A quick glance and I can't see anything wrong in your conf files. Have you
got the examples app to work? I ask because I suspect you have a classpath
issue. What web server are you using?
Jon.
-Original Message-
From: René Boere [mailto:[EMAIL PROTECTED]]
Sent: 30 May 2001 10:
Hi Scott,
Have you added your WEB-INF/classes dir to your workspace classpath and
moved the resources file here, then restared VAJ ?
Jon
-Original Message-
From: Scott Walter [mailto:[EMAIL PROTECTED]]
Sent: 29 May 2001 21:23
To: [EMAIL PROTECTED]
Subject: Re: Accessing the Properties
Hi All,
Opps and apologies, adding a getRequest may
resolve this little one, I tried editing org.apache.struts.taglib.FormTag.doEndTag
as follows :
// Remove the page scope attributes we
created
pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
pageContext.getRequest
Hi Thomas & Martin,
I believe this problem has been addressed on this list before, I can't
remember the solution but if you check the archive you should find it.
I think it has something to do with the reset method getting called. Store
your form under a unique tag in the request, then pop it of
Hi Steven,
There is probably a more *struts* oriented approach, but give your
buttons unique names, then in your action class perform method, call
request.getParameter () if the value returned is not null,
then that button was clicked.
Jon.
-Original Message-
From: Stev
Hi Siva,
This is a problem that has been addressed on this list before. If I recall
the solution is a *hack* unfortunately. Edit
org.apache.struts.taglib.FormTag.doEndTag so the first two lines read :
// Remove the page scope attributes we created
pageContext.removeAttribute(Constants.BEAN_KEY)
Hi Ameer,
Can you be more specific about the error,
do you get it after deployment or during compilation? Can you provide a stack
trace ?
Jon.
-Original Message-
From: ameer
[mailto:[EMAIL PROTECTED]]
Sent: 30 May 2001 04:55
To: Struts
Subject: How do i use entity bea
Hi Hartmut,
Yes you can add as many as you like they are then avalible via the
ServletContext, the ServletConfig and GenericServlet. The method to use in
each case is getInitParameter ();
Hope this helps.
Jon.
-Original Message-
From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]]
Sent:
Hi Andreas,
Its tricky with VAJ 3.5.3. But try adding your WEB-INF\classes dir to your
workspace classpath (Windows->options->resources). Then put your properties
file in this (classes) dir.
Hope this helps,
Jon.
-Original Message-
From: Andreas Dejung [mailto:[EMAIL PROTECTED]]
Sent
Hi All,
Is it possible to programmatically set a users role for use with
request.isUserInRole (). I would like to do this so I can started
using the role based templating, without having to dig into app/web server
specific security features.
Any help much appreciated.
Jon.
Hi All,
We have the upload tag lib that work great in struts. But is anyone aware of
tag libs to assist in the listing/presentation of a directory within a jsp ?
Jon.
Hi Dan,
Many thanks, I now have a beautiful looking webapp..
Jon.
-Original Message-
From: Dan Miser [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 14:08
To: [EMAIL PROTECTED]
Subject: Re: Template Problems
Be sure you're using at least Beta 2, and you can add the flush='true'
attribute
Hi All,
I have just started looking at the template tags and have run into a problem
:
Root Error-1: Server caught unhandled exception from servlet [jsp]: Server
caught unhandled exception from servlet [jsp]: OutputStream already obtained
javax.servlet.jsp.JspException: Server caught unhandled
Hi Andreas,
For complete instructions on setting up Struts to work with VAJ check out
http://www7.software.ibm.com/vad.nsf/Data/Document2558?OpenDocument&SubMast=
1
Hope this helps,
Jon.
-Original Message-
From: Andreas Dejung [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2001 09:31
To: [E
Title: Referer pages and structs
Hi
Shunhui,
It
sounds like you need to be looking at the struts templete tags as these can use
'roles' to push different content into a page.
Hope
this helps
Jon
-Original Message-From: Shunhui Zhu
[mailto:[EMAIL PROTECTED]]Sent: 22 May 2001
Hi Shogo,
Good point...
Jon.
-Original Message-
From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Sent: 22 May 2001 11:59
To: [EMAIL PROTECTED]
Subject: Re: Where's the best place to do authentication
"Jon.Ridgway" <[EMAIL PROTECTED]> writes:
> Hi Shogo,
>
&g
Hi Shogo,
Have a look at the 'example' webapp provided with struts, this uses a taglib
to check the user is logged on, I'm sure you could use/amend it to fit your
purpose.
Jon.
-Original Message-
From: Ito, Shogo [mailto:[EMAIL PROTECTED]]
Sent: 21 May 2001 20:11
To: [EMAIL PROTECTED]
S
Title: Menu tag
Hi
Shunhui,
Have a
look at http://www.husted.com/about/struts/,
the struts menu by Scott
Sayles should help.
Jon.
-Original Message-From: Shunhui Zhu
[mailto:[EMAIL PROTECTED]]Sent: 22 May 2001 02:08To:
[EMAIL PROTECTED]Subject: Menu
tag
This is not re
Hi Hendrik,
This is a 'feature' of WTE. To resolve it edit
org.apache.struts.taglib.FormTag.doEndTag so the first two lines read :
// Remove the page scope attributes we created
pageContext.removeAttribute(Constants.BEAN_KEY);
pageContext.removeAttribute(Constants.FORM_KEY);
This seems to resol
ean:message tag
to use the bean introspection to insert the value of the
bean. If you're interested in the code, I'll be glad to
share it.
Stephen
- Original Message -
From: "Jon.Ridgway" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001
Hi all,
Is there a way to acheive the following :
"/>
without resorting to scriplets, ie :
would work but just doesn't sit right with me.
Any ideas.
Jon.
Hi Darren,
One way to install Tomcat into VAJ 3.5.3 is to first install into 3.5.
Store the 3.5 repository and /features/com-ibm-tomcat folder away.
Install 3.5.3 and import tomcat from 3.5 repository and put the stored
tomcat folder back in place.
Jon.
-Original Message-
From: [EMAIL
working so far in my system...
Kyle
"Jon.Ridgway" <[EMAIL PROTECTED]> on 05/03/2001 10:14:15 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: RE: Struts and VisualAge 3.5.3 with WTE
Hi All,
Just to let you know that the following seems to have work
sting -- I couldn't get Xerces to import into 3.5.3 without
conflicting with IBM XML4J. I even tried deleting the duplicate classes
from XML4J, but that screwed it up... Sun's Jaxp seemed to work well
enough for me...
Kyle
"Jon.Ridgway" <[EMAIL PROTECTED]> on 05/02/2001
lAge 3.5.3 with WTE
Ahh -- good catch Jon. I actually meant the default.servlet_engine file in
step 3. That contains the document root and classpath. You also have to
create a .webapp file (of course) to actually load the ActionServlet
appropriately...
Kyle
"Jon.Ridgway" <[EMA
Hi Kyle,
If you have time, could you elaborate on step three. The /servlets/.webapps file that I am familiar with in VAJ
makes no mention of doc roots and servlet paths. Could you provide an
example file and/or point me to the docs.
Everything else is very clear and has been a great help. Many t
Hi,
Not sure if this has been answered, but I had a similar problem which I
resolved by adding the classes dir of my webapp to the VisualAge workspace
classpath (Window->Options...Workspace Classpath).
Hope this helps,
Jon Ridgway
-Original Message-
From: Fei Xie [mailto:[EMAIL PROTECT
Hi All,
Are there any plans to include an xml (or configurable) validator such as
that written by David Winterfeldt within Struts ?
Jon Ridgway
201 - 267 of 267 matches
Mail list logo