Loading Screen!!

2007-07-18 Thread adambomb

Hi 
Im trying to make a loading jsp for a another jsp which takes considerable
time pulling out huge amount of data. 
Can some body help me in making a loading screen which is displayed(perhaps
with hepl of javascript) while the page is loading a redirects to the actual
page once it has got the result. 
Another way is to display partial page as it loads.eg 20 rows at a time.And
keeps on loading untill the whole result is recieved. 
What would be the better way. 
Pls provide detailed solution 
Thanks
-- 
View this message in context: 
http://www.nabble.com/Loading-Screen%21%21-tf4105086.html#a11674430
Sent from the Struts - User mailing list archive at Nabble.com.


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



trying to make a loading jsp page

2007-07-12 Thread adambomb

Hi 
Im trying to make a loading jsp for a another jsp which takes considerable
time pulling out huge amount of data.
Can some body help me in making a loading screen which is displayed(perhaps
with hepl of javascript) while the page is loading a redirects to the actual
page once it has got the result.
Another way is to display partial page as it loads.eg 20 rows at a time.And
keeps on loading untill the whole result is recieved.
What would be the better way.
Pls provide detailed solution
Thanks
-- 
View this message in context: 
http://www.nabble.com/trying-to-make-a-loading-jsp-page-tf4069622.html#a11564793
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Displaying bean from action class

2007-05-04 Thread adambomb

Is there anybody who can help meee..



adambomb wrote:
> 
> Can you tell me what do I have to do in the action class other than
> forwarding back to the form page.
> If I try to print the values from the action class, I do get the right
> values on the console. But when I forward mapping to the same form page.
> It doesnt display those values there. bcoz when it tries to execute the
> query , it goes to find against null values.
> Can you tell me the steps I require to do what I am trying to do ?
> I might be missing just the one required
> 
> 
> adambomb wrote:
>> 
>> Thats true ...
>> 
>> 
>> Dave Newton-4 wrote:
>>> 
>>> --- adambomb <[EMAIL PROTECTED]> wrote:
>>>> Yep, Thats exactly my problem. I havent set the form
>>>> values anywhere.
>>> 
>>> If a session form is "dropping values" somewhere then
>>> probably the program logic you think is happening
>>> isn't really happening... 
>>> 
>>> IIRC you have a form, submit the form, and go back to
>>> that same form, correct?
>>> 
>>> 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]
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Displaying-bean-from-action-class-tf3686377.html#a10323759
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Displaying bean from action class

2007-05-03 Thread adambomb

Can you tell me what do I have to do in the action class other than
forwarding back to the form page.
If I try to print the values from the action class, I do get the right
values on the console. But when I forward mapping to the same form page. It
doesnt display those values there. bcoz when it tries to execute the query ,
it goes to find against null values.
Can you tell me the steps I require to do what I am trying to do ?
I might be missing just the one required


adambomb wrote:
> 
> Thats true ...
> 
> 
> Dave Newton-4 wrote:
>> 
>> --- adambomb <[EMAIL PROTECTED]> wrote:
>>> Yep, Thats exactly my problem. I havent set the form
>>> values anywhere.
>> 
>> If a session form is "dropping values" somewhere then
>> probably the program logic you think is happening
>> isn't really happening... 
>> 
>> IIRC you have a form, submit the form, and go back to
>> that same form, correct?
>> 
>> 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]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Displaying-bean-from-action-class-tf3686377.html#a10311886
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Displaying bean from action class

2007-05-03 Thread adambomb

Thats true ...


Dave Newton-4 wrote:
> 
> --- adambomb <[EMAIL PROTECTED]> wrote:
>> Yep, Thats exactly my problem. I havent set the form
>> values anywhere.
> 
> If a session form is "dropping values" somewhere then
> probably the program logic you think is happening
> isn't really happening... 
> 
> IIRC you have a form, submit the form, and go back to
> that same form, correct?
> 
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Displaying-bean-from-action-class-tf3686377.html#a10311783
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Displaying bean from action class

2007-05-03 Thread adambomb

Yep, Thats exactly my problem. I havent set the form values anywhere.


Dave Newton-4 wrote:
> 
> --- adambomb <[EMAIL PROTECTED]> wrote:
>> But my main problem is still intact.
> 
> The form bean is declared with session scope and it's
> not retaining the values across requests, and you are
> not setting the form values anywhere?
> 
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Displaying-bean-from-action-class-tf3686377.html#a10309488
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Displaying bean from action class

2007-05-03 Thread adambomb

Got it! .
But my main problem is still intact . Can you plz help in that too.
 \ ../

Dave Newton-4 wrote:
> 
> --- adambomb <[EMAIL PROTECTED]> wrote:
>> Also Im a bit confused that what is this 'id'
>> attribute for? in iterate tag.
> 
> """
> The name of a page scope JSP bean that will contain
> the current element of the collection on each
> iteration, if it is not null.
> """
> 
> It's so you can access the current element of what
> you're iterating over; modified from example on the
> iterate tag docs:
> 
> """
> 
>   Current element: property="value"/>
> 
> """
> 
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Displaying-bean-from-action-class-tf3686377.html#a10309146
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Displaying bean from action class

2007-05-03 Thread adambomb

Also Im a bit confused that what is this 'id' attribute for? in iterate tag.


adambomb wrote:
> 
> GoodMorning and Thanks for the reply,
> Regarding the hibernate fields and struts form fields, there is no problem
> in there. And yes I have changed the scope from request to session.
> But Im not clear about the third suggestion you gave.
> My jsp is page code is something like this:
> 
> 
> 
>value="id"/>
> 
>   
>value="id"/>
> 
> 
> 
>   
> 
>  value="id"/>
>   
>   
>  label="nodename" value="nodename"/>
>   
>   
>   
>   
> 
>  property="results" type="sometype">
>
>   <%  System.out.println("ITERATION BEING DONE"); %>
>  indexed="true" onchange="">
>   
>label="name" value="id"/>
> 
>   
>   
>   
> 
> 
> When I hit submit, it tries to execute the query at iterate but the doesnt
> seem to retain the values of the first and second fields and checks those
> columns for null values. And thus never enters the iterate tag.
> If the above code seems correct to you , plz lemme know what else should I
> look in for . Do I have to set some attributes in Action class before
> mapping.findforward().
> 
> 
> 
> 
> Martin Gainty wrote:
>> 
>> Good Morning
>> 
>> assuming you have the bean ID used for both iterate and bean
>> 
>> 
>> 
>> 
>> 
>> in your view assuming you have I would scope to session and not request
>> > type="package.YourActionClass">
>> 
>> Keep in mind that Hibernate generates classes based on name specified in 
>> *.hbm.xml (and not form field designations) ..with that in mind did you 
>> verify the Table has data records?
>> 
>> HTH/
>> Martin--
>> 
>> This email message and any files transmitted with it contain confidential
>> information intended only for the person(s) to whom this email message is
>> addressed.  If you have received this email message in error, please
>> notify
>> the sender immediately by telephone or email and destroy the original
>> message without making a copy.  Thank you.
>> 
>> - Original Message - 
>> From: "adambomb" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Thursday, May 03, 2007 9:27 AM
>> Subject: Displaying bean from action class
>> 
>> 
>>>
>>> Hi, I have a jsp page which displays more than one drop down lists and
>>> is
>>> being populated from the database. Now when I click on a submit button 
>>> after
>>> selecting the values from two dropdowns. it should go and search in the
>>> table and retrieve a collection of rows of that table(based on the
>>> values 
>>> of
>>> two columns) and should display on the same page using . 
>>> When
>>> I hit 'submit' button, the form bean is populated and validation is
>>> done.
>>> After that it goes in the action class and I have :
>>>
>>>
>>> if(MyBeanForm.getAction().equalsIgnoreCase("submit"))
>>> {
>>> try{
>>> MyFormObject.getResults().size();
>>> return mapping.findforward("success");
>>> }
>>> }
>>> AND the FormBean is like:
>>> public Collection getResults()
>>> {
>>> Session sess=HibernateUtils.getSessionFactory().openSession();
>>> List list=sess.createQuery("Select ds from MyTable ds where
>>> ds.firstfield 
>>> =
>>> "+formfirstfield +" and ds.secondfield= "+formsecondfield).list();
>>> sess.close();
>>> return list;
>>> }
>>>
>>> Everthing uptill here is fine, but when I want to display it on the jsp
>>> page, it doesnt seem to retain the values of the request parameters and
>>> executes the query with formfirstfield and formsecondfield as "null",
>>> and
>>> thus results in null output.
>>>
>>>
>>> JSP page tag is like:
>>> >> property="results"
>>> type="sometype">
>>> .. ..
>>> 
>>>
>>> I think I m missing something in action class to populate the bean but
>>> Im
>>> not sure what .
>>>
>>>
>>> Kindly Help.
>>>
>>> -- 
>>> View this message in context: 
>>> http://www.nabble.com/Displaying-bean-from-action-class-tf3686377.html#a10304615
>>> 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]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Displaying-bean-from-action-class-tf3686377.html#a10308599
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Displaying bean from action class

2007-05-03 Thread adambomb

GoodMorning and Thanks for the reply,
Regarding the hibernate fields and struts form fields, there is no problem
in there. And yes I have changed the scope from request to session.
But Im not clear about the third suggestion you gave.
My jsp is page code is something like this:



  

  
  



  


  
  

  
  
  
  


   
  <%  System.out.println("ITERATION BEING DONE"); %>

  
  

  
  
  


When I hit submit, it tries to execute the query at iterate but the doesnt
seem to retain the values of the first and second fields and checks those
columns for null values. And thus never enters the iterate tag.
If the above code seems correct to you , plz lemme know what else should I
look in for . Do I have to set some attributes in Action class before
mapping.findforward().




Martin Gainty wrote:
> 
> Good Morning
> 
> assuming you have the bean ID used for both iterate and bean
> 
> 
> 
> 
> 
> in your view assuming you have I would scope to session and not request
>  type="package.YourActionClass">
> 
> Keep in mind that Hibernate generates classes based on name specified in 
> *.hbm.xml (and not form field designations) ..with that in mind did you 
> verify the Table has data records?
> 
> HTH/
> Martin--
> 
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
> 
> - Original Message - 
> From: "adambomb" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, May 03, 2007 9:27 AM
> Subject: Displaying bean from action class
> 
> 
>>
>> Hi, I have a jsp page which displays more than one drop down lists and is
>> being populated from the database. Now when I click on a submit button 
>> after
>> selecting the values from two dropdowns. it should go and search in the
>> table and retrieve a collection of rows of that table(based on the values 
>> of
>> two columns) and should display on the same page using . 
>> When
>> I hit 'submit' button, the form bean is populated and validation is done.
>> After that it goes in the action class and I have :
>>
>>
>> if(MyBeanForm.getAction().equalsIgnoreCase("submit"))
>> {
>> try{
>> MyFormObject.getResults().size();
>> return mapping.findforward("success");
>> }
>> }
>> AND the FormBean is like:
>> public Collection getResults()
>> {
>> Session sess=HibernateUtils.getSessionFactory().openSession();
>> List list=sess.createQuery("Select ds from MyTable ds where ds.firstfield 
>> =
>> "+formfirstfield +" and ds.secondfield= "+formsecondfield).list();
>> sess.close();
>> return list;
>> }
>>
>> Everthing uptill here is fine, but when I want to display it on the jsp
>> page, it doesnt seem to retain the values of the request parameters and
>> executes the query with formfirstfield and formsecondfield as "null", and
>> thus results in null output.
>>
>>
>> JSP page tag is like:
>> > property="results"
>> type="sometype">
>> .. ..
>> 
>>
>> I think I m missing something in action class to populate the bean but Im
>> not sure what .
>>
>>
>> Kindly Help.
>>
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Displaying-bean-from-action-class-tf3686377.html#a10304615
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Displaying-bean-from-action-class-tf3686377.html#a10306529
Sent from the Struts - User mailing list archive at Nabble.com.


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



Displaying bean from action class

2007-05-03 Thread adambomb

Hi, I have a jsp page which displays more than one drop down lists and is
being populated from the database. Now when I click on a submit button after
selecting the values from two dropdowns. it should go and search in the
table and retrieve a collection of rows of that table(based on the values of
two columns) and should display on the same page using . When
I hit 'submit' button, the form bean is populated and validation is done.
After that it goes in the action class and I have : 


if(MyBeanForm.getAction().equalsIgnoreCase("submit"))
{
try{
MyFormObject.getResults().size();
return mapping.findforward("success");
}
}
AND the FormBean is like:
public Collection getResults()
{
Session sess=HibernateUtils.getSessionFactory().openSession();
List list=sess.createQuery("Select ds from MyTable ds where ds.firstfield =
"+formfirstfield +" and ds.secondfield= "+formsecondfield).list();
sess.close();
return list;
}

Everthing uptill here is fine, but when I want to display it on the jsp
page, it doesnt seem to retain the values of the request parameters and
executes the query with formfirstfield and formsecondfield as "null", and
thus results in null output. 


JSP page tag is like:

.. ..


I think I m missing something in action class to populate the bean but Im
not sure what .


Kindly Help.

-- 
View this message in context: 
http://www.nabble.com/Displaying-bean-from-action-class-tf3686377.html#a10304615
Sent from the Struts - User mailing list archive at Nabble.com.


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