anand kumarblr

Greenhorn
+ Follow
since Oct 27, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by anand kumarblr


If i give margin-top:30px; it will come as required, but the problem is this must apply only when the text is wrapped or else it must show on first line only...
Code of html is:
------------------------------­------------------------------­------------
<style>
.container {}
.left-content {
   float: left;
   width: 49%;
   }
.right-content{
   float: right;
   width: 49%;
   text-align: left; /* depends on element width */
   }
</style>
   <div class="container">
  <span class="left-content">
  Content in left itemdsssssssssssssssssssssssss­ssssssssssss sddddddddddddddddddddddddddddd­ddddddd :
  </span>

  <span class="right-content">
  Content in right item
  </span>
</div>

------------------------------­------------------------------­---------------------

what iam getting is

sdsdsdsd sdsdsds itemdsssssssssssssssssssssssssssssssssssss      tobe shown in right
 sdddddddddddddddddddddddddddddddddddd : :::

What i want is

sdfsdfdfdfd item dsssssssssssssssssssssssssssssssssssss                     
 sdddddddddddddddddddddddddddddddddddd ::::                       tobe shown in right

waht i want  is right content aligned with : in 2 line and not on first line..
Thanks for the reply. i get to know some Basics
13 years ago
Thanks for the reply. and also for the suggestion for using "JAX-WS API ".

So JAX-RPC or JAX-WS internally uses SAAJ API for sending SOAP message?
if not SAAJ API it might use similar API to create SOAP message and send it ?

All i wanted to know is whatever the API it needs to use SOAP message for communicating?
13 years ago

i can call a webservice by creating a SOAPEnvelope and sending it , webservice will take the SOAPEnvelope and gives back data in another SOAPEnvelope. (SOAP Method)

OR

i can call a webservice by creating a stubs out of WSDL and in webservice there will be some java class which will return me some data through VO. (JAX-RPC Method)

What i wanted to know is what is the difference between both.

i understand all message exchange happens in web service through SOAP,so what does jaxRPC does?
iam assuming JAX RPC internally uses SOAP to transfer XML messages, but only advantage of
JAX-RPC is that it will do the dirty work of populating our value objects from SOAP messages internally?

13 years ago
In a typical Web application we have service layer and dao layer.
For example in service method i have four methods

Create(Customer customer)
Delete(Customer customer)
Update(Customer customer)
Get(Customer customer)

a) My doubt is all these 4 methods does not make use of class variables, so can i make all these 4 methods static?
b) Usually i never see in any application they make these static my question is when do we make methods static?
I have a class productService and interface IProductService in a jar file.

there are 2 web applications which uses productservice.

One of the web application must get diff implementation of a method in product service and other web application neeeds a diff implemetation of same method.

Please suggest a good design......
Can anyone please tell whether conditional validation in struts 2 validation.xml is possible.
If yes how to do it.
14 years ago
Actually i meant if thats really required?

Because i really didnt get when action class gets serialized.
and i am thinking adding that line makes sense only if the action gets serialized.
14 years ago
when Action extends Action Support i get a warning action does not declare serialversionuid.
Please excuse my ignorance if this was basic questions...

1) what is advantage of declaring serialversionuid in action class?

2) when does the action class gets serialized.Even in Clustered Environment i don't see action needs serialization.
Please tell any scenario where action needs to be serialized.?

3) If my action does not get serialized why do i need to add unnecessary code(declare serialversionuid) to my action making it Big.?

4) I assume serialversionuid makes sense only when the action gets serialized.is this right?

I will be really grateful if someone shares your ideas.
14 years ago
I also tried with preapre and preparable..
Prepare method gets called when input get called.. and it populates my select box... and also displays validation messages.
But the problem is same prepare method gets called When i successfully entered all the fields also which i dont want to do.

Iam really stuck up with this validation From 2 weeks

So now iam trying with MessageStoreInterceptor....
14 years ago
Thanks for your reply.
I am using Actionredirect because i need to show some prepopulated values in select box in input page.....

If i must not pass as parameter then how could i pass values from one action to another action.
Actually iam using MessageStoreInterceptor to remember the validation messages, but to remeber field values iam passing the param like i shown before. i have many paameters... i dont want user to see that in his URL.
14 years ago
I have a mapping like this.
<result name="input" type="redirectAction" >
<param name="actionName">dispAcctTypePage</param>
<param name="accBean.zipCode">${accBean.zipCode}</param>
</result>

But the param come in url which is a security risk. please help how to eliminate param in browser URL.
14 years ago
Hi
I am trying to use actionchaining in struts2 and am stuck. Any help would
be really appreciated.

Scenario - I have a page that shows a list of records and also has a form
to add a new record. When user clicks on add I call addAction and chain it
to list action to go back to list page again showing the newly added
record.

My struts.xml looks something like this ->

<action name="add" class="com.test.AddAction">
<result name="success" type="chain">
list
</result>
<result name="input" type="chain">list</result>
</action>
<action name="list" class="com.test.ListAction">
<result name="success">/proj/list.jsp</result>
</action>

I have 1 issues/questions -
a) My validation does not work if I chainactions. If I don't enter
anything in add textbox and click on Add then I get a html 404 error. If I
route to list.jsp instead of chaning to list action then I see validation
messages. But I really need to show list on that page as well. So I can
not forward to the jsp.

I would really appreciate some feedback/help here.
14 years ago
Can anyone please reply to above question?
14 years ago