Swathi Prakash

Ranch Hand
+ Follow
since Jan 18, 2005
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 Swathi Prakash

Can you move your struts.xml to WEB-INF Folder ? As per the standard and it will look the configuration (struts.xml) file only in WEB_INF Folder rite?
10 years ago
Hi,

system is going to shutdown - Message need to displayed to all the users who are logged in
and click of OK it should logging out at particular configured time (Consider it might me 9 PM).
Those who are using the application at 9 Pm they need to get the message then the application will be logged out.
Please help me to implement this in my application
I am using tomcat web server and JSP as a Front ENd.

Please help me to implement this
11 years ago
JSP
Congrats!!!

give me Some tips to Achieve!!!
14 years ago
Hi Swapna

All the Best

Now you know better how to crack the Exam

Expecting your Success message in this Forum
hai all,,

Please Help me.. How to use indexed properties..my jsp code i pasted below..i Dont knoe how to create the Form bean and how to get the values of jsp to action..

<%ArrayList values=(ArrayList)request.getAttribute("myarray"); %>
<logic:iterate id="MyBean" name="IPOListForm" collection="<%=values%>" property="MyArray">
<html:text name="MyBean" indexed="true" property="bidqty" indexed="true"/>
</logic:iterate>

this code generates number of text boxes according to the size of the arraylist..then how cani get the values in action .. and how to create the form for this page ...please help me..

Swathi
16 years ago
hi all,,

i have a page which has no of text boxes according to the count which i got from page loading.according to the count the no of text box will appear in the screen..my problem i m using ActionMessages in Action..
if my action throws any errors,i revert back to the same screen. the values in that textboxes are like this..
[Ljava.lang.Double;@655146}
i m setting the property as double data type..the value entered or disappears and the [Ljava.lang.Double;@655146}
string is appearing in my textbox...i want to get the values whatever i entered should be appeared on the screen,,.. what is the solution for this...please help me...
Thanks in advance...

Swathi
16 years ago
hi ,


i created page where i populate dynamic textbox..that means i got count on pageload according to that i create that textboxes..in that action i m getting as Double array..i want to do validation for this dynamic generated text box in struts validation.. how to do this one? i tried with ordinary method..but my textbox values whatever i entered is destroyed and
this ((Ljava.lang.Double;@6f00bc)) String is displayed in my dynamic text boxes.. how to do validation for this.. please help me..
i m new to struts....


Swathi
16 years ago
Thanks SriLakshmi... lot of thanks pa
16 years ago
open ur struts config file in Internet Explorer// .. i think u made some mistake in struts config....
16 years ago
thanks Srilakshmi,,

one confusion how to get the string array values from logic iterate to Action .. can u give some small examples..please help me .. i m new to struts..

Swathi
16 years ago
hai,,

i want to generate dynamic textbox according to my count value..

i will get count on the page load.. according to that i want to generate number of texbox in that page.. please help me how to do this in struts..
how shall i create form bean for this...

please help me.. i m new to struts....

Swathi
16 years ago
hi all,

pls help me...

i have page with 5 fields...and two buttons... for the first button i need only 2 fields required . for second button i need all fields required...how to do in struts???for these 2 buttons i m calling the same action..



from the first button action i will get the value of third field value.. then i want to submit the second button where i required all fields...

how to use validation of struts for these conditions... i m using only one form for this page...please help me.....


SWATHI
16 years ago
pleas help me roger


THIS IS MY WEB.XML


<resource-ref>
<description>Web DB</description>
<res-ref-name>jdbc/mysql</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
please help me
this is my descriptor file....
<Resource name="jdbc/mysql" auth="Container"
type="javax.sql.DataSource"/>

<ResourceParams name="jdbc/mysql">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://ananthan:3306/gotx?autoReconnect=true</value>
</parameter>
<parameter>
<name>username</name>
<value>root</value>
</parameter>
<parameter>
<name>password</name>
<value></value>
</parameter>
<parameter>
<name>maxActive</name>
<value>50</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
</ResourceParams>
Hai Roger,

InfrastructureLayer.DATASOUCENAME = java:/comp/env/jdbc/mysql

whats thar deployment descriptor file where it is ???