ShivPrakash Srivastava

Ranch Hand
+ Follow
since Mar 24, 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 ShivPrakash Srivastava

Congrats Mate ....

Can you please tell me the link for Sun Mock Exams

Cheers
Shiv
10 years ago
No...it gives me following error

Wrong format string: 'org.apache.struts.taglib.bean.format.int''

Cheers
Shiv
10 years ago
Hi All,

It seemed a bit easy first but got confused.I want to use logic:iterate to iterate a list of Integer .

Iteration through a collection of object is very easy as we use the id attribute and say attribute.property which invokes the get method of associated with that property.How do we achieve this for collection of Integer?

Thanks in Advance
Cheers
Shiv
10 years ago
Hi,

I want to diplay list of text fields based on selection from dropdown.Can I use ActionForm to perform this task?

Thanks and Regards
Shiv
11 years ago
Hi,

Iam making sure that all values are being passed.Yes there is an not NULL constraing on the field for which this error is generated.But if the value is being passed then there should not be an issue isnt it?

Thanks and Regards
Shiv
11 years ago
Hi

Iam using Entity Bean(EJB 2.1) to insert data to the database.It was working fine but now I getting error while inserting data

[3/7/08 8:24:45:871 EST] 00000038 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "createFund" on bean "BeanId(CDA#cdaAdminEJB.jar#FundController, null)". Exception data: javax.ejb.TransactionRolledbackLocalException: ; nested exception is: java.sql.SQLException: ORA-01400: cannot insert NULL into ("SOME_OWNER"."TB_SOME"."SOME_ID")
DSRA0010E: SQL State = 23000, Error Code = 1,400
java.sql.SQLException: ORA-01400: cannot insert NULL into ("SOME_OWNER"."TB_SOME"."SOME_ID")
DSRA0010E: SQL State = 23000, Error Code = 1,400
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2047)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2709)
at oracle.jdbc.driver.OraclePreparedStatement.doScrollPstmtExecuteUpdate(OraclePreparedStatement.java:3975)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:623)
at com.statestr.cda.ejb.websphere_deploy.ORACLE_V9_3.FundBeanFunctionSet_6bed6bd1.Create(Unknown Source)
at com.statestr.cda.ejb.websphere_deploy.ORACLE_V9_3.FundBeanFunctionSet_6bed6bd1.execute(Unknown Source)
at com.ibm.ws.rsadapter.cci.WSInteractionImpl.execute(WSInteractionImpl.java:501)
at com.ibm.ws.rsadapter.cci.WSRelationalRAAdapter.executeCreate(WSRelationalRAAdapter.java:340)
at com.ibm.ws.ejbpersistence.dataaccess.DataAccessRequestImpl.execute(Unknown Source)
at com.ibm.ws.ejbpersistence.beanextensions.ConcreteBeanStatefulInstanceExtensionImpl.executeCreate(Unknown Source)
at com.ibm.ws.ejbpersistence.beanextensions.CBNotExistState.ejbCreate(Unknown Source)
at com.ibm.ws.ejbpersistence.beanextensions.ConcreteBeanStatefulInstanceExtensionImpl.ejbPostCreate(Unknown Source)
at com.statestr.cda.ejb.ConcreteFund_6bed6bd1.ejbPostCreate(Unknown Source)
at com.statestr.cda.ejb.EJSCMPFundHomeBean_6bed6bd1.create_Local(Unknown Source)
at com.statestr.cda.ejb.EJSLocalCMPFundHome_6bed6bd1.create(Unknown Source)
at com.statestr.cda.services.FundService.createFund(Unknown Source)
at com.statestr.cda.ejb.facade.FundControllerBean.createFund(Unknown Source)
at com.statestr.cda.ejb.facade.EJSLocalStatelessFundController_edd60586.createFund(Unknown Source)
at com.statestr.cda.delegates.FundDelegate.createNewFund(Unknown Source)
at com.statestr.cda.actions.FundCreateAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1282)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:673)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1802)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1686)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1455)

The application is deployed on WAS 6.Pls let me know what need to be done to get rid of this exception.

Any help is appreciated.

Cheers
Shiv
11 years ago
Hi

I want to resscrict the user going to the previous page using IE back button.It tried following solution but did not work

1.
response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility

2. history.forward()

3. window.<onload>=history.go(1)

Pls help.Thanks in Advance

Regards
Shiv
Hi,

By .PIF I meant Project Interchange.Iam really sorry to put a wrong question.Maybe Iam confused or dont have much info as I have just started with the migration.

You had mentioned in your first reply that the workspace can be exported as a project interchange.How can I do that in WSAD 5.1

Thanks and Regards
Shiv
11 years ago
Hi Steinar,

Just a doubt,How can I create a .PIF in WSAD 5.1?

I do not find any task for that.Do I neet to add any plugins get that feature?

Pls let me know.

Thanks and Regards
Shiv
11 years ago
Thanks a lot.I will look into the link you have mentioned and will post again if there are any issues.

Regards
Shiv
11 years ago
Hi,

Iam trying to migrate my workspace from WSAD 5.1 to RAD 7.I did a google search and found that I need to export the enterprise applications in wsad 5.1 to .PIF file and then import the .PIF file in RAD.I do not have much info on .PIF file and I could not find any task that exports the workspace to .PIF in WSAD 5.1

Could you pls let me know how to migrate the workspace from WSAD 5.1 to RAD 7.

Thanks in Advance

Regards
Shiv
11 years ago
Hi,

Iam trying to migrate my workspace from WSAD 5.1 to RAD 7.I did a google search and found that I need to export the Enterprise Application in WSAD 5.1 to Project Interchange Format file (.PIF) and then import the .PIF file in RAD 7.I checked in WSAD 5.1 but unable to find any task that would export to .PIF.

Could you pls let me know how to go with the migration from WSAD 5.1 to RAD 7.

Thanks in advance

Regards
Shiv
11 years ago
Hi

Baiscally in the application,while edit Iam tying to display dependency and the user can click on the link and go to that particular page.Since this is an edit Iam also setting a flag.If a user has made any changes and clicks the link,the flag is set to true.Iam setting the flag using onChange action.I want to show a confirmation dialogue with the message that the changes will not be saved and give the user an option to proceed to the next page or not.

Thanks and Regards
Shiv
Hi,

Below is the code snippet :



on=onclick action

Thanks and Regards
Shiv
Hi

fuApplication is invoked by onClick action

Thanks and Regards
Shiv