thanks for your clarification !
On 12/19/06, Wendy Smoak [EMAIL PROTECTED] wrote:
On 12/18/06, Lixin Chu [EMAIL PROTECTED] wrote:
the linked provided on WiKi seems broken:
http://people.apache.org/builds/struts/1.3.6
http://people.apache.org/builds/struts/1.3.6
are we going to have
the linked provided on WiKi seems broken:
http://people.apache.org/builds/struts/1.3.6http://people.apache.org/builds/struts/1.3.6
are we going to have a new release soon ?
thanks
you can use %@ include file=... % to include the common JSP.
On 11/14/06, fea jabi [EMAIL PROTECTED] wrote:
Using struts. Have a JSP cust.jsp
In it half of it is very specific to that page only. other half is shown
in
this cust.jsp and another report.jsp too.
want to implement this so that
just curious, what's the benifits of configuring Struts Actions in Spring
? isn't Struts config file enough ?
how abt using the same formbean for both actions ?
i use TC 5.5 and Struts 1.2.9 w/o problems. but i can not tell what's wrong.
when did the error occur ?
hi,
I am hearing that action chaining is something we should avoid, however, I
am not sure what's the common practice for this use case:
given User and Department, we need to list User/Department, view
User/Department; when listing User, we also show their department.
When listing Users, we may
struts itself does not (need to) handle pagination.
for displaytag, you can check
http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html
a custom tag library...
From: Lixin Chu [mailto:[EMAIL PROTECTED]
Sent: Sat 16/09/2006 1:25 PM
To: Struts Users Mailing List
Subject: Re: calling method of a bean from JSP
i do not think it works
On 9/17/06, Yujun Liang [EMAIL PROTECTED] wrote:
Have you tried Mapped Properties?
http://struts.apache.org/1.2.9/faqs/indexedprops.html
Regards
this is a good point. I have not tried it. Is it ok (in terms of
performance) to use a custom class as the key, not using Java primitives
like
i do not think it works.
What are you trying to achieve? Maybe you're trying to put logic in your
JSPs that more properly belongs in an action.
thanks. what i am trying to do is to get the value of a field. Say I get a
list of items:
class item {
Set values;
...
}
The item has a set of Values:
class Value {
c:out value=${beanName.methodName}/
I thought this is for getting the value of a property ? and how to pass a
parameter to the method ? I think I have tried that but does not work.
Hi,
would like to check if there is existing tag available to allow method
invocation from JSP directly, something similar to this :
Call JavaBean methods from JSP 2.0 pages
http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-calltag.html
thanks
lx
is Apache Slide somthing you are looking for ?
Hi,
I am trying to enable I18N in my struts based application, here is what I
have done:
- added a LocaleFilter, which I copied from Appfuse:
String locale = request.getParameter(locale);
Locale preferredLocale = (*null* ==
I tried Appfuse on my machine, it works. so I assume the browser
configuration is fine.
I use Tiles, Struts, and Spring framework in my application btw.
do you have something like:
onsubmit=validateAttendeeDetailsForm (this);
in html:form ?
and form name is not attendeeDetailsForn ?
page is benign. -- Paul
Lixin Chu [EMAIL PROTECTED] wrote: this may be posted before though i
can not find any in the archive:
how to make sure that browser's back button will bring back the previous
page after log out ?
Googled, and added these into our logout action, but still no effect
is there a clearner way of doing this if I want to protect every page except
the login/out ?
yes, it works. thanks. this should be the simplest way of supporting this.
On 6/26/06, Wendy Smoak [EMAIL PROTECTED] wrote:
On 6/25/06, Lixin Chu [EMAIL PROTECTED] wrote:
is there a clearner way of doing this if I want to protect every page
except
the login/out ?
What about the 'nocache
this may be posted before though i can not find any in the archive:
how to make sure that browser's back button will bring back the previous
page after log out ?
Googled, and added these into our logout action, but still no effect:
response.setHeader(Cache-Control, no-cache);
not sure if this is what you want but this one should work:
global forward is defined as, fot example:
forward name=authorizationError path=.authorizationError
redirect=true/
the .authorizationError is defined as a Tile:
definition name=.authorizationError extends=.baseDef
put name=menu
how to handle action chaning in EventDispatchAction, for example, if my
mapping is something like this:
forward name = nextaction path = /nextAction.do?action=true/
When we use: return mapping.findForward(nextaction); the current
parameters, including the event for the current action will be
i think transaction manager will take care of this.
On 5/30/06, Julian Tillmann [EMAIL PROTECTED] wrote:
Thanks a lot for your answer!
My thinking behind is the application level!
I'm not sure but the goal is (my hope..)to solve
this problem using aspect oriented programming or Spring
i think the hidden field is automatically created if you use html:form tag.
Hi All,
would like to know if there is any way to customize the client side
validation popup window ? i am using struts client side validator.
thanks
lixin
A cleaner back button solution is almost a must-have for logout:
after logout, the back button should not bring back the previous page.
looking at that Gmail does. any idea how it is implemented ?
check the latest display tag (i think 1.1 or 1.2), it does support
pagination though.
there is also a AjaxTag which enables a AJAX displaytag.
On 4/30/06, H. Kerem Cevahir [EMAIL PROTECTED] wrote:
Hi,
display:table tag works on beans( or lists) which are kept in one of
scopes.
You can
if the validation is done at the server side (in your actionform), then you
can easily get the errors.
On 4/28/06, Asad Habib [EMAIL PROTECTED] wrote:
How do I access errors that the Validator places in the ActionErrors
object instance within a Struts action? I need to do this in my action
exactly, thanks !
On 4/25/06, Niall Pemberton [EMAIL PROTECTED] wrote:
On 4/24/06, Lixin Chu [EMAIL PROTECTED] wrote:
just upgraded from 1.2.8 to 1.2.9. I did not add
set-property property=cancellable value=true/
in struts-config.xml and still use html:cancel as per normal in jsp
just upgraded from 1.2.8 to 1.2.9. I did not add
set-property property=cancellable value=true/
in struts-config.xml and still use html:cancel as per normal in jsp files.
Tested, do not see exception and no validation is called.
any reason why ? default setting ?
btw, my action is
thanks.
but according to the doc, I can use the form bean for Struts creator. I
tried Spring creator, it works if I only use the bean name not fully
qualified class name though.
On 4/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
-- Original Message ---
From: Lixin Chu
Hi,
I am trying my luck to see if someone in this forum has any idea of why - i
have not got response from DWR forum so far.
I am using DWR 1.1.1 (also tried 2.0M1) with Struts 1.2.8. My DWR
configuration is like this:
create creator=struts javascript=GetMultipleUsers
param
this might be of interest. very easy to integrate into your application:
http://www.dynarch.com/projects/calendar/
HTMLArea is also something cool.
oh, did not notice that.
to show your own error page in IE, you need to have error page size more
than 512 bytes.
On 3/3/06, Partha Pratim Dutta [EMAIL PROTECTED] wrote:
Thanks George. It really works fine in Firefox. Why Microsoft is bent
upon changing everything their way ?
-Original Message-
From: [EMAIL
thanks Ted.
no problem, i just need to add one more bookmark entry.
On 3/2/06, Ted Husted [EMAIL PROTECTED] wrote:
On 3/2/06, Lixin Chu [EMAIL PROTECTED] wrote:
why not consolidate all into one place ? Struts planet, struts central,
wiki, etc ?
Planet Struts is powered by Roller
why not consolidate all into one place ? Struts planet, struts central,
wiki, etc ?
On 3/2/06, Michael Jouravlev [EMAIL PROTECTED] wrote:
Why not to expand and improve Struts wiki?
On 3/1/06, Ted Husted [EMAIL PROTECTED] wrote:
There is a small resource directory on the Struts wiki, but it
why displaytag does not meet your requirements ?
On 2/22/06, Narayanan, Shiva [EMAIL PROTECTED] wrote:
Hello All,
What is the best way to sort and page search results, (with delete button
for each row) using Struts? Are there are any open source tag libraries to
achieve this?
Looked at
ok, I let page A or B pass a returnURL to page C who keeps it in the session
scoped actionForm.
On 2/15/06, Frank W. Zammetti [EMAIL PROTECTED] wrote:
Michael Jouravlev wrote:
On 2/14/06, Rick Reumann [EMAIL PROTECTED] wrote:
In the action just look for some param like fromPage and key
Hi,
I saw a thread discussing this but can not find it anymore now. I remember
someone mentioned that the amount of data put into the session context
should not exceed 32KB in general otherwise performance might be affected.
I may interpreted it wrongly. so i would like to clarify if it is indeed
may you would like to take a look at these two:
Yale's CAS : http://www.ja-sig.org/wiki/display/CAS/Home
Acegi : http://acegisecurity.org/
Hi All,
appreciate any help here ...This is what I have done in trying to
show strings in the selected language:
- I have various /WEB-INF/classes/ApplicationResources.properties
files, for example APplicationResoruces_ja.properties
- in struts-config.xml, I have:
message-resources
I set to ja in the session;
I removed locale=true from JSP but the result is the same.
Browser encoding is set to UTF-8.
When I 'view source' in the browser, I saw html lang=zh if I set
to Chinese. But I do not see this :
meta http-equiv=Content-Type content=text/html; charset=UTF-8
is this
1. I use this to set the locale:
request.getSession().setAttribute(Globals.LOCALE_KEY, Lcoale.JAPANESE);
2. yes, properties file has some.
3. the whole page is in english
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
is there a road map/milestone for Shale developemnt ?
I am pretty comfortable with Struts now but would like to explore
Shale in the next project.
thanks
lixin
On 8/18/05, Craig McClanahan [EMAIL PROTECTED] wrote:
On 8/17/05, Joe Germuska [EMAIL PROTECTED] wrote:
At 11:49 AM +0100 8/17/05,
thanks !
On 8/18/05, Wendy Smoak [EMAIL PROTECTED] wrote:
From: Lixin Chu [EMAIL PROTECTED]
is there a road map/milestone for Shale developemnt ?
I am pretty comfortable with Struts now but would like to explore
Shale in the next project.
Craig has posted a roadmap on the Struts Wiki
I would think that beside performance, you might also need to think
about how to manage memory for session scoped objects.
on the other hand, if we have some sort of cache facility, performance
may not be a big issue.
On 6/20/05, Nitish Kumar [EMAIL PROTECTED] wrote:
I am again stuck on to the
your message size has to be more than 512 bytes otherwise
the default IE 404 page will be used - if I remember correctly.
On 6/16/05, McDonnell, Colm (MLIM) [EMAIL PROTECTED] wrote:
Use the optional error-page element defined in web.xml, this allows
you to map an error code _or_ exception type
.
Regards,
David
-Original Message-
From: Lixin Chu [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 11, 2005 6:36 AM
To: user@struts.apache.org
Subject: Re: displayTag needs session scoped objects for sort/export ?
you can but have to hit the DB every time.
On 6/11/05
you can but have to hit the DB every time.
On 6/11/05, Lixin Chu [EMAIL PROTECTED] wrote:
Hi,
would like to clarify with those who use displayTag:
is it a must to put list of objects into session to be able sue sort
and export function ?
thanks
lixin
Hi,
I am trying to preview a piece of html content. but the c:out with
escapeXML=false can not handle space char correctly.
is there an easy way to replace the ' ' with html special space char ?
thanks
lixin
-
To unsubscribe,
Hi,
would like to clarify with those who use displayTag:
is it a must to put list of objects into session to be able sue sort
and export function ?
thanks
lixin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi,
I am using Struts 1.1, do I have to switch to 1.2 ?
thanks
lixin
On 5/17/05, Dakota Jack [EMAIL PROTECTED] wrote:
Congratulations! Good work!
On 5/12/05, Frank W. Zammetti [EMAIL PROTECTED] wrote:
Finally got it all set up on http://struts.sf.net. The first official
release is up!
i guess http://acegisecurity.sourceforge.net will most likely not
shown in the search list.
you may want to take a look at it if you do not want to develop
something from scratch again.
On 5/25/05, atta-ur rehman [EMAIL PROTECTED] wrote:
I'll start with the first five :)
Hi,
I always get null from request.getChaaracterEncoding(), do not know why.
I am using Tomcat 5.5.7, Struts 1.1. Tested IE 6.0 and FireFox. Which
ever encoding I select in browser, my servlet always reprots as null
from the above call.
thanks for any info!
li xin
.
Lixin Chu wrote:
Hi,
I always get null from request.getChaaracterEncoding(), do not know why.
I am using Tomcat 5.5.7, Struts 1.1. Tested IE 6.0 and FireFox. Which
ever encoding I select in browser, my servlet always reprots as null
from the above call.
thanks for any info!
li xin
hi,
I am looking for a chat engine that I can integrate it into my Struts
based web application. basically, my application wants to do the
following things:
- get notified when a client wants to open a chat
- redirect to the target audience for the incoming chat request based
on pre-configured
Hi,
I am also interested in integrating a chat engine with my Struts
application - with very similar requirements. In fact I posted a msg
here before checking this thread !
I am not familar with any of the Sockets, ServerSockets, XML API or
Threads. So looks like building from scratch is not an
and you can find an
announcement of it. Probably, there are JavaScript-based chat
implementations out there too. If you are going to use JavaScript and
have simple requirements, Leon's suggestion might fit the bill.
Lixin Chu wrote:
Hi,
I am also interested in integrating a chat engine
=done' is sent to the server.
So now I hope I have a complete decoupled, I18N aware
DispatchAction. Thanks Jack !!!
li xin
--- lixin chu [EMAIL PROTECTED] wrote:
I realize that the problem is action chaining.
In my code, action one goes on to the next action -
I
persume
.
Jack
On Sat, 30 Oct 2004 05:18:41 -0700 (PDT), lixin chu
[EMAIL PROTECTED] wrote:
problem solved - I made a mistake in the JSP file,
here is the right one to return a parameter for a
submit button:
html:submit
property=ListPermission.dispatch
value=done
bean:message key
hi jack,
thanks, the solution is cool ! I am trying it.
a small problem i am experiencing now is that (i am
not sure if there is something wrong in my
configuration), the parameter on one page is passed on
to the next page, so when we getMethod, the earlier
method name is returned.
I have one
much.
Erik
lixin chu wrote:
Hi,
I saw an ealier thread discussing this but still
can
not fully understand the solution.
appreciate if any one can provide some more
detailed
info on this. basically if the current page flow is
terminated for some reason, how the Struts
application
this solution is :)
Chris McCormack
-Original Message-
From: lixin chu [mailto:[EMAIL PROTECTED]
Sent: 15 October 2004 10:05
To: Struts Users Mailing List
Subject: Re: mechanism to clear objects in the
session
thanks. it indeed helps me, in fact the points are
critical - i
Hi,
I saw an ealier thread discussing this but still can
not fully understand the solution.
appreciate if any one can provide some more detailed
info on this. basically if the current page flow is
terminated for some reason, how the Struts application
can clear the objects stored in the session ?
Hi,
I am seeking your expert advice:
I have a simple page with Done and Cancel buttons. If
any of these buttons are clicked, I suppose to go back
to the calling page - there are a few pages that will
come to this page. It is a simple workflow type of
thing.
So I need to know the retutn URL, pls
actually I do not like either option. my understanding
is:
* session scoped obejcts (I mean those put into the
session using request.getSession().setAttribute()) are
like global variables. I need to take care of
potential naming conflict-but I can not use fully
qualified domain name type of naming
something like this:
input type=checkbox name=value(bean:write
name=yourBean property=emailAddress/)
value=x/
--- Caroline Jen [EMAIL PROTECTED] wrote:
I am able to create check boxes using HTML. But, I
do
not know how to display check boxes in Struts.
Here is what I plan to do:
I have
Hi,
I am looking for sample code/plug-in that can import
data into a database. Idealy it can support both CSV
and XML format.
I need to import user info from a legacy system into a
new mySQL database. Wondering if there is a package
available for user to import the data from browser.
very much
There is an interesting article talking about
validation in DispatchAction. That may not be what you
are looking for but I would like to know if the method
suggestted by the author is a good choice or not:
http://www.reumann.net/struts/articles/request_lists.jsp
Another common practice is to have
c:forEach items=${applicationScope} var=itm
tr
tdc:out value=${itm.key}//td
tdtextarea rows=5 cols=50c:out
value=${itm.value}//textarea/td
/tr
/c:forEach
/table
---
lixin chu wrote:
Here is how I prepare action
ActionMessage(something
here);
the something here corresponds to a key in your
messages.properties
file (or whichever file has your resource messages)?
lixin chu wrote:
Here is how I prepare action messages in Action:
ActionMessages messages = new ActionMessages();
messages.add
Hi,
Appreciate your help, I have been trying to find out
why for days.
Here is my JSP:
bSearch Templates/b
font color=red size=2
logic:messagesPresent
ul
html:messages id=error
libean:write name=error//li
/html:messagesbr
/ul
/logic:messagesPresent
/font
font color=blue size=2
open source Yale CAS could be one possible choice.
--- Prasad, Kamakshya
[EMAIL PROTECTED] wrote:
Hi,
We have lot of web application built on struts for
which we need to
provide single sign-on.
Please advise me how to implement the same.
We are using Weblogic 8.1 as the app server.
Hi,
I got this error log
~~
07.09.04 15:21:34 [http8080-Processor24] ERROR
org.apache.struts.taglib.tiles.InsertTag -
ServletException in '/WEB-INF/tiles/home.jsp': Cannot
find bean messages in any scope
javax.servlet.ServletException: Cannot find bean
messages in any
Hi,
I gies a strange problem, the messages are not
displayed. here is the code in my Action:
messages.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage (templates List error));
saveMessages (request, messages);
In JSP:
font color=blue size=2
logic:messagesPresent message=true
- read up on
what reset() does.
servlet is a variable of Action and is available
in all methods of your
own Action classes.
Paul
-Original Message-
From: lixin chu [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 28, 2004 3:52 AM
To: [EMAIL PROTECTED]
Subject
Hi,
IN one of my Actions I need to clear the existing
session scoped ActionForm, should I just call
form.reset() and then repopulate values, or I have to
remove it and recreate it using RequestUtils ?
I saw a recent message talking about this, but I am
not sure if I have to recreate one. If so,
so JSP1 should be associated with another Action,
which fetch data from DB and setAttribute in request
or session.
You should make your Action not the JSP1 available to
the user.
--- Sebastian Ho [EMAIL PROTECTED] wrote:
Hi
Scenario :
1. User submits form in JSP1 which Action1 saves to
i am tring Struts Workflow Extension, which I guess
should be able to support your use case. however, I
am not sure how it handles multiple window in the same
session.
--- Varley, Roger [EMAIL PROTECTED]
wrote:
Hi
I'm trying to write what is esentially a web based
data entry program using
Hi,
Got a problem, no idea what's wrong:
I have defined a violation handler:
---
action path=/admin/OrgWorkflowViolation
type=net.canal.admin.action.OrgWorkflowViolationAction
forward name=success path=.createOrgDef/
/action
Hi,
I am looking for some good document on Workflow
extension - especially detail explaination on primary
and secondary workflow:
* when do I need to define a new primary workflow ?
* how does this extension work with
LookupDispatchAction ?
any example code is very much appreciated !
thanks
li
Hi,
Could not figure out why the mutable variable is
always reset to true. Here is the snipet of my session
scoped ActionForm:
..
private boolean mutable = true;
public void setMutable(boolean mutable) {
this.mutable = mutable;
}
public
thank you very much for your promopt response !
I found out the problem: I used a wrong attribute name
when I save the form in prepareAction, which causing a
new form being created after submitting the JSP file
(html:form)
--- Rick Reumann [EMAIL PROTECTED] wrote:
lixin chu wrote:
I
Hi,
A new problem:
I have a Clear button which suppose to clear the input
fields. However, when I use bean:write to display the
current value on the page, and disable reset() in the
ActionForm, after pressing Clear button, the value in
Form (session scope) is still displayed on the page.
is it
as a wizard using struts session
scope strategy.
This strategy has certain complications and is
generally
disadvantageous.
Thanks,
Satish Kataria
-Original Message-
From: lixin chu [mailto:[EMAIL PROTECTED]
Sent: Monday, August 16, 2004 4:59 AM
To: [EMAIL PROTECTED
you somehow use
hidden variables to specify running objects that
get recreated for
each request.
Erik
lixin chu wrote:
solution 1. persisting data may cause some
problems,
for example performance, as users may need to
create a
few detail objects. I prefer to keep these objects
Hi,
MS IE has default setting:
Tools-Options-Advanced-Browsing-Show friendly
HTTP error message
When it is checked, the IE default error page is used
not your own 404 error page.
How can I change the http status code in Struts
application so that my own 404 page is used ?
thanks
li xin
sorry, i am new to this, what message ?
--- Rosenberg, Leon
[EMAIL PROTECTED] wrote:
Send a message with more then 1024 bytes.
(resin does it)
-Ursprüngliche Nachricht-
Von: lixin chu [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 16. August 2004 16:22
An: [EMAIL PROTECTED
this url explains this:
http://www.404-error-page.com/404-error-page-too-short-problem-microsoft-ie.shtml
--- lixin chu [EMAIL PROTECTED] wrote:
sorry, i am new to this, what message ?
--- Rosenberg, Leon
[EMAIL PROTECTED] wrote:
Send a message with more then 1024 bytes.
(resin
Hi,
How should I handle this:
I have 2 jsp, in a.JSP, I need to display an
ArrayList. When users click 'Add', B.JSP is displayed
which allows users to fill in the details of a new
object. When users click 'Done', I need to return back
to A.JSP, display the newly added object, and
ArrayList should
thanks !
--- Koon Yue Lam [EMAIL PROTECTED] wrote:
Hi !
From your question, I guess that you need a multiple
of checkboxes, so
you need html:multibox instead of html:checkbox
for your reference:
http://struts.apache.org/userGuide/struts-html.html#multibox
and a wonderful example:
Hi,
Still strugling with the LookupDispatchAction. I got
this error message:
javax.servlet.ServletException:
Action[/admin/OrgAction] missing resource
'button.list' in key method map
.
I suspect that there is something wrong with the
string I used. Here is what I aming doing:
1.
hi,
guess many questions were raised on this but could not
find detail enough sample code.
i am looking for sample code demostrating the support
of checkbox in Struts ActionForm, Action and JSP
files. I am using displaytag (really good!) to
generate the table with a column of checkboxes. how do
i
Hi,
A bit OT question: how to get the Role/Group info only
in JASS client - I am using Tagish package but I guess
it is common.
In my login.java, I use:
~~~
lc = new LoginContext();
lc.login();
Set p = lc.getSubject().getPrincipals();
hi,
how to check a 'set' variable using JSTL or Struts
tags ?
for example, I have a variable called 'Roles' which is
a Set. In a JSP, I want to check if
'Admin'/'Guest'/'User' is in the Set. How do I do this
? Could not find a suitable tag to handle this.
thanks
li xin
98 matches
Mail list logo