Re: [OT] Re: frames

2007-05-20 Thread jalal udeen

hi
  im using struts 1.2.7 how can i frames using struts tag in jsp

thanks
jalal


On 5/19/07, Mansour <[EMAIL PROTECTED]> wrote:


jalal udeen:
We need more info to be able to help. What version of struts are you
using. If you you are using struts 2, then you can use the target attribute
in the same way you use html. So, in your form tag you need to use the
attribute target like this:





for more info about this check the reference.

http://struts.apache.org/2.x/docs/tag-reference.html




Dave Newton wrote:
> --- jalal udeen <[EMAIL PROTECTED]> wrote:
>
>> how  can i use frame using struts in jsp
>> its an urgent requirement
>>
>
> I am most definitely *not* speaking for everyone on
> the newsgroup, but I really think you need to explore
> other options for asking non-Struts related questions.
>
> If you want to pay me for doing your work I will
> consider a sub-contracting position, although I am
> fairly busy of late and am relatively expensive.
>
> Others on the list will probably be much nicer than I
> am, and more helpful, but there's a point at which the
> OT stuff needs to go somewhere else.
>
> Sorry,
> Dave
>
>
>
>
>
You
snooze, you lose. Get messages ASAP with AutoCheck
> in the all-new Yahoo! Mail Beta.
> http://advision.webevents.yahoo.com/mailbeta/newmail_html.html
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




[Announce] Stylus Studio 2007 Release 2 Now Available

2007-05-20 Thread Stylus Studio

[announce] Dear Struts-Users,

Stylus Studio 2007 Release 2, is now available for free trial download
or online purchase. Here are some of highlights:

* Query Plan: A new query plan utility in the XQuery Editor lets you
visualize query execution plans and gain insight into how DataDirect
XQuery will execute your XQuery application, including seeing the type
of SQL statements that are used to access relational data, when XML
streaming is being used, which temporary tables are being created,
when variables are being called, etc. Query plan support is available
for any XQuery that uses the DataDirect XQuery processor.

* Support for Grouping Data Sources in XML Publisher: In Stylus Studio
2007 XML Enterprise Suite, Release 2, XML Publisher lets you create
more advanced reports through support for grouping data from nodes in
one or more data sources. Using the new Create Relationship Dialog
Box, you visually define relationships between different data sources,
or between different data islands within the same source and then add
those relationships to your XML reports using simple drag-and-drop
functionality. For more information, visit:
http://www.stylusstudio.com/videos/report-generation/xmlpublisher-070504.html

* Support for Gigabyte Size XML Files: Stylus Studio 2007 XML
Enterprise Suite, Release 2 implements new optimizations that permit
the editing of gigabyte-size XML documents.

* Bundled DataDirect XML Converters 3.0: DataDirect XML Converters are
high-performance Java and .NET components that provide bi-directional,
programmatic access to virtually any non-XML file including EDIFACT,
X12, IATA, EANCOM and flat files. For more information, visit:
http://www.xmlconverters.com

* Bundled DataDirect XQuery 3.0: DataDirect XQuery is an
implementation of XQuery that can query XML, relational data, SOAP
messages, EDI, or a combination of data sources. The latest version,
DataDirect XQuery 3.0, is bundled with Stylus Studio 2007 XML
Enterprise Suite. For more information, visit: http://www.xquery.com


Learn more about the new features at:
http://www.stylusstudio.com/xml_product_new_features.html

Download a free trial from: http://www.stylusstudio.com/xml_download.html

Sincerely,
The Stylus Studio Team
http://www.stylusstudio.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ajax - Submit a form

2007-05-20 Thread Jeromy Evans


Depending on what your js function does, you may also be able to use the 
notifyTopics/listenTopics event mechanisms. 
Look at the example in "Preventing a Request" at  
http://struts.apache.org/2.x/docs/ajax-tags.html#AjaxTags-preventingRequest


Otherwise try the handler="" attribute to call your own js function 
before making the request yourself (I haven't tried this though and 
can't point to any examples)


Mansour wrote:
OK I found my problem. I shouldn't add onClick event to the anchor, 
but what do I do to execute a js function when this anchor is clicked. 
I tried using onMouseDown, but the same results.



Mansour wrote:
Thank you. That helped but still can not submit a form using an 
anchor out side that form. The fields are not populated in the action.


The code on the Site :

Using the anchor tag to submit a form:






Submit form




My code:







onclick="changeState(true);">edit


value="/updateAccount.action">
onclick="changeState(false);"> save 











 




value="${acc.firstName}" />







That's not a big deal as I can move the anchors inside the form, but 
may be I am missing something here.





Jeromy Evans wrote:
Ensure you've included  to include the required 
javascript and try turning on ajax debugging (debug="true">).  Ensure the javascript exists in your html.

See the top of http://struts.apache.org/2.x/docs/ajax-tags.html

Mansour wrote:
I am populating some fields that can be edited and saved. Trying to 
do this using ajax. The action is getting called but the form is 
never submitted, and the updated data is lost.





   
   
   
   
   
   
   
   
   

   
   
   value="${acc.firstName}"   />

   





 save 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: execAndWait INTERCEPTOR

2007-05-20 Thread Mansour
I really need help in this. Do I need to use spring with this ??  I am 
missing something ?



Mansour wrote:

It's really funny:
If I get the waiting screen it stays there and no further thing is 
rendered. If I click refresh, the results I am expecting are 
displayed. If I click refresh again the waiting, another refresh gives 
the results. Between each refresh there's around 30 seconds, and the 
operation I am doing takes only 3-6 seconds. So i give it enough to 
make sure the action is over.


Any idea?

Mansour wrote:
It's not working. The only thing that is working is the execute part. 
lol
It waits there for ever, and the page doesn't display the action 
results. It only shows the waiting page. Other actions just crach.



   

   
   

   /pages/wait.jsp
 
   getInvoices
   true
   ${acc.id}
   

   /pages/exception.jsp
   


Can any one tell me what's going on ?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ajax - Submit a form

2007-05-20 Thread Mansour
OK I found my problem. I shouldn't add onClick event to the anchor, but 
what do I do to execute a js function when this anchor is clicked. I 
tried using onMouseDown, but the same results.



Mansour wrote:
Thank you. That helped but still can not submit a form using an anchor 
out side that form. The fields are not populated in the action.


The code on the Site :

Using the anchor tag to submit a form:








Submit form




My code:







onclick="changeState(true);">edit



onclick="changeState(false);"> save 











 




value="${acc.firstName}" />







That's not a big deal as I can move the anchors inside the form, but 
may be I am missing something here.





Jeromy Evans wrote:
Ensure you've included  to include the required 
javascript and try turning on ajax debugging (debug="true">).  Ensure the javascript exists in your html.

See the top of http://struts.apache.org/2.x/docs/ajax-tags.html

Mansour wrote:
I am populating some fields that can be edited and saved. Trying to 
do this using ajax. The action is getting called but the form is 
never submitted, and the updated data is lost.





   
   
   
   
   
   
   
   
   

   
   
   value="${acc.firstName}"   />

   





 save 



Am I missing something ?





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] Is there a way to turn of formatting of controls with ajax theme?

2007-05-20 Thread Jason Wyatt
Thanks guys, very informative.  Modifying the ajax submit template took just
a few minutes and solved our problem.

We normally have custom layouts for our web apps, but ajax's partial
requests are very attractive. 

I image this would be a common scenario, with web programmers wanting to
leverage ajax's power, but with minimal impact on screen designs that a
business analyst or web designer might have come up with. 

I might have missed the concept of why you would want a submit button to
have its own table row and cell embedded? What if you want something else
next to the submit button on the screen? 

Anyway, thanks a lot for the help, very impressed with S2's flexibility.

Kind regards
Jason


-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED] 
Sent: Friday, 18 May 2007 10:38 PM
To: Struts Users Mailing List
Subject: Re: [S2] Is there a way to turn of formatting of controls with ajax
theme?

Just to confirm what Dave said, in 2.0.x you will have to modify the
template to remove the layout tags. In 2.1 the submit button will have the
layout tags only if it is inside a form, for which the theme is either
"css_xhtml"(divs) or "xhtml"(trs) (to keep backward compatibility).

musachy

On 5/17/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Martin Gainty <[EMAIL PROTECTED]> wrote:
> > 1)first instinct says to change the 'theme' as soap themes typically 
> > interact with  tag
>
> I think he means ajax.
>
> I don't know which bits of the ajax are rendered by the tag template. 
> The idea is correct; if you don't want the extra decorations you'll 
> probably (for now) need to either tweak the template, or examine the 
> output of the ajax theme and do a bit of manual work.
>
> I know that in 2.1 the ajax stuff is being moved in to a plugin, so 
> hopefully using the ajax functionality in arbitrary layout themes will 
> be easier :/
>
> >
> http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/JspContext.htm
> l
> > 2)override the setContext with a new context
> > (JspContext) where
>
> Honestly, I have no idea what that has to do with this issue, but 
> maybe it does. I've had a few extra Guinness this evening.
>
> > From: "Jason Wyatt" <[EMAIL PROTECTED]>
> >> I want to use ajax submit buttons to refresh tabs, but when ajax 
> >> theme is set, the buttons are wrapped
>
> >> in additional  and  tags. This is doing interesting and 
> >> unhelpful things to our page
> layout.
>
> Yeah, but you got to say that last sentence, and that's worth 
> something right there.
>
> See the following link for a bit more info on themes and templates.
>
> http://struts.apache.org/2.x/docs/themes-and-templates.html
>
> d.
>
>
>
>
> __
> __Pinpoint customers who are looking for what you sell.
> http://searchmarketing.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
"Hey you! Would you help me to carry the stone?" Pink Floyd



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ajax - Submit a form

2007-05-20 Thread Mansour
Thank you. That helped but still can not submit a form using an anchor 
out side that form. The fields are not populated in the action.


The code on the Site :

Using the anchor tag to submit a form:







Submit form




My code:







edit


 save 










 











That's not a big deal as I can move the anchors inside the form, but may 
be I am missing something here.





Jeromy Evans wrote:
Ensure you've included  to include the required 
javascript and try turning on ajax debugging (debug="true">).  Ensure the javascript exists in your html.

See the top of http://struts.apache.org/2.x/docs/ajax-tags.html

Mansour wrote:
I am populating some fields that can be edited and saved. Trying to 
do this using ajax. The action is getting called but the form is 
never submitted, and the updated data is lost.





   
   
   
   
   
   
   
   
   

   
   
   value="${acc.firstName}"   />

   





 save 



Am I missing something ?





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ajax - Submit a form

2007-05-20 Thread Jeromy Evans
Ensure you've included  to include the required 
javascript and try turning on ajax debugging (debug="true">).  Ensure the javascript exists in your html.

See the top of http://struts.apache.org/2.x/docs/ajax-tags.html

Mansour wrote:
I am populating some fields that can be edited and saved. Trying to do 
this using ajax. The action is getting called but the form is never 
submitted, and the updated data is lost.





   
   
   
   
   
   
   
   
   

   
   
   value="${acc.firstName}"   />

   





 save 



Am I missing something ?





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ajax - Submit a form

2007-05-20 Thread Mansour
I am populating some fields that can be edited and saved. Trying to do 
this using ajax. The action is getting called but the form is never 
submitted, and the updated data is lost.





   
   
   
   
   
   
   
   
   

   
   
   value="${acc.firstName}"   />

   





 save 



Am I missing something ?





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2 - for a StreamResult parameters dynamics

2007-05-20 Thread Pedro Herrera

Thanks !! It works fine now !

How I know which fields are on the value stack ??  Where I found this
information in the struts2 docs ?

Best Regards

Herrera



Jeromy Evans - Blue Sky Minds wrote:
> 
> I'm not sure if you're proposed change is an improvement or not, but in 
> 2.06 dynamic parameters do work for contentType, contentLength, 
> contentDisposition and the input stream name.
> 
> ie. I use this:
> 
>   myStream
>   ${contentType}
>   ${contentLength}
>   attachment;
> filename=${filename}
> 
> where contentType, contentLength and filename are on the value stack.
> 
> The only problem I've encountered with these dynamic params is that you 
> can't set them to blank values or force them to not be included as 
> StreamResult uses the default value instead.  I haven't check if there's 
> anything on JIRA for this.
> 
> If you need anything more than this you can write your own custom result 
> type based on StreamResult and register it in struts.xml.  See 
> http://struts.apache.org/2.x/docs/result-configuration.html
> 
> Pedro Herrera wrote:
>> I need to pass dynamic parameters for a DownLoadFile Action. I´ve seen
>> the
>> source of StreamResult and for example :
>> oResponse.setContentType(conditionalParse(contentType,
>> invocation)); 
>>
>> in my opinion, the correct shoud be :
>>  
>> oResponse.setContentType( (String)
>> invocation.getStack().findValue(conditionalParse(contentLength,
>> invocation)));
>>
>> to provide dynamic parameters, like inputStream param , isn´t ?
>>
>>
>> Thanks
>>
>> Herrera
>>
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/S2---for-parameters-dynamics-in-StreamResult-tf3784148.html#a10711422
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[JSON plugin] announcement

2007-05-20 Thread Musachy Barroso

For those of you using the json plugin with Dojo, there is a new release
which supports JSON RPC (
http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book9). Which means you
can now call methods on your action from javascript (parameters and return
value can be primitives, objects, list, etc), just by annotating the methods
and applying the json interceptor, and json result to your actions.

doc:
http://cwiki.apache.org/confluence/display/S2PLUGINS/JSON+Plugin

download:
http://code.google.com/p/jsonplugin/downloads/list

//I hope the struts guys don't mind the noise :)

musachy
--
"Hey you! Would you help me to carry the stone?" Pink Floyd


struts 1.x /mysql stored function ...input string..charset latin1

2007-05-20 Thread john lee
In my Struts Action class,  I invoke mysql¡¯ stored function, but get following 
error:
   
  javax.servlet.ServletException: For input string: ¡°20) CHARSET latin1
  READS SQL DATA 
  ¡­
  java.lang.NumberFormatException: For input string: ¡°20) CHARSET latin1
   
 
  Source code:
  ¡­
  Struts Action.class
  ¡­
  String result;
  Connection con;
  CallableStatement mf=con.prepareCall(¡°{?call sf_login_check(?)}¡±);
  mf.registerOutParameter(1,TypesVARCHAR);
  mf.setString(2,¡±test¡±);
  mf.execute();
  result=mf.getString(1);
  ¡­
   
  Mysql stored function
  Create function sf_login_check(v_login_id varchar(10))
   returns varchar(20) READS SQL DATA
  BEGIN;
 DECLARE t_exist INT;
 Select cout(*) into t_exist from accts
  Where id=v_loginid;
  If t_exist1 then
  Return(¡®Success¡¯);
  Else
  Return(¡®Fail¡¯);
  End if;
  END;
   
  Any clue? Tks in advance
   
  john

   
-
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.