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 capt
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)
org.apache.struts.action.RequestProcessor.process
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. getRespo
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.
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
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
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
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 i
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 and
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
On 12/21/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> I am not 100% sure but I think it does return the previously rendered view.
Correct. You can see an example in the code for the Shale Use Cases examples:
http://struts.apache.org/struts-shale/shale-usecases/xref/org/apache/shale/usecas
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 boo
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
> > situation
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 appli
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
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 re
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 st
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 somethi
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, bu
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 P
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
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
fea jabi wrote:
Trying to use html:multibox with LabelValueBean.
Getting error doing the same.
In prepare Action
...
...
LabelValueBean lblValueBean1 = new LabelValueBean("Visa1", "V1");
LabelValueBean lblValueBean2 = new LabelValueBean("MasterCard1"
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:
But when I call with src="../img.gif", it works. Here it is:
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
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
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.
config
/WEB-INF/struts-config.xml,/WEB-INF/struts-bus1-config.xml,
WEB-IN
Kumar, Sandy wrote:
All,
I am trying to compare a variable with a value set in request attribute.
But tag does not accept variable in the "value"
attribute. It has to be a constant.
Does anyone know any alternative?.
Here is my code.
Select All
Thanks,
Sandy Kuma
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
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
fol
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:
I tried setting the module to '' but it does not work. Instead of
going to th
Trying to use html:multibox with LabelValueBean.
Getting error doing the same.
In prepare Action
...
...
LabelValueBean lblValueBean1 = new LabelValueBean("Visa1", "V1");
LabelValueBean lblValueBean2 = new LabelValueBean("MasterCard1", "M1");
A
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:
But when I call with src="../img.gif", it works. Here it is:
Why it s
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 info
If you are seeking an example of a UserToken
The link provided here exemplifies Token create and validation in order to
determine if the Operator has clicked submit button more than once
http://216.239.51.104/search?q=cache:Rd2ieIvSBFEJ:www.javapassion.com/j2ee/StrutsBestPractices4.pdf+%22Struts%2
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");
> request
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 yo
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
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 real
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.
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 sent,
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.
config
/WEB-INF/struts-config.xml,/WEB-INF/struts-bus1-config.xml,
WEB-INF/struts-bus2-config.xml
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
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);
va
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:
Download
function download() {
wind
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
O
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 dow
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
All,
I am trying to compare a variable with a value set in request attribute.
But tag does not accept variable in the "value"
attribute. It has to be a constant.
Does anyone know any alternative?.
Here is my code.
Select All
Thanks,
Sandy Kumar
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.
---
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"
To: user@struts.apache.org
Subject: Re: DynaValidatorForm and nested tags.
Date: Tue, 20 Dec 2005 22:45
Hi,
Here is my (simplified) setup:
struts-config.xml:
...
...
"order.edit" is a tiles-def that allows user editing of the order, which, when
constructed, looks something like this:
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
is
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
iframes src is pointing to another jsp( cleintChecked.jsp) which has the
html:checkboxes.
Now
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: JE
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 Engineer,
But I have different buttons with the same name "Change" ;(
David Delbecq
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 i
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 +
> butt
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 @3i-infotech.com. Y
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 wh
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
If you want same action, but different submit buttons, your other possiblity is
DispatchAction +
buttons like this:
Doesn't use javascript, but can be very cumbersome with internationalization.
Le Mercredi 21 Décembre 2005 10:42, Shiby Maria John a écrit :
>
> But that will require javascri
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"
To
"Struts Users Ma
But that will require javascript, isnt it??
|-+-->
| | Pazhanikanthan Periasamy |
| | <[EMAIL PROTECTED]|
| | aritor.com>|
| | |
|
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
Ex
Hi,
Thnaks for the tip reg LookupDispatchAction, but the problem is that I
have the same name for different buttons in the same form.
In that case, how will I know which button submitted that action??
-
To unsubscribe, e-mail:
Yes. It is definitely a dependable one. U can also use Struts Tiles
Thanks and regards,
Pazhanikanthan. P
Project Leader,
Caritor (India) Pvt. Ltd.,
Madras - 600 006
Mob: 9886152717
Extn: 40123
Sony Thomas <[EMAIL PROTECTED]>
12/21/2005 02:28 PM
Please respond to
"Struts Users Mailing List"
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, e-ma
If you don'd use i18n ,you should only have one.
--
[EMAIL PROTECTED]
70 matches
Mail list logo