vidhya jayapalan

Greenhorn
+ Follow
since Jul 14, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by vidhya jayapalan

Hi,

can anybody help me on the above issue. I dont see any error on the console nor as javascript error.

I am new to JSF, I have also used



but i am not able to set the selected value from the drop down to input text.

Is there any way to get handle to inputText field ? if so, please share your valueable inputs.

Thanks,
Vidhya
16 years ago
JSF
I dont get any error message or stack trace in the server.
16 years ago
JSF
Hi,

The following code selects a value from drop down and displays the same as text/label.




Instead, i would like to display the selected value to a text box.



But, the value selected is not rendering to the text box.


Are there any attributes to be added ?

Is it possible to render a value to the text box?

Please help.

Thanks,
Vidhya
16 years ago
JSF
Hi,

I am currently migrating an application from WAS 5.0 to WAS 6.1 which uses webservice client.

The application executes fine in WAS 5.0 but, I receive the following exception in WAS 6.1 [RAD7] while i try to

javax.xml.rpc.soap.SOAPFaultException: WSWS3277E: Error: No such operation 'SampleData'

Please find the explanation of the error code below, which i got from other sources in Internet.

WSWS3277E: Error: No such operation ''{0}''
Explanation:
This may be a symptom of a web service deployment problem.

Can anybody explain me furthur on this as how to approach on this issue which will help me to resolve the same.

Advance Thanks,
Vidhya
17 years ago
Hi,

Go through the errata and note the corrections:

Link

Thanks,
Vidhya
Anais,

1. <servlet-name> can be any meaningful name for that servlet.

2. Include <servlet-mapping> for the <servlet-name> mentioned in web.xml


<servlet-mapping>
<servlet-name>MyTestInit</servlet-name>
<url-pattern>/Test</url-pattern>
</servlet-mapping>

i too had the same error and when i mentioned the above in web.xml it worked fine.


Thanks,
Vidhya
Padma,

I think you got confused by the order i had answered

A: Incorrect
B: Incorrect
C: Incorrect
D: correct


A: incorrect
flushBuffer()-
Forces any content in the buffer to be written to the client. A call to this method automatically commits the response, meaning the status code and headers will be written.

Refer API.

Hence, if used at place //1 in the question above, the next line
res.sendError(HttpServletResponse.SC_UNAUTHORIZED);
will throw IllegalStateException because the response is already sent to the client.

Thanks,
Vidhya
Explanation:

D: correct
isCommitted() - a boolean indicating if the response has been committed
if written at //1 wont throw any exception

A: incorrect
flushBuffer()-
Forces any content in the buffer to be written to the client. A call to this method automatically commits the response, meaning the status code and headers will be written.

B: and C: are incorrect - No such methods exists

Thanks,
Vidhya
Hi,

Answere is D: if ( ! res.isCommitted() )

Thanks,
Vidhya
Thanks sundar for the correction !
Padma priya,

when the JSP file gets translated to servlet

the variables in declaration element <%! ... %> becomes instance variables to the class.


<%! String a = "AAA"; %>
<%! String b = "BBB"; %>

and

the variables in Scriptlet element <% ... %> becomes local variables to the in built service method.


<% String a = "aaa"; %>
<% String b = "bbb"; %>


and

the scriptlet element <% out.println(a+b); %> will be in service method.

Since the local and instance variable names are the same, the local variables overrides instance variables.

Hence, aaabbb is the output.


Thanks,
Vidhya
Hi,

I am trying to implement setShrinkToFit function using jakarta POI Package, for setting a particular cell in MS Excel to have the property setShrinkToFit to be checked as true.

import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.record.ExtendedFormatRecord;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFCell;
import java.io.IOException;
import java.io.FileOutputStream;

public class TestHSSFCellStyle extends HSSFCellStyle {

TestHSSFCellStyle(ExtendedFormatRecord e) {

super((short) 0, e);

}

public static void main(String[] args) throws IOException {

HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("format sheet");

ExtendedFormatRecord e = new ExtendedFormatRecord();

e.setShrinkToFit(true);

TestHSSFCellStyle t1 = new TestHSSFCellStyle(e);
HSSFRow row = sheet.createRow((short)0);
HSSFCell cell = row.createCell((short)0);
cell.setCellStyle(t1);

FileOutputStream fileOut =
new FileOutputStream("workbookTest.xls");
wb.write(fileOut);
fileOut.close();
}

}


But, I am not able to set the property. Kindly help me to proceed the same.

Thanks,
Vidhya
19 years ago