servlet-mapping to action servlet

2008-08-14 Thread temp temp
how can map all request to struts action servlet ?
will this work 

url-pattern/*/url-pattern




  

logout when using j_security_check

2008-04-17 Thread temp temp
my application uses container managed security , j_security_check,
we  create session before user  login  so i dont want to call 
session.invalidate 
if users wants to logout is there anything i can do to logout user ?

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

notification on sccessful with login with j_security_check

2008-04-17 Thread temp temp
is there a way  my application gets notified of successful login using 
j_security_check ?

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

redirect to welcome page

2008-04-11 Thread temp temp
Is there a way to specify  welcome page through struts-configration   like when 
  a request comes to my application can I redirect him to login.do  ?


 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

any tag library to set an object in request in jsp

2008-03-05 Thread temp temp
I usally use scriptlet in jsp to set some object in request is there a way tro 
do this using any tag library 

instead of this 
%request.setAttribute(CustomReviewFormflowAction.IReviewFormFlowProperties.ATTRIBUTE_REVIEW_FORM_SECTION,vReviewFormSectionHeader);
 %
can I use any  exsisting taglibrary ?
miro

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

bean utils copy properties

2008-02-22 Thread temp temp
 Is it possible to copy nested properties from one  bean to another  using 
beanUtils?
 

   
-
Never miss a thing.   Make Yahoo your homepage.

[eclipse] is it possible to debug jsp in eclipse ?

2008-02-21 Thread temp temp
 Is there any free jsp debugger plugin for eclipse  ?
miro

   
-
Never miss a thing.   Make Yahoo your homepage.

writing dynamic content using JspWriter out

2007-09-12 Thread temp temp
In my jsp I use JspWriter to write my page content .I can write lot of  static 
data but I cannot write dynamic content like scriptlet  or  tag library ie even 
if I write tag library or scriptlet it will not be  executed .Is there any 
solution for this  ?
  Miro
  
   
-
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread temp temp
in this case is there is no way to  invoke jsp compiler or is there any 
workaround for this problem ?
  Miro

Antonio Petrelli [EMAIL PROTECTED] wrote:  2007/9/12, temp temp :
  In my jsp I use JspWriter to write my page content .I can write lot of  
 static data but I cannot write dynamic content like scriptlet or tag  library 
 ie even if I write tag library or scriptlet it will not be  executed .Is 
 there any solution for this ?

No! When you use JspWriter, you send your data directly to the client!
Therefore, it does not pass to the JSP compiler.

Antonio

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



   
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread temp temp

My applications writes html  out of an xml file.this xml has  feilds   with 
there presentation type.This field   element  in xml can have  cdata section 
which allows user to  write any thing like 
  scripts or bean tags or any other custom tag library ,html.
  for example 
  field name=my-field presentation-type=text
  layout
  resource align=right
![CDATA[   
 span class=smallBlueText/
  bean:write name=my-object/ 
  ]]
   resource
 /layout
  /field
  
  I parse this information and use JspWiter to write.The probelm is, in  cdata 
scetion the first part  span  class=smallBlueText/  works but  the second 
line   bean:write name=my-object/ does not work ie bean:write does  not 
print value of my-object  
  Is there any way  I can reslve this
  Miro 
Antonio Petrelli [EMAIL PROTECTED] wrote:  2007/9/12, temp temp :

 in this case is there is no way to  invoke jsp compiler or is there any
 workaround for this problem ?



Do you want to invoke a  JSP compiler inside a webapp? If it is possible,
surely it is not portable.
I suggest you to write pure HTML.

Antonio


   
-
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread temp temp
What if  I use Iframe I tested it it worked do you see any problems using 
iframe ?
  Miro

Antonio Petrelli [EMAIL PROTECTED] wrote:  2007/9/12, temp temp :


 My applications writes html  out of an xml file.this xml has  feilds
 with there presentation type.This field   element  in xml can have  cdata
 section which allows user to  write any thing like
   scripts or bean tags or any other custom tag library ,html.
   for example
   
   
   
   
   
   ]]--

  
   

   I parse this information and use JspWiter to write.The probelm is,
 in  cdata scetion the first partworks
 but  the second linedoes not work ie
 bean:write does  not print value of my-object
   Is there any way  I can reslve this



If you haven't a JSP page, it won't be compiled!
You could use FreeMarker, instead, that can be evaluated at every time. You
can use JSP taglibs with FreeMarker:
http://freemarker.org/docs/pgui_misc_servlet.html

Antonio


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

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread temp temp
iframe src='/ext/application-digital-signature.jsp'/iframe
  miro

Antonio Petrelli [EMAIL PROTECTED] wrote:  2007/9/12, temp temp :

 What if  I use Iframe I tested it it worked do you see any problems using
 iframe ?



What do you put in the iframe?

Antonio


   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 

Re: [OT] Re: writing dynamic content using JspWriter out

2007-09-12 Thread temp temp

field name=my-field presentation-type=text
   layout
   resource align=right
 ![CDATA[
  span class=smallBlueText/
   bean:write name=my-object/
   ]]
resource
  /layout
   /field
  

  In my resource  Iinsteand of 
  
 bean:write name=my-object/

I used iframe src='/ext/application-digital-signature.jsp'/iframe
and in this jsp I used 
bean:write name=my-object/.
This way i can write all my dynamic stuff in a in a jsp and call that jsp in 
iframe.


  miro
Antonio Petrelli [EMAIL PROTECTED] wrote:  2007/9/12, temp temp :

 What if  I use Iframe I tested it it worked do you see any problems using
 iframe ?



What do you put in the iframe?

Antonio


   
-
Catch up on fall's hot new shows on Yahoo! TV.  Watch previews, get listings, 
and more!

Multiple application-resource property files in struts 1.1

2007-08-21 Thread temp temp
I have  several struts-config-xml files .I mapped them in my web.xml.
  Each  struts-config has its own  application-resources. 
   
  Action  servlet mapping in web.xml
   
  servlet
  servlet-nameaction/servlet-name
  
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
  param-nameconfig/param-name
  param-value
  /WEB-INF/struts-config-default.xml,
   /WEB-INF/struts-config-module-1.xml,
   /WEB-INF/ struts-config-module-2.xml,
  /param-value
  /init-param
  init-param
  param-namedebug/param-name
  param-value0/param-value
  /init-param
  init-param
  param-namedetail/param-name
  param-value0/param-value
  /init-param
  load-on-startup1/load-on-startup
  /servlet
   
  Each of the  struts-config files has message-resources   
  message-resources 
parameter=struts-application-services/message-resources  from 
struts-config-default.xml
  message-resources 
parameter=struts-application-services-module-1/message-resources from 
struts-config-module-1.xml
  message-resources 
parameter=struts-application-services-module-2/message-resources  from 
struts-config-module-2.xml
  My problem  is  Action servlet is loading  properties only from  
struts-application-services-module-2 (from  the last property file it receives)
  How can I have Action servlet load all properties from all  property 
files ?
Miro
   
-
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 

Struts 1.1 multiple modules and application resources

2007-08-20 Thread temp temp
My  application has several modules  (several  struts-config files )and 
each module has its own application.resources files. 
  How  to handle  multiple application.resource files ?
  Sairam 

   
-
Luggage? GPS? Comic books? 
Check out fitting  gifts for grads at Yahoo! Search.

[JAVA] using clas.forname()

2007-07-18 Thread temp temp
How can I  know whether a class is already loaded ?   
  or  if I call class.forname(“Some class name”)   twice will there be any 
problems ?
  Thanks
  Miro

   
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel. 

RE: [JAVA] using clas.forname()

2007-07-18 Thread temp temp

but can  I call  Class.forName()   for same class more than  once 
  exmple
  class.forName(Test)
  class.forName(Test)
  even If i can do this i donot want to load the class once it is already  
loaded so how  can I find if the class is already loaded ?
Miro
  Neil Aggarwal [EMAIL PROTECTED] wrote:  Miro:

You can call Class.forName() as many times as you
like without a problem.

 Neil 

--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.

-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 18, 2007 8:45 AM
To: user@struts.apache.org
Subject: [JAVA] using clas.forname()

How can I  know whether a class is already loaded ?   
  or  if I call class.forname(Some class name)   twice will there be any
problems ?
  Thanks
  Miro

   
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel. 


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



   
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel. 

best practices for passing long list of parameters across pages

2007-06-21 Thread temp temp
Is there any best practices to avoid long list of parameters .
  Thanks
  Miro
  
   
-
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.

[JAVA] anti virus integration with java

2007-06-12 Thread temp temp
I want to scan files for virus after upload .Are there any open source java api 
available .
Thanks
Miro 

 
-
 Get your own web address.
 Have a HUGE year through Yahoo! Small Business.

[JAR -CLASSPATH] class-path how to

2007-06-11 Thread temp temp
I have a  jar file  it has the follwing structure 
   
  META-INF
  lib
  com
   
  This is my  manifest.mf file.
   
  Manifest-Version:  1.0
  Main-Class:  project.converter.Test
  Class-Path:  
lib/converter-actions-xsd.jar;lib/commons-lang-2.3.jar;lib/commons-io-1.3.1.jar;
  lib/xbean.jar;  
   
  I run  jar file  using command
   
  java –jar  converter.jar
   
  I  get class not found exception  (for a class which is in one of the jar 
files  in lib folder)
  
  
  
Thanks  Regards
  Miro
  
   
-
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.

Fwd: [JAR -CLASSPATH] class-path how to

2007-06-11 Thread temp temp


Note: forwarded message attached.
 
-
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.---BeginMessage---
I have a  jar file  it has the follwing structure 
   
  META-INF
  lib
  com
   
  This is my  manifest.mf file.
   
  Manifest-Version:  1.0
  Main-Class:  project.converter.Test
  Class-Path:  
lib/converter-actions-xsd.jar;lib/commons-lang-2.3.jar;lib/commons-io-1.3.1.jar;
  lib/xbean.jar;  
   
  I run  jar file  using command
   
  java –jar  converter.jar
   
  I  get class not found exception  (for a class which is in one of the jar 
files  in lib folder)
  
  
  
Thanks  Regards
  Miro
  
   
-
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.---End Message---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Fwd: virus scanner after fileupload

2007-06-11 Thread temp temp


Note: forwarded message attached.
   
-
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.---BeginMessage---
After I upload the file I want to check the file for virus .Are there  any open 
source virus scanners  which I can I call in java .
  Thanks  Regards
  Miro
  
   
-
Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.---End Message---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Fwd: virus scanner after fileupload

2007-06-11 Thread temp temp


Note: forwarded message attached.
   
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.---BeginMessage---
After I upload the file I want to check the file for virus .Are there  any open 
source virus scanners  which I can I call in java .
  Thanks  Regards
  Miro
  
   
-
Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.---End Message---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: [JAR -CLASSPATH] class-path how to

2007-06-11 Thread temp temp
I am struts using fileupload  I want to scan to uploaded -files .
Thanks
Miro

Al Sutton [EMAIL PROTECTED] wrote: I'm afrid this mailing list focuses on 
development with Struts
(struts.apache.org). Can you tell me how your question relates to the struts
framework?

-Original Message-
From: miro [mailto:[EMAIL PROTECTED] 
Sent: 11 June 2007 11:35
To: user@struts.apache.org
Subject: [JAR -CLASSPATH] class-path how to


I have a jar file  it has the follwing structure
 
META-INF
lib
com
 
This is my manifest.mf file.
 
Manifest-Version: 1.0
Main-Class: project.converter.Test
Class-Path:
lib/converter-actions-xsd.jar;lib/commons-lang-2.3.jar;lib/commons-io-1.3.1.
jar;
lib/xbean.jar; 
 
I run  jar file  using command
 
java -jar converter.jar
 
I  get class not found exception  (for a class which is in one of the jar
files in lib folder)

Thanks  Regards
Miro
--
View this message in context:
http://www.nabble.com/-JAR--CLASSPATH--class-path-how-to-tf3900808.html#a110
58329
Sent from the Struts - User mailing list archive at Nabble.com.


-
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]



   
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.

retrieving value of attribute from tiles definition

2007-05-24 Thread temp temp
I have a tiles def


definition name=.basic.layout path=/jsp/basicLayout.jsp 
 put name=title value=Default title/
 put name=header value=/jsp/header.jsp/
 put name=menu value=/jsp/menu.jsp/
 put name=content value=/jsp/defaultContentPage.jsp/
 put name=footer value=/jsp/footer.jsp/
/definition
My page  uses this definition. In my jsp  I want to capture the value of title 
in a bean
How to?
Thanks  Regards
Miro

   
-
Got a little couch potato? 
Check out fun summer activities for kids.

posting form

2007-05-08 Thread temp temp
My struts  action class forwards to  view which has  form tag (html form 
tag)  
   
  
form method=POST
   Here I did  not specify action attribute to the form just specified  
attribute method=”POST” when user  submits this form where does it go ?
  
  Thanks  Regards
  Miro
  

 
-
Need Mail bonding?
Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.

[BEAN-UITLS]setting super class using bean retrospection

2007-04-27 Thread temp temp
Is there any way I can set super class using bean retrospection ?
  I create a instance of a class  is there a possible way to   to add a super 
class using bean retrospection ?
  Thansk  Regards
  miro
  
  
   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.

Re: [BEER] Re: [BEAN-UITLS]setting super class using bean retrospection

2007-04-27 Thread temp temp
I want a wrapper class for an object I do not want to write methods which calls 
method 
  Assume I have class
   
  I have inteface 
   getString();
  getLength();
  Some class is implementing this.
  At runtime I uwant to update this object by overriding method getLenth().
  one way is create a new implementation this implemtation is just a wrapper to 
actual implementation 
so in this wrapper I will say 
  
  getLenght(){
  actualImplementation.getLength();
  
  instead of doing this  is there a way I create a class override  only method 
getLength nad rest  methods comes from super class .
  Thanks  Regards
  Miro
  
  
  Dave Newton [EMAIL PROTECTED] wrote:  --- temp temp  wrote:
 Is there any way I can set super class using bean
 retrospection ?
 I create a instance of a class  is there a
 possible way to   to add a super class using bean
 retrospection ?

In a day of surprisingly accurate typos, retrospection
is *exactly* what you'd want to use.

What do you mean by add a super class? A class can
only have a single superclass, which is determined at
compile-time (AFAIK).

d.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.

[JAVA] Iterate a collection and modify

2007-04-10 Thread temp temp
How can I  iterate  a collection  and modify at the same time ?
  Example
  public static Collection  getAncestors(
  Entity aEntity, Object aContext ){
 Collection vAncestors=new ArrayList();
  IDocument vDocument= findDocumentByName(
  aEntity.getSuper(),  aContext);
 vAncestors.add(vDocument);
  for(
  Iterator  i=vAncestors.iterator();
  i.hasNext(); 
  ){
  getAncestors(vAncestors,  
  (IDocument)i.next(), aContext);
  } 
  return vAncestors;
  }

   public static void  getAncestors(
   Collection aAncestors, 
   IDocument   aDocument , 
   Object aContext){
 Entity  vEntity=(Entity)aDocument.get();
 if(vEntity.getSuper()!=null){
   IDocument vDocument=findDocumentByName(
  vEntity.getSuper(),  
  aContext);
   aAncestors.add(vDocument);
  } 
  }
   Thanks 
  Miro

   
-
Sucker-punch spam with award-winning protection.
 Try the free Yahoo! Mail Beta.

[JAVA -THREADS]

2007-03-29 Thread temp temp
 
   
  I have a  singleton class with private constructor
   
   
  Example
   
  public class ResourceManagerFactory {
   
   
  private static ResourceManagerFactory  fResourceManagerFactory= new  
ResourceManagerFactory();

  privateResourceManagerFactory(){
//fResourceManager=
   
  
InstanceUtils.newInstance(ServiceConfiguration.getInstance().getParameterValueNarrower(RESOURCE_MANAGER_1,
 true).getString());
   
  
InstanceUtils.newInstance(ServiceConfiguration.getInstance().getParameterValueNarrower(RESOURCE_MANAGER_2,
 true).getString());
   
  
InstanceUtils.newInstance(ServiceConfiguration.getInstance().getParameterValueNarrower(RESOURCE_MANAGER_3,
 true).getString());
   
  
InstanceUtils.newInstance(ServiceConfiguration.getInstance().getParameterValueNarrower(RESOURCE_MANAGER_4,
 true).getString());
   
  }
  }
  I  create instance of this class with  the  first line. Suppose a thread  
entered the  constructor and its in line 3   at this time can other thread 
access this  contructor and starts the first line  ?

 
-
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

ajax framework

2007-03-28 Thread temp temp
 
  I have to  create highly interactive web page ie use of  lot of java 
script. Are there open source java  ajax frameworks  where I code only in java  
and do not write  any  java script? I mean any  ajax framework  where I have 
the whole  power of java script   but I  work with only java .   

 
-
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.

Re: [JSP] drag drop capability in a jsp is this possible ?

2007-03-26 Thread temp temp
I am facing a problem  using JS control taglib
  I have two perpopulated lists  when the page is loaded  I  see  the  two 
lists with all the values . Suppose user  submits the form with out touching 
the lists ie  the page gets  loded and user clicks submit with out making any 
changes to the list  the form does not  post the  two lists . So when I say  
request.getParamarter(list1) or   request.getParamarter(list2)  I get  null   
Its  very strange  that html post does not include the  two lists 
  
  can you help me  with this ?
  Thanks  Regards
  
  

Angelo zerr [EMAIL PROTECTED] wrote:  No problem.
I'm happy that JSControlsTags please you.

Regards Angelo

2007/3/23, temp temp :

 It works Thank you very much.Sorry for  the complain It  was  my mistake i
 just downloaded src after ur reply i downloaded use  cases   i was able
 to  run the jsp it works.
   Once again tahnk you very much.
   Thanks  Regards

   Angelo zerr  wrote:  There is not another
 documentation (it's my project).
 have you try to deploy the war jscontrolstags-usecases-1.0-b1.war? You
 sample with swap.
 I'm agree with you documentation is poor, I will try write it.

 See swap3.jsp. You have an sample. have you insert javascript and css in
 your page?



 src=../js/scriptaculous/prototype.js

 src=../js/scriptaculous/effects.js

 src=../js/scriptaculous/dragdrop.js


 src=../js/selectable/selectable.js

 src=../js/selectable/subsdraggable.js

 src=../js/jscontrolstags-swap.js



 type=text/css /

 Angelo


 2007/3/22, temp temp :
 
  I downloaded  all the required files  but they donot have a  sample
  application with which I can play  make changes test  results   they
 have
  jsp code   which is not complete and  no tutorial on  how to get
  started  are there any other   providers with good documentation and
  examples ?
Thanks  Regards
 
 
  Angelo zerr  wrote:  Have you download usecase
  jscontrolstags-usecases-1.0-b1? You can found it
  http://sourceforge.net/project/showfiles.php?group_id=175409
 
  Swap document is here
  http://jscontrolstags.sourceforge.net/controls/swap/swap.html
 
  Angelo
 
  2007/3/22, temp temp :
  
   I tried  swap control  in my application but it does not work  the
 site
   has no documentation, no complte examples can  I get
  more  assistance  with
   this ?
 Thanks  Regards
  
  
  
  
   Angelo zerr  wrote:  Hi,
   you can see JSControlsTags project at
   http://jscontrolstags.sourceforge.net/
   .
   There is Swap control (see at
   http://jscontrolstags.sourceforge.net/controls/swap/swap.html)
   which is enable to swap items select to another select with drag/drop.
   it is based on Scriptaculous and Proototype.
  
   You can see demo at
   http://jscontrolstags.sourceforge.net/demo/swap/swap.html
  
   Regards Angelo
  
   2007/3/22, temp temp :
   
I want  a jsp page which should have the capability to  drag and
drop   in the sense suppose I have a two list
   
   
   
California -- CAColorado -- COConneticut -- CN
   
   
C -- CAC -- CO Conneticut -- CN
   
   
   I want to shuffle the  contents  of the lists using  mouse
 drag
and  drop  is it possible   ?   and  any hints of achieving this ?
   Thanks  Regards
   
   
   
   
-
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
  
  
  
   -
   TV dinner still cooling?
   Check out Tonight's Picks on Yahoo! TV.
 
 
 
  -
  We won't tell. Get more on shows you hate to love
  (and love to hate): Yahoo! TV's Guilty Pleasures list.



 -
 Be a PS3 game guru.
 Get your game face on with the latest PS3 news and previews at Yahoo!
 Games.


 
-
Sucker-punch spam with award-winning protection.
 Try the free Yahoo! Mail Beta.

[JAVA]Generating unique identifier with in a sesssion

2007-03-23 Thread temp temp
I need a  object which generates unique identifiers  for all   instances I 
create  how to do this  ?
  Thanks  Regards

 
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.

[JAVA] abstractg class calling abstract method in constructor

2007-03-23 Thread temp temp
 
   
  I have a super  class  with an abstract method and a non  default 
constructor and it calls this abstract method in its constructor
   This abstract method is implemented in the  base class.
  First thing  base class constructor does is call  super()   
   
  Example
  // super  class
  public abstract class CustomRuntimeDocument extends  AbstractDocument {
   
public  CustomRuntimeDocument(XmlObject aXmlObject, String 
aFileName   ) {
  super();
  fXmlObject=aXmlObject;
  fFilename=getFilePrefix()+aFileName;
}
   
  protected abstract String getFilePrefix();
   
   
  } // end of class
   
  // base class
  public class CustomRuntimeFormDocument extends  CustomRuntimeDocument{

public  CustomRuntimeFormDocument(Form   aForm  , String aFileName) 
{
  super(aForm,aFileName);
  fForm=aForm;
}
   
protected String  getFilePrefix() {
  
  return formbuilder_;
}
   
  }
   
   
  Is this ok or might generate some problems ?
  Thanks  Regards

 
-
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.

[JSP] drag drop capability in a jsp is this possible ?

2007-03-22 Thread temp temp
I want  a jsp page which should have the capability to  drag and drop   in 
the sense suppose I have a two list   
  
 
  
select size=3 
  
optionCalifornia -- CA/option
  
optionColorado -- CO/option   
  
optionConneticut -- CN/option
  
/select
   
  
select size=3 
  
optionC -- CA/option
  
optionC -- CO/option   
  
option Conneticut -- CN/option
  
/select
   
   
   I want to shuffle the  contents  of the lists using  mouse drag   and  
drop  is it possible   ?   and  any hints of achieving this ?
   Thanks  Regards
  
  

 
-
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.

Re: [JSP] drag drop capability in a jsp is this possible ?

2007-03-22 Thread temp temp
I tried  swap control  in my application but it does not work  the site has no 
documentation, no complte examples can  I get more  assistance  with this ?
  Thanks  Regards
  
  
  

Angelo zerr [EMAIL PROTECTED] wrote:  Hi,
you can see JSControlsTags project at http://jscontrolstags.sourceforge.net/
.
There is Swap control (see at
http://jscontrolstags.sourceforge.net/controls/swap/swap.html)
which is enable to swap items select to another select with drag/drop.
it is based on Scriptaculous and Proototype.

You can see demo at
http://jscontrolstags.sourceforge.net/demo/swap/swap.html

Regards Angelo

2007/3/22, temp temp :

 I want  a jsp page which should have the capability to  drag and
 drop   in the sense suppose I have a two list



 California -- CAColorado -- COConneticut -- CN


 C -- CAC -- CO Conneticut -- CN


I want to shuffle the  contents  of the lists using  mouse drag
 and  drop  is it possible   ?   and  any hints of achieving this ?
Thanks  Regards




 -
 No need to miss a message. Get email on-the-go
 with Yahoo! Mail for Mobile. Get started.


 
-
TV dinner still cooling?
Check out Tonight's Picks on Yahoo! TV.

Re: [JSP] drag drop capability in a jsp is this possible ?

2007-03-22 Thread temp temp
I downloaded  all the required files  but they donot have a  sample application 
with which I can play  make changes test  results   they have jsp code   which 
is not complete and  no tutorial on  how to get started  are there any other   
providers with good documentation and examples ?
  Thanks  Regards
 

Angelo zerr [EMAIL PROTECTED] wrote:  Have you download usecase 
jscontrolstags-usecases-1.0-b1? You can found it
http://sourceforge.net/project/showfiles.php?group_id=175409

Swap document is here
http://jscontrolstags.sourceforge.net/controls/swap/swap.html

Angelo

2007/3/22, temp temp :

 I tried  swap control  in my application but it does not work  the site
 has no documentation, no complte examples can  I get more  assistance  with
 this ?
   Thanks  Regards




 Angelo zerr  wrote:  Hi,
 you can see JSControlsTags project at
 http://jscontrolstags.sourceforge.net/
 .
 There is Swap control (see at
 http://jscontrolstags.sourceforge.net/controls/swap/swap.html)
 which is enable to swap items select to another select with drag/drop.
 it is based on Scriptaculous and Proototype.

 You can see demo at
 http://jscontrolstags.sourceforge.net/demo/swap/swap.html

 Regards Angelo

 2007/3/22, temp temp :
 
  I want  a jsp page which should have the capability to  drag and
  drop   in the sense suppose I have a two list
 
 
 
  California -- CAColorado -- COConneticut -- CN
 
 
  C -- CAC -- CO Conneticut -- CN
 
 
 I want to shuffle the  contents  of the lists using  mouse drag
  and  drop  is it possible   ?   and  any hints of achieving this ?
 Thanks  Regards
 
 
 
 
  -
  No need to miss a message. Get email on-the-go
  with Yahoo! Mail for Mobile. Get started.



 -
 TV dinner still cooling?
 Check out Tonight's Picks on Yahoo! TV.


 
-
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.

Re: [JSP] drag drop capability in a jsp is this possible ?

2007-03-22 Thread temp temp
It works Thank you very much.Sorry for  the complain It  was  my mistake i just 
downloaded src after ur reply i downloaded use  cases   i was able to  run the 
jsp it works.
  Once again tahnk you very much.
  Thanks  Regards
  
  Angelo zerr [EMAIL PROTECTED] wrote:  There is not another documentation 
(it's my project).
have you try to deploy the war jscontrolstags-usecases-1.0-b1.war? You
sample with swap.
I'm agree with you documentation is poor, I will try write it.

See swap3.jsp. You have an sample. have you insert javascript and css in
your page?



src=../js/scriptaculous/prototype.js

src=../js/scriptaculous/effects.js

src=../js/scriptaculous/dragdrop.js


src=../js/selectable/selectable.js

src=../js/selectable/subsdraggable.js

src=../js/jscontrolstags-swap.js



type=text/css /

Angelo


2007/3/22, temp temp :

 I downloaded  all the required files  but they donot have a  sample
 application with which I can play  make changes test  results   they have
 jsp code   which is not complete and  no tutorial on  how to get
 started  are there any other   providers with good documentation and
 examples ?
   Thanks  Regards


 Angelo zerr  wrote:  Have you download usecase
 jscontrolstags-usecases-1.0-b1? You can found it
 http://sourceforge.net/project/showfiles.php?group_id=175409

 Swap document is here
 http://jscontrolstags.sourceforge.net/controls/swap/swap.html

 Angelo

 2007/3/22, temp temp :
 
  I tried  swap control  in my application but it does not work  the site
  has no documentation, no complte examples can  I get
 more  assistance  with
  this ?
Thanks  Regards
 
 
 
 
  Angelo zerr  wrote:  Hi,
  you can see JSControlsTags project at
  http://jscontrolstags.sourceforge.net/
  .
  There is Swap control (see at
  http://jscontrolstags.sourceforge.net/controls/swap/swap.html)
  which is enable to swap items select to another select with drag/drop.
  it is based on Scriptaculous and Proototype.
 
  You can see demo at
  http://jscontrolstags.sourceforge.net/demo/swap/swap.html
 
  Regards Angelo
 
  2007/3/22, temp temp :
  
   I want  a jsp page which should have the capability to  drag and
   drop   in the sense suppose I have a two list
  
  
  
   California -- CAColorado -- COConneticut -- CN
  
  
   C -- CAC -- CO Conneticut -- CN
  
  
  I want to shuffle the  contents  of the lists using  mouse drag
   and  drop  is it possible   ?   and  any hints of achieving this ?
  Thanks  Regards
  
  
  
  
   -
   No need to miss a message. Get email on-the-go
   with Yahoo! Mail for Mobile. Get started.
 
 
 
  -
  TV dinner still cooling?
  Check out Tonight's Picks on Yahoo! TV.



 -
 We won't tell. Get more on shows you hate to love
 (and love to hate): Yahoo! TV's Guilty Pleasures list.


 
-
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.

[JAVA] Use of declaring method abstract in a interface

2007-03-21 Thread temp temp
What is the advantage of declaring method abstract  in a intreface ?
  for example
  difference between 
  Intreface Test 
  {
  public void  test();
  }
  
  and 
  
  Intreface Test 
{
public abstract void  test();
}
  
  Thanks  Regards
  Sairam
  
  
 
-
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.

[JAVA] suing synchronized block

2007-03-20 Thread temp temp
I  using synchronized block  and need help in using it ?
   
  I have a SingleTon class which has a global valriable Map.
  I will  updating this Map  at runtime.
   
  Example
  synchronized (fActionHandlers) {
  fActionHandlers.put(
  vAction.getClassName(),  
  vConfigAction);
  }
  I want this  update to be synchronized . The above code is this right  ?
  My  assumption about this is JVM will allow only one thread at a time 
to execute  the code in the synchronized block  is  this right ?
  Thanks  Regards
 

 
-
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

adding parameters at runtime to actionforward which uses tiles

2007-03-20 Thread temp temp
I am using  tiles definitions in my actionforward  
   
   action path=/action/manage/entity/viewEntity
  type=com.reisys.fema.ognt.web.action.manage.entity.ViewEntityAction
  forward name=success  path=forward.view.entity/
  /action
   
   
  definition name=forward.view.entity  extends=ogntlayout
  put name=body  value=/jsp/manage/entity/adminViewEntity.jsp  /
  /definition
  Is there a  way I can add parameters to an actionforward which uses tiles 
definition ?
  If its not  tiles I can append to actionForward.getActionPath()  what in 
case of tiles , how can I append parameters   at runtime ?
  Thanks  Regards
  
  

 
-
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.

Re: adding parameters at runtime to actionforward which uses tiles

2007-03-20 Thread temp temp
What in case of redirect and I donot want to use session?
  Thanks  Regards
  

Paul Benedict [EMAIL PROTECTED] wrote:  temp temp wrote:
   Is there a  way I can add parameters to an actionforward which uses 
 tiles definition ?
  If its not tiles I can append to actionForward.getActionPath() what in  case 
 of tiles , how can I append parameters at runtime ?

Temp,

Tile views shouldn't need parameters. If you need to pass data, consider 
putting that information in request attributes.

Paul


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



 
-
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.

[JSP] api for customizing contents of a jsp page

2007-02-13 Thread temp temp
I want  portal like capability where  a user can  change or create fields .
  I want to  add functionality through which a user can add more fields or 
remove fields or  change the display name of the field  like portal page, where 
a user  can create a form just with drag and drop,  
  are there  any  open source  java api to achieve this ?
  Thanks  Regards
  Miro
  
   

 
-
Don't get soaked.  Take a quick peak at the forecast 
 with theYahoo! Search weather shortcut.

[JAVA] creating instance of the class

2007-02-09 Thread temp temp
I want to  create  instance of a class  using object.getClass().new 
Instance()   but  this object constructor needs another object  so how can I do 
this ?
   
   
  Suppose I  have a class
   
  DefaultMetaInfoHandler   default=new DefaultMetaInfo(“test”);
   
  Can I  create instance of this class using  
default.getClass().newInstance()
  
  If I have to create how ?
  
  Thanks
  Miro
  

 
-
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get 
things done faster.

bean: define tag

2006-11-21 Thread temp temp
Can I use bean:define tag  as below
  
  bean:define id='bpalias'  value='%=serviceNameSpace%%=bp.afg.award.%'/
  
  I get   
  illegal start of expression  __jsp_taghandler_3.setValue( 
OracleJspRuntime.toStr( serviceNameSpace%%=bp.afg.award.));
  what  is the problem ?
  Thanks
  Miro
   
 
-
Sponsored Link

$200,000 mortgage for $660/mo - 30/15 yr fixed, reduce debt, home equity - 
Click now for info

Simple java question

2006-11-14 Thread temp temp
I declared  a private global field called aField.
  The same  variable I decalred in a method .
  For example
  public class Test2 {
  private String aField =  aField ;
  
  public static void main(String[] args) {
  Test2 test2 = new Test2();
  test2.testField();
  System.out.println(test2.aField);
  }
  
  private void testField() {
  String aField = test1;
  System.out.println(aField);
  }
  }
  In the  method testField if I want to access the global variable  aField is 
it possible ?
  Thanks   Regards
  Miro

 
-
Access over 1 million songs - Yahoo! Music Unlimited.

Re: Simple java question

2006-11-14 Thread temp temp
If I donot use this.aField implies that complier will never point to  global 
field ? and only way I can access the global variable is using  this ?
  Thanks  Regards
  Miro

[EMAIL PROTECTED] wrote:  Hello temp temp,

Use this.aField inside the method.


  public class Test2 {
  private String aField =  aField ;
 
  public static void main(String[] args) {
  Test2 test2 = new Test2();
  test2.testField();
  System.out.println(test2.aField);
  }
 
  private void testField() {
  String aField = test1;
  System.out.println(aField);
  System.out.println(this.aField);
  }
  }


Thanks and regards,
Pazhanikanthan. P (Paz)

Consultant for AXA,
Senior Software Engineer,
HCL Australia Services Pty. Ltd.
Off   : +61-3-9618-4085
Mob : +61-0411-354-838




temp temp 
15/11/2006 07:13 AM
Please respond to Struts Users Mailing List
 
To: user@struts.apache.org
cc: 
Subject:Simple java question


I declared  a private global field called aField.
  The same  variable I decalred in a method .
  For example
  public class Test2 {
  private String aField =  aField ;
 
  public static void main(String[] args) {
  Test2 test2 = new Test2();
  test2.testField();
  System.out.println(test2.aField);
  }
 
  private void testField() {
  String aField = test1;
  System.out.println(aField);
  }
  }
  In the  method testField if I want to access the global variable  aField 
is it possible ?
  Thanks   Regards
  Miro
 
 
-
Access over 1 million songs - Yahoo! Music Unlimited.

_ 
This e-mail has been scanned for viruses by MCI's Internet Managed 
Scanning Services - powered by MessageLabs. For further information 
visit http://www.mci.com

*
Important Note
This email (including any attachments) contains information which is 
confidential and may be subject to legal privilege.  If you are not 
the intended recipient you must not use, distribute or copy this 
email.  If you have received this email in error please notify the 
sender immediately and delete this email. Any views expressed in this 
email are not necessarily the views of AXA.   Thank you.
**


 
-
Want to start your own business? Learn how on Yahoo! Small Business.

Java exception handling

2006-11-10 Thread temp temp
For good  exceptional handling  should I create  all my methods in try 
catch block and throw  exception in the catch block with e.printstacktrace()
   
  Exammple
   
  public void processQueryResults(Map  metaInfo, Map 
entityInfo) throws WorkflowException {
   try{
   if(entities==null){
   entities=  new 
ArrayList();
   }
   IEntityDAO  entityDAO  
=ObjectFinder.getEntityDAOFromBpAlias(StringUtilities.stripNamespace(metaInfo.get(IWorkflow.BUSINESS_PROCESS_ALIAS).toString()));
   Entity  entity=entityDAO.createNew();
   Integer  entityId=new 
Integer(metaInfo.get(IWorkflow.ENTITY).toString());
   entity.setId(entityId.intValue());
   entity.fromMap(entityInfo);
   entity.setMetaInfo(metaInfo);
   entities.add(entity);
   }catch(Exception  e)  {
   e.printStackTrace();
   throw new  WorkflowException(e);
   }
  }
  Is this good way to handle exception ?
  Thanks  Regards
  miro
  

 
-
Access over 1 million songs - Yahoo! Music Unlimited.

object[] to string[]

2006-11-10 Thread temp temp
I want contents  of java.util.list   as string array 
   
  Object aObject[]=   list.toArray();
  How can I  cast this to string []?
  Thanks  Regards
  Miro
  


-
Everyone is raving about the all-new Yahoo! Mail beta.

request.getParameterMap

2006-11-03 Thread temp temp
I want all  the parameters in ServletRequest object for this I am using the 
method request.getParameterMap().  It returns java.util.Map which contains  
request parameter name and its value.When I print out the Map I can read the  
key but I cannot read the value .
   
  Here is the  print of the Map
   
   
  06/11/03  10:58:57  request paramskey score1  , value  
[Ljava.lang.String;@13f348b
  06/11/03  10:58:57  request paramskey progname  , value  
[Ljava.lang.String;@92997e
  06/11/03  10:58:57  request paramskey submit  , value  
[Ljava.lang.String;@9b601d
  06/11/03  10:58:57  request paramskey numberPerPage  , 
value  [Ljava.lang.String;@c3362f
  06/11/03  10:58:57  request paramskey appNum  , value  
[Ljava.lang.String;@1a5770
  06/11/03  10:58:57  request paramskey sortBy  , value  
[Ljava.lang.String;@1628b8d
  06/11/03  10:58:57  request paramskey amount2  , value  
[Ljava.lang.String;@b80f1c
  06/11/03  10:58:57  request paramskey hasAward  , value  
[Ljava.lang.String;@1e80f3a
  06/11/03  10:58:57  request paramskey score2  , value  
[Ljava.lang.String;@3fc47c
  06/11/03  10:58:57  request paramskey orgState  , value  
[Ljava.lang.String;@7cb44d
  06/11/03  10:58:57  request paramskey amount1  , value  
[Ljava.lang.String;@1214626
  06/11/03  10:58:57  request paramskey orgName  , value  
[Ljava.lang.String;@1849daf 
   
  How can I translatevalue [Ljava.lang.String;@1849daf to  readable 
String?
Thanks  Regards
  Miro
  
 
-
We have the perfect Group for you. Check out the handy changes to Yahoo! Groups.

new line char in xml

2006-10-26 Thread temp temp
I have some  text in xml file which I will   show in a text area to edit . 
I don’t  know how to specify a new line char in xml. Currently I am using br 
tag  instead of a new line char .Using br works in jsp  
  but  a text area  displays them as br which would  confuse user .So I 
need to put  the new  line char in xml which will be  understood by the browser 
as new line  .Please somebody guide me how to put new line  char in xml. 
  regards
  Miro
  
  

-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

Re: new line char in xml

2006-10-26 Thread temp temp
Here is my xml could you tell me how to put new line char?.
  
  Here is my xml
  
  amendment-letter
  pop letter=
  You are requesting a one-year, no-cost extension to the period frrf of 
performance for agreement number ? until  ?. \n 
  Retain this document in your official grant file.
  /
  /amendment-letter
  

Li [EMAIL PROTECTED] wrote:  have you tried \n? it should work

On 10/27/06, temp temp  wrote:

 I have some  text in xml file which I will   show in a text area to
 edit . I don't  know how to specify a new line char in xml. Currently I am
 using 
 tag  instead of a new line char .Using 
 works in jsp
   but  a text area  displays them as 
 which would  confuse user
 .So I need to put  the new  line char in xml which will be  understood by
 the browser as new line  .Please somebody guide me how to put new line  char
 in xml.
   regards
   Miro



 -
 Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great
 rates starting at 1¢/min.




-- 
When we invent time, we invent death.



-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

Re: new line char in xml

2006-10-26 Thread temp temp
I tried that it did not work .
  Regards
  Miro

Li [EMAIL PROTECTED] wrote:  try the following




Wish it works

On 10/27/06, temp temp  wrote:

 Here is my xml could you tell me how to put new line char?.

   Here is my xml

   
   

   



 Li  wrote:  have you tried \n? it should work

 On 10/27/06, temp temp  wrote:
 
  I have some  text in xml file which I will   show in a text area to
  edit . I don't  know how to specify a new line char in xml. Currently I
 am
  using
 tag  instead of a new line char .Using
 works in jsp
but  a text area  displays them as
 which would  confuse user
  .So I need to put  the new  line char in xml which will be  understood
 by
  the browser as new line  .Please somebody guide me how to put new
 line  char
  in xml.
regards
Miro
 
 
 
  -
  Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great
  rates starting at 1¢/min.
 



 --
 When we invent time, we invent death.



 -
 Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
 countries) for 2¢/min or less.




-- 
When we invent time, we invent death.




-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

java.lang.OutOfMemoryError with ant javac task

2006-08-31 Thread temp temp
I using ant  build file to compile “.java” files  .I get   
java.lang.OutOfMemoryError.
  Here is the build file
property  name=compile.debug value=true /
property  name=compile.deprecation value=false /
property  name=compile.optimize value=true /
   
path  id=compile.classpath
  pathelement  location=${basedir}/bin/
  pathelement  location=${frmlib.home}/
  fileset  dir=${frmlib.home}
include  name=*.jar /
  /fileset
  fileset  dir=${warlib.home}
include  name=*.jar /
  /fileset
/path
   
   
  javac  srcdir=${src.home} destdir=${build.home.classes}  
debug=${compile.debug}  deprecation=${compile.deprecation}  
optimize=${compile.optimize}
classpath  refid=compile.classpath /
  /javac
   
  compile:
  [javac] Compiling 2424  source files to 
C:\java\eclipse\eclipse\workspace\Fema\build\classes
  [javac] The system  is out of resources.
  [javac] Consult the  following stack trace for details.
  [javac]  java.lang.OutOfMemoryError
   
  BUILD FAILED
  C:\java\eclipse\eclipse\workspace\Fema\fema-build-1.xml:80:  Compile 
failed; see the compiler error output for details.
   
   
  What  could be the problem?


-
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail.

[SERVLET_FILTERS]

2006-08-28 Thread temp temp
  filter
filter-nameSearchResultsFilter.CheckIn/filter-name
  
filter-classcom.reisys.fema.ndsp.web.filter.SearchResultsFilter/filter-class
  init-param
param-namereq_attribute_name/param-name
param-valuetaskInstances/param-value
  /init-param
/filter
filter-mapping
  filter-nameSearchResultsFilter.CheckIn/filter-name
  url-pattern/action/workflow/taskinstance/checkin.do/url-pattern
/filter-mapping
   
filter
filter-nameSearchResultsFilter.Assign/filter-name
  
filter-classcom.reisys.fema.ndsp.web.filter.SearchResultsFilter/filter-class
  init-param
param-namereq_attribute_name/param-name
param-valueworkInstances/param-value
  /init-param
/filter
filter-mapping
  filter-nameSearchResultsFilter.Assign/filter-name
  url-pattern/action/workflow/workinstance/assign.do/url-pattern
/filter-mapping
   
   
  I have a  servlet filter which should behave different based on  
parameter passed to it. Above is a mapping of  a filter with different names 
but the same Filter class  SearchResultsFilter to different urls’s.
   
  The init  method of the filter  SearchResultsFilter.CheckIn  and 
SearchResultsFilter.Assign   will be common or different ? Suppose 
SearchResultsFilter.CheckIn is called first and in  the init method I 
initialize some variables and later SearchResultsFilter.Assign  is called at 
this time will the init method  be called again ?
   
   
   


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

[JAVA]Convert two collections into a map

2006-08-28 Thread temp temp
Are there  any uitl classes or  api  which converts two different  
collections   into a map  ?


-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail.

converting \n to br with bean:write tag

2006-08-25 Thread temp temp
I am using struts   bean tag   bean:write   .Is there any option in the tag 
which converts  \n character to br
  
  

-
 All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.

[JAVA]How to get datatbase connection from lookup to datatsource name in a standalone java application

2006-08-24 Thread temp temp
My java standalone application wants connection to database with lookup  to 
datasource name which is configured in the oc4j app server. 
  Please guide me with some ideas to achieve this.
  
  


-
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail.

how to read

2006-07-31 Thread temp temp
How to read the following code ?
  
  boolean vIsForm = vWorkTypeId.equals(IFormflowWorkTypeIds.FORM);  
String vWorkForwardName = MessageFormat.format(work={0}, new Object[] 
{vWorkAlias});
  String vForwardName = (aActionMapping.findForward(vWorkForwardName) 
== null)
  ? (vIsForm) ? form : task
  : vWorkForwardName;
  Thanks
  Miro
  
 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Converting an object to integer

2006-07-21 Thread temp temp
What is the best way to convert an object to an Integer  .If casting dosen't 
work?
  Thanks  Regards 
  

-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

Re: Converting an object to integer

2006-07-21 Thread temp temp
The object which I want to convert into Integer is a number and can be 
converted to int, its not a string or a boolean .
I get this object either from  request attribute , or request parameter or a 
DAO.
  If  I  get this  ob ject  from request parameter I  cannot cast it to integer 
 because I get compilation error stating  that  cannot cast a String to integer 
in this case do I have to  create a new Integer every time ?
  Thanks  Regards
  
  
Scott Van Wart [EMAIL PROTECTED] wrote:  temp temp wrote:
 What is the best way to convert an object to an Integer  .If casting dosen't 
 work?
   

Object probablyAnInteger = ;

Integer someInt;
if ( probablyAnInteger == null || probablyAnInteger.equals(  ) )
{
  someInt = null;
}
else
{
  try
  {
someInt = new Integer( probablyAnInteger.toString() );
  }
  catch ( NumberFormatException e )
  {
 // definitely not an integer
 someInt = null;
  }
}


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




-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

interface for constants

2006-07-18 Thread temp temp
I have is a constants interface with static final fields .
Each field value is a call to DAO.

For example 
interface IObjectTypeIds{
public static final int APPLICATION =ObjectDAO.get(APPLICATION);
}

Is this is a good practice ?





-
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail Beta.

Using bean:write

2006-06-23 Thread temp temp
I have  a  map with  a string  as key .The string  contains some dots like 
“p.s.amemdment.type.sow”.  In  jsp I want display  the value for key 
“p.s.amemdment.type.sow”.
   
  For this I  should use bean:wirte name=”map”  property=’ 
p.s.amemdment.type.sow’ /  but  the  bean tag assumes the key as nested 
property   and I get error .Is there any way I can  make the bean tag assume 
the key as a string  and not a nested bean.
  Thanks   Regards


-
Yahoo! Sports Fantasy Football ’06 - Go with the leader. Start your league 
today! 

[JAVA]Converting a string to date

2006-06-22 Thread temp temp
I have a string which I want to convert into a date .
  The string   06-APR-07
  
  How can I convert this date into sql date ?
  
  Thanks
  
  
  

-
Yahoo! Groups gets better. Check out the new email design. Plus there’s much 
more to come.  

[WEB-SERVICES ]

2006-05-23 Thread temp temp
Web services.  How web services are written in java. Are there any 
tutorials to understand the  concept of web services?
  Several  application servers provide tools which builds web service on a 
button click.
  This way I  can create a web service but I cannot understand what files 
are needed and how  to write them on my own without the help of any application 
servers?
  Apache axis  has its own   tools to generate dependent  class files and 
apache axis as per the example it self is a web application and  I deploy my 
web services into this application. I want the basic understanding  to create a 
web service.
  For example  developing a enterprise bean involves creating interfaces, 
implementation  classes, deployment descriptors and packing them into a jar 
file.
  All  tutorials tell what an enterprise bean consists of and how write 
them. 
  But in case  of web services all api's has its own tools to generate 
dependent classes,  config files. 
  Is there a  java standard way to create web service?
Thanks  Regards
  

-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

Re: struts token

2006-05-19 Thread temp temp
Can you tell me how can I use struts token mechanisim with out a form bean?
  Thanks  Regards
  

Manfred Wolff [EMAIL PROTECTED] wrote:  Yes, you can. The token will be 
stored in the request.



temp temp wrote:
 Can I use  struts token mechanism for an action without a form bean ?
 Thanks  Regards
   
   
   
 -
 Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
   

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




-
Ring'em or ping'em. Make  PC-to-phone calls as low as 1¢/min with Yahoo! 
Messenger with Voice.

Re: struts token

2006-05-19 Thread temp temp
What hidden field should I use in jsp to pass the generated token to next 
action class?  
Thanks  Regards
  
Manfred Wolff [EMAIL PROTECTED] wrote:  Hi mr. temp.temp

1. The Action calls saveToken(request);
2. A unique token will be generated and saved in the session and in the
jsp as a hidden field.
3. The next action calls |*isTokenValid
(request,
true);
4. If the token in the request match the token in the session everything
is alright. Otherwise the user has gone back and the token in the
request is not valid.
5. True means, the token will be reseted. Otherwise you have to reset it
on your own with the method resetToken(request).

Manfred*|


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




-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

struts token

2006-05-18 Thread temp temp
Can I use  struts token mechanism for an action without a form bean ?
Thanks  Regards
  
  

-
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

Re: Browser Back Button

2006-05-16 Thread temp temp
Can I use struts token  mechanisim without a formbean ?
Thanks  Regards
  
Manfred Wolff [EMAIL PROTECTED] wrote:  
Found at http://husted.com/struts/catalog.html


Use the Action Token methods to prevent duplicate submits

There are methods built into the Struts action to generate one-use
tokens. A token is placed in the session when a form is populated and
also into the HTML form as a hidden property. When the form is returned,
the token is validated. If validation fails, then the form has already
been submitted, and the user can be apprised.

* saveToken(request)
* /on the return trip,/
  o isTokenValid(request)
  o resetToken(request)

Perhaps someone (me?) must write a documentation? If I have a little
time, and no has do so, I will do.

Manfred


temp temp wrote:
 Can U suggets me an article which clearly explains using struts  tokens  
 mechanisim?

 Manfred Wolff  wrote:  
 Lixin.

 I think mostly it is no problem to go back in a struts implemented
 application. If it ist a problem (e.g. after a logout or if you saved
 data) you can take the struts token mechanism to prevend such backs.

 Manfred

 Lixin Chu wrote:
   
 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 ?

 


   


-- 
===
Dipl.-Inf. Manfred Wolff
Software Engineer
Fon  : +49 421 534522
Fax  : +49 421 4314578
Mobil: +49 173 2494181
---
http://www.manfred-wolff.de
http://www.struts-it.org
---


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




-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

PDF forms

2006-05-16 Thread temp temp
My  application should have PDF forms. The servlet should create a PDF form 
which  user should be able to edit, take print out and  server should receive 
inputs  entered by the user.
  What should  I look for to achieve this?
  Thanks  Regards
  


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1cent;/min.

Re: PDF forms

2006-05-16 Thread temp temp
User should fill the form and submit to the server   also  should have an 
option to print I mean a print button in pdf  which  will print the pdf.
  Thanks  Regards
  
  
  

-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Re: Browser Back Button

2006-05-15 Thread temp temp
Can U suggets me an article which clearly explains using struts  tokens  
mechanisim?

Manfred Wolff [EMAIL PROTECTED] wrote:  
Lixin.

I think mostly it is no problem to go back in a struts implemented
application. If it ist a problem (e.g. after a logout or if you saved
data) you can take the struts token mechanism to prevend such backs.

Manfred

Lixin Chu wrote:
 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 ?



-- 
===
Dipl.-Inf. Manfred Wolff
Software Engineer
Fon  : +49 421 534522
Fax  : +49 421 4314578
Mobil: +49 173 2494181
---
http://www.manfred-wolff.de
http://www.struts-it.org
---


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




-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

How to dertermine the url from which a request is made ?

2006-05-15 Thread temp temp
The method request.getServletPath returns current request uri.Can I get the 
previous request uri .ie 
  I have a filter which is mapped to all .do's .So any .do is called this  
filter is invoked.In this filter I can retrieve  the requested url.
  Is there any way I can determine url from which this request was made ?
  
  For example I have three .do's  all of which has a link to a fourth .do
  I have a filter which is mapped to all .do's .In this filter I want  retrieve 
from which of the three  .do's  user has  requested   fourth .do
  Thanks  Regards
  
  

-
Yahoo! Mail goes everywhere you do.  Get it on your phone.

Re: Browser Back Button

2006-05-12 Thread temp temp
I am not clear using tokens How to use tokens to determine that user clicked on 
browser back button ?
  Thanks  Regards

Rob Manthey [EMAIL PROTECTED] wrote:  And I'll be contrary and toss in a 
Yes, but ... (apol: Eric Berne) 
(as usual, corrections to my notes are welcome)
Yes, but you have to do it programmatically.  I don't think there's
anything in j2ee (or any other web app) interfaces or implementations
that handles this, as Phil said, so you have to make it happen by using
tokens and hand-written code etc etc.   Unless you are progamming a
bank's online faciliity or a www air traffic controller, try not to go
this way (I've done one - it was fairly easy in retrospect but adds a
moderately painful comprehensibility and navigation burden to the app,
so I'm not advising it as a first choice).  Safer to abide by available
technologies and their proper application, as Phil was saying. 
The Back button and serverside webapps *naturally* clash if you provide
no specific code to handle it - *you* have to anticipate that and
program around that reality, from as early as possible in the dev
cycle.  Worse is that the implementation of behaviour of Back by
different browsers is quite different, some taking the purely snapshot
view, others taking the resubmit the url policy ... so there is great
variation in outcomes!
Unfortunately a lot of developers coming from passive web page
development (where Back works perfectly every time) don't realise that
there's a problem until they've completed their first decent size active
serverside web app and someone (usually the customer) says but it
breaks if I click *Back*.
This question was popped here a week ago ... perhaps we need an
auto-responder!
 Rob

Philihp Busby wrote:

 No.

 When people have a problem with back buttons, 95% of the time they are
 either doing one of the following:
 - Confusing the GET and POST methods and their intended purpose with
 forms.
 - Abusing client-side browser scripting for forwarding users.

 On 5/11/06, temp temp  wrote:

 Is there  any way I can  realize  using java that the user
 clicked on browsers back button  ?
   Thanks  Regards



 -
 Yahoo! Mail goes everywhere you do.  Get it on your phone.



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




-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Browser Back Button

2006-05-11 Thread temp temp
Is there  any way I can  realize  using java that the user clicked on 
browsers back button  ?  
  Thanks  Regards
  


-
Yahoo! Mail goes everywhere you do.  Get it on your phone.

Fwd: [java.util.regex ]using Regular Expressions

2006-05-10 Thread temp temp
Note: forwarded message attached.
		Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.---BeginMessage---
I am having  problems with Regular Expressions usage.  I want to  ensure that the user enters only digits and no other characters.  For this I  am using the code below.  I create a  Pattern Object to which I pass a regular _expression_ and when I call matches  method I always get false. What am I doing wrong? 
 Pattern  p=Pattern.compile("\\d");  System.out.println(p.matcher("456").matches());  Thanks   Regards  
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.---End Message---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

including taglib in jsp

2006-05-05 Thread temp temp
 including a  taglib  in jsp  will  it cause performance problems ?
  for example
  my jsp  has path to taglib
   %@ taglib uri=/tld/struts-bean  prefix=bean%
  and   I am not  using declared tag  any where  in my jsp.
  As per performance measure can I ignore tld declaration or should remove 
unnecessary  tld declaration?
thanks  regards
  
  
  
  
  

-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1cent;/min.

convert collection to excel spread sheet

2006-04-07 Thread temp temp
I must create export to excel spreadsheet capability  for   my  pages .
  I will be having java.util.Collection  containing  search  results  which I 
have to convert into an excel sheet.What is the  best and simplest way to 
convert a Collection into excel spreadsheet .
  Thanks  Regards
  
  

-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

[using class.forname()]

2006-04-03 Thread temp temp
I am using class.forname() in several classes  to load other   classes  so that 
 my application can be configured without  changing the exsisting code .
  I am not very clear about the issues which can come across using  class 
loaders .
  I tested in my localhost where all classes reside in one  container, it works 
.
  But in  production and tdl ,the  environment is  clustered   and app tier and 
web tier are seperated  so  could there be issues with class.forname() or  
dynamically  loading  classes which I donot see in my development  environment  
but can arise in production  because of  clustering or seperation of web tier 
and app tier.
  Thanks  Regards
  
  

-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1cent;/min.

servlets filters

2006-03-31 Thread temp temp

  
  
  
  I have a servlet filter which should behave  different for  different .do's 
 and init params are  different for  different  .do's .
  
  One way of solving this situation is  below.
  
  
filter
filter-nameSearchResultsFilter.CheckIn/filter-name
  
filter-classcom.reisys.fema.ndsp.web.filter.SearchResultsFilter/filter-class
  init-param
param-namereq_attribute_name/param-name
param-valuetaskInstances/param-value
  /init-param
/filter
filter-mapping
  filter-nameSearchResultsFilter.CheckIn/filter-name
  url-pattern/action/workflow/taskinstance/checkin.do/url-pattern
/filter-mapping
  
filter
filter-nameSearchResultsFilter.Assign/filter-name
  
filter-classcom.reisys.fema.ndsp.web.filter.SearchResultsFilter/filter-class
  init-param
param-namereq_attribute_name/param-name
param-valueworkInstances/param-value
  /init-param
/filter
filter-mapping
  filter-nameSearchResultsFilter.Assign/filter-name
  url-pattern/action/workflow/workinstance/assign.do/url-pattern
/filter-mapping
  
  
  
  
  Other approach is to create an xml or property file with a list of  servlet 
paths  and their init params  and pass this config  file to filter so that the 
filters retrieves servlet path from request  matches it with  the servlet path 
in config file and gets the  param for that.do
  Which is better approach ?
  Than ks  Regards
  
  

-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

[java:Conditional Operators]

2006-03-30 Thread temp temp
I did not understand the following code with multiple conditional operators.
  boolean vIsForm=true;
  String vForwardName = (aActionMapping.findForward(vWorkForwardName) 
== null)
  ? (vIsForm) ? form : task
  : vWorkForwardName;
  
  Can some body explain me how to read the above code?
  Thanks  Regards
  
  

-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

[java.util.Map] How can I alter a java.util.Map while I am iterating it

2006-03-23 Thread temp temp
I have a  HashMap   with some data .I must alter  the Map by replacing the 
keys with their upper case.
   
 Map searchResultMap=   
(Map)request.getAttribute(searchResults);
 ListIterator   
searchResultMapIte=Arrays.asList(searchResultMap.keySet().toArray()).listIterator();
 while(searchResultMapIte.hasNext()){
  Object  aKey=searchResultMapIte.next();
  aKey=aKey.toString().toUpperCase();
  searchResultMapIte.set(aKey);
 }  
  I was  trying to achieve this using ListIterator which provides set 
method .But after  the while loop when I print the 
  Map it is  the same Map without any change .My question is how can I   
alter   a java.util.Map while I am iterating it.
  Thanks   Regards


-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Re: [java.util.Map] How can I alter a java.util.Map while I am iterating it

2006-03-23 Thread temp temp
I get this Map from a collection and collection might have 1000 or more  Maps 
so I first iterate over this  collection retrieve the map and  then iterate 
over this map  so creating a new Map for each  iteration  is this a good design 
?
Thanks  Regards
  
Antonio Petrelli [EMAIL PROTECTED] wrote:  temp temp ha scritto:
 I have a  HashMap   with some data .I must alter  the Map by replacing 
 the keys with their upper case.
Ok first of all you cannot modify a HashMap while you are iterating it. 
But your problem has a solution.
Iterate the map and store into another map the key-value pair (with the 
key turned to uppercase)
Then clear the original map and then call putAll


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




-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

opening a pdf file from action class

2006-03-21 Thread temp temp
In my  download action class I set the content type and write byte array to 
the  response which makes the browser open a dialog box “save or open  .  Is  
there a way  to open the file  without  the option save or open   i.e. when 
user clicks on  file link I want to open the file in the  browser rather than a 
dialog box asking user to choose an option to save or open.  How I can I 
achieve this?
  Thanks  Regards
  
  


-
 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.

In ant build.xml can I call a target from other ant build.xml

2006-03-17 Thread temp temp
In  ant build.xml can I call a target from other ant build.xml
  
  
  For Example   I have two ant build scripts build1.xml and  build2.xml
  
  and default target from build1.xml   below
  
  target name=build_app depends=clean,compile
  copy todir=${app.home}/${app.name}
  fileset dir=${dist.home} includes=**/*.jar /
  fileset dir=${dist.home} includes=**/*.war /
  /copy
  /target
  
  
  
  In  the above target can I call a target from build2.xml ?
  Thanks  Regards
  
  

-
 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.

using logic:equal tag

2006-03-10 Thread temp temp
I am using struts 1.1
  
  I using logic equal tag  to check whether a page context attribute value  
equals to some value .
  
  
  here is my code
  
  bean:define id=test value=0/
  logic:equal name=test value=0
 bean:define id=test1 value=2 /
  /logic:equal
  
  logic:equal name=test value=1
 bean:define id=test1 value=3 /
  /logic:equal
  
  So  only one logic equal will be true but not both .But when I call this 
jsp   in the browser I get  
  
  jsp exception  
  
  
  OracleJSP: oracle.jsp.parse.JspParseException: Line # 220, 
  bean:define id=test1 value=3 /
  Error: Tag attempted to define a bean which already exists: test1
  
  Why should I get this error when only one condition is true?
  Thanks  Regards
  sairam 
  
  

-
 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.

Re: using logic:equal tag

2006-03-10 Thread temp temp
Can somebody help me with this?

Michael Jouravlev [EMAIL PROTECTED] wrote:  On 3/10/06, Michael Jouravlev  
wrote:
 On 3/10/06, temp temp  wrote:
  I am using struts 1.1
 
I using logic equal tag  to check whether a page context attribute value  
  equals to some value .
 
 
here is my code
 


   

 

   

 
So  only one logic equal will be true but not both .But when I call 
  this jsp   in the browser I get
 
jsp exception
 
 
OracleJSP: oracle.jsp.parse.JspParseException: Line # 220,

Error: Tag attempted to define a bean which already exists: test1
 
Why should I get this error when only one condition is true?

 What about the very first line of your code?

Oops, I take that back. It is a different bean.

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




-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 

using logic tag

2006-03-10 Thread temp temp
I am using struts 1.1
  
  I using logic equal tag  to check whether a page context attribute value.
  
  
  here is my code
  
  bean:define id=test value=0/
  logic:equal name=test value=0
 bean:define id=test1 value=2 /
  /logic:equal
  
  logic:equal name=test value=1
 bean:define id=test1 value=3 /
  /logic:equal
  
  So  only one logic equal will be true but not both .But when I call this 
jsp   in the browser I get  
  
  jsp exception  
  
  
  OracleJSP: oracle.jsp.parse.JspParseException: Line # 220, 
  bean:define id=test1 value=3 /
  Error: Tag attempted to define a bean which already exists: test1
  
  Why should I get this error when only one condition is true 
  
  
  Thanks  regards
  
  
  

-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 

filters in web application

2006-02-13 Thread temp temp
In a web application can I use several filters like 20 to 30 filters  each of 
them serving some functionallity usefull for  more than  one '.do' .Is this a 
good design  or  there  could be  any performance issues when using several 
filters  in a web  application.
  Thanks  regards
  
  
  

-
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!

servlets filters

2006-02-07 Thread temp temp
Filters in web application. 
  Are servlet  filters similar to session ie each session will have  its own 
filter or its like  sevlet context  ie common to all  sessions .
  Thanks  Regards
  
  

-
 Yahoo! Mail - Helps protect you from nasty viruses.

using requestDispatcher.inlude()

2006-01-31 Thread temp temp

  
  
  Can I include multiple .do's using   request  dispathcer  include?
  
  or can I have 
  
  
%request.getRequestDispatcher(/action/budgetInformationRead.do?form=ndsp:budget.Informationobject.ndsp:sf.budget=811).include(request,response);%
  
  
  multiple times.
  
  
  like 
  
   
%request.getRequestDispatcher(/action/budgetInformationRead.do?form=ndsp:budget.Informationobject.ndsp:sf.budget=811).include(request,response);%
  
   trtd  colspan=12 
added  811
   /td/tr  
   
  
   
%request.getRequestDispatcher(/action/budgetInformationRead.do?form=ndsp:budget.Informationobject.ndsp:sf.budget=812).include(request,response);%
   
  trtd  colspan=12 
 added  812
  /td/tr  
  Thanks  Regards
   


-
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews,  more on new 
and used cars.

order in which filters are executed in web.xml

2006-01-27 Thread temp temp
I written two filters for my web application. 
  One filter is to check whether session has userId called SecurityFilter.(This 
filter  is applied to all *.do)
  Second filter to check if login user has access to a particular  page  called 
AccessControlFilter .(This filter only to some .do)
  in the second filter I need a userId to check if user has permission to 
access a page  say user1.do  .
  when a request comes for user1.do  which filter is executed first ? 
SecurityFilter or AccessControlFilter  .
  Thanks  Regards
  
   


-
 
 What are the most popular cars? Find out at Yahoo! Autos 

forward using RequestDispatcher

2006-01-27 Thread temp temp
 I using ServletFilter to check whether the user is authenticated  or has 
permissions to access resource.
  In case of not authenticated or not authorized I must redirect user to some 
page  (Error Page ) .
  For this I must use RequestDispatcher to forward him  to error page. 
  If I do this I must specify path to my page  which  will also tell users  
where all my jsp are located.
  To avoid this I want to forward user to struts global forward which will hide 
actual path to the jsp. Is this possible ?.
  
  


-
 
 What are the most popular cars? Find out at Yahoo! Autos 

file download problem

2006-01-18 Thread temp temp
 I am using struts action class to download a file .
  
  
  Here is the action class
  
  public ActionForward execute(ActionMapping aActionMapping, ActionForm 
aActionForm,
   HttpServletRequest aHttpServletRequest, HttpServletResponse  
aHttpServletResponse)
  throws Exception {
  
  aHttpServletResponse.setContentType(application/octet-stream);
  aHttpServletResponse.setHeader(pragma, no-cache);
  aHttpServletResponse.setHeader(Cache-Control,cache);
  aHttpServletResponse.setHeader(Cache-Control,must-revalidate);
  
  Integer aSysAttachId = new 
Integer(aHttpServletRequest.getParameter(IWeb.SYS_ATTACH_ID));
   aHttpServletResponse.setHeader(Content-Disposition, attachment;  
filename=\ +aHttpServletRequest.getParameter(IWeb.FILE_NAME)+ \);
   
download(aApplicationInfoDelegate.getApplicationAttachemntFile(aSysAttachId),aHttpServletResponse);
  return null;
  }
  
  private void download(byte[] byteArray, HttpServletResponse 
httpServletResponse)
  throws IOException, SQLException {
  try {
   BufferedOutputStream aBufferedOutputStream =new  
BufferedOutputStream(httpServletResponse.getOutputStream());
  aBufferedOutputStream.write(byteArray,0,byteArray.length);
  aBufferedOutputStream.close();
  } catch (Exception e) {
  throw new IllegalArgumentException(e.getMessage());
  }
  }
  
  My problem is  with all .doc files and some  .pdf files  .When  user 
clicks on the link , the browser opens a dialog box  with the option to save or 
open the file   .Suppose he has  choosen a .doc  file  to open , the browser 
opens micorsoft  word with an error message 
  
  Word experienced an error tying open the file.
  Try these suggestions.
  * Chaeck the file permissions for the document or drive.
  * Make sure there is sufficient free memory and disk space
  * Open the file with the text Recovery converter.
  
  
  I also had other files  like .xls and lot of .pdf and there is no problem 
with these files  but with all .doc files.
  Can Somebody guide with this issue.
  Thanks  Regards
  
  
   


-
Yahoo! Photos
 Ring in the New Year with Photo Calendars. Add photos, events, holidays, 
whatever.

Fwd: Re: file download problem

2006-01-18 Thread temp temp
I tried content type as  application/msword but it did not help .Any other  ways to solve this problem?  thanks  regards  Note: forwarded message attached.
	
		Yahoo! Photos 
Got holiday prints? See all the ways to get quality prints in your hands ASAP.---BeginMessage---
Just a thought.  Isn't there a specific content type for .doc
documents?  That might solve your problem.I looked it up.  .doc
documents are application/msword.  Try that and see what happens.  I
am actually building a list of all the extensions and their content
types.  Hope this helps.

On 1/18/06, temp temp [EMAIL PROTECTED] wrote:
  I am using struts action class to download a file .


   Here is the action class

   public ActionForward execute(ActionMapping aActionMapping, ActionForm 
 aActionForm,
HttpServletRequest aHttpServletRequest, HttpServletResponse  
 aHttpServletResponse)
   throws Exception {

   aHttpServletResponse.setContentType(application/octet-stream);
   aHttpServletResponse.setHeader(pragma, no-cache);
   aHttpServletResponse.setHeader(Cache-Control,cache);
   aHttpServletResponse.setHeader(Cache-Control,must-revalidate);

   Integer aSysAttachId = new 
 Integer(aHttpServletRequest.getParameter(IWeb.SYS_ATTACH_ID));
aHttpServletResponse.setHeader(Content-Disposition, attachment; 
  filename=\ +aHttpServletRequest.getParameter(IWeb.FILE_NAME)+ \);

 download(aApplicationInfoDelegate.getApplicationAttachemntFile(aSysAttachId),aHttpServletResponse);
   return null;
   }

   private void download(byte[] byteArray, HttpServletResponse 
 httpServletResponse)
   throws IOException, SQLException {
   try {
BufferedOutputStream aBufferedOutputStream =new  
 BufferedOutputStream(httpServletResponse.getOutputStream());
   aBufferedOutputStream.write(byteArray,0,byteArray.length);
   aBufferedOutputStream.close();
   } catch (Exception e) {
   throw new IllegalArgumentException(e.getMessage());
   }
   }

   My problem is  with all .doc files and some  .pdf files  .When  user 
 clicks on the link , the browser opens a dialog box  with the option to save 
 or open the file   .Suppose he has  choosen a .doc  file  to open , the 
 browser opens micorsoft  word with an error message

   Word experienced an error tying open the file.
   Try these suggestions.
   * Chaeck the file permissions for the document or drive.
   * Make sure there is sufficient free memory and disk space
   * Open the file with the text Recovery converter.


   I also had other files  like .xls and lot of .pdf and there is no problem 
 with these files  but with all .doc files.
   Can Somebody guide with this issue.
   Thanks  Regards





 -
 Yahoo! Photos
  Ring in the New Year with Photo Calendars. Add photos, events, holidays, 
 whatever.



--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~

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


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

downloading a file using struts action class

2006-01-17 Thread temp temp
 I am using struts action class to download a file .
  
  
  Here is the action class 
  
  
  public ActionForward execute(ActionMapping aActionMapping, ActionForm 
aActionForm,
   HttpServletRequest aHttpServletRequest, HttpServletResponse  
aHttpServletResponse)
  throws Exception {
  String aFileName=aHttpServletRequest.getParameter(IWeb.FILE_NAME);
  aHttpServletResponse.setContentType(application/octet-stream);
  
  Integer aSysAttachId = new 
Integer(aHttpServletRequest.getParameter(IWeb.SYS_ATTACH_ID));
   aHttpServletResponse.setHeader(Content-Disposition,  attachment; 
filename=\ +aFileName+ \);
   
download(aApplicationInfoDelegate.getApplicationAttachemntFile(aSysAttachId),aHttpServletResponse);
  return null;
  }
  
  private void download(byte[] byteArray, HttpServletResponse 
httpServletResponse)
  throws IOException, SQLException {
  try {
   BufferedOutputStream aBufferedOutputStream =new  
BufferedOutputStream(httpServletResponse.getOutputStream());
  aBufferedOutputStream.write(byteArray,0,byteArray.length);
  aBufferedOutputStream.close();
  } catch (Exception e) {
  throw new IllegalArgumentException(e.getMessage());
  }
  }
  
  
  
  download works  in mozilla but  in internet explorer   when user chooses to 
open  the downloaded file (a pdf) rather than  saving  IE opens Adobe Acrobat 
reader 
  with an error message There was an error opening this document .This file 
cannot be found.
  
  Can somebody guide me what is going wrong  here ?
  Thanks  Regards
  
  


-
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!

casting a request attribute into Object

2005-10-13 Thread temp temp







I have a jsp  (Parent Jsp)  in which I use
jsp:include to include other jsp (child Jsp) .


In the Parent Jsp I retrieve an Object from the
formbean and set it in request scope.

bean:define id=ramQuestionsDocument 
name=ramForm  property=ramQuestionsDocument/
request:setAttribute
name=ramQuestionsDocument%=ramQuestionsDocument%/request:setAttribute

jsp:include page=ramQuestions.jsp/



In the child Jsp (included jsp) 
I retrieve this Object using   
bean:define id=ramQuestions 
name=ramQuestionsDocument property=ramQuestions
scope='request'/

ramQuestionsDocument is set in request scope in
parent jsp . 

This line causes an  runtime error.  Here I get an
error stating that 
   No getter method for property ramQuestions of
bean ramQuestionsDocument
This error is not because of lacking a property 
ramQuestions in ramQuestionsDocument but 
struts tag did not cast the request attribute to
ramQuestionsDocument object.

So my question is how to cast an object retrieved from
request attribute into its Original form ?





thanks  regards









__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



using request tag from jstl

2005-10-13 Thread temp temp
I  am trying to use jstl request  tag to save an
object into request scope.


As per the docs  syntax  is  
req:setAttribute name=myattAAbb/req:setAttribute

I want  to put an object rather than a string  in the
request.How can I acheieve this?

thanksregards




__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

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



downloading a file using struts action class

2005-09-29 Thread temp temp
I want   a struts action class to download xml file .I
 do not want to use Struts DownloadAction because I
have a  super class  called AbstractActionBase  which
extends to  struts action class and all my action
classes extends to this AbstractActionBase. 

For downloading a file I am using normal struts action
class rather than DownloadAction class (I do not want
to use struts DownloadAction).
This normal struts action class returns null instead
of ActionForward  and sets the response content type
and writes to reponse output stream . My question is
is this proper way towrite a download Action  in
struts  without using struts DownloadAction class .


Here is the code fo my download action class 

public ActionForward performAction(
ActionMapping mapping, ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws Exception
{

ResultsForm resultsForm = (ResultsForm)
request.getSession().getAttribute(resultsForm);
FMCDataDocument fmcDataDocument =
resultsForm.getIdFlagFmcDataDocument();
byte[] bytearray =
fmcDataDocument.xmlText().getBytes();
   
response.setContentType(application/rss+xml);
response.setContentLength(bytearray.length);
response.setHeader(Content-Disposition,
attachment;filename=sample.xml);
response.getOutputStream().write(bytearray);
return null;
}


thanks  regards




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



problems configuring jakarta-catcus in RAD for testing action classes

2005-09-23 Thread temp temp




 I want to use   jakarta cactus for testing  struts 
action classes. 


 I am using websphere RAD , struts 1.2.6
,jakarta-cactus-12-1.7.1  and websphere 5.1

 This is  catcus.properties  file 


# Configuration file for Cactus.

# Each project using Cactus need to have such a file
put in the CLASSPATH
# (Meaning the directory containgin this file should
be in the CLASSPATH, not
# the file itself of course ... :) )

# Defines the URLs that will be used by Cactus to call
it's redirectors
# (Servlet and JSP). You need to specify in these URLs
the webapp context
# that you use for your application. In the example
below, the context is
# test.

cactus.servletRedirectorURL =
http://localhost:9080/PAC_WEB/ServletRedirector
cactus.jspRedirectorURL =
http://localhost:9080/PAC_WEB/JspRedirector


This  is my  .java file which tests one of my action
class.

public class TestOnlineProcessingAction extends 
CactusStrutsTestCase  {

public void setUp() throws Exception {
super.setUp(); }

public void tearDown() throws Exception {
super.tearDown(); }

public TestOnlineProcessingAction(String  testName
){
super(testName);
}
public void testSucessfulOnlineProcessingAction(){
setRequestPathInfo(/onlineProcessing);
addRequestParameter(type,l);
actionPerform();
verifyForward(success);
}

}

I placed all the required jar files and
catcus.properties in classpath. Above mentioned file
compiles and no problems with compiler.


Here is the error I get when I run
TestOnlineProcessingAction

org.apache.cactus.util.ChainedRuntimeException:
Missing Cactus property [cactus.contextURL]
at
org.apache.cactus.internal.configuration.BaseConfiguration.getContextURL(BaseConfiguration.java:59)
at
org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRedirectorURL_aroundBody0(AbstractWebConfiguration.java:46)
at
org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRedirectorURL_aroundBody1$advice(AbstractWebConfiguration.java:188)
at
org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRedirectorURL(AbstractWebConfiguration.java)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callRunTest(DefaultHttpClient.java:159)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:80)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:188)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.java:159)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpProtocolHandler.java:80)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(HttpProtocolHandler.java:188)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler.java)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:144)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
at
junit.framework.TestResult$1.protect(TestResult.java:106)
at
junit.framework.TestResult.runProtected(TestResult.java:124)
at
junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at
junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)

Please guide me what are the steps  for configuring
jakarta-catcus in websphere RAD and what might be
causing this problem.

thanksregards











__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



  1   2   >