same bean multiple fields

2010-06-08 Thread Upasana Sharma
I have a form which needs to submit multiple values(user name , last used
etc) of the same type for different users on a single click. But my form
bean refers to one user's field only . i need to submit all the fields using
a single form button click. how should i use beans n jsp in this case.

-- 
Thanks in advance
Upasana Sharma


Re: same bean multiple fields

2010-06-08 Thread Upasana Sharma
Thanks for ur reply... by i m using struts 2.0...

2010/6/8 Paweł Wielgus poulw...@gmail.com

 Hi Upasana,
 if You are using struts1 You may look here:
 http://struts.apache.org/1.x/struts-taglib/indexedprops.html

 Best greetings,
 Paweł Wielgus.


 2010/6/8 Upasana Sharma sharma...@gmail.com:
  I have a form which needs to submit multiple values(user name , last used
  etc) of the same type for different users on a single click. But my form
  bean refers to one user's field only . i need to submit all the fields
 using
  a single form button click. how should i use beans n jsp in this case.
 
  --
  Thanks in advance
  Upasana Sharma
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-- 
Thanks and Regards
Upasana Sharma


Re: same bean multiple fields

2010-06-08 Thread Upasana Sharma
hi thanks for ur reply

I do have working examples of both 1 and 2... using single bean and form
where elements occur for once ..



On Wed, Jun 9, 2010 at 1:10 AM, Ken ken.mcwilli...@aerose.com wrote:

 1) Do you have a working example where a single value is put on a form
 and then displayed with a JSP?
 2)Do know how to display data on a JSP with Struts 2 from a bean?

 If you have 1) you are far closer than you think, if not but you
 understand the magic behind number 2) then you'll see that Struts 2 is
 able to perform similar magic from the Form to the Bean as it can from
 the Bean to the JSP.

 Let us know where you are at exactly.


 On Tue, 2010-06-08 at 13:35 +0530, Upasana Sharma wrote:

  Thanks for ur reply... by i m using struts 2.0...
 
  2010/6/8 Paweł Wielgus poulw...@gmail.com
 
   Hi Upasana,
   if You are using struts1 You may look here:
   http://struts.apache.org/1.x/struts-taglib/indexedprops.html
  
   Best greetings,
   Paweł Wielgus.
  
  
   2010/6/8 Upasana Sharma sharma...@gmail.com:
I have a form which needs to submit multiple values(user name , last
 used
etc) of the same type for different users on a single click. But my
 form
bean refers to one user's field only . i need to submit all the
 fields
   using
a single form button click. how should i use beans n jsp in this
 case.
   
--
Thanks in advance
Upasana Sharma
   
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org





-- 
Thanks and Regards
Upasana Sharma


Re: If theme info could be added to http://struts.apache.org/2.1.8.1/docs/datetimepicker.html

2010-06-02 Thread Upasana Sharma
thanks for the info that was very useful...


-- 
Thanks and Regards
Upasana Sharma


On Wed, May 12, 2010 at 9:35 PM, Emi Lu em...@encs.concordia.ca wrote:

 Hello,

 Can someone have the permission update this document
 http://struts.apache.org/2.1.8.1/docs/datetimepicker.html

 By adding:


 Also need to be set up theme
 s:head theme=xhtml/
 sx:head parseContent=true/

 Otherwise, the datatimepicker will not work; it will be more clear.

 Thanks,
 --
 Lu Ying


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




load dynamically created files in jsp

2010-05-14 Thread Upasana Sharma
Hi

I have a scenario where i create a temporary dynamic image file from the
database and try to show it on my jsp.
The file url shows the image properly, but when in jsp , my browser says
that Firefox doesn't know how to open this address, because the protocol
(d) isn't associated with any program

the url i get is like

D:\myWorkspace\ui\WebContent\images\JavaTemp2261198016333434327.jpg, that is
my struts project folder.

How can i make the image accessible to my jsp.

-- 
Thanks and Regards
Upasana Sharma


Re: load dynamically created files in jsp

2010-05-14 Thread Upasana Sharma
Hi i can access the folder from url

http://localhost:8080/ui/images/JavaTemp2261198016333434327.jpg


i am using something like

img src='s:url value=${userImage}/' height=140 width=120
style=float: right;padding-right: 45px/img


but this returns me
images/JavaTemp2261198016333434327.jpg

not the relative url using context
can u just help me out how should i deal with the s:url tag

thanks in advance



On Fri, May 14, 2010 at 11:33 AM, Upasana Sharma sharma...@gmail.comwrote:

 Hi

 I have a scenario where i create a temporary dynamic image file from the
 database and try to show it on my jsp.
 The file url shows the image properly, but when in jsp , my browser says
 that Firefox doesn't know how to open this address, because the protocol
 (d) isn't associated with any program

 the url i get is like

 D:\myWorkspace\ui\WebContent\images\JavaTemp2261198016333434327.jpg, that
 is my struts project folder.

 How can i make the image accessible to my jsp.

 --
 Thanks and Regards
 Upasana Sharma


Re: s:select help

2010-05-05 Thread Upasana Sharma
i am too trying to do the same thing using checkbox

s:checkboxlist list=#{0:'',1:'',2:''} name=user
label=%{getText('com.upasana.type.'+toString())}/s:checkboxlist

but the key value is not passed to getText()

if you come up with some way to achieve this please let us know

thanks in advance


On Tue, May 4, 2010 at 6:33 PM, RogerV roger.var...@googlemail.com wrote:




 Upasana Sharma wrote:
 
  listValue=%{getText('myCategory.'+toString())}
 
  this way i can change the select display value from .properties file
 
  in .properties i have to use
 
  myCategory.ELECTRIC= Electric
 

 Neat. I'm trying to do the same thing with the s:radio tag.

 s:radio list=allowedValues listValues=%{getText()}/

 the list allowedValues is a list of String values that need translating for
 display. listValues is the correct
 parameter to specify translation on because debug shows that getText() is
 called for each entry
 in the list. I just can't work out how to pass the value into the getText()
 so it gets translated.

 Any pointers would be welcome.

 Regards
 --
 View this message in context:
 http://old.nabble.com/s%3Aselect-help-tp28443569p28447107.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-- 
Thanks and Regards
Upasana Sharma


s:checkboxlist help

2010-05-05 Thread Upasana Sharma
s:checkboxlist list=#{0:'',1:'',2:''} name=user
label=%{getText('com.upasana.type.'+toString())}/s:checkboxlist

But the key value is not passed to getText()

The idea is to just initialize the keys in the checkboxlist and fetch the
corresponding display text from .properties file

Thanks in advance


Re: s:checkboxlist help

2010-05-05 Thread Upasana Sharma
thanks for the response
the issue is solved as

s:checkboxlist list=#{0:'',1:'',2:'',3:'',4:''} name=user
listValue=%{getText('com.upasana..type.'+
key.toString())}/s:checkboxlist



On Wed, May 5, 2010 at 2:41 PM, Sébastien Domergue 
sebastien.domer...@c-s.fr wrote:

 Hi,

 the label attribute is only used to render the label of the group of
 checkboxes. It is not used in an iterative way. In order to access to your
 .properties file, you have to build your list in your action then give it in
 list attribute.

 Regards

 Sébastien

 Le 05/05/2010 10:56, Upasana Sharma a écrit :

  s:checkboxlist list=#{0:'',1:'',2:''} name=user
 label=%{getText('com.upasana.type.'+toString())}/s:checkboxlist

 But the key value is not passed to getText()

 The idea is to just initialize the keys in the checkboxlist and fetch the
 corresponding display text from .properties file

 Thanks in advance




 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-- 
Thanks and Regards
Upasana Sharma


s:select help

2010-05-04 Thread Upasana Sharma
Hi I am using s:select and populating it with enum .
s:select list=categoryList name=complaintType /s:select

the enum is like

public enum EComplaintType {
 CLUB_HOUSE(0), ELECTRIC(1);
}

In the jsp the select is formed as

select name=categorySelect id=categorySelect
option value=CLUB_HOUSECLUB_HOUSE/option
option value=ELECTRICELECTRIC/option
/select

Here both the key and value for the select are the same as the Name i
have given in enum EComplaintType

1. I want to know that how can i set the value for select as the
numeric equivalent of the enum
2. Also if I want the select option display name to be fetched from
some .properties file based on the key value how should i apporach the
scenario?

Thanks in advance...

Upasana Sharma


Re: s:select help

2010-05-04 Thread Upasana Sharma
I have also seen that there is some function called ordinal() in enum. can
anyone suggest how can i use it in s:select tag


On Tue, May 4, 2010 at 12:01 PM, Upasana Sharma sharma...@gmail.com wrote:

 Hi I am using s:select and populating it with enum .
 s:select list=categoryList name=complaintType /s:select

 the enum is like

 public enum EComplaintType {
  CLUB_HOUSE(0), ELECTRIC(1);
 }

 In the jsp the select is formed as

 select name=categorySelect id=categorySelect

 option value=CLUB_HOUSECLUB_HOUSE/option
 option value=ELECTRICELECTRIC/option
 /select

 Here both the key and value for the select are the same as the Name i have 
 given in enum EComplaintType

 1. I want to know that how can i set the value for select as the numeric 
 equivalent of the enum
 2. Also if I want the select option display name to be fetched from some 
 .properties file based on the key value how should i apporach the scenario?

 Thanks in advance...

 Upasana Sharma




-- 
Thanks and Regards
Upasana Sharma


Re: s:select help

2010-05-04 Thread Upasana Sharma
listValue=%{getText('myCategory.'+toString())}

this way i can change the select display value from .properties file

in .properties i have to use

myCategory.ELECTRIC= Electric


On Tue, May 4, 2010 at 12:24 PM, Upasana Sharma sharma...@gmail.com wrote:

 I have also seen that there is some function called ordinal() in enum. can
 anyone suggest how can i use it in s:select tag



 On Tue, May 4, 2010 at 12:01 PM, Upasana Sharma sharma...@gmail.comwrote:

 Hi I am using s:select and populating it with enum .
 s:select list=categoryList name=complaintType /s:select

 the enum is like

 public enum EComplaintType {
  CLUB_HOUSE(0), ELECTRIC(1);
 }

 In the jsp the select is formed as

 select name=categorySelect id=categorySelect


 option value=CLUB_HOUSECLUB_HOUSE/option
 option value=ELECTRICELECTRIC/option
 /select

 Here both the key and value for the select are the same as the Name i have 
 given in enum EComplaintType

 1. I want to know that how can i set the value for select as the numeric 
 equivalent of the enum
 2. Also if I want the select option display name to be fetched from some 
 .properties file based on the key value how should i apporach the scenario?

 Thanks in advance...

 Upasana Sharma




 --
 Thanks and Regards
 Upasana Sharma




-- 
Thanks and Regards
Upasana Sharma


struts if tag related help

2010-04-28 Thread Upasana Sharma
Hi

is something like this possible in struts2

s:if test=%{not empty #session.UserList} 

I am aware of logic:notempty tag but is it possibel to achive the same
result using s:if tag..


-- 
Thanks and Regards
Upasana Sharma


Re: struts if tag related help

2010-04-28 Thread Upasana Sharma
thanks a lot it worked out...

On Wed, Apr 28, 2010 at 7:46 PM, Wes Wannemacher w...@wantii.com wrote:

 s:if test=%{#session.UserList.size()  0} 

 (assuming that #session.UserList evaluates to some form of java.util.Set)

 -Wes

 On Wed, Apr 28, 2010 at 9:54 AM, Upasana Sharma sharma...@gmail.com
 wrote:
  Hi
 
  is something like this possible in struts2
 
  s:if test=%{not empty #session.UserList} 
 
  I am aware of logic:notempty tag but is it possibel to achive the same
  result using s:if tag..
 
 
  --
  Thanks and Regards
  Upasana Sharma
 



 --
 Wes Wannemacher

 Head Engineer, WanTii, Inc.
 Need Training? Struts, Spring, Maven, Tomcat...
 Ask me for a quote!

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




struts session help

2010-04-27 Thread Upasana Sharma
Hi

I have a jsp that displays some data . To refine the data based on some
criteria i have two comboboxes.

s:select list=categoryList id=categorySelect name=categorySelect
onchange=getDisplayCriteria(); emptyOption=true/s:select

 s:select list=statusList id=statusSelect name=statusSelect
onchange=getDisplayCriteria(); emptyOption=true/s:select


the lists for these two select option are obtained from the action that
calls the page containing them..

public String getAllLists() throws Exception{

 ActionContext.getContext().put(categoryList, EComplaintType.values());
ActionContext.getContext().put(statusList, EComplaintStatus.values());
return SUCCESS;
}

but the problem is that whatever we put in this action context , those
values are for that action only if we call any other action that renders
the same jsp these values are not accessible.

there is some issue with session management what i feel... can u suggest how
should i approach this problem.. to make the values stay in the session
after the first call.

-- 
Thanks and Regards
Upasana Sharma


Re: struts session help

2010-04-27 Thread Upasana Sharma
hi can u give me some example how to do that??




On Tue, Apr 27, 2010 at 2:09 PM, jaya krishna krishna1...@gmail.com wrote:

 HI upasana,

 y dont u store them in the application context variable??

 Regards,
 Jay

 On Tue, Apr 27, 2010 at 2:06 PM, Upasana Sharma sharma...@gmail.com
 wrote:

  Hi
 
  I have a jsp that displays some data . To refine the data based on some
  criteria i have two comboboxes.
 
  s:select list=categoryList id=categorySelect name=categorySelect
  onchange=getDisplayCriteria(); emptyOption=true/s:select
 
   s:select list=statusList id=statusSelect name=statusSelect
  onchange=getDisplayCriteria(); emptyOption=true/s:select
 
 
  the lists for these two select option are obtained from the action that
  calls the page containing them..
 
  public String getAllLists() throws Exception{
 
   ActionContext.getContext().put(categoryList, EComplaintType.values());
  ActionContext.getContext().put(statusList, EComplaintStatus.values());
  return SUCCESS;
  }
 
  but the problem is that whatever we put in this action context , those
  values are for that action only if we call any other action that
  renders
  the same jsp these values are not accessible.
 
  there is some issue with session management what i feel... can u suggest
  how
  should i approach this problem.. to make the values stay in the
 session
  after the first call.
 
  --
  Thanks and Regards
  Upasana Sharma
 



Action result to go nowhere

2010-04-22 Thread Upasana Sharma
Hi

I have a link which when clicked invokes some action. I do not want the page
to redirect or forward to some other jsp or action.
what should i write in struts.xml result of that action?

-- 
Thanks and Regards
Upasana Sharma


Re: Action result to go nowhere

2010-04-22 Thread Upasana Sharma
hi thanks for your response.I tried that
But my browser goes to some blank page with that respective action name as
the url.
It does not stick to the calling page

-- 
Thanks and Regards
Upasana Sharma


On Thu, Apr 22, 2010 at 2:53 PM, Miles, Chris 
chris.mi...@spsa.pnn.police.uk wrote:

 NOT PROTECTIVELY MARKED



 Hi

 Do not put any result in the XML and in the Action just return
 Action.NONE

 Chris

 -Original Message-
 From: Upasana Sharma [mailto:sharma...@gmail.com]
 Sent: 22 April 2010 10:10
 To: Struts Users Mailing List
 Subject: Action result to go nowhere

 Hi

 I have a link which when clicked invokes some action. I do not want the
 page to redirect or forward to some other jsp or action.
 what should i write in struts.xml result of that action?

 --
 Thanks and Regards
 Upasana Sharma

 NOT PROTECTIVELY MARKED


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Action result to go nowhere

2010-04-22 Thread Upasana Sharma
*I do not want to go to some result page
*
*On return INPUT**
*
*No result defined for action com.upasana.action.ComAction and result input*
:)


On Thu, Apr 22, 2010 at 3:13 PM, Rahul Mohan rahul.mo...@tcs.com wrote:

 Try 'return INPUT'.
 - rahul



 From:
 Upasana Sharma sharma...@gmail.com
 To:
 Struts Users Mailing List user@struts.apache.org
 Date:
 22-04-2010 15:08
 Subject:
 Re: Action result to go nowhere



 hi thanks for your response.I tried that
 But my browser goes to some blank page with that respective action name as
 the url.
 It does not stick to the calling page

 --
 Thanks and Regards
 Upasana Sharma


 On Thu, Apr 22, 2010 at 2:53 PM, Miles, Chris 
 chris.mi...@spsa.pnn.police.uk wrote:

  NOT PROTECTIVELY MARKED
 
 
 
  Hi
 
  Do not put any result in the XML and in the Action just return
  Action.NONE
 
  Chris
 
  -Original Message-
  From: Upasana Sharma [mailto:sharma...@gmail.com]
  Sent: 22 April 2010 10:10
  To: Struts Users Mailing List
  Subject: Action result to go nowhere
 
  Hi
 
  I have a link which when clicked invokes some action. I do not want the
  page to redirect or forward to some other jsp or action.
  what should i write in struts.xml result of that action?
 
  --
  Thanks and Regards
  Upasana Sharma
 
  NOT PROTECTIVELY MARKED
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 


 =-=-=
 Notice: The information contained in this e-mail
 message and/or attachments to it may contain
 confidential or privileged information. If you are
 not the intended recipient, any dissemination, use,
 review, distribution, printing or copying of the
 information contained in this e-mail message
 and/or attachments to it are strictly prohibited. If
 you have received this communication in error,
 please notify us by reply e-mail or telephone and
 immediately and permanently delete the message
 and any attachments. Thank you





-- 
Thanks and Regards
Upasana Sharma


Re: Action result to go nowhere

2010-04-22 Thread Upasana Sharma
In that case how can I invoke the action without changing the url. please
help me out.
-- 
Thanks and Regards
Upasana Sharma
On Thu, Apr 22, 2010 at 3:18 PM, Miles, Chris 
chris.mi...@spsa.pnn.police.uk wrote:





 That is what I would expect to happen. You are clicking a link which
 changes the URL to the URL of the Action. This is the normal process of
 the web itself.

 Chris


 -Original Message-
 From: Upasana Sharma [mailto:sharma...@gmail.com]
 Sent: 22 April 2010 10:37
 To: Struts Users Mailing List
 Subject: Re: Action result to go nowhere

 hi thanks for your response.I tried that But my browser goes to some
 blank page with that respective action name as the url.
 It does not stick to the calling page

 --
 Thanks and Regards
 Upasana Sharma


 On Thu, Apr 22, 2010 at 2:53 PM, Miles, Chris 
 chris.mi...@spsa.pnn.police.uk wrote:

  NOT PROTECTIVELY MARKED
 
 
 
  Hi
 
  Do not put any result in the XML and in the Action just return
  Action.NONE
 
  Chris
 
  -Original Message-
  From: Upasana Sharma [mailto:sharma...@gmail.com]
  Sent: 22 April 2010 10:10
  To: Struts Users Mailing List
  Subject: Action result to go nowhere
 
  Hi
 
  I have a link which when clicked invokes some action. I do not want
 the
  page to redirect or forward to some other jsp or action.
  what should i write in struts.xml result of that action?
 
  --
  Thanks and Regards
  Upasana Sharma
 
  NOT PROTECTIVELY MARKED
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 




 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Action result to go nowhere

2010-04-22 Thread Upasana Sharma
Hi

I have a link which when clicked invokes some action and opens up a pop up.
The result to be displayed in the pop up needs to be returned as object in
the action method called onclick. that is why i do not my calling  page to
navigate to some other jsp.

If u cud help me out how to handle such scenario that will be great help

-- 
Thanks and Regards
Upasana Sharma



On Thu, Apr 22, 2010 at 3:35 PM, Miles, Chris 
chris.mi...@spsa.pnn.police.uk wrote:






 Explain what exactly you are trying to achieve and why and it would help
 someone give you a solution.

 Chris

 -Original Message-
 From: Upasana Sharma [mailto:sharma...@gmail.com]
 Sent: 22 April 2010 10:52
 To: Struts Users Mailing List
 Subject: Re: Action result to go nowhere

 In that case how can I invoke the action without changing the url.
 please help me out.
 --
 Thanks and Regards
 Upasana Sharma
 On Thu, Apr 22, 2010 at 3:18 PM, Miles, Chris 
 chris.mi...@spsa.pnn.police.uk wrote:

 
 
 
 
  That is what I would expect to happen. You are clicking a link which
  changes the URL to the URL of the Action. This is the normal process
  of the web itself.
 
  Chris
 
 
  -Original Message-
  From: Upasana Sharma [mailto:sharma...@gmail.com]
  Sent: 22 April 2010 10:37
  To: Struts Users Mailing List
  Subject: Re: Action result to go nowhere
 
  hi thanks for your response.I tried that But my browser goes to some
  blank page with that respective action name as the url.
  It does not stick to the calling page
 
  --
  Thanks and Regards
  Upasana Sharma
 
 
  On Thu, Apr 22, 2010 at 2:53 PM, Miles, Chris 
  chris.mi...@spsa.pnn.police.uk wrote:
 
   NOT PROTECTIVELY MARKED
  
  
  
   Hi
  
   Do not put any result in the XML and in the Action just return
   Action.NONE
  
   Chris
  
   -Original Message-
   From: Upasana Sharma [mailto:sharma...@gmail.com]
   Sent: 22 April 2010 10:10
   To: Struts Users Mailing List
   Subject: Action result to go nowhere
  
   Hi
  
   I have a link which when clicked invokes some action. I do not want
  the
   page to redirect or forward to some other jsp or action.
   what should i write in struts.xml result of that action?
  
   --
   Thanks and Regards
   Upasana Sharma
  
   NOT PROTECTIVELY MARKED
  
  
   
   - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
 
 
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 




 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Action result to go nowhere

2010-04-22 Thread Upasana Sharma
thanks a lot for your responses. I used ajax calls to make the HTTPRequest
and the issue is solved.


On Thu, Apr 22, 2010 at 5:43 PM, Martin Gainty mgai...@hotmail.com wrote:

  if you want speculative guesses from the people who have responded then
 continue on without providing any substantive detail..
 BTW they are getting paid to waste your time...you and i are NOT getting
 paid to waste your time or other peoples time

 if you want a REAL answer post to the list the xml declarators
 (web.xml,struts.xml and applicationContext.xml) the action declarations are
 generally located in struts.xml

 viel gluck,
 Martin Gainty
 __
 Verzicht und Vertraulichkeitanmerkung

 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
 Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
 Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
 dient lediglich dem Austausch von Informationen und entfaltet keine
 rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
 E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.



  Date: Thu, 22 Apr 2010 15:41:02 +0530

  Subject: Re: Action result to go nowhere
  From: sharma...@gmail.com
  To: user@struts.apache.org

 
  Hi
 
  I have a link which when clicked invokes some action and opens up a pop
 up.
  The result to be displayed in the pop up needs to be returned as object
 in
  the action method called onclick. that is why i do not my calling page to
  navigate to some other jsp.
 
  If u cud help me out how to handle such scenario that will be great help
 
  --
  Thanks and Regards
  Upasana Sharma
 
 
 
  On Thu, Apr 22, 2010 at 3:35 PM, Miles, Chris 
  chris.mi...@spsa.pnn.police.uk wrote:
 
  
  
  
  
  
   Explain what exactly you are trying to achieve and why and it would
 help
   someone give you a solution.
  
   Chris
  
   -Original Message-
   From: Upasana Sharma [mailto:sharma...@gmail.com]
   Sent: 22 April 2010 10:52
   To: Struts Users Mailing List
   Subject: Re: Action result to go nowhere
  
   In that case how can I invoke the action without changing the url.
   please help me out.
   --
   Thanks and Regards
   Upasana Sharma
   On Thu, Apr 22, 2010 at 3:18 PM, Miles, Chris 
   chris.mi...@spsa.pnn.police.uk wrote:
  
   
   
   
   
That is what I would expect to happen. You are clicking a link which
changes the URL to the URL of the Action. This is the normal process
of the web itself.
   
Chris
   
   
-Original Message-
From: Upasana Sharma [mailto:sharma...@gmail.com]
Sent: 22 April 2010 10:37
To: Struts Users Mailing List
Subject: Re: Action result to go nowhere
   
hi thanks for your response.I tried that But my browser goes to some
blank page with that respective action name as the url.
It does not stick to the calling page
   
--
Thanks and Regards
Upasana Sharma
   
   
On Thu, Apr 22, 2010 at 2:53 PM, Miles, Chris 
chris.mi...@spsa.pnn.police.uk wrote:
   
 NOT PROTECTIVELY MARKED



 Hi

 Do not put any result in the XML and in the Action just return
 Action.NONE

 Chris

 -Original Message-
 From: Upasana Sharma [mailto:sharma...@gmail.com]
 Sent: 22 April 2010 10:10
 To: Struts Users Mailing List
 Subject: Action result to go nowhere

 Hi

 I have a link which when clicked invokes some action. I do not want
the
 page to redirect or forward to some other jsp or action.
 what should i write in struts.xml result of that action?

 --
 Thanks and Regards
 Upasana Sharma

 NOT PROTECTIVELY MARKED



 
 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


   
   
   
   
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
   
   
  
  
  
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  

 --
 Hotmail is redefining busy with tools for the New Busy. Get more from your
 inbox. See 
 how.http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2




-- 
Thanks and Regards
Upasana Sharma


struts action related query

2010-04-21 Thread Upasana Sharma
Hi all

I have a jsp that opens up as a pop up. I want to call a form submit from
this jsp so that it calls some method in action. But I want that the jsp
remains static as pop up and do not redirect or forward to some other jsp.
In struts.xml we have to specify some result for some action. Can you
help me out how to deal with such scenario...
thanks in advance..

Upasana Sharma


Re: [S2] Welcome Page as Action?

2010-04-15 Thread Upasana Sharma
Hi

I put these in my project and its working for me.

I created a blank file called welcome.

In struts.xml

package name=default namespace=/ extends=struts-default
default-action-ref name=welcome/
  action name=welcome class=com.upasana.WelcomeAction
  result name=SUCCESSWelcomePage.jsp/result
/action
/package

In web.xml

welcome-file-list
welcome-filewelcome/welcome-file
/welcome-file-list

Thanks and Regards
Upasana Sharma
http://www.mydomain.com/package/DOESNOTEXIST.action


Struts project structure in eclipse

2010-04-13 Thread Upasana Sharma
Hi

I am new to Struts. I am trying to develop a project. The jsp pages that are
relevant are arranged in respective folders. When I start the project from
eclipse the page from welcome file list are loaded properly with the
respective css. But whenever i try to access some other jsp css are not
accessed. there is a single css file in web-content. Images are under images
folder. I want to use a common css for my entire project. But the pages in
each folder work only when they have individual copy of images and css
inside their folder. I tried to use s:url  in the link href but it does
not seem to help. What should be the approach to handle it? If I need to
maintain a separate web.xml in each folder then how can I put the mapping
for the images folders and css.
-- 
Thanks and Regards
Upasana Sharma


Re: Struts project structure in eclipse

2010-04-13 Thread Upasana Sharma
Hi

Thanks a lot. Its working for me now...

Thanks and Regards
Upasana Sharma