If you don'd use i18n ,you should only have one.
--
[EMAIL PROTECTED]
Hi friends,
Is struts layout is a dependable library to use. I am finding many
difficulties to implement it. so is it a reliable one to use ?
sony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Have a hidden attribute called method.
Assign this param with the method name u need to call in the
DispatchAction Class based on the Button you have clicked and submit the
form.
Thanks and regards,
Pazhanikanthan. P
Project Leader,
Caritor (India) Pvt. Ltd.,
Madras - 600 006
Mob: 9886152717
But that will require javascript, isnt it??
|-+--
| | Pazhanikanthan Periasamy |
| | [EMAIL PROTECTED]|
| | aritor.com|
| | |
|
Yes. You will need Java script for this.
Thanks and regards,
Pazhanikanthan. P
Project Leader,
Caritor (India) Pvt. Ltd.,
Madras - 600 006
Mob: 9886152717
Extn: 40123
Shiby Maria John [EMAIL PROTECTED]
12/21/2005 03:12 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
If you want same action, but different submit buttons, your other possiblity is
DispatchAction +
buttons like this:
input type=submit name=dispatch value=add/
input type=submit name=dispatch value=delete/
input type=submit name=dispatch value=commit/
Doesn't use javascript, but can be very
Hi,
I think by default the struts/tiles package truns off response buffering
on the server so that html is sent back to the client progressively. Is
there any way I can change this so that the response only goes back when
the whole response is complete?
Chum
Try Struts-Layout has some options for doing related dropdowns. You may
want to check it and avoid a lot of javascript coding.
HTH,
Raghu
On 12/21/05, Neil Erdwien [EMAIL PROTECTED] wrote:
If the amount of data needed for drop down B isn't large, I'd load it
into Javascript objects when the
I am using struts menu (TAB). For this how can we set location? I need to
call another jsp in the same DIV.
[JEEVANATHAM P. /BPCRP/INFOTECH/VASHI]
--
Greetings!
ICICI Infotech is now 3i Infotech.
The e-mail addresses of the company's employees have been changed to existing
Actually there are a lot of superior ideas to this standard Struts fare.
Try http://www.michaelmcgrady.com/button/ for some of them.
On 12/21/05, David Delbecq [EMAIL PROTECTED] wrote:
If you want same action, but different submit buttons, your other
possiblity is DispatchAction +
buttons
Frank,
Which download has the cookbook?
Kevin
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: 20 December 2005 20:33
To: Struts Users Mailing List
Cc: user@struts.apache.org
Subject: Re: Multiple Drop Down Menus
AJAX is your friend! (as long as Javascript
But I have different buttons with the same name Change ;(
David Delbecq
Hi all,
We can do validation in JSF not by java script, on that time the error
message will appear on the screen. For us, we don't need like that message
in screen. We need to show as java script alert box.
Is there any way to do this?
Regards,
JEEVANANTHAM PARAMASAMY,
Software
You can use the Shale validation featrue.
This supports client-side validation via javascript, it's also possible to
switch off the server-side validation.
Look at:
http://struts.apache.org/struts-shale/features-commons-validator.html
Cheers
Bernhard
-Ursprüngliche Nachricht-
Von:
Hi ,
I am having problem populating the form with the selected checkboxes values.
Tere is a parent (newclient.jsp) form. This form makes a call to the iframes.
like this
iframe src=%= bodyHref1 % id=clientframe frameborder=0 width=100%
height=180
scrolling=yes/iframe
Hi,
I have a form which consists of pull-down menus, radio button, text area
and text fields. The form takes all the required input fields from user,
validate them and if validation fail's, the same form is called with
pre-populated values (as entered 1st time by user). This is true when there
Hi,
Here is my (simplified) setup:
struts-config.xml:
form-bean name=myForm dynamic=true
type=org.apache.struts.action.DynaValidatorActionForm
form-property name=name type=java.lang.String/
...
form-property name=lineItems type=my.custom.LineItem[]/
/form-bean
thanks, Laurie.
Now I can think of an alternative way to do this. I filed an enhancement
request in Bugzilla.
From: Laurie Harper [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: Re: DynaValidatorForm and nested tags.
Date:
Hi Frank,
I did look at JWP but got intimidated by the Javadocs. I thought I would get
documentation about
the Tags I can use, but instead I found Java classes, and with no signpost for
where to begin.
You have suggested to look at the sample application, which I'll do.
Thanks,
Anupam.
All,
I am trying to compare a variable with a value set in request attribute.
But logic:notEqual tag does not accept variable in the value
attribute. It has to be a constant.
Does anyone know any alternative?.
Here is my code.
logic:iterate id=element name=WebidViewBean property=iterator
I thought you one had to specify the target attribute target=_self along with
attribute src=AssumeFullOrRelativeURI to render within same page. Take a look
at
http://www.htmlhelp.com/reference/html40/special/a.html#target
I am relatively certain this is O/T as it does not relate to struts but to
Hello,
I have an application that enables a user to download a file and keeps
stats on total downloads as well as last time anyone downloaded a
file. My problem is that the client wants the download page refreshed
after a file has been sent.
Right now I have a forward that points back to the
Sorry, I need to make it a bit easier to find, you actually had to go to
the main SF site. Here's a direct link:
http://sourceforge.net/project/showfiles.php?group_id=140728
Just select the JWPCookbook module and you'll be good to go.
--
Frank W. Zammetti
Founder and Chief Software Architect
Does the refresh *have* to happen only *after* the download is complete?
If so, I suspect your SOL.
However, what you can do if that isn't important is to start the download
via Javascript, and at the same time kick off the refresh. Do something
like this:
a href=#
Hi,
I am trying to call the org.apache.struts.validator.Resources class
initValidator method.
It has the following piece of code in the initValidator method.
validator.setParameter(SERVLET_CONTEXT_PARAM, application);
validator.setParameter(HTTP_SERVLET_REQUEST_PARAM, request);
The trick with iFrames, or regular frames for that matter, is to realize
that what you are looking as it two separate browser windows. Think of it
like tabs in Firefox... they are completely separate entities.
If I understand what your trying to do correctly, you want the checkboxes
submitted in
I am developing a Struts (v1.2.7) app that has multiple struts-config
files, but not utilizing modules, so web.xml has one init param with
config files separated by commas, eg.
init-param
param-nameconfig/param-name
I was unclear I guess. No, the refresh happens after the action
STARTS sending the file, at the beginning of the download.
This solution works with a timeout on the second window.location.
I was hoping I could do something else, perhaps forking control or
something after the response has is
Is there a way to call a .do type action in JSF/Shale and have it do some
processing and then that action decides which view to go to?
My case would be I am use to calling a login.do from another company and we
need to process the information in the post to either go to welcome.jsp or
error.jsp.
Thanks a lot using Div works for me...
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 21, 2005 12:06 PM
To: Struts Users Mailing List
Subject: Re: Struts using iframes...
The trick with iFrames, or regular frames for that matter, is to
Frank,
Thanks for this. I am curious to have a go with the ajax tags so will have
a look at the examples. I am interested in using ajax tags to speed up a
results page. It's fairly standard in that I have n pages of results and the
user selects 1 - n or previous or next. I suppose you don't know
No, I don't know of any example as far as AjaxTags goes that is closer to
that... However, I would think you'll probably wind up using the
std:InnerHTML handler for what your doing, and the Java Web Parts sample
app has a page that demonstrates that, as well as a lot of other AjaxTags
stuff. If
You can find some documentation in Jakarta Struts 1.1(Wrox Series.) abt how
to use Tokens , but iam not sure how far it is helpful to solve your problem
On 12/19/05, Priya Saloni [EMAIL PROTECTED] wrote:
Here is my Code,
request.getSession().removeAttribute(sessionState);
On 12/21/05, Garner, Shawn [EMAIL PROTECTED] wrote:
Is there a way to call a .do type action in JSF/Shale and have it do some
processing and then that action decides which view to go to?
My case would be I am use to calling a login.do from another company and we
need to process the
Hi,
I've img.gif and and myForm.jsp in same folder. But when I call the
img.gif with following path, it does not display in myForm.jsp. here it is:
html:text property=date /html:text
img src=img.gif id=f_trigger_c
style=cursor: pointer; border: 1px solid red;
Trying to use html:multibox with LabelValueBean.
Getting error doing the same.
form-bean
form-property name=Items type=java.util.ArrayList[]/
form-property name=SelectedItems type=java.util.ArrayList[]/
/form-bean
In prepare Action
...
...
I am working within a struts module. I have a session expires
exception that I want to forward to the login of my site.
In my global-exceptions I entered the class that is being thrown, and
a forward like so:
global-exceptions
exception key=expired.session path=/index.jsp scope=request
Depends how you have logging configured :-) See the Commons Logging
project [1] for details on how to set logging up, but as a quick-fix,
you can do the following:
- download log4j and copy the log4j.jar file into WEB-INF/lib
- create a log4j.properties file in WEB-INF/classes, and add the
Craig McClanahan wrote:
On 12/20/05, Laurie Harper [EMAIL PROTECTED] wrote:
So I'm pretty much sold on migrating from Struts/JSPs to JSF at this
point, with one remaining caveat I've yet to figure out. I've brought
this up before, but haven't found a good solution yet. I think the
easiest way
Kumar, Sandy wrote:
All,
I am trying to compare a variable with a value set in request attribute.
But logic:notEqual tag does not accept variable in the value
attribute. It has to be a constant.
Does anyone know any alternative?.
Here is my code.
logic:iterate id=element name=WebidViewBean
Christopher Becker wrote:
I am developing a Struts (v1.2.7) app that has multiple struts-config
files, but not utilizing modules, so web.xml has one init param with
config files separated by commas, eg.
init-param
param-nameconfig/param-name
On 12/21/05, Laurie Harper [EMAIL PROTECTED] wrote:
Craig McClanahan wrote:
On 12/20/05, Laurie Harper [EMAIL PROTECTED] wrote:
So I'm pretty much sold on migrating from Struts/JSPs to JSF at this
point, with one remaining caveat I've yet to figure out. I've brought
this up before, but
Thank you so much Laurie. It worked.
Sandy Kumar
-Original Message-
From: Laurie Harper [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 21, 2005 4:49 PM
To: user@struts.apache.org
Subject: Re: logic:notEqual
Kumar, Sandy wrote:
All,
I am trying to compare a variable with a
Vikrama Sanjeeva wrote:
Hi,
I've img.gif and and myForm.jsp in same folder. But when I call the
img.gif with following path, it does not display in myForm.jsp. here it is:
html:text property=date /html:text
img src=img.gif id=f_trigger_c
style=cursor:
fea jabi wrote:
Trying to use html:multibox with LabelValueBean.
Getting error doing the same.
form-bean
form-property name=Items type=java.util.ArrayList[]/
form-property name=SelectedItems type=java.util.ArrayList[]/
/form-bean
In prepare Action
...
You shouldn't need either name or type, Struts will derive both from the
configuration. Since you say that's working OK for you, why are you
trying to add them?
L.
Vikrama Sanjeeva wrote:
Hi,
I have a form which consists of pull-down menus, radio button, text area
and text fields. The form
All,
I have a page with 3 tabs. If user goes to any of the pages, and does
not alter the value he entered before, I should not submit the form.
How can I check whether jsp form elements have changed or not?.
Thanks,
Sandy Kumar
so I can enter something like
http://www.mycompany.com/mycontext/mymanagedbean.mymethod
in my browser
and it will call the mymethod method in my managed bean named mymanagedbean?
-Original Message-
From: Rahul Akolkar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 21, 2005 12:47
On 12/21/05, Garner, Shawn [EMAIL PROTECTED] wrote:
so I can enter something like
http://www.mycompany.com/mycontext/mymanagedbean.mymethod
in my browser
and it will call the mymethod method in my managed bean named
mymanagedbean?
Shale won't directly do this for you today, but it would
I see examples of the controller method returning success or error type
situations which are mapped in the faces-config.xml file.
What happens if you return null from a controller method?
Does it return the previously rendered view or do you go to an error view
defined in a web.xml or something.
I just had this kind of conversations with one of my coworker and my boss
last week.
I think bookmarks are a bad idea in web applications even when not built
with Ajax. After all, an application is stateful and need a *state* to run.
Bookmarks in my mind are made for informational sites wich are
I am not 100% sure but I think it does return the previously rendered view.
On 12/21/05, Garner, Shawn [EMAIL PROTECTED] wrote:
I see examples of the controller method returning success or error
type
situations which are mapped in the faces-config.xml file.
What happens if you return null
I'm not sure there's any especially good way... the methods I can think
of all require scripting of some sort. If that is OK though...
First, I would store the original value in some way, preferably as part
of the form element... I assume your using the HTML taglib, so one
candidate might be
On 12/21/05, Alexandre Poitras [EMAIL PROTECTED] wrote:
I think bookmarks are a bad idea in web applications even when not built
with Ajax. After all, an application is stateful and need a *state* to run.
Bookmarks in my mind are made for informational sites wich are staless and
not
On 12/21/05, Alexandre Poitras [EMAIL PROTECTED] wrote:
I am not 100% sure but I think it does return the previously rendered
view.
On 12/21/05, Garner, Shawn [EMAIL PROTECTED] wrote:
I see examples of the controller method returning success or error
type
situations which are mapped
I understand what you are saying but it's not about the framework, but
about the stateless nature of the web (in fact of the http protocol).
Some places in a web applications do need a state to be displayed and
loaded correctly. I think it is important to support quick access to
data in form of
On 12/21/05, Hubert Rabago [EMAIL PROTECTED] wrote:
On 12/21/05, Alexandre Poitras [EMAIL PROTECTED] wrote:
I think bookmarks are a bad idea in web applications even when not built
with Ajax. After all, an application is stateful and need a *state* to
run.
Bookmarks in my mind are made
I see and I understand your point and I do think you're right. But I
had a lot of problems with url before. For instance, how can I relate
an url to the current selected item in the navigation menu. Am I
suppose not to care about it? Seems weird to me. Or should I maintain
a mapping between url
On 12/21/05, Alexandre Poitras [EMAIL PROTECTED] wrote:
I see and I understand your point and I do think you're right. But I
had a lot of problems with url before. For instance, how can I relate
an url to the current selected item in the navigation menu. Am I
suppose not to care about it?
Craig McClanahan wrote:
On 12/21/05, Laurie Harper [EMAIL PROTECTED] wrote:
The context relative thing is not the behaviour I'm seeing though. If I
have a navigation rule that points to /foo/bar.jsp with redirect set,
the browser is redirected to /faces/foo/bar.jsp.
That would imply you have
Craig McClanahan wrote:
On 12/20/05, Laurie Harper [EMAIL PROTECTED] wrote:
So I'm pretty much sold on migrating from Struts/JSPs to JSF at this
point, with one remaining caveat I've yet to figure out. I've brought
this up before, but haven't found a good solution yet. I think the
easiest way
I'm trying to do something similar with a lifecycle. My goal is to virtual host
but retain the viewId of /about.jsf
while building off the main file /somehostname/about.jsf.
Here's what I have done so far, added a lifecycleFactory to my faces-config.xml
file. My own factory's init method is
I am using tomcat5.9 and struts shale. When I run application. I got this
error.
Dec 22, 2005 10:34:18 AM javax.faces.webapp.UIComponentTag
setupResponseWriter
SEVERE: Faces context not found. getResponseWriter will fail. Check if the
FacesServlet has been initialized at all in your web.xml.
On 12/21/05, JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
[EMAIL PROTECTED] wrote:
I am using tomcat5.9 and struts shale. When I run application. I got this
error.
Dec 22, 2005 10:34:18 AM javax.faces.webapp.UIComponentTag
setupResponseWriter
SEVERE: Faces context not found. getResponseWriter
Hi,
I tried using the LookupDispatchAction for this...
But I am gettng this error..
Can anyone explain how this class works??
java.lang.NullPointerException
org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:233)
On 12/21/05, Craig McClanahan [EMAIL PROTECTED] wrote:
Interestingly, this example confirms the counter argument that Hubert is
raising :-). Double clicking an Open Office document causes that document
to be opened, but *not* where it was when you closed it, or what you might
have captured
66 matches
Mail list logo