Don boscoo

Greenhorn
+ Follow
since Sep 20, 2010
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 Don boscoo

Hi

I have three scrollable divs which has checkboxes and values comes from the database.




Now, i want to display the checkboxes vertically, but am getting the check with two columns like

checkbox checkbox
checkbox checkbox
checkbox checkbox





how do i display the checkboxes vertically in one column. please help

Thanks

Hi,

I have a table in my JSP with three rows and three columns.



The values in the table are dynamic. the message column has large texts. How to make the cell flexible? when i get large text message in one of the cell, the table is shrinking and columns getting closer. How do i avoid that?
Hi,

I have a label in the below code:




the value of the label breaks, How to get rid of word-break? Below is the css code for label



I want the whole label in a single line. PLease help.

Thanks
Hi ,

i want to pass XML String to a class from URL:

/reSubmitOrder.do?method=submitOrder&requestXML="+xmlText;

xmlText is the XML String, I'm having the logs in the class am passing it to. I cant get the xml string but when i send the normal string, it works fine like

/reSubmitOrder.do?method=submitOrder&requestXML=hello;

How do i pass XML string in the url. Please Help.

Thanks.
Hi All,




I have this javascript in the jsp, when i hit a submit button. It goes to another page, but i want this page in the same page in a div through ajax. How do i achieve this?? Can some one give me sample code to achieve this.


My Try:




It Does'nt work.
Thanks.
10 years ago
Hi all,

When i added the datasource in struts-config.xml. It says No action servlet available on the page. The code i have is:









The action class is below:


Before adding this, the other actions work fine, But when i add this it says same for all other actions"No action servlet available". Initially, I just wanted to test the database connection.

Please Help.

Thanks.
10 years ago
Hi All,

How to setup multiple database connections in spring simultaneously? How to configure it in app-config.xml ? Can someone tell me the best practise to do it?

Thanks.
10 years ago
Hi All,

I want to have two datasources for my application, one which connects to oracle and the other to sql server. I have them as two seperate xml files imported in the app-config.xml

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${db.driver}"/>
<property name="url" value="${db.url}"/>
<property name="username" value="${db.username}"/>
<property name="password" value="${db.password}"/>
</bean>


<bean id="sqlDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${db.sql.driver}"/>
<property name="url" value="${db.sql.url}"/>
<property name="username" value="${db.sql.username}"/>
<property name="password" value="${db.sql.password}"/>
</bean>

Now am getting an exception that says

Could not autowire method: public void com.pdfscan.disconnectOrders.ProductDetailsItemDaoImpl.setsqlDataSource(javax.sql.DataSource); nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.sql.DataSource] is defined: expected single matching bean but found 2: [dataSource, sqlDataSource]

Please help me resolving this.

Thanks.
10 years ago
Thanks, It worked. I got lazy and thought of using cellspacing and that takes up everthing:)
Ok Am sorry for that, I actually need some horizontal space btw the cells for that particular table, when i have given cellspacing, It gives horizontal space but , It also gives verticla space, i want to get rid of that vertical space. I hope this gives the clear information.

Thanks.
Thanks for the reply. I need the cell spacing for that particular table, So is there any way around?
Hi All,



I have the nested tables, One of the table inside has cellspacing = 20, but it even gives verticle spacing btw the rows, How do i get rid of this?

Thanks
Thanks again for your response. I dont have javascript experience. I heard JQuery makes life easy. I will have to look into that.
10 years ago
JSP
Can you please provide me with some code on javascript?

Thanks.
10 years ago
JSP


Now that, I've created the hidden element, How do get the selected check box ${subrule.rule_name}?

Thanks.
10 years ago
JSP