anyone have any ingenius ideas on how to implement i18n with both static
(html) and dynamic (jsp) pages that are not necessarily in the same context?
in my application, i am allowing the user to switch locales on-the-fly.
(don't ask!!) between jsp pages, this is taken care of simply by a
I want to deploy say for example the example Struts application
struts-example.war in the Websphere Test Environment that comes with VAJ.
Can anyone tell me where the auto-deloy folder of this is??
thanks
Ryan Magowan
Software Developer
Liberty Information Technology Direct Line: +44 (0) 28
Hi Frank,
You can build up a request parameter in the content url :
template:put name='details' content='details.jsp?value=Jon
direct='true'/
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 :
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 VAJ/ide/project resources/IBM WebSphere Test
Environment/hosts/default hosts/
You will also need to configure a fair bit in WTE.
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
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 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
Your html:link needs to specify paramProperty=results. I can't tell
what the paramName should be, since that would depend on what the linked
page expects.
Here's a reference snippet from a working page. The bean result has
accessors for donor, sortName, email, and website, where donor is a
The first tags says if A.B is not null rather than if A B are not
null.
You may need to use more nesting, maybe something like
logic:present name=A
logic:present name=A property=B
logic:present name=A property=B.property
some jsp/html
/logic:present
Can anyone tell me how I can internationalize the text on a submit button?
i tried the obvious:
html:submit value=Submit
bean:message key=extern.add.submitmessage/
/html:submit
But this always result in 'Submit' being the text, and not the value from
my message
I think you should remove the value attribute.
html:submit
bean:message key=extern.add.submitmessage/
/html:submit
Jean-Noël
- Original Message -
From: Mark Schenk [EMAIL PROTECTED]
To: Struts-User [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 12:56 PM
Subject: i18n a submit button
Exactly!
Thanks,
Mark
I think you should remove the value attribute.
html:submit
bean:message key=extern.add.submitmessage/
/html:submit
Jean-Noël
- Original Message -
From: Mark Schenk [EMAIL PROTECTED]
To: Struts-User [EMAIL PROTECTED]
Sent: Friday, June 15,
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 PROTECTED]
Subject: RE: Auto Deploy
thanx jon,
for the great help!
we´ve tested it with b3, too and it works perfectly.
thanx again,
antonio
- Original Message -
From: Jon.Ridgway [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 11:35 AM
Subject: RE: can't remove attributes from servlet
Hi All WTE
Is there any disadvantage in *not* having separate (Form-)Beans for every form in an
application?
-Felix
It would seem to me to be an organizational design decision.
If you share the bean, you would also have to share the validate method,
but that can be easily managed by checking the Action Mapping to see
which form is using the bean in this instance. The easiest way to do
that is by using the
I think action classes should allow a method(preloadPerform) definition.
This method would be called prior to the form being load. This way we can
initialize form values and do pre-process stuff. Currently I have a link to
doSomething.do which execute a corresponding DoSomethingAction class;
Hi Ryan,
No. 3.5 WTE is Servlet 2.1 and JSP 1.0 (not tag libs). You can either use
the Tomcat Test Env or upgrade to 3.5.3.
Jon.
-Original Message-
From: Magowan, Ryan(LIT) [mailto:[EMAIL PROTECTED]]
Sent: 15 June 2001 12:31
To: '[EMAIL PROTECTED]'
Subject: RE: Auto Deploy folder of
--
jean-philippe humblet
network research belgium
tel : +32 4 249 7277
Has anyone been successfully able to get the struts-template tag library
working on iPlanet Application Server 6.0 SP2. Here is a reference to the
library:
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/template/packa
ge-summary.html#package_description
I was successfully able
Hello Kiet,
Friday, June 15, 2001, 4:41:22 PM, you wrote:
KN I think action classes should allow a method(preloadPerform) definition.
KN This method would be called prior to the form being load. This way we can
KN initialize form values and do pre-process stuff. Currently I have a link to
KN
Ok, so I'm trying to build my own version of struts
so that I may incorporate some of Mr. Trent's gridXXX tags.
Here is what I get:
C:\jakarta-strutsant distBuildfile:
build.xml
init: [echo] -
jakarta-struts 1.0-b1 -
[echo] [echo] java.class.path =
Hi everybody,
I am getting this exception when i try to reference a jsp page directly
without going through an Action class. Basically the user is not even logged
in(when i get this exception). I do have a checkLogin/ tag which is a
modified version of the checklogin/ that comes with the
Hi everyone,
Being a newbie to struts, i was wandering if it is possible to use LINK tag
with 3 properties, using iterate tag
Searching for an example of such a thing in struts documentation, i found
this example:
%
{
java.util.ArrayList list = new java.util.ArrayList();
Matt,
Just curious, how have you faired with struts and IAS in general?
- jeff
- Original Message -
From: Matt Raible [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 9:20 AM
Subject: Struts and iPlanet
Has anyone been successfully able to get the struts-template
When you say 'return', do you mean you want to close the new window?
Or do you want to open a new link in the original window?
If you just want to close the window, then you can use a javascript command such
as: window.close()
However, if you want to open a link in the parent window, it is a bit
Hi!
Try to change your property for the option to a boolean!!
private String strValue;
private boolean value;
/Linnéa
- Original Message -
From: Pal, Gaurav [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 4:18 PM
Subject: select options doesn't work
Hi,
I have
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
Hello,
I am trying to get Struts to work with WAS 3.5.2, using the
directions available on the Struts installation page
(installation-was352.html). I have done all of the steps up to the point
where I put in the 1.0.1 jaxp.jar and parser.jar files. When I start the
Default Server, I
Title: RE: nested logic:present tags do not short-circuit
Hi Ted-
Thanks for the reply. But note that I am really looking at the case where _B_ may be null. I would have wanted the test present name=A property=B to prevent the evaluation of the test present name=A property=B.property. _A_
Never mind. I figured it out. I forgot to include my custom library and this
check was bypassed.
cheers,
Amar..
-Original Message-
From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 9:52 AM
To: '[EMAIL PROTECTED]'
Subject: Null Pointer Exception when using on
I'm getting a strange error:
I wrote a normal servlet which establishes a HttpURLConnection to do a
POST request to a remote server. Everything works fine.
I have now moved my application to use struts and implemented the same code
inside the perform() method. Now, I get an
Thanks for your suggestion - but it still doesn't work...I keep getting the
same exception.
Gaurav
-Original Message-
From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 10:25 AM
To: [EMAIL PROTECTED]
Subject: Re: select options doesn't work
Hi!
Try to change
look at the subscription.jsp in the strutsexample.
-Original Message-
From: Pal, Gaurav [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 7:18 AM
To: '[EMAIL PROTECTED]'
Subject: select options doesn't work
Hi,
I have been trying to get the select options tag to work in the html
In your Form bean change your set method to take a string.
public void setMarketList(String marketList)
{
}
You will only get the item the user selected back in your bean, not the
whole list.
-Original Message-
From: Kiet Nguyen
To: '[EMAIL PROTECTED]'
Sent: 6/15/2001 11:10
Kyle,
While I appreciate the magnitude of the RD on WAS/VAJ, I also think IBM has
been the worst offender in adopting and conforming to standards. Issues such
as the one you raise below could have been minimized by having dependency
documents, or architecting the system in a more self-contained
i think u have to use jsp in the value tag, like so:
logic:iterate id=itr1 name=itr1 type=class
logic:iterate id=itr10 name=itr100 type=class1
bean:define id=theName name=itr10 propertyname/
%
String s = (String) pageContext.findAttribute(theName);
%
logic:equal name=itr1 property=name
Hi,
I used to use PBP Tag library that provides some nice features, such as
whether the field is required, define the input pattern, convert the input
to upper/lower case, etc. These features are more less for the front-end
Java Script side. However, they are very convenient. Is there
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 :
bean:define id=name
I completely agree Dan.
Chris
-Original Message-
From: Dan Miser [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 11:42 AM
To: [EMAIL PROTECTED]
Subject: Re: WebSphere, Jasper and Struts 1.0b3
Kyle,
While I appreciate the magnitude of the RD on WAS/VAJ, I also think IBM has
been
Jon, Tom:
You might want to check out what we're doing in Expresso
(www.jcorporate.com) for user security. We're in the process of integrating
Struts as one of the front-end/UI choices available for Expresso apps, and
the models are pretty compatible.
Mike
Jcorporate Ltd.
Hi Jon,
Manu thanks for your response.
You wrote:
To do this with a map you would code something like this (assuming that my
artifact beans getParams method returns a Map):
html:link forward=editArtifact name=artifact property=params
bean:message key=prompt.artifact.edit/
/html:link
This may be a little off topic, please forgive me. One of my webapplications
displays a group of results from a database query. These can be hundreds of
rows long. I would like to break these up into smaller sections to fit on a
page.
My problem is, I don't want to run the entire query at once
We would like to have an ActionForward specify a path such as
/context/page.jsp#anchor. This does not seem to work. Has anyone tried
this before? Could this be a limitation of the JSP forward/redirect/include
mechanism?
--
Thanks
Jacob
Sure. Just use something like this:
SELECT * FROM (Select * from sometable
Order by sortcolumn)
WHERE rownum=1 and rownum=10
This would return the first 1-10th rows of the query (sorted properly)
If you were not interested in sorting properly, you could just
Is there a way to a specify a query string as part of the path attribute
in the forward tag within an action?
Example:
forward name=command path=/context/page.jsp?param=value/
--
Thanks
Jacob
Hi,
I gave up on weblogic 5 with sp9 and stuts,
I deployed to weblogic 6 and sp2 and it worked first time, no problems.
So anyone fighting with weblogic 5 who whose app can be moved to wl6 may
want to do so.
Title: RE: FYI Weblogic 6 sp2 and stuts
I would like to add that Weblogic 5.1 sp 9 is very buggy and I couldn't get it to work either, but I am not having any problems with Weblogic 5.1 sp 8.
-Original Message-
From: Grant Davies [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001
I've tried using the rownum before, but this is the error i get from sql
server 2000
rownum is not a valid column name
Sun's cached rowset has a MaxRows property that you can use to limit the
number of rows returned.
http://developer.java.sun.com/developer/Books/JDBCTutorial/chapter5.html
I'm not aware of a general way to offset a particular number of rows in
the a query that will work with everyting, which
an idea
you have to know all the time exactly where you are in result set
( start, end | step)
run query, skip first first rows -
do what you want with next step rows [ for ( int i = start; i
start + step; i ++) ...]
close result set
create a
after installing struts-exercise-taglib
index.jsp works fine for Bean Tags and Logic Tags, but HTML tags
give this error:
Error: 500
Location: /struts-exercise-taglib/html-link.jsp
Internal Servlet Error:
javax.servlet.ServletException: Exception creating bean of class
My quetion: Is there anyway to specify an offset into a query
using MS SQL Server? Thank you.
No. You've got to read the records and throw them away.
--
Curt Hagenlocher
[EMAIL PROTECTED]
On Fri, 15 Jun 2001, Jon.Ridgway wrote:
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 is
On Thu, 14 Jun 2001, Jonathan Asbell wrote:
Craig, can you explain point number one Expose the data as JavaBeans *other
than* the form bean. Is it that you are not using the form bean?
Yes. I can think of many cases where you'd want to extract read-only data
from beans other than the
If you want to be able to restrict the number of rows returned from a query
to a MS SQL Server database then you can use the set rowcount xx command.
This command can be used as follows to return 100 rows from a query:
set rowcount 100
select * from mytable where myvariable = 'mycriteria';
set
I would like to know from the Struts elite if there are
any struts centric facilities to help with login/logout?
I just don't want to reinvent the wheel if it is already
out there.
The username and password would be entered on
the webpage itself and not entered into the user/pass
dialog
Just like you did should work fine.
Craig
On Fri, 15 Jun 2001, Jacob Thomas wrote:
Is there a way to a specify a query string as part of the path attribute
in the forward tag within an action?
Example:
forward name=command path=/context/page.jsp?param=value/
--
Thanks
Jacob
I am wondering if the struts html:text tag supports the localization of
number formats? And if not, whether it even should?
thanks,
dan
Hi,
I'm having some trouble understanding how the extension mapping works
for servlets and struts. In the web.xml file, the following extension
mapping for the struts ActionServlet is used:
servlet-mapping
servlet-nameActionServlet/servlet-name
url-pattern*.do/url-pattern
Hi guys:
I consider myself fairly new to Strut. I have done a login flow that allows
user to edit his/her profile.
The login workflow is simple using the Struts framework:
Map the login screen form to a form bean, then the action bean login the
user and forward to the useredit.jsp upon a
Hi All,
I've got Struts (1.0-b1) Example working under Default Server without any
problem using standard instructions.
We converted part of our application towards using Struts as well.
struts-config.xml was placed under web/WEB-INF directory.
The problem starts when I deploy Struts
It's looking for the ApplicationResouces.property file.
This can be anywhere on your class path.
I like it right under the classes folder.
Karmanov, Igor wrote:
Hi All,
I've got Struts (1.0-b1) Example working under Default Server without any
problem using standard instructions.
We
I have constructed a simple war utilizing the struts-template tag library.
I have deployed it to Tomcat, but I'm getting the error below. Any ideas?
Thanks,
Matt
html
head
titleh1Included servlet error: 500/h1
h2Location: /uiframework/index.jsp/h2
h2Error Location:
Thanks for all your answers. This has been very nerve wrecking. I think I've
come up with a solution that may work in a DB independent way. I'll use a
scrollable resultset. I won't iterate through all of it, only portions at a
time. I think most underlying JDBC drivers use cursors to implement
Put web in your classpath. After you do this, you'll need to restart the
webapp. I've tested the instructions here countless times and it's worked:
http://www.distribucon.com/struts/WASInstall.htm
--
Dan Miser
http://www.distribucon.com
- Original Message -
From: Karmanov, Igor [EMAIL
If you use a scollable resultset, you will have to keep an open
connection to the database. This can be an issue with a Web application.
With a Cacheable RowSet you would not need to keep the connection open,
but you would need to store the entire set in memory.
Either way, you would need a
Is it still expected to happen today?
Thanks,
Rob
is this suppose to be not-beta anymore?
-Original Message-
From: Moore, Robert [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 3:01 PM
To: '[EMAIL PROTECTED]'
Subject: How goes the 1.0 release?
Is it still expected to happen today?
Thanks,
Rob
Yes. A production release was announced with a June 15th availability.
-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 3:07 PM
To: [EMAIL PROTECTED]
Subject: RE: How goes the 1.0 release?
is this suppose to be not-beta anymore?
...OLE_Obj...
Does any have struts diagram I can use. I created this one, any suggestion.
thanks
On Fri, 15 Jun 2001, Jamie Tsao wrote:
Hi,
I'm having some trouble understanding how the extension mapping works
for servlets and struts. In the web.xml file, the following extension
mapping for the struts ActionServlet is used:
servlet-mapping
On Fri, 15 Jun 2001, Simon Liang wrote:
Hi guys:
I consider myself fairly new to Strut. I have done a login flow that allows
user to edit his/her profile.
The login workflow is simple using the Struts framework:
Map the login screen form to a form bean, then the action bean login the
The diagram is attached.
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 1:32 PM
To: [EMAIL PROTECTED]
Subject: Re: strut diagram
Please send this diagram as an attached image.
- Original Message -
From: Kiet Nguyen [EMAIL PROTECTED]
- Original Message -
From: Kiet Nguyen [EMAIL PROTECTED]
To: Struts-User (E-mail) [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 4:23 PM
Subject: strut diagram
...OLE_Obj...
Does any have struts diagram I can use. I created this one, any
suggestion.
thanks
(See attached file:
Hi guys:
I consider myself fairly new to Strut. I have done a login flow that allows
user to edit his/her profile.
The login workflow is simple using the Struts framework:
Map the login screen form to a form bean, then the action bean login the
user and forward to the useredit.jsp upon a
On Fri, 15 Jun 2001, Moore, Robert wrote:
Is it still expected to happen today?
Yep. The last few remaining issues are either going to be addressed or
left in as known issues. I do not believe there are any showstoppers.
(But I still have until midnight Pacific time ... :-)
Thanks,
Hi,
I noticed that there's a struts-form.tld tag library descriptor as
part of the struts distribution. What is this for ? The struts site
only has documentation for four tag libraries, struts-bean.tld,
struts-html.tld, struts-template.tld, and struts-logic.tld. I looked at
the contents and
Nevermind !! I did a little more research and found out that
struts-form.tld as well as struts.tld have been deprecated.
sorry for the ignorant post.
- jamie
-Original Message-
From: Jamie Tsao
Sent: Friday, June 15, 2001 2:06 PM
To: '[EMAIL PROTECTED]'
Subject: struts-form.tld ??
FYI i did get struts-example to work after i realized that, in addition to
having struts.jar in
/tomcat/webapps/struts-example/WEB-INF/lib/
i *also* had copied it to
/tomcat/lib/
- just as the install guide says NOT to do. this really does cause a
classNotFound error.
end
When the original Struts tag library was split into four (after version
0.5), the one containing input form stuff was named struts-form.tld. It
became clear later on that struts-html.tld is a much better name, so the
library was changed. The old struts-form.tld was retained (through
version
Newbie question:
I'm using tomcat 3.2.1
my default app is webapps/Root
i have webapps/struts-example working.
my understanding is that these are two separate apps each with its own web.xml
etc, and that they cannot access each other's session data. I want to move
struts-example to under
Can someone clarify the following:
WARNING: In order to correctly recognize unchecked
checkboxes, the ActionForm bean associated with this form must
include a statement setting the corresponding boolean property to
false in the reset() method.
Does this mean that if I use check boxes I have
I am trying to use the CTLX extension that allows one to use JSP tags,
specifically struts tags within the Dreamweaver environment. I am
working on Window NT and I got one user working correctly. When I tried
to access the environment from another environment I received a
504 Gateway timeout
Still confused. So in my reset method, I run through all my beans and if
the property is false, I set it false again? Does not compute? I guess I'm
not sure how to get the corresponding boolean property?
What I have is a list of checkboxes that may be initialized to true or false
depending on
They are actually cached in the request. It's just that with boolean
checkboxes, you should reset them them to false first, or there are side
effects. You really, really don't have to do anything else.
It's important to remember that there is not a direct connection between
the HTML form and
Thanks, Craig!
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 7:23 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [ANNOUNCEMENT] Struts 1.0 (Final) Released
As promised at JavaOne,
So this means that I have to cache the original state of all my checkbox
referenced vars so I can set them back in the reset method? :(
--m
- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 5:56 PM
Subject: Re: html:checkbox
In my jsp I'm trying to submit my form to: /admin/login/LoginForm.do
so my tag looks like:html:form action=/admin/login/LoginForm.do
and the corresponding action tag (in the struts-config) looks like this:
action path=/LoginForm type=app.LoginAction name=LoginForm
scope=request
Title: RE: [ANNOUNCEMENT] Struts 1.0 (Final) Released
Hey Craig,
Will the documentation be updated anytime soon?
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 5:23 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED];
On Fri, 15 Jun 2001, Jason Chaffee wrote:
Hey Craig,
Will the documentation be updated anytime soon?
Which docs in particular are you thinking about? I updated the Jakarta
web site with the most current information immediately prior to sending
the announcement.
Craig
-Original
On Fri, 15 Jun 2001, Mike Thompson wrote:
Still confused. So in my reset method, I run through all my beans and if
the property is false, I set it false again? Does not compute? I guess I'm
not sure how to get the corresponding boolean property?
What I have is a list of checkboxes
You should take a look at David Winterfeldt's Struts Validator at:
http://home.earthlink.net/~dwinterfeldt/
This does most, if not all, of what you want.
--
Martin Cooper
- Original Message -
From: Kwang-Shi Shu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 8:43
The Action.perform() method is where you should be setting up the beans your
JSP will use. That seems to be what you are doing (although typically you
will forward, rather than redirect, to the JSP page).
What is it that you're looking for in a pre-process method? Do you mean
something that is
As promised at JavaOne, the Struts project team is proud to announce the
availability of Version 1.0 (final release) of the Struts Framework. The
binary distribution is available at:
http://jakarta.apache.org/builds/jakarta-struts/release/v1.0/
and the source distribution is available at:
95 matches
Mail list logo