You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Uday Chandra Karrothi <ud...@gmail.com> on 2006/09/28 21:36:34 UTC
alert window without evenhnadler
Hi guys,
I am doing validation and since that validation is complicated. I am
submitting the page. and then i want to display the result.
Now the problem is i need an event to through an alert window.
i cannot say alert(""); in the jsp.
Can i use soemthing lie
<%
JDialog temp = new Jdialog()
%>
...
when i get back i have to pop up a window. i can display the result on
the page but i want to pop up a window in the page.
Thanks guys,
Uday Chandra Karrothi
On 9/28/06, Venkata Phani Kumar <ve...@ocimumbio.com> wrote:
> <forward name="forwardToAction" path="/actionName.do" />
> ----- Original Message -----
> From: "Andy.de" <a....@best-blu.de>
> To: <us...@struts.apache.org>
> Sent: Thursday, September 28, 2006 6:25 PM
> Subject: Forward to action without jsp
>
>
> >
> > Hi all,
> > how can i forward to an action without input (jsp) ?
> > The path attribute of action tag in struts-config must point to jsp's. To
> > prepopulate a form bean
> > i must use an action, read data from database to fill the form bean and
> > forward to the jsp to
> > display the formular already filled out. But i find no way to forward to
> my
> > action without input.
> > Help?
> > Regards, Andy
> > --
> > View this message in context:
> http://www.nabble.com/Forward-to-action-without-jsp-tf2350751.html#a6545831
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Never explain--your friends do not need it and your enemies will not
believe you anyway--Elbert Hubbard
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: alert window without evenhnadler
Posted by Uday Chandra Karrothi <ud...@gmail.com>.
I need to make a descision based on the value of a variable in the
form bean. So i am thinking that cannot be accessed before the page
gets loaded?
Thanks
Uday
On 9/28/06, Chris Pratt <th...@gmail.com> wrote:
> You can put it in the onload event of the body. That gets called as soon as
> everything is loaded.
> (*Chris*)
>
> On 9/28/06, Uday Chandra Karrothi <ud...@gmail.com> wrote:
> >
> > Is there a way we can place it in such a way that the alert is after
> > all the page is completely loaded. I am using tiles. So i might have
> > to place that after the footer? .
> > I do not want to define another footer for just this page.
> >
> > Thanks for your help Stephan.
> > Uday
> >
> > On 9/28/06, Uday Chandra Karrothi <ud...@gmail.com> wrote:
> > > Hi Stephan,
> > > Thanks for the reply.
> > >
> > > I feel liek i do not know any html at all!. I thought all javascript
> > > needed an eventhandler. I guess not.
> > >
> > > Thank you once again.
> > >
> > > Uday
> > >
> > >
> > > On 9/28/06, Stephan Koops <St...@web.de> wrote:
> > > > Hello,
> > > >
> > > > try on the jsp:
> > > >
> > > > <script type="text/javascript">
> > > > alert("Info to show");
> > > > </script>
> > > >
> > > > Stephan
> > > >
> > > > Uday Chandra Karrothi schrieb:
> > > > > Hi guys,
> > > > >
> > > > > I am doing validation and since that validation is complicated. I am
> > > > > submitting the page. and then i want to display the result.
> > > > >
> > > > > Now the problem is i need an event to through an alert window.
> > > > > i cannot say alert(""); in the jsp.
> > > > >
> > > > > Can i use soemthing lie
> > > > > <%
> > > > > JDialog temp = new Jdialog()
> > > > > %>
> > > > >
> > > > > ...
> > > > >
> > > > > when i get back i have to pop up a window. i can display the result
> > on
> > > > > the page but i want to pop up a window in the page.
> > > > >
> > > > > Thanks guys,
> > > > > Uday Chandra Karrothi
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > For additional commands, e-mail: user-help@struts.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Never explain--your friends do not need it and your enemies will not
> > > believe you anyway--Elbert Hubbard
> > >
> >
> >
> > --
> > Never explain--your friends do not need it and your enemies will not
> > believe you anyway--Elbert Hubbard
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
--
Never explain--your friends do not need it and your enemies will not
believe you anyway--Elbert Hubbard
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: alert window without evenhnadler
Posted by Chris Pratt <th...@gmail.com>.
You can put it in the onload event of the body. That gets called as soon as
everything is loaded.
(*Chris*)
On 9/28/06, Uday Chandra Karrothi <ud...@gmail.com> wrote:
>
> Is there a way we can place it in such a way that the alert is after
> all the page is completely loaded. I am using tiles. So i might have
> to place that after the footer? .
> I do not want to define another footer for just this page.
>
> Thanks for your help Stephan.
> Uday
>
> On 9/28/06, Uday Chandra Karrothi <ud...@gmail.com> wrote:
> > Hi Stephan,
> > Thanks for the reply.
> >
> > I feel liek i do not know any html at all!. I thought all javascript
> > needed an eventhandler. I guess not.
> >
> > Thank you once again.
> >
> > Uday
> >
> >
> > On 9/28/06, Stephan Koops <St...@web.de> wrote:
> > > Hello,
> > >
> > > try on the jsp:
> > >
> > > <script type="text/javascript">
> > > alert("Info to show");
> > > </script>
> > >
> > > Stephan
> > >
> > > Uday Chandra Karrothi schrieb:
> > > > Hi guys,
> > > >
> > > > I am doing validation and since that validation is complicated. I am
> > > > submitting the page. and then i want to display the result.
> > > >
> > > > Now the problem is i need an event to through an alert window.
> > > > i cannot say alert(""); in the jsp.
> > > >
> > > > Can i use soemthing lie
> > > > <%
> > > > JDialog temp = new Jdialog()
> > > > %>
> > > >
> > > > ...
> > > >
> > > > when i get back i have to pop up a window. i can display the result
> on
> > > > the page but i want to pop up a window in the page.
> > > >
> > > > Thanks guys,
> > > > Uday Chandra Karrothi
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
> >
> > --
> > Never explain--your friends do not need it and your enemies will not
> > believe you anyway--Elbert Hubbard
> >
>
>
> --
> Never explain--your friends do not need it and your enemies will not
> believe you anyway--Elbert Hubbard
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: alert window without evenhnadler
Posted by Uday Chandra Karrothi <ud...@gmail.com>.
Is there a way we can place it in such a way that the alert is after
all the page is completely loaded. I am using tiles. So i might have
to place that after the footer? .
I do not want to define another footer for just this page.
Thanks for your help Stephan.
Uday
On 9/28/06, Uday Chandra Karrothi <ud...@gmail.com> wrote:
> Hi Stephan,
> Thanks for the reply.
>
> I feel liek i do not know any html at all!. I thought all javascript
> needed an eventhandler. I guess not.
>
> Thank you once again.
>
> Uday
>
>
> On 9/28/06, Stephan Koops <St...@web.de> wrote:
> > Hello,
> >
> > try on the jsp:
> >
> > <script type="text/javascript">
> > alert("Info to show");
> > </script>
> >
> > Stephan
> >
> > Uday Chandra Karrothi schrieb:
> > > Hi guys,
> > >
> > > I am doing validation and since that validation is complicated. I am
> > > submitting the page. and then i want to display the result.
> > >
> > > Now the problem is i need an event to through an alert window.
> > > i cannot say alert(""); in the jsp.
> > >
> > > Can i use soemthing lie
> > > <%
> > > JDialog temp = new Jdialog()
> > > %>
> > >
> > > ...
> > >
> > > when i get back i have to pop up a window. i can display the result on
> > > the page but i want to pop up a window in the page.
> > >
> > > Thanks guys,
> > > Uday Chandra Karrothi
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> --
> Never explain--your friends do not need it and your enemies will not
> believe you anyway--Elbert Hubbard
>
--
Never explain--your friends do not need it and your enemies will not
believe you anyway--Elbert Hubbard
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: alert window without evenhnadler
Posted by Uday Chandra Karrothi <ud...@gmail.com>.
Hi Stephan,
Thanks for the reply.
I feel liek i do not know any html at all!. I thought all javascript
needed an eventhandler. I guess not.
Thank you once again.
Uday
On 9/28/06, Stephan Koops <St...@web.de> wrote:
> Hello,
>
> try on the jsp:
>
> <script type="text/javascript">
> alert("Info to show");
> </script>
>
> Stephan
>
> Uday Chandra Karrothi schrieb:
> > Hi guys,
> >
> > I am doing validation and since that validation is complicated. I am
> > submitting the page. and then i want to display the result.
> >
> > Now the problem is i need an event to through an alert window.
> > i cannot say alert(""); in the jsp.
> >
> > Can i use soemthing lie
> > <%
> > JDialog temp = new Jdialog()
> > %>
> >
> > ...
> >
> > when i get back i have to pop up a window. i can display the result on
> > the page but i want to pop up a window in the page.
> >
> > Thanks guys,
> > Uday Chandra Karrothi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Never explain--your friends do not need it and your enemies will not
believe you anyway--Elbert Hubbard
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: alert window without evenhnadler
Posted by Stephan Koops <St...@web.de>.
Hello,
try on the jsp:
<script type="text/javascript">
alert("Info to show");
</script>
Stephan
Uday Chandra Karrothi schrieb:
> Hi guys,
>
> I am doing validation and since that validation is complicated. I am
> submitting the page. and then i want to display the result.
>
> Now the problem is i need an event to through an alert window.
> i cannot say alert(""); in the jsp.
>
> Can i use soemthing lie
> <%
> JDialog temp = new Jdialog()
> %>
>
> ...
>
> when i get back i have to pop up a window. i can display the result on
> the page but i want to pop up a window in the page.
>
> Thanks guys,
> Uday Chandra Karrothi
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org